Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or heightwhen I run my MOV-to-PS3-compatible-MP4 script. I have been scratching my head wondering why. After a few hours of testing and goolging, I fount out ffmpeg needs these options in order to consider "correct":
-g 250 -qcomp 1.0 -qmin 10 -qmax 51 -qdiff 4But that is not the end of the story. Although ffmpeg was willing to run, the resulting MP4 files cannot be played by the PS3. It said "unsupported format". It gave me another few hours of head scratching (because googling doesn't work this time). The answer this time was dimension, I didn't know when did the 5Dmk2 start making movies with 1920x1088 pixels. The PS3 can only play 1920x1080. The extra vertical 8 pixels was the real cause of my trouble.
The updated command line is like this:
ffmpeg -i INPUT -vcodec libx264 -vpre hq -level 41 \
-maxrate 62500k -bufsize 78125k -b 30M -s hd1080 -y \
-f mp4 -acodec libfaac OUTPUT
The hq preset was used to replace the clumsy x264 settings like flags and others. The maxrate, bufsize and b (bitrate) options were tailored to the PS3. -s hd1080 fixed the size to 1920x1080. -f mp4 specified the MP4 container. -acoded libfaac specified using AAC for audio encoding.