Hello.
I have a PAL TFF 1080i mpeg2 TV capture .mpg source and wish to convert it to 576i (yes "i" so as not to lose "motion fluidity") h.264/.mp4.
I also have similar sources from other TV channels as captured h.264/.mp4.
I have used avisynth for years to resize by deinterlacing/resizing/re-interlacing.
Is it possible to re-interlace natively in ffmpeg ?Code:# LAST is deinterlaced to double framerate using QTGMC ie incoming is 50fps progressive AssumeTFF() #choose the SAME field order like before deinterlacing Blur(0,0.5).SeparateFields().SelectEvery(4,0,3).Weave() #reinterlace PAL TFF from from PAL 576p50 assuming original source was TFF AssumeTFF() #choose the SAME field order like before deinterlacing AssumeFPS(25) >> "%avs1%"
So far I have this in the commandline to resize from PAL TFF 1080i into PAL 576p50, but of course it is now progressive:
Can some kind soul please indicate how to use ffmpeg commandline to reinterlace the PAL 576p50 into PAL TFF 576i25.Code:"%ffmpegexex64%" -loglevel error -i "%inputfile_1080i%" -map_metadata -1 -an -sws_flags lanczos -filter:v yadif=1:0:0,setdar=dar=16/9,scale=720:576,colormatrix=bt709:bt601,unsharp -r 50
+ Reply to Thread
Results 1 to 8 of 8
-
-
Why can't you keep it at 50fps, as going to 25i will just cut the vertical information in half while doing nothing for "motion fluidity" compared to 50fps.
-
I'd thought of that too.
- media player handles 576i (not P50)
- TV handles 576i (not P50)
I could keep it as 1080i however the desired result of 576i .mp4 file is much smaller and retains "motion fluidity" -
Thanks. I did some goggling and testing and there were a few more settings to set, since the re-interlacing step was also needed
Code:"tinterlace=4:flags=vlpf" and ":interl=0:in_color_matrix=bt709:out_color_matrix=bt601"
Code:set PARF1fc=.\framecount.txt "C:\software\mediainfo\mediainfo.exe" --Inform=Video;%%FrameCount%% "%inputfile_1080i%" > "%PARF1fc%" FOR /F "usebackq tokens=1" %%G IN ( "%PARF1fc%" ) DO SET FRAMES=%%G DEL "%PARF1fc%" REM --frames "%FRAMES%" "%ffmpegexex64%" -loglevel error -i "%inputfile_1080i%" -map_metadata -1 -an -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -filter:v yadif=1:0:0,setdar=dar=16/9,scale=720:576:interl=0:in_color_matrix=bt709:out_color_matrix=bt601,unsharp,tinterlace=4:flags=vlpf -r 25 -flags +ildct+ilme -ildctcmp satd -top 1 -f yuv4mpegpipe - | "%X264EXEx64%" - --stdin y4m --thread-input --threads 8 --frames "%FRAMES%" --preset slow --interlaced --tff --profile high --level 4.1 --no-cabac --crf 18 --sar 64:45 --colormatrix bt470bg -o "%PARtemph264%"
Last edited by hydra3333; 6th Jan 2016 at 00:53.
-
Albeit tinterlace is newer and recommended filter, older http://ffmpeg.org/ffmpeg-filters.html#interlace should work also:
Code:interlace=lowpass=0:scan=tff
-
Both - depends what is target for aliasing reduction but usually some tricks - it can be more refined trough http://avisynth.nl/index.php/External_filters#Anti-aliasing - vertical low pass filter implemented in ffmpeg is quite crude in terms how it reducing vertical resolution...
Similar Threads
-
FFMPEG QUESTION :How do I take 10bit jpeg with FFMPEG?
By Jamaika in forum Video ConversionReplies: 10Last Post: 6th Jul 2015, 13:41 -
FFmpeg Runtime error / FFmpeg git-df82454 32-bit Static (2012-10-03)
By MashedPotatoes in forum Newbie / General discussionsReplies: 5Last Post: 6th Oct 2012, 17:22 -
FFmpeg on Win only - FAQ can ffmpeg realize screen capture
By feelart in forum Capturing and VCRReplies: 1Last Post: 14th Feb 2012, 04:11 -
Which ffmpeg options are used behind the scenes by ffmpeg?
By roberto.aloi in forum ffmpegX general discussionReplies: 1Last Post: 26th Jul 2011, 05:09 -
ffmpeg output 2gb limit? Is there one? ffmpeg stops encoding h264 @ 2gb
By BrainiakZ in forum Video ConversionReplies: 14Last Post: 30th Mar 2011, 12:04