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

Moritz Barsnick barsnick at gmx.net
Sat Oct 24 02:45:39 EEST 2020

Hi Daniel,

On Wed, Oct 21, 2020 at 19:01:37 +0300, Daniel Dimitrov wrote:
> i have also tried :
> ffmpeg -i "udp://@
>      -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://@
> "
> 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

Use this:

# [...] -filter_complex "[0:v]scale=720:576[v0]; [v0][0:s:2]overlay[v]" -map "[v]"


More information about the ffmpeg-user mailing list