[FFmpeg-user] expressions in -bsf

Mark Filipak markfilipak.imdb at gmail.com
Fri May 31 23:05:25 EEST 2024


How do I do the equivalent of this:

   pts = pts==504223732 ? 504219978 : pts;

in '-bsf' in Windows? I can't figure it out.

I've tried:

-bsf setts=pts='eq(pts\,504223732)504219978'
-bsf setts=pts='if(eq(pts\,504223732)\,504219978\,pts)'
-bsf 'if(eq(pts\,504223732),setts=pts=504219978)'

and many, many variations. There are zero usage examples in the docs. Correct structure and correct 
quote-usage and the scope of the various 'pts's (input -v- output) are unknown.

Thanks!
--Mark.


More information about the ffmpeg-user mailing list