[FFmpeg-user] converting .mov(MJPEG) to web optimized .mp4(h264)

Reindl Harald h.reindl at thelounge.net
Mon Jun 30 12:32:40 CEST 2014



Am 30.06.2014 12:27, schrieb Amila Perera:
> On Mon, Jun 30, 2014 at 3:49 PM, Reindl Harald <h.reindl at thelounge.net>
> wrote:
> 
>> why not just enter "ffmpeg -i HandBrake-converted-file.mp4" and i bet
>> Video: h264 (Constrained Baseline) is part of the output
> 
> Well, I just made a ffprobe on HandBraked file, and it was "h264(Main)

fine, you can tune the low level params that it may appear as Main
but has more properties of Baseline - frankly, Google for the difference
of both, that's only a few flags

however, with the params below i am vonverting videos
now for around 5 years playing fine on *any* device
and *yes* for mobile clients forget anything but baseline

ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 24 2014 16:34:24 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --mandir=/usr/local/man
--arch=x86_64 --cpu=corei7 --extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx
-msse2 -msse3 -msse4.1 -msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -O3 -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --enable-bzlib --enable-zlib --disable-amd3dnow --disable-avdevice
--disable-debug --disable-devices --disable-ffplay --disable-ffprobe --disable-ffserver --disable-htmlpages
--disable-hwaccels --disable-iconv --disable-libdc1394 --disable-libfaac --disable-libfreetype --disable-libgsm
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg --disable-libopus
--disable-librtmp --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libxvid
--disable-openssl --disable-podpages --disable-postproc --disable-protocols --enable-protocol=cache
--enable-protocol=concat --enable-protocol=data --enable-protocol=file --enable-protocol=http --enable-protocol=md5
--enable-protocol=pipe --enable-protocol=rtp --enable-protocol=tcp --enable-protocol=udp --enable-protocol=unix
--disable-shared --disable-txtpages
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/autotest/parts/ffmpeg/demo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.31.0
  Duration: 00:00:20.24, start: 0.000000, bitrate: 654 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x400 [SAR 80:81 DAR
16:9], 553 kb/s, SAR 79:80 DAR 711:400, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
Codec AVOption rc_lookahead (Number of frames to look ahead for alternate reference frame selection) specified for
output file #0 (/autotest/parts/ffmpeg/targets/test.x264.mp4) has not been used for any stream. The most likely
reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some
encoder which was not actually used for any stream.
[Parsed_setdar_1 @ 0x268f380] num:den syntax is deprecated, please use num/den or named options instead
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0x2682880] using SAR=133/135
[libx264 @ 0x2682880] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2682880] profile Constrained Baseline, level 2.1
[libx264 @ 0x2682880] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 -
http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x131 me=hex subme=9 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_offset=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr
mbtree=1 bitrate=448 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=544 vbv_bufsize=2000 nal_hrd=none
filler=0 ip_ratio=1.41 aq=1:1.00
[ipod @ 0x2692da0] Warning, extension is not .m4a nor .m4v Quicktime/Ipod might not play the file
    Last message repeated 1 times
Output #0, ipod, to '/autotest/parts/ffmpeg/targets/test.x264.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-06-24T16:41:49
    encoder         : Lavf55.33.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 133:135 DAR 2128:1215],
q=0-69, 448 kb/s, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> aac)
Press [q] to stop, [?] for help
frame=  170 fps=0.0 q=28.0 size=     346kB time=00:00:07.10 bitrate= 399.4kbits/s
frame=  277 fps=276 q=31.0 size=     680kB time=00:00:11.37 bitrate= 489.8kbits/s
frame=  435 fps=289 q=29.0 size=    1048kB time=00:00:17.71 bitrate= 484.6kbits/s
[ipod @ 0x2692da0] Starting second pass: moving the moov atom to the beginning of the file
frame=  506 fps=259 q=-1.0 Lsize=    1309kB time=00:00:20.24 bitrate= 529.8kbits/s
video:1055kB audio:240kB subtitle:0 data:0 global headers:0kB muxing overhead 1.073406%
[libx264 @ 0x2682880] frame I:7     Avg QP:22.91  size:  7692
[libx264 @ 0x2682880] frame P:499   Avg QP:22.53  size:  2057
[libx264 @ 0x2682880] mb I  I16..4: 61.6%  0.0% 38.4%
[libx264 @ 0x2682880] mb P  I16..4:  4.4%  0.0%  2.4%  P16..4: 29.7% 11.5%  1.9%  0.0%  0.4%    skip:49.6%
[libx264 @ 0x2682880] coded y,uvDC,uvAC intra: 32.7% 68.7% 34.7% inter: 14.3% 25.8% 4.3%
[libx264 @ 0x2682880] i16 v,h,dc,p: 46% 33%  9% 13%
[libx264 @ 0x2682880] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 19% 16%  8% 10% 10% 11%  7%  7%
[libx264 @ 0x2682880] i8c dc,h,v,p: 50% 24% 19%  7%
[libx264 @ 0x2682880] ref P L0: 83.0%  9.0%  4.6%  1.9%  1.5%
[libx264 @ 0x2682880] kb/s:426.90
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 24 2014 16:34:24 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --mandir=/usr/local/man
--arch=x86_64 --cpu=corei7 --extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx
-msse2 -msse3 -msse4.1 -msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -O3 -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --enable-bzlib --enable-zlib --disable-amd3dnow --disable-avdevice
--disable-debug --disable-devices --disable-ffplay --disable-ffprobe --disable-ffserver --disable-htmlpages
--disable-hwaccels --disable-iconv --disable-libdc1394 --disable-libfaac --disable-libfreetype --disable-libgsm
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg --disable-libopus
--disable-librtmp --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libxvid
--disable-openssl --disable-podpages --disable-postproc --disable-protocols --enable-protocol=cache
--enable-protocol=concat --enable-protocol=data --enable-protocol=file --enable-protocol=http --enable-protocol=md5
--enable-protocol=pipe --enable-protocol=rtp --enable-protocol=tcp --enable-protocol=udp --enable-protocol=unix
--disable-shared --disable-txtpages
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/autotest/parts/ffmpeg/demo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.31.0
  Duration: 00:00:20.24, start: 0.000000, bitrate: 654 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x400 [SAR 80:81 DAR
16:9], 553 kb/s, SAR 79:80 DAR 711:400, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
[Parsed_setdar_1 @ 0x349dc40] num:den syntax is deprecated, please use num/den or named options instead
[swscaler @ 0x3480180] deprecated pixel format used, make sure you did set range correctly
Output #0, mjpeg, to '/autotest/parts/ffmpeg/targets/images/test.x264.mp4.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.33.100
    Stream #0:0(und): Video: mjpeg, yuvj420p, 480x270 [SAR 133:135 DAR 2128:1215], q=2-31, 200 kb/s, 90k tbn, 25
tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mjpeg)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=3.5 Lsize=      11kB time=00:00:00.04 bitrate=2314.2kbits/s
video:11kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.000000%


-----------------------
24.06.2014 16:41:51
Array
(
    [calls] => Array
        (
            [video] => /usr/local/bin/ffmpeg -i '/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -ab '96k' -bt '64k'
-ar '44100' -ac '2' -r '25' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -async '1' -maxrate '544k' -f
'ipod' -vcodec 'libx264' -acodec 'aac' -strict 'experimental' -cutoff '15000' -flags '+loop+mv4' -cmp '256'
-partitions '+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8' -me_method 'hex' -me_range '16' -subq '9' -trellis '1'
-refs '5' -g '250' -keyint_min '25' -sc_threshold '40' -i_qfactor '0.71' -qcomp '0.6' -qmin '0' -qmax '69' -qdiff
'4' -bufsize '2M' -rc_lookahead '50' -threads '4' -movflags '+faststart' -profile:v 'baseline' -coder '0' -bf '0'
-wpredp '0' -metadata 'creation_time=2014-06-24T16:41:49' '/autotest/parts/ffmpeg/targets/test.x264.mp4' >>
'/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
            [qt_faststart] => native
            [thumb] => /usr/local/bin/ffmpeg -i '/autotest/parts/ffmpeg/demo.mp4' -y -r '25' -f 'mjpeg' -vframes
'1' -ss '5' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000'
'/autotest/parts/ffmpeg/targets/images/test.x264.mp4.jpg' >> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>>
'/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
        )

    [result] => 1
    [status] => Video '/autotest/parts/ffmpeg/demo.mp4' wurde in '/autotest/parts/ffmpeg/targets/test.x264.mp4'
konvertiert
    [status_thumb] => Thumbnail '/autotest/parts/ffmpeg/targets/images/test.x264.mp4.jpg' wurde erstellt (Sekunde: 5)
    [status_extended] => Array
        (
        )

    [flvtool2] => 0
    [qt_faststart] => 1
    [duration] => 00:00:20
    [twopass] => 0
)

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

ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 24 2014 16:34:24 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --mandir=/usr/local/man
--arch=x86_64 --cpu=corei7 --extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx
-msse2 -msse3 -msse4.1 -msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -O3 -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --enable-bzlib --enable-zlib --disable-amd3dnow --disable-avdevice
--disable-debug --disable-devices --disable-ffplay --disable-ffprobe --disable-ffserver --disable-htmlpages
--disable-hwaccels --disable-iconv --disable-libdc1394 --disable-libfaac --disable-libfreetype --disable-libgsm
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg --disable-libopus
--disable-librtmp --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libxvid
--disable-openssl --disable-podpages --disable-postproc --disable-protocols --enable-protocol=cache
--enable-protocol=concat --enable-protocol=data --enable-protocol=file --enable-protocol=http --enable-protocol=md5
--enable-protocol=pipe --enable-protocol=rtp --enable-protocol=tcp --enable-protocol=udp --enable-protocol=unix
--disable-shared --disable-txtpages
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/autotest/parts/ffmpeg/demo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.31.0
  Duration: 00:00:20.24, start: 0.000000, bitrate: 654 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x400 [SAR 80:81 DAR
16:9], 553 kb/s, SAR 79:80 DAR 711:400, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
Codec AVOption rc_lookahead (Number of frames to look ahead for alternate reference frame selection) specified for
output file #0 (/dev/null) has not been used for any stream. The most likely reason is either wrong type (e.g. a
video option with no video streams) or that it is a private option of some encoder which was not actually used for
any stream.
Codec AVOption cutoff (set cutoff bandwidth) specified for output file #0 (/dev/null) has not been used for any
stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a
private option of some encoder which was not actually used for any stream.
[Parsed_setdar_1 @ 0x26b1060] num:den syntax is deprecated, please use num/den or named options instead
[libx264 @ 0x2697a40] using SAR=133/135
[libx264 @ 0x2697a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2697a40] profile Constrained Baseline, level 2.1
[libx264 @ 0x2697a40] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 -
http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=1 psy=1
psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_offset=0 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr
mbtree=1 bitrate=448 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=544 vbv_bufsize=2000 nal_hrd=none
filler=0 ip_ratio=1.41 aq=1:1.00
[ipod @ 0x2693420] Warning, extension is not .m4a nor .m4v Quicktime/Ipod might not play the file
Output #0, ipod, to '/dev/null':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-06-24T16:41:49
    encoder         : Lavf55.33.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 133:135 DAR 2128:1215],
q=0-69, pass 1, 448 kb/s, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
frame=  506 fps=0.0 q=-1.0 Lsize=    1061kB time=00:00:20.24 bitrate= 429.4kbits/s
video:1058kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.265141%
[libx264 @ 0x2697a40] frame I:5     Avg QP:21.44  size:  7623
[libx264 @ 0x2697a40] frame P:501   Avg QP:22.71  size:  2085
[libx264 @ 0x2697a40] mb I  I16..4: 63.9%  0.0% 36.1%
[libx264 @ 0x2697a40] mb P  I16..4:  8.9%  0.0%  0.0%  P16..4: 38.9%  0.0%  0.0%  0.0%  0.0%    skip:52.2%
[libx264 @ 0x2697a40] coded y,uvDC,uvAC intra: 27.3% 57.5% 31.2% inter: 16.8% 18.0% 3.8%
[libx264 @ 0x2697a40] i16 v,h,dc,p: 45% 34% 13%  7%
[libx264 @ 0x2697a40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 28% 15%  6%  5%  4%  7%  4%  8%
[libx264 @ 0x2697a40] i8c dc,h,v,p: 41% 29% 24%  7%
[libx264 @ 0x2697a40] kb/s:428.01
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 24 2014 16:34:24 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --mandir=/usr/local/man
--arch=x86_64 --cpu=corei7 --extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx
-msse2 -msse3 -msse4.1 -msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -O3 -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --enable-bzlib --enable-zlib --disable-amd3dnow --disable-avdevice
--disable-debug --disable-devices --disable-ffplay --disable-ffprobe --disable-ffserver --disable-htmlpages
--disable-hwaccels --disable-iconv --disable-libdc1394 --disable-libfaac --disable-libfreetype --disable-libgsm
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg --disable-libopus
--disable-librtmp --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libxvid
--disable-openssl --disable-podpages --disable-postproc --disable-protocols --enable-protocol=cache
--enable-protocol=concat --enable-protocol=data --enable-protocol=file --enable-protocol=http --enable-protocol=md5
--enable-protocol=pipe --enable-protocol=rtp --enable-protocol=tcp --enable-protocol=udp --enable-protocol=unix
--disable-shared --disable-txtpages
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/autotest/parts/ffmpeg/demo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.31.0
  Duration: 00:00:20.24, start: 0.000000, bitrate: 654 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x400 [SAR 80:81 DAR
16:9], 553 kb/s, SAR 79:80 DAR 711:400, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
Codec AVOption rc_lookahead (Number of frames to look ahead for alternate reference frame selection) specified for
output file #0 (/autotest/parts/ffmpeg/targets/test_2p.x264.mp4) has not been used for any stream. The most likely
reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some
encoder which was not actually used for any stream.
[Parsed_setdar_1 @ 0x206cb80] num:den syntax is deprecated, please use num/den or named options instead
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0x2054da0] using SAR=133/135
[libx264 @ 0x2054da0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2054da0] profile Constrained Baseline, level 2.1
[libx264 @ 0x2054da0] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 -
http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x131 me=hex subme=9 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_offset=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40
rc=2pass mbtree=1 bitrate=448 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5
vbv_maxrate=544 vbv_bufsize=2000 nal_hrd=none filler=0 ip_ratio=1.41 aq=1:1.00
[ipod @ 0x20547a0] Warning, extension is not .m4a nor .m4v Quicktime/Ipod might not play the file
    Last message repeated 1 times
Output #0, ipod, to '/autotest/parts/ffmpeg/targets/test_2p.x264.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2014-06-24T16:41:49
    encoder         : Lavf55.33.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 480x270 [SAR 133:135 DAR 2128:1215],
q=0-69, pass 2, 448 kb/s, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> aac)
Press [q] to stop, [?] for help
frame=  146 fps=0.0 q=29.0 size=     282kB time=00:00:06.15 bitrate= 375.9kbits/s
frame=  226 fps=226 q=29.0 size=     665kB time=00:00:09.35 bitrate= 581.9kbits/s
frame=  374 fps=248 q=29.0 size=    1071kB time=00:00:15.27 bitrate= 574.1kbits/s
frame=  506 fps=252 q=32.0 size=    1354kB time=-577014:-32:-22.-77 bitrate=N/A
[ipod @ 0x20547a0] Starting second pass: moving the moov atom to the beginning of the file
frame=  506 fps=250 q=-1.0 Lsize=    1374kB time=00:00:20.24 bitrate= 556.0kbits/s
video:1120kB audio:240kB subtitle:0 data:0 global headers:0kB muxing overhead 1.022018%
[libx264 @ 0x2054da0] frame I:5     Avg QP:19.60  size:  9455
[libx264 @ 0x2054da0] frame P:501   Avg QP:22.91  size:  2194
[libx264 @ 0x2054da0] mb I  I16..4: 56.4%  0.0% 43.6%
[libx264 @ 0x2054da0] mb P  I16..4:  4.1%  0.0%  2.9%  P16..4: 28.9% 11.8%  1.8%  0.0%  0.5%    skip:49.9%
[libx264 @ 0x2054da0] coded y,uvDC,uvAC intra: 38.0% 70.4% 38.9% inter: 14.4% 26.1% 4.0%
[libx264 @ 0x2054da0] i16 v,h,dc,p: 44% 34%  9% 13%
[libx264 @ 0x2054da0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 18% 15%  9% 11% 10% 12%  7%  8%
[libx264 @ 0x2054da0] i8c dc,h,v,p: 48% 25% 20%  8%
[libx264 @ 0x2054da0] ref P L0: 82.6%  8.9%  4.9%  2.1%  1.5%
[libx264 @ 0x2054da0] kb/s:453.09
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 24 2014 16:34:24 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
  configuration: --prefix=/usr/local --bindir=/usr/local/bin --datadir=/usr/local/share/ffmpeg
--incdir=/usr/local/include/ffmpeg --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --mandir=/usr/local/man
--arch=x86_64 --cpu=corei7 --extra-cflags='-I/usr/local/x264 -m64 -O2 -march=corei7 -mtune=corei7 -fopenmp -mmmx
-msse2 -msse3 -msse4.1 -msse4.2 -maes -mfpmath=sse -pipe -fomit-frame-pointer -finline-functions -finline-limit=60
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=6 -D_FORTIFY_SOURCE=2 -O3 -ffast-math
-fomit-frame-pointer -floop-interchange -floop-block -ftree-loop-distribution -fno-strict-aliasing'
--extra-ldflags='-I/usr/local/x264 -L/usr/local/x264 -ldl -Wl,-z,now -Wl,-z,relro,-z,noexecstack' --enable-nonfree
--enable-gpl --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libvpx
--enable-static --enable-runtime-cpudetect --enable-bzlib --enable-zlib --disable-amd3dnow --disable-avdevice
--disable-debug --disable-devices --disable-ffplay --disable-ffprobe --disable-ffserver --disable-htmlpages
--disable-hwaccels --disable-iconv --disable-libdc1394 --disable-libfaac --disable-libfreetype --disable-libgsm
--disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libopencv --disable-libopenjpeg --disable-libopus
--disable-librtmp --disable-libschroedinger --disable-libspeex --disable-libvorbis --disable-libxvid
--disable-openssl --disable-podpages --disable-postproc --disable-protocols --enable-protocol=cache
--enable-protocol=concat --enable-protocol=data --enable-protocol=file --enable-protocol=http --enable-protocol=md5
--enable-protocol=pipe --enable-protocol=rtp --enable-protocol=tcp --enable-protocol=udp --enable-protocol=unix
--disable-shared --disable-txtpages
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/autotest/parts/ffmpeg/demo.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.31.0
  Duration: 00:00:20.24, start: 0.000000, bitrate: 654 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 720x400 [SAR 80:81 DAR
16:9], 553 kb/s, SAR 79:80 DAR 711:400, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
[Parsed_setdar_1 @ 0x2610c40] num:den syntax is deprecated, please use num/den or named options instead
[swscaler @ 0x25f3180] deprecated pixel format used, make sure you did set range correctly
Output #0, mjpeg, to '/autotest/parts/ffmpeg/targets/images/test_2p.x264.mp4.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.33.100
    Stream #0:0(und): Video: mjpeg, yuvj420p, 480x270 [SAR 133:135 DAR 2128:1215], q=2-31, 200 kb/s, 90k tbn, 25
tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mjpeg)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=3.5 Lsize=      11kB time=00:00:00.04 bitrate=2314.2kbits/s
video:11kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.000000%


-----------------------
24.06.2014 16:41:55
Array
(
    [calls] => Array
        (
            [video] => /usr/local/bin/ffmpeg -i '/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -bt '64k' -r '25'
-vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -pass '1' -passlogfile
'1b2d3bb80d5c950246e793ed49aa0ae7-mp4' -maxrate '544k' -f 'ipod' -vcodec 'libx264' -strict 'experimental' -cutoff
'15000' -flags '+loop+mv4' -cmp '256' -partitions '-parti8x8-parti4x4-partp8x8-partb8x8' -me_method 'dia' -me_range
'16' -subq '1' -trellis '0' -refs '1' -g '250' -keyint_min '25' -sc_threshold '40' -i_qfactor '0.71' -qcomp '0.6'
-qmin '0' -qmax '69' -qdiff '4' -bufsize '2M' -rc_lookahead '30' -threads '4' -profile:v 'baseline' -coder '0' -bf
'0' -wpredp '0' -metadata 'creation_time=2014-06-24T16:41:49' -an /dev/null >>
'/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
            [video_pass2] => /usr/local/bin/ffmpeg -i '/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -ab '96k' -bt
'64k' -ar '44100' -ac '2' -r '25' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -pass '2' -passlogfile
'1b2d3bb80d5c950246e793ed49aa0ae7-mp4' -async '1' -maxrate '544k' -f 'ipod' -vcodec 'libx264' -acodec 'aac' -strict
'experimental' -cutoff '15000' -flags '+loop+mv4' -cmp '256' -partitions
'+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8' -me_method 'hex' -me_range '16' -subq '9' -trellis '1' -refs '5' -g
'250' -keyint_min '25' -sc_threshold '40' -i_qfactor '0.71' -qcomp '0.6' -qmin '0' -qmax '69' -qdiff '4' -bufsize
'2M' -rc_lookahead '50' -threads '4' -movflags '+faststart' -profile:v 'baseline' -coder '0' -bf '0' -wpredp '0'
-metadata 'creation_time=2014-06-24T16:41:49' '/autotest/parts/ffmpeg/targets/test_2p.x264.mp4' >>
'/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
            [qt_faststart] => native
            [thumb] => /usr/local/bin/ffmpeg -i '/autotest/parts/ffmpeg/demo.mp4' -y -r '25' -f 'mjpeg' -vframes
'1' -ss '5' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000'
'/autotest/parts/ffmpeg/targets/images/test_2p.x264.mp4.jpg' >> '/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log' 2>>
'/autotest/parts/ffmpeg/logs/mp4_mp4-x264.log'
        )

    [result] => 1
    [status] => Video '/autotest/parts/ffmpeg/demo.mp4' wurde in '/autotest/parts/ffmpeg/targets/test_2p.x264.mp4'
konvertiert
    [status_thumb] => Thumbnail '/autotest/parts/ffmpeg/targets/images/test_2p.x264.mp4.jpg' wurde erstellt
(Sekunde: 5)
    [status_extended] => Array
        (
        )

    [flvtool2] => 0
    [qt_faststart] => 1
    [duration] => 00:00:20
    [twopass] => 1
)

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 246 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140630/de67ebef/attachment.asc>


More information about the ffmpeg-user mailing list