[FFmpeg-user] Ip camera stream problem with insert logo

Moritz Barsnick barsnick at gmx.net
Sun Jul 14 19:52:14 EEST 2019

On Sun, Jul 14, 2019 at 19:04:39 +0300, Free1video wrote:
> line I have this error -->
> Streamcopy requested for output stream 0:0, which is fed from a complex
> filtergraph. Filtering and streamcopy cannot be used together.

That error message is pretty clear. You are trying to use "-c:v copy"
while applying a filter. That can never work.

Actually, you are providing the codec twice: "-vcodec libx264" and "-c:v
copy". Probably, the latter is just a copy/paste error.

I am convinced you will run into other issues with your command line.
E.g. I believe you are not mapping your inputs correctly, and I think
YouTube requires a stereo audio stream. But I'm just guessing. Please
be sure to always provide the complete, uncut console output (minus
your YouTube key) of your ffmpeg command when asking for assistence

> COMMAND="sudo ffmpeg -f lavfi -i anullsrc -thread_queue_size 2048 -re -r 30
> use_wallclock_as_timestamps 1  -rtsp_transport tcp -i ${RTSP_URL} -i
> /home/pi/logo.png -filter_complex overlay -tune zerolatency -vcodec libx264
> -t 12:00:00 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv

BTW, there's usually nothing (at all!) which justifies running such a
command with root priviledges.


More information about the ffmpeg-user mailing list