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

Steve Kelly steve at aatw.com
Fri Dec 6 22:47:35 CET 2013


Hi Carl,

On 5 Dec 2013, at 22:46, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Steve Kelly <steve <at> aatw.com> writes:
> 
>> 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
> 
> If this worked fine and you are using now:
>> -intra_vlc 0 -non_linear_quant 0 
> 
> then our option-handling decision was really very bad;-(
> I suspect that  -flags2 +ivlc  became -intra_vlc 1
>                       _^_                      _^_
> 
> Is that really so counter-intuitive?

Not once explained, but trying to find in the docs from cold with no obvious link or change log relating it to what went before is not so straightforward for someone who doesn't keep entirely up to speed with project. Completely appreciate the difficulties in keeping very high level documentation with a (brilliant) project like this but when things change at the pace they do, but when they do change it sometimes isn't immediately obvious until something stops working. I guess it would be good if the command line output could indicate deprecated switches and indicate the new method but understand that could be a huge undertaking. 

> 
> Please test if that helps, if not please try to explain 
> if the problem can be reproduced without mediainfo - we 
> have to find the change introducing the problem.
> 

Ok, I ran the command with the changes as above. I'm keeping the old workflow of separate video and audio encodes, then mux afterwards for now to minimise the room for introducing other errors in a single command

Below this I've included the output of a 0.7.13, this generates a valid IMX file. I've included ffprobe and mediainfo output for both incase it is of any use.

Many Thanks,

Steve

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VIDEO ENCODE

# /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 -intra_vlc 1 -non_linear_quant 1 -ps 1 -qmin 1 -qmax 3 -top 1 -bufsize 2000000 -rc_init_occupancy 2000000 -an -y "Output.m2v"
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD]
  configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-ffplay --disable-outdev=sdl --enable-nonfree
  libavutil      52. 48.100 / 52. 48.100
  libavcodec     55. 39.100 / 55. 39.100
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[pcm_dvd @ 0x8088fdb20] block_size has changed
[mpeg @ 0x8088db420] Stream #1: not enough frames to estimate rate; consider increasing probesize
Guessed Channel Layout for  Input Stream #0.1 : stereo
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
Output #0, mpeg2video, to 'Output.m2v':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: mpeg2video, yuv422p, 720x608 [SAR 16:15 DAR 24:19], q=1-3, 50000 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video)
Press [q] to stop, [?] for help
frame= 8153 fps= 49 q=1.6 Lsize= 1990479kB time=00:05:26.12 bitrate=50000.0kbits/s    
video:1990479kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000%


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
AUDIO ENCODE

# /usr/local/bin/ffmpeg -i  "Input.mpg" -vn -ar 48000 -acodec pcm_s16le -y "Output.wav"
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD]
  configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-ffplay --disable-outdev=sdl --enable-nonfree
  libavutil      52. 48.100 / 52. 48.100
  libavcodec     55. 39.100 / 55. 39.100
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[pcm_dvd @ 0x8088fdb20] block_size has changed
[mpeg @ 0x8088db420] Stream #1: not enough frames to estimate rate; consider increasing probesize
Guessed Channel Layout for  Input Stream #0.1 : stereo
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
Output #0, wav, to 'Output.wav':
  Metadata:
    ISFT            : Lavf55.19.104
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_dvd -> pcm_s16le)
Press [q] to stop, [?] for help
[pcm_dvd @ 0x8088fdb20] block_size has changed
size=   61148kB time=00:05:26.12 bitrate=1536.0kbits/s    
video:0kB audio:61148kB subtitle:0 global headers:0kB muxing overhead 0.000128%

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MUX

# /usr/local/bin/ffmpeg -i "Output.m2v" -i "Output.wav" -c:v copy -tag:v mx5p -bsf:v imxdump  -c:a copy -y "Output_IMX.mov"
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD]
  configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-ffplay --disable-outdev=sdl --enable-nonfree
  libavutil      52. 48.100 / 52. 48.100
  libavcodec     55. 39.100 / 55. 39.100
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegvideo, from 'Output.m2v':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 720x608 [SAR 152:135 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Guessed Channel Layout for  Input Stream #1.0 : stereo
Input #1, wav, from 'Output.wav':
  Metadata:
    encoder         : Lavf55.19.104
  Duration: 00:05:26.12, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
[mov @ 0x8088dc020] WARNING codec timebase is very high. If duration is too long,
file may not be playable by quicktime. Specify a shorter timebase
or choose different container.
Output #0, mov, to 'Output_IMX.mov':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: mpeg2video (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 152:135 DAR 4:3], q=2-31, max. 50000 kb/s, 25 fps, 1200k tbn, 1200k tbc
    Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 8153 fps=236 q=-1.0 Lsize= 2051874kB time=00:05:26.12 bitrate=51542.2kbits/s    
video:1990479kB audio:61148kB subtitle:0 global headers:0kB muxing overhead 0.012093%

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffprobe of Output:

ffprobe Output_IMX.mov
ffprobe version 2.1 Copyright (c) 2007-2013 the FFmpeg developers
  built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD]
  configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags='-msse -I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --disable-ffplay --disable-outdev=sdl --enable-nonfree
  libavutil      52. 48.100 / 52. 48.100
  libavcodec     55. 39.100 / 55. 39.100
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Output_IMX.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf55.19.104
  Duration: 00:05:26.12, start: 0.000000, bitrate: 51542 kb/s
    Stream #0:0(eng): Video: mpeg2video (4:2:2) (m2v1 / 0x3176326D), yuv422p(tv), 720x608 [SAR 152:135 DAR 4:3], 50004 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc (default)
    Metadata:
      handler_name    : DataHandler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      handler_name    : DataHandler

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MEDIAINFO

# mediainfo Output_IMX.mov
General
Complete name                            : Output_IMX.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt  
File size                                : 1.96 GiB
Duration                                 : 5mn 26s
Overall bit rate mode                    : Constant
Overall bit rate                         : 51.5 Mbps
Writing application                      : Lavf55.19.104

Video
ID                                       : 1
Format                                   : m2v1
Codec ID                                 : m2v1
Duration                                 : 5mn 26s
Bit rate mode                            : Constant
Bit rate                                 : 50.0 Mbps
Width                                    : 720 pixels
Height                                   : 608 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Bits/(Pixel*Frame)                       : 4.569
Stream size                              : 1.90 GiB (97%)
Language                                 : English

Audio
ID                                       : 2
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : sowt
Duration                                 : 5mn 26s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 59.7 MiB (3%)
Language                                 : English

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


I've run the same sequence of commands via a version of ffmpeg that generates a valid IMX file (0.7.13)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VIDEO

# 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 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 Output.m2v 
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719  [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mpeg, from 'Input.mpg':
  Duration: 00:05:26.11, start: 0.957178, bitrate: 52933 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p, 720x576 [PAR 16:15 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
[buffer @ 0x805d43100] w:720 h:576 pixfmt:yuv422p tb:1/1000000 sar:16/15 sws_param:
[scale @ 0x805d431e0] w:720 h:576 fmt:yuv422p -> w:720 h:576 fmt:yuv422p flags:0x4
[pad @ 0x805d43260] w:720 h:576 -> w:720 h:608 x:0 y:32 color:0x108080FF[yuva]
Output #0, mpeg2video, to 'Output.m2v':
  Metadata:
    encoder         : Lavf52.111.0
    Stream #0.0: Video: mpeg2video, yuv422p, 720x608 [PAR 16:15 DAR 24:19], q=1-3, 50000 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
frame= 8153 fps= 69 q=24.8 Lsize= 1990479kB time=00:05:26.12 bitrate=50000.0kbits/s    
video:1990479kB audio:0kB global headers:0kB muxing overhead 0.000000%

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
AUDIO

# ffmpeg -i Input.mpg -acodec pcm_s16le -ar 48000 Output.wav
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719  [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mpeg, from 'Input.mpg':
  Duration: 00:05:26.11, start: 0.957178, bitrate: 52933 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p, 720x576 [PAR 16:15 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, wav, to 'Output.wav':
  Metadata:
    encoder         : Lavf52.111.0
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop, [?] for help
size=   61148kB time=00:05:26.12 bitrate=1536.0kbits/s    
video:0kB audio:61148kB global headers:0kB muxing overhead 0.000070%

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MUX

# ffmpeg -i Output.m2v -vcodec copy -i Output.wav -acodec copy -vtag mx5p -vbsf imxdump Output_IMX.mov 
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719  [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[mpegvideo @ 0x805d5e020] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegvideo, from 'Output.m2v':
  Duration: 00:05:26.12, bitrate: 50000 kb/s
    Stream #0.0: Video: mpeg2video (4:2:2), yuv422p, 720x608 [PAR 152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc
[wav @ 0x8060fa020] max_analyze_duration 5000000 reached at 5013333
Input #1, wav, from 'Output.wav':
  Duration: 00:05:26.12, bitrate: 1536 kb/s
    Stream #1.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Output #0, mov, to 'Output_IMX.mov':
  Metadata:
    encoder         : Lavf52.111.0
    Stream #0.0: Video: mpeg2video, yuv422p, 720x608 [PAR 152:135 DAR 4:3], q=2-31, 50000 kb/s, 25 tbn, 25 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #1.0 -> #0.1
Press [q] to stop, [?] for help
frame= 8153 fps= 69 q=-1.0 Lsize= 2051878kB time=00:05:26.12 bitrate=51542.3kbits/s    
video:1990479kB audio:61148kB global headers:0kB muxing overhead 0.012282%

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ffprobe

# ffprobe Output_IMX.mov
ffprobe version 0.7.13, Copyright (c) 2007-2011 the FFmpeg developers
  built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719  [FreeBSD]
  configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Output_IMX.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.111.0
  Duration: 00:05:26.12, start: 0.000000, bitrate: 51542 kb/s
    Stream #0.0(eng): Video: mpeg2video (4:2:2), yuv422p, 720x608 [PAR 152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MEDIAINFO

# mediainfo Output_IMX.mov
General
Complete name                    : Output_IMX.mov
Format                           : MPEG-4
Format profile                   : QuickTime
Codec ID                         : qt  
File size                        : 1.96 GiB
Duration                         : 5mn 26s
Overall bit rate                 : 51.5 Mbps
Writing application              : Lavf52.111.0

Video
ID                               : 1
Format                           : mx5p
Codec ID                         : mx5p
Duration                         : 5mn 26s
Bit rate mode                    : Constant
Bit rate                         : 50.0 Mbps
Width                            : 720 pixels
Height                           : 576 pixels
Display aspect ratio             : 1.408
Frame rate mode                  : Constant
Frame rate                       : 25.000 fps
Standard                         : PAL
Bits/(Pixel*Frame)               : 4.823
Stream size                      : 1.90 GiB (97%)
Language                         : English

Audio
ID                               : 2
Format                           : PCM
Format settings, Endianness      : Little
Format settings, Sign            : Signed
Codec ID                         : sowt
Duration                         : 5mn 26s
Bit rate mode                    : Constant
Bit rate                         : 1 536 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 59.7 MiB (3%)
Language                         : English

> Carl Eugen
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list