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

Loadlinx limiteddi at gmail.com
Mon Jun 9 09:38:31 CEST 2014


On Fri, Jun 6, 2014 at 9:02 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
>
>> Loadlinx <limiteddi <at> gmail.com> writes:
>>
>> > ffmpeg -i udp://192.168.0.1:12710 -vcodec libx264
>> > -deinterlace -preset superfast -vb 500k -acodec libfdk_aac
>> > -ab 32k -ar 44100 -async 480 -f flv
>> > rtmp://127.0.0.1:1935/live/stream2
>>
>> (Completely unrelated: The -deinterlace option
>> is deprecated, please use a filter, for example
>> yadif.)
>
> And I forgot:
> Are you sure that -async 480 is necessary and useful?
> We have received bug reports that conversion works
> fine without this option but produces problems with
> the option...
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Still no go, i made a number of changes based on the ffmpeg error msgs

ffmpeg -i udp://192.168.0.1:7777 -deinterlace -vcodec libx264 -acodec
libfdk_aac -ab 32k -ar 44100 -bsf:a aac_adtstoasc -f tee -map 0:v -map
0:a "[f=flv]rtmp://192.168.0.105:1935/live/test1|
[f=flv]rtmp://192.168.0.106:1935/live/test2"

No errors, goes straight back to command line and when lauched with
nohup, exits saying Broken Pipe

ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar 25 2014 21:10:08 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
  configuration: --prefix=/root/ffmpeg_build
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libtheora --enable-libvorbis --enable-libx264
--enable-nonfree --enable-pic
  libavutil      52. 69.100 / 52. 69.100
  libavcodec     55. 54.100 / 55. 54.100
  libavformat    55. 35.101 / 55. 35.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  3.100 /  4.  3.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0x3672100] Invalid frame dimensions 0x0.
    Last message repeated 55 times
Input #0, mpegts, from 'udp://192.168.0.1:7777':
  Duration: N/A, start: 12158.724256, bitrate: 158 kb/s
  Program 710
    Stream #0:0[0x1722]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p(tv), 544x480 [SAR 20:17 DAR 4:3], max. 15000 kb/s,
29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1723](eng): Audio: mp2 ([4][0][0][0] / 0x0004),
48000 Hz, stereo, s16p, 158 kb/s
[libx264 @ 0x367a680] using SAR=20/17
[libx264 @ 0x367a680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x367a680] profile High, level 3.0
[flv @ 0x3d545c0] Codec for stream 0 does not use global headers but
container format requires global headers
[flv @ 0x3d545c0] Codec for stream 1 does not use global headers but
container format requires global headers
[flv @ 0x3d57340] Codec for stream 0 does not use global headers but
container format requires global headers
[flv @ 0x3d57340] Codec for stream 1 does not use global headers but
container format requires global headers
Output #0, tee, to
'[f=flv]rtmp://192.168.0.105:1935/live/test1|[f=flv]rtmp://192.168.0.106:1935/live/test2':
  Metadata:
    encoder         : Lavf55.35.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 544x480 [SAR 20:17
DAR 4:3], q=-1--1, 90k tbn, 29.97 tbc
    Stream #0:1(eng): Audio: aac (libfdk_aac), 44100 Hz, stereo, s16, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
  Stream #0:1 -> #0:1 (mp2 -> libfdk_aac)
Press [q] to stop, [?] for help
root at rub:~/bin#

Still doesnt look like its seeing a request for second Output?


More information about the ffmpeg-user mailing list