[FFmpeg-user] tinterlace broken - SAR & DAR wrong
Mark Filipak (ffmpeg)
markfilipak at bog.us
Mon Jan 4 20:44:12 EET 2021
Paul, I apologize for not responding. The ffmpeg-user list server did not send your 2 responses to
me -- I checked gmail and they're not there either. I discovered them in the archive:
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2021-January/051249.html
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2021-January/051250.html
I don't know how to get the list server to resend them, so I can't properly respond, so my reponses
are out of thread sequence. I'm sorry about that but it seems there's nothing I can do about it.
=====
You wrote: "What's wrong with using setsar filter after tinterlace?"
I tried that from the git-go. I just reran it.
ffmpeg -report -i "source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB" -filter_complex "separatefields,
shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7))[Aout],
[Bin]select=eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7), tinterlace,
setsar=sar=8/9, bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave,
tinterlace, setsar=sar=8/9, bwdif=mode=send_frame:deint=interlaced" -codec:a copy -codec:s copy -dn
output.mkv
Putting setsar after tinterlace doesn't work. I did investigate that but I can't recall why -- I
think it's because DAR is then wrong. The report is below.
=====
You wrote: "Also you can use weave filter as alternative to tinterlace=merge"
I tried that also. I just reran it.
ffmpeg -report -i "source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB" -filter_complex "separatefields,
shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7))[Aout],
[Bin]select=eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7), weave,
bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave, weave,
bwdif=mode=send_frame:deint=interlaced" -codec:a copy -codec:s copy -dn output.mkv
=====
I'm unsure what the reports are reporting: "Parameters for input link input1 (size 720x480, SAR 8:9)
do not match the corresponding output link parameters (720x240, SAR 8:9)". Either tinterlace or
weave should take in 720x240 and ouput 720x480 but the report line above seems to imply the opposite.
===== REPORTS BEGIN HERE
===== ADDING setsar =====
ffmpeg started on 2021-01-04 at 13:16:19
Report written to "ffmpeg-20210104-131619.log"
Log level: 48
Command line:
ffmpeg -report -i "source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB" -filter_complex "separatefields,
shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\\,10)\\,2)+eq(mod(n\\,10)\\,3)+eq(mod(n\\,10)\\,6)+eq(mod(n\\,10)\\,7))[Aout],
[Bin]select=eq(mod(n\\,10)\\,2)+eq(mod(n\\,10)\\,3)+eq(mod(n\\,10)\\,6)+eq(mod(n\\,10)\\,7),
tinterlace, setsar=sar=8/9, bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout],
[Aout][Bout]interleave, tinterlace, setsar=sar=8/9, bwdif=mode=send_frame:deint=interlaced" -codec:a
copy -codec:s copy -dn output.mkv
ffmpeg version N-100546-g2c6f532e0a Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9.3-win32 (GCC) 20200320
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config
--cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3
--disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2
--enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig
--enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom
--enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm
--enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband
--enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
--enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx26
libavutil 56. 63.100 / 56. 63.100
libavcodec 58.115.102 / 58.115.102
libavformat 58. 65.100 / 58. 65.100
libavdevice 58. 11.103 / 58. 11.103
libavfilter 7. 95.100 / 7. 95.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input url with argument 'source 720x480 [SAR 8x9 DAR 4x3] 29.97
fps.VOB'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex
filtergraph) with argument 'separatefields, shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7))[Aout],
[Bin]select=eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7), tinterlace,
setsar=sar=8/9, bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave,
tinterlace, setsar=sar=8/9, bwdif=mode=send_frame:deint=interlaced'.
Reading option '-codec:a' ... matched as option 'codec' (codec name) with argument 'copy'.
Reading option '-codec:s' ... matched as option 'codec' (codec name) with argument 'copy'.
Reading option '-dn' ... matched as option 'dn' (disable data) with argument '1'.
Reading option 'output.mkv' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option filter_complex (create a complex filtergraph) with argument separatefields,
shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7))[Aout],
[Bin]select=eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7), tinterlace,
setsar=sar=8/9, bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave,
tinterlace, setsar=sar=8/9, bwdif=mode=send_frame:deint=interlaced.
Successfully parsed a group of options.
Parsing a group of options: input url source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB.
Successfully parsed a group of options.
Opening an input file: source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB.
[NULL @ 000001aec9839440] Opening 'source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB' for reading
[file @ 000001aec983a480] Setting default whitelist 'file,crypto,data'
[mpeg @ 000001aec9839440] Format mpeg probed with size=4096 and score=26
[mpeg @ 000001aec9839440] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
nb_streams:0
[mpeg @ 000001aec9839440] probing stream 0 pp:2500
[mpeg @ 000001aec9839440] Probe with size=2011, packets=1 detected mpegvideo with score=25
[mpeg @ 000001aec9839440] probed stream 0
[mpeg2video @ 000001aec9717d40] Format yuv420p chosen by get_format().
[mpeg @ 000001aec9839440] After avformat_find_stream_info() pos: 0 bytes read:1214608 seeks:2 frames:24
Input #0, mpeg, from 'source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB':
Duration: 00:00:00.70, start: 0.600100, bitrate: 11013 kb/s
Stream #0:0[0x1e0], 24, 1/90000: Video: mpeg2video (Main), yuv420p(tv, smpte170m, top first),
720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Side data:
cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
Successfully opened the file.
[Parsed_shuffleframes_1 @ 000001aec970dec0] Setting 'mapping' to value '0 1 2 4 3 6 5 7 8 9'
[Parsed_select_3 @ 000001aec970b3c0] Setting 'expr' to value
'not(eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7))'
[Parsed_select_4 @ 000001aec983b740] Setting 'expr' to value
'eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7)'
[Parsed_setsar_6 @ 000001aec983bc80] Setting 'sar' to value '8/9'
[Parsed_bwdif_7 @ 000001aec983bf00] Setting 'mode' to value 'send_field'
[Parsed_bwdif_7 @ 000001aec983bf00] Setting 'deint' to value 'all'
[Parsed_decimate_8 @ 000001aec983c2c0] Setting 'cycle' to value '2'
[Parsed_setsar_11 @ 000001aec983ce00] Setting 'sar' to value '8/9'
[Parsed_bwdif_12 @ 000001aec983e0c0] Setting 'mode' to value 'send_frame'
[Parsed_bwdif_12 @ 000001aec983e0c0] Setting 'deint' to value 'interlaced'
Parsing a group of options: output url output.mkv.
Applying option codec:a (codec name) with argument copy.
Applying option codec:s (codec name) with argument copy.
Applying option dn (disable data) with argument 1.
Successfully parsed a group of options.
Opening an output file: output.mkv.
[file @ 000001aec983ef40] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
detected 8 logical cores
Stream mapping:
Stream #0:0 (mpeg2video) -> separatefields
bwdif -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[mpeg2video @ 000001aec970d540] Format yuv420p chosen by get_format().
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
[mpeg2video @ 000001aec970d540] Skipping B slice due to open GOP
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[Parsed_shuffleframes_1 @ 000001aec977ac80] Setting 'mapping' to value '0 1 2 4 3 6 5 7 8 9'
[Parsed_select_3 @ 000001aecb734780] Setting 'expr' to value
'not(eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7))'
[Parsed_select_4 @ 000001aecb734c00] Setting 'expr' to value
'eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7)'
[Parsed_setsar_6 @ 000001aecb736200] Setting 'sar' to value '8/9'
[Parsed_bwdif_7 @ 000001aecb734ac0] Setting 'mode' to value 'send_field'
[Parsed_bwdif_7 @ 000001aecb734ac0] Setting 'deint' to value 'all'
[Parsed_decimate_8 @ 000001aecb736740] Setting 'cycle' to value '2'
[Parsed_setsar_11 @ 000001aec97a3e40] Setting 'sar' to value '8/9'
[Parsed_bwdif_12 @ 000001aec97a4100] Setting 'mode' to value 'send_frame'
[Parsed_bwdif_12 @ 000001aec97a4100] Setting 'deint' to value 'interlaced'
[graph 0 input from stream 0:0 @ 000001aec97a43c0] Setting 'video_size' to value '720x480'
[graph 0 input from stream 0:0 @ 000001aec97a43c0] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 000001aec97a43c0] Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:0 @ 000001aec97a43c0] Setting 'pixel_aspect' to value '8/9'
[graph 0 input from stream 0:0 @ 000001aec97a43c0] Setting 'frame_rate' to value '30000/1001'
[graph 0 input from stream 0:0 @ 000001aec97a43c0] w:720 h:480 pixfmt:yuv420p tb:1/90000
fr:30000/1001 sar:8/9
[format @ 000001aec97a5840] Setting 'pix_fmts' to value
'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21|yuv420p10le|yuv422p10le|yuv444p10le|nv20le|gray|gray10le'
[AVFilterGraph @ 000001aec9798180] query_formats: 16 queried, 15 merged, 1 already done, 0 delayed
[Parsed_tinterlace_5 @ 000001aecb734280] mode:0 filter:off h:240 -> h:480
[Parsed_setsar_6 @ 000001aecb736200] w:720 h:480 sar:16/9 dar:8/3 -> sar:8/9 dar:4/3
[Parsed_decimate_8 @ 000001aecb736740] FPS: 60000/1001 -> 30000/1001
[Parsed_interleave_9 @ 000001aecb736b00] Parameters for input link input1 (size 720x480, SAR 8:9) do
not match the corresponding output link parameters (720x240, SAR 8:9)
[Parsed_interleave_9 @ 000001aecb736b00] Failed to configure output pad on Parsed_interleave_9
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[AVIOContext @ 000001aec970ec00] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 000001aec970f000] Statistics: 1411216 bytes read, 2 seeks
Conversion failed!
===== USING weave IN LIEU OF tinterlace =====
ffmpeg started on 2021-01-04 at 13:28:03
Report written to "ffmpeg-20210104-132803.log"
Log level: 48
Command line:
ffmpeg -report -i "source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB" -filter_complex "separatefields,
shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\\,10)\\,2)+eq(mod(n\\,10)\\,3)+eq(mod(n\\,10)\\,6)+eq(mod(n\\,10)\\,7))[Aout],
[Bin]select=eq(mod(n\\,10)\\,2)+eq(mod(n\\,10)\\,3)+eq(mod(n\\,10)\\,6)+eq(mod(n\\,10)\\,7), weave,
bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave, weave,
bwdif=mode=send_frame:deint=interlaced" -codec:a copy -codec:s copy -dn output.mkv
ffmpeg version N-100546-g2c6f532e0a Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9.3-win32 (GCC) 20200320
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config
--cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3
--disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2
--enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig
--enable-opencl --enable-libvmaf --enable-vulkan --enable-libvorbis --enable-amf --enable-libaom
--enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm
--enable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband
--enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1
--enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx26
libavutil 56. 63.100 / 56. 63.100
libavcodec 58.115.102 / 58.115.102
libavformat 58. 65.100 / 58. 65.100
libavdevice 58. 11.103 / 58. 11.103
libavfilter 7. 95.100 / 7. 95.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input url with argument 'source 720x480 [SAR 8x9 DAR 4x3] 29.97
fps.VOB'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex
filtergraph) with argument 'separatefields, shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7))[Aout],
[Bin]select=eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7), weave,
bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave, weave,
bwdif=mode=send_frame:deint=interlaced'.
Reading option '-codec:a' ... matched as option 'codec' (codec name) with argument 'copy'.
Reading option '-codec:s' ... matched as option 'codec' (codec name) with argument 'copy'.
Reading option '-dn' ... matched as option 'dn' (disable data) with argument '1'.
Reading option 'output.mkv' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option filter_complex (create a complex filtergraph) with argument separatefields,
shuffleframes=0 1 2 4 3 6 5 7 8 9, split[Ain][Bin],
[Ain]select=not(eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7))[Aout],
[Bin]select=eq(mod(n\,10)\,2)+eq(mod(n\,10)\,3)+eq(mod(n\,10)\,6)+eq(mod(n\,10)\,7), weave,
bwdif=mode=send_field:deint=all, decimate=cycle=2[Bout], [Aout][Bout]interleave, weave,
bwdif=mode=send_frame:deint=interlaced.
Successfully parsed a group of options.
Parsing a group of options: input url source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB.
Successfully parsed a group of options.
Opening an input file: source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB.
[NULL @ 000001912a0a93c0] Opening 'source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB' for reading
[file @ 000001912a0aa3c0] Setting default whitelist 'file,crypto,data'
[mpeg @ 000001912a0a93c0] Format mpeg probed with size=4096 and score=26
[mpeg @ 000001912a0a93c0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
nb_streams:0
[mpeg @ 000001912a0a93c0] probing stream 0 pp:2500
[mpeg @ 000001912a0a93c0] Probe with size=2011, packets=1 detected mpegvideo with score=25
[mpeg @ 000001912a0a93c0] probed stream 0
[mpeg2video @ 000001912b6f7d40] Format yuv420p chosen by get_format().
[mpeg @ 000001912a0a93c0] After avformat_find_stream_info() pos: 0 bytes read:1214608 seeks:2 frames:24
Input #0, mpeg, from 'source 720x480 [SAR 8x9 DAR 4x3] 29.97 fps.VOB':
Duration: 00:00:00.70, start: 0.600100, bitrate: 11013 kb/s
Stream #0:0[0x1e0], 24, 1/90000: Video: mpeg2video (Main), yuv420p(tv, smpte170m, top first),
720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Side data:
cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
Successfully opened the file.
[Parsed_shuffleframes_1 @ 000001912b6edb80] Setting 'mapping' to value '0 1 2 4 3 6 5 7 8 9'
[Parsed_select_3 @ 000001912b6ea500] Setting 'expr' to value
'not(eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7))'
[Parsed_select_4 @ 000001912a0ab540] Setting 'expr' to value
'eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7)'
[Parsed_bwdif_6 @ 000001912a0aba00] Setting 'mode' to value 'send_field'
[Parsed_bwdif_6 @ 000001912a0aba00] Setting 'deint' to value 'all'
[Parsed_decimate_7 @ 000001912b6eb140] Setting 'cycle' to value '2'
[Parsed_bwdif_10 @ 000001912a0ac7c0] Setting 'mode' to value 'send_frame'
[Parsed_bwdif_10 @ 000001912a0ac7c0] Setting 'deint' to value 'interlaced'
Parsing a group of options: output url output.mkv.
Applying option codec:a (codec name) with argument copy.
Applying option codec:s (codec name) with argument copy.
Applying option dn (disable data) with argument 1.
Successfully parsed a group of options.
Opening an output file: output.mkv.
[file @ 000001912b6ea9c0] Setting default whitelist 'file,crypto,data'
Successfully opened the file.
detected 8 logical cores
Stream mapping:
Stream #0:0 (mpeg2video) -> separatefields
bwdif -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[mpeg2video @ 000001912b6ed300] Format yuv420p chosen by get_format().
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
[mpeg2video @ 000001912b6ed300] Skipping B slice due to open GOP
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the
start per stream)
[Parsed_shuffleframes_1 @ 000001912b752180] Setting 'mapping' to value '0 1 2 4 3 6 5 7 8 9'
[Parsed_select_3 @ 000001912b77b580] Setting 'expr' to value
'not(eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7))'
[Parsed_select_4 @ 000001912b77b980] Setting 'expr' to value
'eq(mod(n,10),2)+eq(mod(n,10),3)+eq(mod(n,10),6)+eq(mod(n,10),7)'
[Parsed_bwdif_6 @ 000001912b77b0c0] Setting 'mode' to value 'send_field'
[Parsed_bwdif_6 @ 000001912b77b0c0] Setting 'deint' to value 'all'
[Parsed_decimate_7 @ 000001912b77e040] Setting 'cycle' to value '2'
[Parsed_bwdif_10 @ 000001912b77eac0] Setting 'mode' to value 'send_frame'
[Parsed_bwdif_10 @ 000001912b77eac0] Setting 'deint' to value 'interlaced'
[graph 0 input from stream 0:0 @ 000001912b77ed80] Setting 'video_size' to value '720x480'
[graph 0 input from stream 0:0 @ 000001912b77ed80] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 000001912b77ed80] Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:0 @ 000001912b77ed80] Setting 'pixel_aspect' to value '8/9'
[graph 0 input from stream 0:0 @ 000001912b77ed80] Setting 'frame_rate' to value '30000/1001'
[graph 0 input from stream 0:0 @ 000001912b77ed80] w:720 h:480 pixfmt:yuv420p tb:1/90000
fr:30000/1001 sar:8/9
[format @ 000001912b7801c0] Setting 'pix_fmts' to value
'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21|yuv420p10le|yuv422p10le|yuv444p10le|nv20le|gray|gray10le'
[AVFilterGraph @ 000001912b7705c0] query_formats: 14 queried, 13 merged, 1 already done, 0 delayed
[Parsed_decimate_7 @ 000001912b77e040] FPS: 60000/1001 -> 30000/1001
[Parsed_interleave_8 @ 000001912b77e3c0] Parameters for input link input1 (size 720x480, SAR 8:9) do
not match the corresponding output link parameters (720x240, SAR 8:9)
[Parsed_interleave_8 @ 000001912b77e3c0] Failed to configure output pad on Parsed_interleave_8
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[AVIOContext @ 000001912b6eaa80] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 000001912b6ef040] Statistics: 1411216 bytes read, 2 seeks
Conversion failed!
More information about the ffmpeg-user
mailing list