[FFmpeg-user] prores422 > h264: video now in slow motion

sean darcy seandarcy2 at gmail.com
Sat Apr 14 00:49:35 CEST 2012


On 04/13/2012 04:47 PM, sean darcy wrote:
> I have a ProRes422 that I'm trying to convert to h264. The original clip
> plays fine in Quicktime. The conversion seems to work, but when I play
> it with either mplayer of ffplay, the h264 clip is in slow motion - very
> slow motion.
>
> ffmpeg -i /opt/second2T/video/labs#170380-1.mov -an -vcodec libx264 -r
> 60 -preset slower -tune film -crf 18 -threads 0 Volume2.mov
> ffmpeg version N-39731-g0cd17a6 Copyright (c) 2000-2012 the FFmpeg
> developers
> built on Apr 11 2012 21:54:39 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
> configuration: --prefix=/usr --bindir=/usr/bin
> --datadir=/usr/share/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
> --shlibdir=/usr/lib64 --extra-cflags='-Ofast -march=native -mtune=native
> -fopenmp -fomit-frame-pointer -pipe' --enable-static --enable-shared
> --enable-gpl --enable-nonfree --enable-version3 --enable-postproc
> --enable-avfilter --enable-pthreads --enable-x11grab --enable-gray
> --enable-vaapi --enable-hardcoded-tables --enable-libaacplus
> --enable-frei0r --enable-libdirac --disable-decoder=libdirac
> --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
> --enable-librtmp --enable-libschroedinger
> --disable-encoder=libschroedinger --enable-libspeex --enable-libtheora
> --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
> --enable-zlib --disable-debug --cpu=amdfam10 --arch=x86_64 --enable-pic
> --enable-libopencv --enable-openssl
> libavutil 51. 46.100 / 51. 46.100
> libavcodec 54. 14.101 / 54. 14.101
> libavformat 54. 3.100 / 54. 3.100
> libavdevice 53. 4.100 / 53. 4.100
> libavfilter 2. 67.101 / 2. 67.101
> libswscale 2. 1.100 / 2. 1.100
> libswresample 0. 11.100 / 0. 11.100
> libpostproc 52. 0.100 / 52. 0.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/opt/second2T/gavin-video/PacLabs#170380-1.mov':
> Metadata:
> major_brand : qt
> minor_version : 537199360
> compatible_brands: qt
> creation_time : 2012-03-05 23:56:50
> Duration: 00:28:36.01, start: 0.000000, bitrate: 59349 kb/s
> Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le,
> 720x486, 59337 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc
> Metadata:
> creation_time : 2012-03-05 23:56:50
> handler_name : Apple Alias Data Handler
> Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
> Metadata:
> creation_time : 2012-03-06 00:03:55
> handler_name : Apple Alias Data Handler
> timecode : 01:00:00;00
> Incompatible pixel format 'yuv422p10le' for codec 'libx264',
> auto-selecting format 'yuv420p'
> [buffer @ 0x1306060] w:720 h:486 pixfmt:yuv422p10le tb:1/1000000 sar:0/1
> sws_param:flags=2
> [buffersink @ 0x1334720] auto-inserting filter 'auto-inserted scale 0'
> between the filter 'src' and the filter 'out'
> [scale @ 0x1304100] w:720 h:486 fmt:yuv422p10le sar:0/1 -> w:720 h:486
> fmt:yuv420p sar:0/1 flags:0x4
> [libx264 @ 0x1301c20] using cpu capabilities: MMX2 SSE2Fast FastShuffle
> SSEMisalign LZCNT
> [libx264 @ 0x1301c20] profile High, level 3.1
> [libx264 @ 0x1301c20] 264 - core 122 r2184+36 22f2e8b - H.264/MPEG-4 AVC
> codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html -
> options: cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9
> psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=2
> 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=9
> sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
> constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
> weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
> intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60
> qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
> Output #0, mov, to 'Volume2.mov':
> Metadata:
> major_brand : qt
> minor_version : 537199360
> compatible_brands: qt
> creation_time : 2012-03-05 23:56:50
> encoder : Lavf54.3.100
> Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x486,
> q=-1--1, 60 tbn, 60 tbc
> Metadata:
> creation_time : 2012-03-05 23:56:50
> handler_name : Apple Alias Data Handler
> Stream mapping:
> Stream #0:0 -> #0:0 (prores -> libx264)
>
> Here I set the x264 frame rate to 60. I first tried it without the frame
> rate. No help.
>
>
> Any help appreciated.
>
> sean

I realize I didn't paste the full console output. Here's the rest of it:

frame=102961 fps= 24 q=-1.0 Lsize= 1159830kB time=00:28:35.98 
bitrate=5537.0kbits/s dup=51532 drop=0
video:1158606kB audio:0kB global headers:0kB muxing overhead 0.105634%
[libx264 @ 0x1301c20] frame I:1856  Avg QP:18.61  size: 76632
[libx264 @ 0x1301c20] frame P:31430 Avg QP:23.07  size: 25107
[libx264 @ 0x1301c20] frame B:69675 Avg QP:24.94  size:  3661
[libx264 @ 0x1301c20] consecutive B-frames:  2.8% 16.4% 13.2% 67.6%
[libx264 @ 0x1301c20] mb I  I16..4: 32.4% 46.5% 21.0%
[libx264 @ 0x1301c20] mb P  I16..4:  0.4% 12.1%  1.1%  P16..4: 40.5% 
26.7% 12.9%  0.6%  0.1%    skip: 5.6%
[libx264 @ 0x1301c20] mb B  I16..4:  0.0%  0.1%  0.1%  B16..8:  8.3% 
1.6%  0.7%  direct:12.0%  skip:77.3%  L0:51.4% L1:41.0% BI: 7.6%
[libx264 @ 0x1301c20] 8x8 transform intra:75.8% inter:73.8%
[libx264 @ 0x1301c20] direct mvs  spatial:100.0% temporal:0.0%
[libx264 @ 0x1301c20] coded y,uvDC,uvAC intra: 97.0% 97.7% 91.5% inter: 
31.4% 28.7% 10.5%
[libx264 @ 0x1301c20] i16 v,h,dc,p:  6% 16% 50% 28%
[libx264 @ 0x1301c20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 11%  8%  9% 13% 
10% 15%  9% 15%
[libx264 @ 0x1301c20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 33%  5%  7%  9% 
  8% 11%  7% 13%
[libx264 @ 0x1301c20] i8c dc,h,v,p: 51% 17% 14% 19%
[libx264 @ 0x1301c20] Weighted P-Frames: Y:23.9% UV:11.8%
[libx264 @ 0x1301c20] ref P L0: 42.6% 14.2% 13.5%  8.7%  6.9%  5.5% 
4.8%  2.7%  1.0%  0.1%
[libx264 @ 0x1301c20] ref B L0: 52.2% 18.1% 10.9%  2.0% 11.4%  3.1%  2.3%
[libx264 @ 0x1301c20] ref B L1: 99.6%  0.4%
[libx264 @ 0x1301c20] kb/s:5531.00

sean



More information about the ffmpeg-user mailing list