[FFmpeg-user] How to publish rtmp to multiple destinations

Moritz Barsnick barsnick at gmx.net
Fri Jun 6 10:57:20 CEST 2014


Hi,

On Fri, Jun 06, 2014 at 03:39:37 -0400, Loadlinx wrote:
> /root/bin/ffmpeg -i udp://192.168.0.1:7777 -deinterlace -vcodec copy
> -acodec libfdk_aac -ab 32k -ar 44100 -async 480 \ -f tee -map 0:v -map
> 0:a "rtmp://192.168.0.1:1935/live/test1|[f=flv]rtmp://192.168.0.2:1935/live/test2/"
[...]
> [NULL @ 0x24f9420] Unable to find a suitable output format for ' -f'
>  -f: Invalid argument
> 
> What am I doing wrong?

Note the space in front of your '-f'. You escaped it in your command
line, giving ffmpeg the argument ' -f':

> -async 480 \ -f tee
             ^^

Drop the backslash and the space.

Moritz


More information about the ffmpeg-user mailing list