大约有 143 项符合查询结果(耗时:0.0242秒) [XML]
Convert audio files to mp3 using ffmpeg
I need to convert audio files to mp3 using ffmpeg.
11 Answers
11
...
Crop MP3 to first 30 seconds
...t will slice to 30 seconds without transcoding:
ffmpeg -t 30 -i inputfile.mp3 -acodec copy outputfile.mp3
The -acodec switch tells ffmpeg to use the special "copy" codec which does not transcode. It is lightning fast.
NOTE: the command was updated based on comment from Oben Sonne
...
How can I check the extension of a file?
...
Assuming m is a string, you can use endswith:
if m.endswith('.mp3'):
...
elif m.endswith('.flac'):
...
To be case-insensitive, and to eliminate a potentially large else-if chain:
m.lower().endswith(('.png', '.jpg', '.jpeg'))
...
Accessing MP3 metadata with Python [closed]
How can I retrieve mp3 metadata in Python?
16 Answers
16
...
Playing .mp3 and .wav in Java?
How can I play an .mp3 and a .wav file in my Java application? I am using Swing. I tried looking on the internet, for something like this example:
...
How do I download a file over HTTP using Python?
I have a small utility that I use to download an MP3 file from a website on a schedule and then builds/updates a podcast XML file which I've added to iTunes.
...
List files with certain extensions with ls and grep
I just want to get the files from the current dir and only output .mp4 .mp3 .exe files nothing else.
So I thought I could just do this:
...
Which mime type should I use for mp3
I'm trying to decide which mime type to choose for returning mp3 data (served up by php)
5 Answers
...
Batch renaming files with Bash
...ethoven/ we can do this:
Usage
sedrename 's|Beethoven - |Beethoven/|g' *.mp3
before:
./Beethoven - Fur Elise.mp3
./Beethoven - Moonlight Sonata.mp3
./Beethoven - Ode to Joy.mp3
./Beethoven - Rage Over the Lost Penny.mp3
after:
./Beethoven/Fur Elise.mp3
./Beethoven/Moonlight Sonata.mp3
./Beetho...
View/edit ID3 data for MP3 files
... A bit late, but you can add the performers/artists by the following: mp3.Tag.Performers = new string[] { "Performer 1", "Performer 2", "Performer 3" };
– nokturnal
Aug 15 '11 at 20:28
...