[FFmpeg-user] how to burn subtitles and transcode live stream

Daniel Dimitrov 596076 at gmail.com
Sun Oct 25 10:09:16 EET 2020


On Sat, Oct 24, 2020 at 2:45 AM Moritz Barsnick <barsnick at gmx.net> wrote:

> Hi Daniel,
>
> On Wed, Oct 21, 2020 at 19:01:37 +0300, Daniel Dimitrov wrote:
> > i have also tried :
> > ffmpeg -i "udp://@
> >
> 239.253.251.14:5505?overrun_nonfatal=1&fifo_size=50000000&pkt_size=1316&&buffer_size=10000000
> "
> >      -b:v 2600k -maxrate 4M -bufsize 4M   -b:a 128k  -vf scale=720:576
> > -filter_complex "[0:v][0:s:2]overlay[v]" -map "[v]"  -f mpegts "udp://@
> >
> 239.253.251.15:5505?overrun_nonfatal=1&fifo_size=50000000&pkt_size=1316&&buffer_size=10000000
> > "
> >
> > but the error was:
> > Filtergraph 'scale=720:576' was specified through the -vf/-af/-filter
> > option for output stream 0:0, which is fed from a complex filtergraph.
> > -vf/-af/-filter and -filter_complex cannot be used together for the same
> > stream.
>
> Exactly what it says there. You can't combine simple and complex
> filters.
>
> Use this:
>
> # [...] -filter_complex "[0:v]scale=720:576[v0]; [v0][0:s:2]overlay[v]"
> -map "[v]"
>
> Cheers,
> Moritz
> _______________________________________________
> 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".


Hi Moritz,
Thank you for your email. I have tried but i can't manage to both scale and
burn the subtitles if i try to only burn them with filter_complex it works
or if i try to scale only it works too but chaining them doesn't work.
If you can please take a look at the  file here it is :
https://gofile.io/d/xsZzSA


More information about the ffmpeg-user mailing list