[FFmpeg-user] input to YADIF filter
barsnick at gmx.net
Sat Aug 13 20:31:41 EEST 2016
On Sat, Aug 13, 2016 at 19:11:55 +0300, Human Being wrote:
> can't make the select filter work for me.
> ffmpeg -i VTS_01_3.VOB -vf select='eq(n\,0)+eq(n\,1)+eq(n\,116)+eq(n\,117)',yadif -c:v libx264 -preset slow -an test.mp4
> makes FFMPEG hanging in the process and produces a frozen frame video. what's wrong here?
Because the "select" filter only passes those frames through to its
output which are selected, all others are dropped. What you need is
"timeline editing" support, i.e. you want the yadif filter to only be
*active* on these frames, inactive on others.
This is achieved as such:
$ ffmpeg -i VTS_01_3.VOB -vf yadif=enable='eq(n\,0)+eq(n\,1)+eq(n\,116)+eq(n\,117)' -c:v libx264 -preset slow -an test.mp4
(I didn't actually test the result of this, I'm just trying to get your
command line syntax to work as desired.)
More information about the ffmpeg-user