[FFmpeg-user] rtmp streaming to two media servers

Maxim Kozlov rogat1y at gmail.com
Thu Aug 29 15:04:23 CEST 2013


Hi.

I stream live video to two media servers(wowza) using such command line:
ffmpeg [input, libx264 and libfdk_aac options] -f tee "[f=flv]rtmp://
192.168.0.1/live/stream1|[f=flv]rtmp://192.168.0.2/live/stream1"

Works perfect.

But if one of servers crashes, ffmpeg  exits with message:
WriteN, RTMP send error 10053 (129 bytes)
WriteN, RTMP send error 10053 (48 bytes)
WriteN, RTMP send error 10038 (42 bytes)
av_interleaved_write_frame(): Operation not permitted

Please suggest the way to make ffmpeg reconnect to media server after
disconnection...like it doing Adobe Flaash Media Live Encoder?

ffmpeg running on windows 7
ffmpeg version N-55786-g185fc52 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Aug 26 2013 19:39:07 with gcc 4.8.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32
--cross-prefix=/mingw-w64-i686/bin/i686-w64-mingw32-
--pkg-config=pkg-config --enable-gpl --enable-libsoxr --enable-libx264
--enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3
--enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
--enable-libfreetype --enable-fontconfig --enable-libass
--enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib
--enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray
--enable-libvpx --enable-libilbc --enable-static --disable-shared
--enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect
  libavutil      52. 42.100 / 52. 42.100
  libavcodec     55. 29.100 / 55. 29.100
  libavformat    55. 14.102 / 55. 14.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.102 /  3. 82.102
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100

p.s. I hope my english not so bad and you understand me =)


More information about the ffmpeg-user mailing list