4

I want to merge an audio .wav with a video .flv using ffmpeg

Please suggest me how to achieve this. i am using this command on ubuntu 12 :

ffmpeg -i recod_audio.wav -i recod_ideo.flv -acodec libx264 -vcodec 
libx264  output.flv

but not getting success. i'm getting unnone tag libx264

1 Answer 1

5

Your mistake is in -acodec libx264.

Type ffmpeg -codecs in cmd, and look in libx264:

EV     libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10

You'll see "EV", where "E" means Encode, "V" means Video codec. There's no "A", which means that you can't use libx264 as audio codec. Consequently -acodec libx264 is false.

Now the answer – try to use another audio codec, e.g. aac, the built-in AAC encoder:

ffmpeg -i recod_audio.wav -i recod_ideo.flv -c:a aac -strict -2 -c:v libx264 output.flv

Or MP3:

ffmpeg -i recod_audio.wav -i recod_ideo.flv -c:a libmp3lame -ar 44100 -c:v libx264 output.flv
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.