Opened 10 months ago

Last modified 8 months ago

#7066 new enhancement

Video filter enhancement: fieldhint

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

Description

Hi,

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 (10)

comment:1 Changed 9 months ago by cehoyos

  • Priority changed from normal to wish

comment:2 Changed 9 months ago by ssp43

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

comment:3 follow-up: Changed 8 months ago by richardpl

Do you have short sample where this would be useful?

comment:4 in reply to: ↑ 3 Changed 8 months ago by ssp43

Replying to richardpl:

Do you have short sample where this would be useful?

Yes. I have one - 7MB.

comment:5 Changed 8 months ago by richardpl

Upload sample somewhere and post a link.

comment:6 Changed 8 months ago by ssp43

This is a BFF interlaced video:

http://dropmefiles.com/HRkzc

comment:7 Changed 8 months ago by richardpl

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

comment:8 Changed 8 months ago by ssp43

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

Last edited 8 months ago by ssp43 (previous) (diff)

comment:9 Changed 8 months ago by richardpl

For fieldmatching strange patterns other ivtc filters can not handle.

comment:10 Changed 8 months ago by ssp43

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

I used this hint file:
http://dropmefiles.com/Yanvx

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

Note: See TracTickets for help on using tickets.