[FFmpeg-user] text overlay will not work on rtmp stream

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Sep 20 11:59:58 EEST 2018


2018-09-20 10:46 GMT+02:00, Anthony Griffiths <neuronetv at gmail.com>:

> dvgrab -format dv1 - |
> /home/<me>/Downloads/ffmpeg-git-20180920-64bit-static/ffmpeg
> -deinterlace -f dv -i - -f flv -y \
> -vf
> [in]drawtext="fontfile=/home/<me>/packages/Fonts/verdana.ttf:textfile=/home/<me>/screentext.txt:fontcolor=white:fontsize=20:x=30:y=30:reload=1"[out]
> \
> -codec:v libx264 -preset slow -aspect 16:9 -s 320x180 -b:v 1500k
> -maxrate 500k -bufsize 1000k -vf scale=-1:240 -threads 0 \
> -framerate 15 -qscale:v 20 -codec:a aac -b:a 64k -af aformat=s16:44100
> rtmp://<ip-address>/<name-nginx>"
>
> this command plays video fine but text overlay is still missing,

> you stated I have two video codecs but ffmpeg will not run without
> them both. If I remove "-f flv" ffmpeg fails, I get:

The problem was not that you used "-f flv -vcodec libx264" but
"-f flv -vcodec flv -vcodec libx264"

Carl Eugen


More information about the ffmpeg-user mailing list