[FFmpeg-user] Quicktime IMX encode failing on v2.1

Steve Kelly steve at aatw.com
Wed Nov 20 21:40:24 CET 2013


We're migrating from 0.7 to 2.1 (2.1 built from fully updated ports tree on FreeBSD 9.1) and experiencing some issues converting to Quicktime PAL IMX 50Mb/s.

The workflow: is 1/ encode video 2/ encode audio 3/ mux to quicktime

The video encode command we used previously is:

/usr/local/bin/ffmpeg -i "Input.mpg" -threads 1 -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+low_delay -dc 10 -flags2 +ivlc+non_linear_q -ps 1 -qmin 1 -qmax 3 -top 1 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -an -y "Output.m2v"


This fails with:

Input #0, mpeg, from 'Input.mpg':
  Duration: 00:05:26.12, start: 0.957178, bitrate: 52933 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
[NULL @ 0x8088fe020] [Eval @ 0x7fffffff8d80] Undefined constant or missing '(' in 'ivlc'
[NULL @ 0x8088fe020] Unable to parse option value "ivlc+non_linear_q"
[NULL @ 0x8088fe020] Error setting option flags2 to value +ivlc+non_linear_q.
Output #0, mpeg2video, to 'Output.m2v':
    Stream #0:0: Video: mpeg2video, yuv422p, 720x608 [SAR 16:15 DAR 24:19], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

I found one suggestion that "flags 2 +ivlc+non_linear_q" should become "-flags2 -intra_vlc -non_linear_quant", so the command is now:

/usr/local/bin/ffmpeg -i "Input.mpg" -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+low_delay -dc 10 -flags2 -intra_vlc -non_linear_quant -ps 1 -qmin 1 -qmax 3 -top 1 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -an -y "Output.m2v"

This fails with: 

Input #0, mpeg, from 'Input.mpg':
  Duration: 00:05:26.12, start: 0.957178, bitrate: 52933 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
[NULL @ 0x8088dba20] Unable to find a suitable output format for '1'
1: Invalid argument


I can't find any info on the latest error with search, any suggestions appreciated.




More information about the ffmpeg-user mailing list