Hi all
I have a mov file with a MJPEG video stream and AAC audio stream. I would like to encode this mov file with x264 codec to a mp4 file. Basically doesn't matter if the audio stream is converted with mp3lame or copied as AAC.
So what I did was: I installed ffmpegx, mp3lame, faac, faad and selected my file and the desired way of convertion. I choose x264 (mencoder) and mp3lame. And of course - it worked just fine (video & audio). I tested mp3lame as well as AAC - both worked.
Next step was to automate things, because I have a lot of mov files! So I decided to try to use the mencoder to do the same on the command line interface, so that I could integrate the command into a batch file. Unfortunately, the audio part didn't work. There was absolutely no audio.
So I was very confused. ffmpegx uses the same tool to convert my mov file (mencoder) and the audio conversion worked fine. Now as soon as I use mencoder itself, there is NO audio. How comes? What do I miss here?
I tried the following command:
mencoder input.mov -ovc x264 -x264encopts subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weigh t_b -vf scale=640:480 -oac mp3lame -lameopts cbr:br=64:vol=0 -srate 48000 -aid 0 -ofps 25 -lavfopts format=mp4 -o output.mp4
I already tested the mp3lame part of this command with mpeg4 video codec which worked fine. So I guess my bug has to be somewhere within the video part. Anyone sees a bug there?
I'm not familiar with ffmpegx command line interface. I installed the CLI on my Mac OSX SL. How does the x264 conversion look like with ffmepgx?
Is it somehow possible to extract the CLI command from the ffmpegx interface?
The output of the mencoder shows the following lines:
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: Failed to initialize the decoder!
ADecoder init failed
ADecoder init failed
Cannot find codec for audio format 0x6134706D.
Read DOCS/HTML/en/codecs.html!
But: faad is installed. ffmepgx finds it and obviously can convert the file.
I appriciate any help!
Thank you very much!
Results 1 to 5 of 5
-
-
ffmpegX doesn't require you to install mp3lame, faac and faad, nor does it make use of these extra copies if you do install them. The ffmpeg version in ffmpegX is already compiled with those enabled. The mencoder and mplayer binaries are also self-contained (with the exception of reallib).
Originally Posted by mmz27
Originally Posted by mmz27
Basically, when encoding to H.264 MP4 with ffmpegX, the program first encodes the video to a raw .264 stream, then decodes the audio to uncompressed WAV, then encodes the WAV to AAC, then uses mp4box for muxing. I'm sure the developer of ffmpegX had good reasons at the time to choose this route.
-
Next time please start a new thread for new issues, instead of replying to an older existing one. Thanks.
Originally Posted by PabloFX
2/ Many MP4s (from QuickTime export) have audio as the first stream and video as the second stream. This is reverse from what ffmpegX expects, and it specifies the audio stream number for (this) conversion, resulting in "selected audio stream (1) does not exists".
You could reverse the stream order yourself for MP4 files, before conversion, so ffmpegX can use it, by using command line MP4Box.Code:MP4Box -add source.mp4#trackID=2 -add source.mp4#trackID=1 target.mp4
See also MP4 to AVI - no sound, no subs.Last edited by Case; 5th Sep 2010 at 02:42.
Similar Threads
-
Convert x264 MKV to MP4
By Shibblet in forum Video ConversionReplies: 4Last Post: 28th Sep 2011, 20:56 -
I can't cut clips from mp4 x264 HD.
By Torresinho in forum EditingReplies: 4Last Post: 14th Feb 2010, 17:45 -
FCP MOV to x264 produces separate Audio and Video MP4 output files?
By skywriter in forum ffmpegX general discussionReplies: 3Last Post: 10th Feb 2010, 15:49 -
MP4 (x264 / AAC / 720x480) to MP4 (x264 / AAC / iPod res)
By GrayStrickland in forum Video ConversionReplies: 2Last Post: 15th Jun 2009, 10:20 -
No sound in MOV och MP4 when I use quicktime pro
By Cazz in forum Video ConversionReplies: 2Last Post: 3rd Sep 2008, 15:02