id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	blockedby	blocking	reproduced	analyzed
1975	yadif placement after -i results in timing errors	dpury		"When using yadif after the input file, pts errors are encountered.  On long files this results in a/v sync issues.  If I move the yadif filter to before the input file, the errors are not present.  Output format doesn't seem to matter; I've seen it when making MPEG-2 PS and TS files, as well as MP4 files. As a workaround, I've been using yadif before the input, and another -filter:v after the input to do scale and setdar. 

Report files attached.

This command
ffmpeg -report -i C:\ffmpeg\bin\bip_3s.mxf -filter:v yadif=0 C:\ffmpeg\bin\bip_3s.mp4

produces errors like this:
PTS 14, next:440000 invalid dropping st:0
PTS 17, next:560000 invalid dropping st:0
PTS 20, next:680000 invalid dropping st:0
PTS 23, next:800000 invalid dropping st:0

While this command
ffmpeg -report -filter:v yadif=0 -i C:\ffmpeg\bin\bip_3s.mxf -y C:\ffmpeg\bin\bip_3s.mp4

produces no errors.

Thank you,

dpury"	defect	closed	normal	avfilter	unspecified	needs_more_info	yadif dts	lists.davep@…			0	0
