[FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif)
L. Lee
llee040 at sbcglobal.net
Sun Dec 8 09:42:58 CET 2013
I didn¹t access your video, please tell me how. In the meantime, I used
your process to rip a DVD so I could try some things. I couldn¹t use .mkv
as the name extension of the source file, but once I changed it to .mpg, I
could use the following. The output is OK from beginning to end even when
I performed it on the full 90-minute title. Mine was an old 4X3 source.
ffmpeg -y -i dd-vob-short.mpg' -map 0:0 -map 0:1 -vf
"fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" -pix_fmt yuv420p
-c:v libx264 -preset slower -tune film -crf 18 -x264opts
keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0
256k 'dd-vob-short.detelecine.m4v'
ffmpeg -y -i 'dd-vob-short.mpg' -map 0:0 -map 0:1 -vf
"fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" -pix_fmt yuv420p
-c:v libx264 -preset slower -tune film -crf 18 -x264opts
keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0
256k 'dd-vob-short.detelecine.m4v'
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 27 2013 10:05:45 with Apple LLVM version 5.0
(clang-500.2.79) (based on LLVM 3.3svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg2/2.1 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-avresample --enable-vda --enable-opencl
--enable-libx264 --enable-libfaac --enable-libmp3lame --enable-openssl
--enable-ffplay --enable-libvpx --cc=cc --host-cflags= --host-ldflags=
--enable-libfaac --enable-libxvid --enable-libfreetype --enable-libvorbis
--enable-libvpx --enable-librtmp --enable-libvo-aacenc --enable-ffplay
--enable-libspeex --enable-libschroedinger --enable-libopus
--enable-frei0r --enable-libopenjpeg
--extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 '
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, mpeg, from 'dd-vob-short.mpg':
Duration: 00:06:25.39, start: 0.041500, bitrate: 4251 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480
[SAR 8:9 DAR 4:3], max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
[libx264 @ 0x7ffb93025200] using SAR=8/9
[libx264 @ 0x7ffb93025200] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0x7ffb93025200] profile High, level 3.1
[libx264 @ 0x7ffb93025200] 264 - core 138 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2013 - 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=12
lookahead_threads=1 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=40 keyint_min=4
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2100
ratetol=1.0 qcomp=0.60 qpmin=8 qpmax=38 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, ipod, to 'dd-vob-short.detelecine.m4v':
Metadata:
encoder : Lavf55.19.104
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
720x480 [SAR 8:9 DAR 4:3], q=-1--1, 2100 kb/s, 24k tbn, 23.98 tbc
Stream #0:1: Audio: aac (libfaac) (mp4a / 0x6134706D), 48000 Hz,
stereo, s16, 256 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (ac3 -> libfaac)
Press [q] to stop, [?] for help
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 32 2704.16 bitrate=
5.4kbits/s
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 23 29
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 2 29
[mpeg2video @ 0x7ffb9300b800] invalid mb type in P Frame at 44 17
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 16 20
[mpeg2video @ 0x7ffb9300b800] invalid cbp -1 at 3 19
[mpeg2video @ 0x7ffb9300b800] slice mismatch
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 35 21
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 15 19
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 27 25
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 5 16
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 3 22
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 38 26
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 42 6
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 10 7
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 37 26
[mpeg2video @ 0x7ffb9300b800] invalid cbp -1 at 36 8
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 7 10
[mpeg2video @ 0x7ffb9300b800] invalid cbp 0 at 16 10
[mpeg2video @ 0x7ffb9300b800] invalid cbp 0 at 3 11
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 19 12
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 20 14
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 1 15
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 15 17
[mpeg2video @ 0x7ffb9300b800] Warning MVs not available
[mpeg2video @ 0x7ffb9300b800] concealing 1080 DC, 1080 AC, 1080 MV errors
in P frame
[ac3 @ 0x7ffb9300be00] frame CRC mismatch
[ac3 @ 0x7ffb9300be00] frame sync error
Error while decoding stream #0:1: Invalid data found when processing input
[libfaac @ 0x7ffb93026000] Queue input is backward in time
[ipod @ 0x7ffb93024c00] Non-monotonous DTS in output stream 0:1; previous:
235520, current: 235008; changing to 235521. This may result in incorrect
timestamps in the output file.
[mpeg2video @ 0x7ffb9300b800] invalid cbp 0 at 8 2800:10.37
bitrate=3289.8kbits/s
[mpeg2video @ 0x7ffb9300b800] slice mismatch
Last message repeated 1 times
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 1 26
[mpeg2video @ 0x7ffb9300b800] invalid mb type in B Frame at 6 13
[mpeg2video @ 0x7ffb9300b800] Warning MVs not available
[mpeg2video @ 0x7ffb9300b800] concealing 810 DC, 810 AC, 810 MV errors in
B frame
[mpeg @ 0x7ffb9300a000] New subtitle stream 0:4 at pos:17098766 and
DTS:25.0665ss
[mpeg @ 0x7ffb9300a000] New subtitle stream 0:5 at pos:17100814 and
DTS:25.0665s
[mpeg @ 0x7ffb9300a000] New subtitle stream 0:6 at pos:105166862 and
DTS:194.469s
[mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 19 76:25.03
bitrate=2249.1kbits/s
[mpeg2video @ 0x7ffb9300b800] concealing 1035 DC, 1035 AC, 1035 MV errors
in I frame
[ac3 @ 0x7ffb9300be00] incomplete frame
frame= 9241 fps= 28 q=-1.0 Lsize= 106428kB time=00:06:25.34
bitrate=2262.5kbits/s
video:100210kB audio:5955kB subtitle:0 global headers:0kB muxing overhead
0.246916%
[libx264 @ 0x7ffb93025200] frame I:252 Avg QP:16.30 size: 53478
[libx264 @ 0x7ffb93025200] frame P:2973 Avg QP:19.29 size: 19474
[libx264 @ 0x7ffb93025200] frame B:6016 Avg QP:22.39 size: 5193
[libx264 @ 0x7ffb93025200] consecutive B-frames: 5.0% 7.1% 52.6% 35.3%
[libx264 @ 0x7ffb93025200] mb I I16..4: 5.3% 87.3% 7.5%
[libx264 @ 0x7ffb93025200] mb P I16..4: 1.2% 14.1% 0.5% P16..4: 43.4%
16.7% 16.5% 0.4% 0.2% skip: 7.0%
[libx264 @ 0x7ffb93025200] mb B I16..4: 0.1% 1.6% 0.1% B16..8: 39.4%
7.5% 1.8% direct:10.4% skip:39.1% L0:36.7% L1:40.2% BI:23.1%
[libx264 @ 0x7ffb93025200] final ratefactor: 19.01
[libx264 @ 0x7ffb93025200] 8x8 transform intra:89.0% inter:69.7%
[libx264 @ 0x7ffb93025200] direct mvs spatial:99.5% temporal:0.5%
[libx264 @ 0x7ffb93025200] coded y,uvDC,uvAC intra: 89.2% 90.5% 69.3%
inter: 29.6% 42.7% 10.2%
[libx264 @ 0x7ffb93025200] i16 v,h,dc,p: 21% 16% 24% 38%
[libx264 @ 0x7ffb93025200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 17% 27% 6%
6% 6% 7% 7% 10%
[libx264 @ 0x7ffb93025200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 14% 7% 8%
12% 12% 12% 9% 11%
[libx264 @ 0x7ffb93025200] i8c dc,h,v,p: 45% 24% 18% 13%
[libx264 @ 0x7ffb93025200] Weighted P-Frames: Y:16.4% UV:11.9%
[libx264 @ 0x7ffb93025200] ref P L0: 47.2% 9.9% 22.5% 5.8% 4.9% 3.0%
3.2% 1.7% 1.5% 0.2%
[libx264 @ 0x7ffb93025200] ref B L0: 66.2% 22.6% 4.8% 2.9% 1.6% 1.3%
0.6%
[libx264 @ 0x7ffb93025200] ref B L1: 88.9% 11.1%
[libx264 @ 0x7ffb93025200] kb/s:2129.89
Laine Lee
On 12/2/13, 5:30 PM, "Nicholas Robbins" <nickrobbins at yahoo.com> wrote:
>
>
>
>
>> On Monday, December 2, 2013 6:12 PM, Carl Eugen Hoyos
>><cehoyos at ag.or.at> wrote:
>> > Nicholas Robbins <nickrobbins <at> yahoo.com> writes:
>>
>>> I'm uploading dd-vob-short.mkv, dd-vob-short-fieldmatch-yadif.mkv,
>>> dd-vob-short-fieldmatch.mkv, and dd-vob-short-f-{,y-}3{2,3,4}.bmp
>>
>>> as robbins-from-dvd.tgz to upload.ffmpeg.org/incoming
>>
>> Please provide a (part of) dump-1.vob
>>
>> Thank you, Carl Eugen
>
>
>dd-vob-short.mkv is the output from
>
>$ dd if=dump-1.vob of=dd-vob-short.mkv count=400K
>
>It is in the tarball which seems to still be uploading.
>
>-Nick Robbins
>
>_______________________________________________
>ffmpeg-user mailing list
>ffmpeg-user at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list