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

2025-05-16 Thread Alex Xu
Hi everyone, I'm working to detelecine a video, attached here (12 MB, first 32 seconds truncated): https://www.mediafire.com/file/x4ly6moqb8ayfyy/detelecine_input.mkv/file I wasn't sure what was the right command to get the result I wanted so I looped over all possible combos like so: for i in 0

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

2025-05-17 Thread Alex Xu
The video is telecined, not interlaced. On Fri, May 16, 2025 at 11:39 PM Richard Bartczak via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote: > Am 17.05.25 um 06:03 schrieb Alex Xu: > > Hi everyone, > > > > I'm working to detelecine a video, attached here (12 MB

Re: [FFmpeg-user] Why does the 'detelecine' filter exist?

2025-05-28 Thread Alex Xu
I recently used the detelecine command in this thread: https://ffmpeg.org/pipermail/ffmpeg-user/2025-May/059249.html I got strange results with the `fieldmatch+decimate` combo, where decimate wasn't removing the correct frame. I also got strange results with the `pullup` filter. This may just be

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

2025-05-28 Thread Alex Xu
ayfyy/detelecine_input.mkv/file On Wed, May 28, 2025 at 5:47 PM Mark Filipak wrote: > On 28/05/2025 19.18, Alex Xu wrote: > > Anyways, I tried: > > > > ffmpeg -i detelecine_input.mkv -vf > > "fieldmatch,decimate,drawtext=fontfile=Arial.ttf: text='%

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

2025-05-28 Thread Alex Xu
And one quick note, my external video player (IINA and VLC) seems to not like it if I don't include "-pix_fmt yuv420p" Otherwise I get strange screen tearing issues. On Wed, May 28, 2025 at 9:30 PM Alex Xu wrote: > I tried running your exact command and got the same result. D

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

2025-05-28 Thread Alex Xu
I tried running your exact command and got the same result. Dropped frame 173 and a later duplicated frame. I've attached 15 frames here of the results. https://drive.google.com/drive/folders/139rjLqsxIuAO_3yzVNe4dD7-gI9YPRgn?usp=drive_link I've attached 5 frames each of the original input, usin

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

2025-05-28 Thread Alex Xu
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:

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

2025-05-28 Thread Alex Xu
lect='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

Re: [FFmpeg-user] Why does the 'detelecine' filter exist?

2025-05-28 Thread Alex Xu
ote: > > On Wed, May 28, 2025 at 9:19 PM Mark Filipak > > > wrote: > > > >> On 28/05/2025 15.39, Alex Xu wrote: > >>> I recently used the detelecine command in this thread: > >>> https://ffmpeg.org/pipermail/ffmpeg-user/2025-May/059249.html > >&

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

2025-05-28 Thread Alex Xu
I put it there since it was in Huspnet's original command. I don't think it matters, same problem occurs if I omit it or use -r 24000/1001 instead. On Wed, May 28, 2025 at 3:41 PM Mark Filipak wrote: > On 28/05/2025 18.36, Alex Xu wrote: > > Got the same problematic result

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

2025-05-28 Thread Alex Xu
73. In case you missed it, my test file was in the first message of the chain. And using the detelecine filter got me the right result (with wrong params?) On Wed, May 28, 2025 at 3:54 PM Mark Filipak wrote: > On 28/05/2025 18.46, Alex Xu wrote: > > I put it there since it was in Huspnet

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

2025-05-28 Thread Alex Xu
Whoops, looks like I got cut off, the above command still has same issue of duplicated frames 174+175 and skipped 173 On Wed, May 28, 2025 at 4:18 PM Alex Xu wrote: > When I said, "doesn't matter" I meant that the issue of duplicated frames > 174+175 and skipped 173. Y