I just found a workaround: sudo ffmpeg -i input_video -i input_image -filter_complex "overlay=0:0" -f avi pipe:1 | sudo ffmpeg -i pipe:0 http://localhost:9090/feed0.ffm In this way the firsto output is like a file and is correctly processed. The second input is the video with the image already applied.