[FFmpeg-user] How can I use the fieldmatch filter to detelecine?

L. Lee llee040 at sbcglobal.net
Sat Apr 20 07:43:38 CEST 2013


On 4/19/13 2:47 AM, "Carl Eugen Hoyos" <cehoyos at ag.or.at> wrote:

> L. Lee <llee040 <at> sbcglobal.net> writes:
> 
>>  converting an excerpt of longer duration results
>>  in a/v sync issues
> 
> Please provide a sample that allows to reproduce
> this problem.
> 
> Carl Eugen


Thanks. Here's the two-minute source:

https://dl.dropboxusercontent.com/u/42718751/audio_offset_and_pixelation.zip


Here's the ffmpeg output with pixelation and a/v sync issues:

https://dl.dropboxusercontent.com/u/42718751/audio_offset_and_pixelation_out
put.zip


Here's the practically flawless Mencoder output:

https://dl.dropboxusercontent.com/u/42718751/audio_offset_and_pixelatio_menc
oder.zip



Here's the ffmpeg command and feedback:


ffmpeg -i audio_offset_and_pixelation.mpg -vf
"fieldmatch=order=tff:combmatch=none" -pix_fmt yuv420p -c:v libx264 -preset
veryslow -tune film -qp 22 -r 23.976 -s 1280x720 -aspect 16:9
audio_offset_and_pixelation.mp4
ffmpeg version N-37959-g20e99a9 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Apr 16 2013 13:28:23 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --enable-filter=fieldmatch --enable-libmp3lame --enable-gpl
--enable-libfaac --enable-pthreads --enable-ffplay --enable-nonfree
--enable-libx264
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 56.101 /  3. 56.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x7feff3821a00] mmco: unref short failure
    Last message repeated 1 times
Input #0, mpegts, from '/audio_offset_and_pixelation.mpg':
  Duration: 00:02:00.69, start: 1.404767, bitrate: 11454 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (Main) (HDMV / 0x564D4448), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
5.1(side), fltp, 384 kb/s
[libx264 @ 0x7feff381a000] using SAR=1/1
[libx264 @ 0x7feff381a000] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7feff381a000] profile High, level 5.0
[libx264 @ 0x7feff381a000] 264 - core 130 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1
ref=16 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9 psy=1
psy_rd=1.00:0.15 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0
direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40
intra_refresh=0 rc=cqp mbtree=0 qp=22 ip_ratio=1.40 pb_ratio=1.30 aq=0
Output #0, mp4, to '/audio_offset_and_pixelation.mp4':
  Metadata:
    encoder         : Lavf55.2.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], q=-1--1, 11988 tbn, 23.98 tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1, s16,
128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (ac3 -> libfaac)
Press [q] to stop, [?] for help
[h264 @ 0x7feff505d400] mmco: unref short failure
[h264 @ 0x7feff505ec00] mmco: unref short failure
frame= 2896 fps=9.6 q=32750.0 Lsize=   26623kB time=00:02:00.70
bitrate=1806.9kbits/s dup=0 drop=4336
video:23709kB audio:2835kB subtitle:0 global headers:0kB muxing overhead
0.297858%
[libx264 @ 0x7feff381a000] frame I:21    Avg QP:19.00  size: 34628
[libx264 @ 0x7feff381a000] frame P:725   Avg QP:22.00  size: 16724
[libx264 @ 0x7feff381a000] frame B:2150  Avg QP:23.73  size:  5314
[libx264 @ 0x7feff381a000] consecutive B-frames:  3.5%  4.6% 12.7% 23.5%
25.7% 22.4%  3.6%  3.0%  0.9%
[libx264 @ 0x7feff381a000] mb I  I16..4: 52.2% 39.7%  8.1%
[libx264 @ 0x7feff381a000] mb P  I16..4:  7.5%  8.9%  1.9%  P16..4: 25.8%
6.8%  4.8%  0.3%  0.1%    skip:44.0%
[libx264 @ 0x7feff381a000] mb B  I16..4:  0.4%  1.0%  0.2%  B16..8: 23.1%
3.4%  0.8%  direct: 3.2%  skip:67.8%  L0:42.9% L1:46.9% BI:10.2%
[libx264 @ 0x7feff381a000] 8x8 transform intra:50.0% inter:71.2%
[libx264 @ 0x7feff381a000] direct mvs  spatial:99.6% temporal:0.4%
[libx264 @ 0x7feff381a000] coded y,uvDC,uvAC intra: 47.9% 57.2% 21.3% inter:
9.1% 15.0% 0.6%
[libx264 @ 0x7feff381a000] i16 v,h,dc,p: 57% 24%  7% 12%
[libx264 @ 0x7feff381a000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 11%  9%  8%
12% 13% 12% 10% 12%
[libx264 @ 0x7feff381a000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 21%  8%  6%
9%  9%  9%  8% 12%
[libx264 @ 0x7feff381a000] i8c dc,h,v,p: 49% 26% 18%  7%
[libx264 @ 0x7feff381a000] Weighted P-Frames: Y:8.1% UV:5.0%
[libx264 @ 0x7feff381a000] ref P L0: 50.4% 15.1% 14.3%  4.6%  3.3%  2.7%
2.0%  1.3%  1.0%  1.1%  0.8%  0.9%  0.7%  0.8%  0.6%  0.6%
[libx264 @ 0x7feff381a000] ref B L0: 80.3%  8.4%  3.5%  1.6%  1.3%  1.1%
0.9%  0.5%  0.5%  0.4%  0.4%  0.4%  0.4%  0.2%  0.1%
[libx264 @ 0x7feff381a000] ref B L1: 94.2%  5.8%
[libx264 @ 0x7feff381a000] kb/s:1607.94


Laine Lee




More information about the ffmpeg-user mailing list