[FFmpeg-user] toggle between two streams

Paul B Mahol onemda at gmail.com
Fri Sep 3 21:59:35 EEST 2021


On Fri, Sep 3, 2021 at 8:54 PM Michael Koch <astroelectronic at t-online.de>
wrote:

> Am 03.09.2021 um 20:01 schrieb Reino Wijnsma:
> > On 2021-09-03T16:25:50+0200, Michael Koch <astroelectronic at t-online.de>
> wrote:
> >> But if I write all in the FFmpeg command line, then it doesn't work:
> >>
> >> 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...
> > 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
>
> Thank you, this command line is working fine. But it's difficult to
> understand. A simple task (toggle between two streams) should have a
> simple solution.
>

Nope, it should not.


>
> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list