[FFmpeg-user] filter_complex - manage missing input
Mark Filipak
markfilipak.windows+ffmpeg at gmail.com
Sun Dec 15 18:52:29 EET 2019
Thanks Wayne & John. I guess I only have to find out why I'm not getting
them even though I set up the list server to echo my own posts. Then I
have to figure out why no one responds to my questions. Ah, well...
On 12/15/2019 11:50 AM, Enrico Vittorini wrote:
> Hello Gents,
> i would need an help. I am generating a mosaic with the following code:
>
> ffmpeg -re -y -i input.ts -map_chapters -1 -an -sn -dn
> -filter_complex "color=c=black:size=1920x1080 [base];
>
> [0:#0xb0] setpts=PTS-STARTPTS, scale=320x240, drawtext=fontsize=30:x=(w-text_w)/2:y=(h-text_h)/2:y=200:fontcolor=white:alpha=0.8:box=1:boxcolor=black at 0.5:boxborderw=5:text="Channel1" [r1p1];
> [0:#0x100]showvolume=r=5:b=1:h=15:w=80:o=v:v=0[r1p1a1];
> [0:#0x1101]showvolume=r=5:b=1:h=15:w=80:o=v:v=0[r1p1a2];
>
> [base][r1p1] overlay=shortest=0 [tmp1];
> [tmp1][r1p1a1] overlay=shortest=0:x=0 [tmp2];
> [tmp2][r1p1a2] overlay=shortest=0:x=0:y=80
> "
> -c:v libx264 -b:v 4M -minrate 4M -maxrate 4M out.ts
>
> The problem i need to face is that if the video with PID 0xb0 does not exist, the ffmpeg command fails at startup. I would need a way to go on... and eventually to replace that video with an image.
>
> Can you help me?
> thanks
>
>
> _______________________________________________
> 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