[FFmpeg-user] convert video to mp3
h.reindl at thelounge.net
Wed Dec 11 14:39:23 CET 2013
Am 11.12.2013 14:32, schrieb Moritz Barsnick:
> On Wed, Dec 11, 2013 at 14:58:43 +0800, ???????????? wrote:
>> how can i convert video 2 mp3 file?
> I consider this impossible
> If you are referring to what we usually understand under "mp3"
> this is an audio format
> You cannot "convert" video to audio
the video has a seperate audio- and video-stream
if hwat you are saying would be true options line -an
for skip the audio stream of a video would be impossible
ffmpeg -i yourvideo -f mp3 -acodec libmp3lame youraudio.mp3
even the other direction works but while technically nothing
is easier than take the audio-stream and convert it to whatever
while ignore the video you need a image-loop for the length
of your target video - been there, done that, implementation
in a php-cli-wrapper took around 1 hour
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 263 bytes
Desc: OpenPGP digital signature
More information about the ffmpeg-user