filter_complex - manage missing input

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

filter_complex - manage missing input

Enrico Vittorini
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@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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: filter_complex - manage missing input

Mark Filipak
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@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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".