[FFmpeg-user] toggle between two streams

Nicolas George george at nsup.org
Fri Sep 3 18:13:41 EEST 2021

Michael Koch (12021-09-03):
> ffmpeg -loop 1 -i 1.png -loop 1 -i 2.png -lavfi sendcmd=c="0 [expr]
> streamselect map 'gte(mod(T,2),1)'",streamselect=map=0 -t 10 -y out.mp4
> Unable to parse graph description...

You need to put the proper amount of backslashes to protect the commas.
I will grant you it is not intuitive and very annoying, but it always
can be made to work.

  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210903/a17e2ef1/attachment.sig>

More information about the ffmpeg-user mailing list