[FFmpeg-user] Detelecine: I got the right result from the wrong command?

Mark Filipak markfilipak.imdb at gmail.com
Thu May 29 01:41:44 EEST 2025


On 28/05/2025 18.36, Alex Xu wrote:
> Got the same problematic result with
> 
> ffmpeg -i detelecine_input.mkv -vf
> "fieldmatch,decimate,drawtext=fontfile=Arial.ttf: text='%{frame_num}':
> start_number=0: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=20:
> box=1: boxcolor=white: boxborderw=5" -c:v libx264 -crf 18 -c:a aac -b:a
> 192k -pix_fmt yuv420p -r 24 fieldmatch_decimate_only_frames.mkv
> 
> So detelecine with it's fixed pattern worked best for me in this case.
> 
> Purely as background information for people interested in detelecining, for
> the nontruncated file I also added this to the start of video filter:
> 
> select='not(eq(n,1002)+eq(n,2003)+eq(n,3004)+eq(n,4005))
> 
> Since I noticed that the original file had a duplicated frame every 1000 or
> so frames. The sample file does not reach 1000 frames and I didn't mention
> it earlier for simplicity.
> 
> Alex
> 
> 
> 
> On Wed, May 28, 2025 at 3:28 PM Mark Filipak <markfilipak.imdb at gmail.com>
> wrote:
> 
>> On 28/05/2025 18.07, Alex Xu wrote:
>>> Thanks for your feedback, I tried your command but added a frame counter:
>>>
>>> ffmpeg -i detelecine_input.mkv -vf
>> "fieldmatch=order=tff:combmatch=none,decimate,drawtext=fontfile=Arial.ttf:
>>> text='%{frame_num}': start_number=0: x=(w-tw)/2: y=h-(2*lh):
>>> fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" -c:v
>>> libx264 -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p -r 24
>>> fieldmatch_decimate_frames.mkv

Why is "-r 24" there?




More information about the ffmpeg-user mailing list