View Full Version : Deinterlacing BluRay on Linux
pcroland
21st June 2015, 22:37
Hi! I usually just have to encode the BluRay videos from .m2ts files with x264 or extract .mkv's in case the videos are remuxes. But now the BD source is interlaced and I have no idea how to deinterlace it on Linux :mad: AviSynth is not available for Linux and I wasn't able to install the AvxSynth Linux fork on Debian :angry:
Debian 8.1
x264-r2538-121396c
microchip8
22nd June 2015, 13:25
You don't need Avisynth for a simple deinterlace. Use ffmpeg for that, it has a few deinterlacers
stax76
22nd June 2015, 13:38
If you want to use QTGMC you can also use VapourSynth.
pcroland
25th June 2015, 20:23
I know that FFmpeg has some deinterlacers, but how should I use them with the native x264? :D
microchip8
25th June 2015, 21:41
I know that FFmpeg has some deinterlacers, but how should I use them with the native x264? :D
Make your life easier and use ffmpeg for the whole process. It uses libx264 for encoding so there's no difference between using x264 directly or encoding through ffmpeg
pcroland
26th June 2015, 15:17
FFmpeg's x264 is a bit old and does not have as many options as the native :-(
nevcairiel
26th June 2015, 17:12
FFmpeg's x264 is a bit old and does not have as many options as the native :-(
How old x264 in ffmpeg is depends which version of x264 was used when building ffmpeg - and it then supports all the same options.
What about something like this ?
ffmpeg -i input.m2ts -vf yadif=deint=interlaced -f rawvideo - | x264 --input-res WxH --fps N -o out.mp4 -
Or, if you have libx264 built in ffmpeg :
ffmpeg -i input.m2ts -vf yadif=deint=interlaced -vcodec libx264 [..]
pcroland
29th June 2015, 16:48
ffmpeg -i input.m2ts -vf yadif=deint=interlaced -f rawvideo - | x264 --input-res WxH --fps N -o out.mp4 -
That works :D Thanks :-)
Cool !
Btw, I complicated things by outputting rawvideo and setting the dimension/framerate in x264, but this will be even simpler :
ffmpeg -i input.m2ts -vf yadif=deint=interlaced -f yuv4mpegpipe - | x264 --demuxer y4m -o out.mp4 -
sneaker_ger
4th July 2015, 09:31
Different fps result in different bitrates because x264's crf mode is frame-rate aware.
pcroland
4th July 2015, 09:39
I recognized the mistake after the reply and I deleted it :D Anyway, thanks for the quick answer :-)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.