Opened 4 years ago

Closed 2 years ago

#7066 closed enhancement (fixed)

Video filter enhancement: fieldhint

Reported by: Stanislav Owned by:
Priority: wish Component: avfilter
Version: unspecified Keywords: fieldhint
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no



Could you please implement a case when the filter (fieldhint) creates a frame using only one field.
Example of a file containing hints (relative mode):

0,0 - # first frame
1,0 - # second frame
1,0 - # third frame
1,0 -
0,0 -
0,0 -
1,0 -
,0 -
1,0 -
0,0 -
0,0 -
1, -
1,0 -
1,0 -
0,0 -

Some lines contain only one figure - that means 'use only one field to create this frame'.
Sometimes interlaced videos contain errors like missing frame between two adjacent frames. In this case, you can only use one field to create a frame.

Thank you.

Change History (11)

comment:1 by Carl Eugen Hoyos, 4 years ago

Priority: normalwish

comment:2 by Stanislav, 4 years ago

Another reason to implement this case is that one of two fields can be broken.

comment:3 by Elon Musk, 4 years ago

Do you have short sample where this would be useful?

in reply to:  3 comment:4 by Stanislav, 3 years ago

Replying to richardpl:

Do you have short sample where this would be useful?

Yes. I have one - 7MB.

comment:5 by Elon Musk, 3 years ago

Upload sample somewhere and post a link.

comment:6 by Stanislav, 3 years ago

This is a BFF interlaced video:

comment:7 by Elon Musk, 3 years ago

Don't tell me you use this filter for deinterlacing?

comment:8 by Stanislav, 3 years ago

Why not in case of 25i TFF or BFF?
What are you using it for?

Last edited 3 years ago by Stanislav (previous) (diff)

comment:9 by Elon Musk, 3 years ago

For fieldmatching strange patterns other ivtc filters can not handle.

comment:10 by Stanislav, 3 years ago

To be honest I didn't understand what you meant.

I used this hint file:

and this command:
ffmpeg -i komandirovka-002.mkv -vf fieldhint=fieldhint.txt:mode=relative %06d.png

Have a look at files 000014.png and 000144.png

comment:11 by Elon Musk, 2 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.