Hi,
I was wondering what phase command I should use for inverting the field order of an NTSC video source in ffmpeg captured wrongly as TFF using hardware
It is pure analog NTSC video but TFF was used by default during the capture process.
phase = b or = phase t
??
I was using fieldorder=bff but I understand that some blurring of chroma may be induced.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
separate the fields, discard the 1st field, weave it back together
Code:-vf setfield=tff,separatefields,trim=start_frame=1,weave,setfield=bff
-
-
If you started with pure interlaced content TFF, and your timestamps are ok , it should work. But sometimes ffmpeg produces unreliable results if the input timestamps have problems
If you have problems, then you can use avisynth with a frame accurate source filter - and it will work for certain. Avisynth is more consistent for this type of work than ffmpeg
Code:#Input AssumeTFF() SeparateFields() Trim(1,0) Weave()
-
Here is the TFF sample that was captured wrongly;
https://drive.google.com/file/d/1jBa6BUfnov-4cxq-D2gmlNX6GqgcHo1K/view?usp=drivesdk -
The ffmpeg command above does not work properly; You might have to use filter_complex and separatefields split the outputs into even and odd streams, trim 1st even, and interleave them back. It's tricky because it messes up the PTS, so you need a PTS expression. I'll play with it and see if I can get it to work
avisynth works, as expected
Code:LSmashVideoSource("longsample_480i_tff.mov") AssumeTFF() SeparateFields() Trim(1,0) Weave() AssumeBFF()
But to encode it with any ffmpeg build
Code:ffmpeg -i bff.avs -i longsample_480i_tff.mov -map 0:0 -map 1:1 -flags +ildct+ilme -top 0 -vf setfield=bff -c:v prores -profile:v 3 -c:a copy avs_bff.mov -y
But a question is why do you need BFF ? TFF is perfectly acceptable for SD content . You incur generation loss if you encode with lossy format like prores -
Actually I forgot about these:
-vf fieldorder
-vf phase
https://forum.videohelp.com/threads/365238-how-to-invert-field-order-with-ffmpeg
This works ok
Code:ffmpeg -i longsample_480i_tff.mov -vf "fieldorder=bff" -c:v prores -profile:v 3 -flags +ildct+ilme -top 0 -c:a copy output.mov
Last edited by poisondeathray; 28th Dec 2021 at 18:54.
Similar Threads
-
Invert field order using ffmpeg for NTSC source
By cjdavis83 in forum LinuxReplies: 0Last Post: 28th Dec 2021, 06:51 -
Field-blended video with messed up field order
By bruno321 in forum RestorationReplies: 1Last Post: 23rd Feb 2021, 10:34 -
FFMPEG to transcode 50i h264, problems with field order
By ffml in forum Newbie / General discussionsReplies: 6Last Post: 2nd Jul 2020, 05:02 -
Interlacing and field order problem
By Boklavdi in forum Video ConversionReplies: 33Last Post: 26th Apr 2020, 13:05 -
AmaRecTV and field order
By Mr Chris in forum CapturingReplies: 19Last Post: 16th Aug 2019, 14:50