[FFmpeg-user] deinterlacing SD content
cvb at kruemel.org
cvb at kruemel.org
Tue May 19 21:26:24 CEST 2015
Hi,
I have SD TV recordings (mpeg2, ts container) here which I would like to
deinterlace and convert to h.265. I'm playing the recording with VLC.
When I play the original, the movie looks ok. For the converted movie, I
can see the typical horizontal lines for moving objects. Forcing VLC to
deinterlace the converted movie leads to a very stuttering image. I
guess I must be doing something wrong, but am not sure what it is...
command line used:
D:\ffmpeg\bin\ffmpeg -i movie.ts -map 0:0 -map 0:1 -map 0:2 -c:a copy
-vf yadif=1 -c:v libx265 -preset veryslow -x265-params crf=20 -strict
experimental movie.mkv" 2>>movie.log
Output:
ffmpeg version N-71737-gb410c69 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libdcadec
--enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
--enable-lzma --enable-decklink --enable-zlib
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 35.101 / 56. 35.101
libavformat 56. 31.100 / 56. 31.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 14.100 / 5. 14.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[mpegts @ 000000000459a020] Could not find codec parameters for stream 2
(Unknown: none ([6][0][0][0] / 0x0006)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpegts, from 'movie.ts':
Duration: 00:42:23.28, start: 89788.048133, bitrate: 3355 kb/s
Program 132
Stream #0:0[0x3ff]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 15000 kb/s, 25
fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x400](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 192 kb/s
Stream #0:2[0x20]: Unknown: none ([6][0][0][0] / 0x0006)
x265 [info]: HEVC encoder version 1.6
x265 [info]: build info [Windows][GCC 4.9.2][64 bit] 8bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2
FMA3 LZCNT BMI2
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: frame threads / pool features : 3 / wpp(9 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 3 inter / 3
intra
x265 [info]: ME / range / subpel / merge : star / 57 / 4 / 4
x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40
x265 [info]: Lookahead / bframes / badapt : 40 / 8 / 2
x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 1 / 5
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-20.0 / 1.0 / 1
x265 [info]: tools: rect amp rd=6 psy-rd=0.30 rdoq=2 psy-rdoq=1.00
signhide
x265 [info]: tools: tmvp b-intra strong-intra-smoothing deblock sao
[matroska @ 00000000045a6480] Codec for stream 1 does not use global
headers but container format requires global headers
Output #0, matroska, to 'movie.mkv':
Metadata:
encoder : Lavf56.31.100
Stream #0:0: Video: hevc (libx265), yuv420p, 720x576 [SAR 16:15 DAR
4:3], q=2-31, 25 fps, 1k tbn, 25 tbc
Metadata:
encoder : Lavc56.35.101 libx265
Stream #0:1(deu): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
stereo, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> hevc (libx265))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 56 fps=0.0 q=0.0 size= 10kB time=00:00:01.60 bitrate=
52.2kbits/s
frame= 61 fps= 55 q=0.0 size= 19kB time=00:00:01.89 bitrate=
83.9kbits/s
frame= 64 fps= 38 q=0.0 size= 45kB time=00:00:02.04 bitrate=
180.9kbits/s
frame= 68 fps= 31 q=0.0 size= 59kB time=00:00:02.18 bitrate=
221.6kbits/s
frame= 69 fps= 25 q=0.0 size= 68kB time=00:00:02.35 bitrate=
235.4kbits/s
frame= 72 fps= 21 q=0.0 size= 95kB time=00:00:02.47 bitrate=
316.4kbits/s
frame= 74 fps= 18 q=0.0 size= 119kB time=00:00:02.47 bitrate=
394.6kbits/s
frame= 76 fps= 16 q=0.0 size= 147kB time=00:00:02.61 bitrate=
459.5kbits/s
frame= 77 fps= 15 q=0.0 size= 149kB time=00:00:02.64 bitrate=
461.8kbits/s
frame= 81 fps= 13 q=0.0 size= 183kB time=00:00:02.78 bitrate=
538.9kbits/s
frame= 85 fps= 13 q=0.0 size= 201kB time=00:00:02.90 bitrate=
566.4kbits/s
frame= 89 fps= 12 q=0.0 size= 223kB time=00:00:03.04 bitrate=
600.3kbits/s
frame= 92 fps= 11 q=0.0 size= 250kB time=00:00:03.19 bitrate=
642.8kbits/s
frame= 96 fps= 11 q=0.0 size= 270kB time=00:00:03.33 bitrate=
664.0kbits/s
frame= 98 fps= 10 q=0.0 size= 286kB time=00:00:03.36 bitrate=
697.1kbits/s
frame= 102 fps= 10 q=0.0 size= 310kB time=00:00:03.48 bitrate=
730.1kbits/s
frame= 105 fps= 10 q=0.0 size= 316kB time=00:00:03.64 bitrate=
708.5kbits/s
frame= 109 fps=9.8 q=0.0 size= 346kB time=00:00:03.91 bitrate=
725.0kbits/s
frame= 110 fps=9.4 q=0.0 size= 348kB time=00:00:03.93 bitrate=
723.8kbits/s
frame= 116 fps=9.5 q=0.0 size= 377kB time=00:00:04.34 bitrate=
710.6kbits/s
frame= 119 fps=9.3 q=0.0 size= 384kB time=00:00:04.48 bitrate=
701.2kbits/s
frame= 123 fps=9.0 q=0.0 size= 404kB time=00:00:04.65 bitrate=
710.7kbits/s
frame= 129 fps=9.0 q=0.0 size= 431kB time=00:00:04.92 bitrate=
718.0kbits/s
frame= 131 fps=8.7 q=0.0 size= 438kB time=00:00:05.06 bitrate=
709.3kbits/s
[snip]
frame=63568 fps=3.3 q=0.0 size= 384188kB time=00:42:22.34
bitrate=1237.9kbits/s
frame=63573 fps=3.3 q=0.0 size= 384221kB time=00:42:22.63
bitrate=1237.9kbits/s
frame=63575 fps=3.3 q=0.0 size= 384230kB time=00:42:22.63
bitrate=1237.9kbits/s
frame=63580 fps=3.3 q=0.0 size= 384268kB time=00:42:22.77
bitrate=1238.0kbits/s
frame=63582 fps=3.3 q=0.0 Lsize= 384590kB time=00:42:23.25
bitrate=1238.8kbits/s
video:323792kB audio:59608kB subtitle:0kB other streams:0kB global
headers:1kB muxing overhead: 0.310402%
x265 [info]: frame I: 579, Avg QP:18.84 kb/s: 5263.55
x265 [info]: frame P: 12706, Avg QP:19.87 kb/s: 3084.74
x265 [info]: frame B: 50297, Avg QP:24.99 kb/s: 477.53
x265 [info]: global : 63582, Avg QP:23.91 kb/s: 1042.13
x265 [info]: Weighted P-Frames: Y:12.6% UV:7.9%
x265 [info]: Weighted B-Frames: Y:9.2% UV:5.7%
x265 [info]: consecutive B-frames: 7.4% 2.8% 17.2% 9.9% 4.6% 56.5% 1.0%
0.3% 0.4%
Thanks, Chris
More information about the ffmpeg-user
mailing list