[FFmpeg-user] Local RTMP to live stream http webm+ogg with ffserver

Exagone313 exa at elou.world
Sat Jun 27 00:56:35 CEST 2015


Apparently my command/output/config is not shown on the mailing list. Here
is:

# command/output:

$ ffmpeg -i rtmp://127.0.0.1/live/stream http://127.0.0.1:8182/ogg.ffm -i
rtmp://127.0.0.1/live/stream http://127.0.0.1:8182/webm.ffm
ffmpeg version 2.7.1-static http://johnvansickle.com/ffmpeg/  Copyright (c)
2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-21)
  configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame
--enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex
--enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-gray --enable-libopenjpeg --enable-libopus --enable-libass
--enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, flv, from 'rtmp://127.0.0.1/live/stream':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1920
    displayHeight   : 1080
    fps             : 30
    profile         :
    level           :
  Duration: 00:00:00.00, start: 125.466000, bitrate: N/A
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 196 kb/s
[flv @ 0x40d9460] Stream discovered after head already parsed
Input #1, flv, from 'rtmp://127.0.0.1/live/stream':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1920
    displayHeight   : 1080
    fps             : 30
    profile         :
    level           :
  Duration: 00:00:00.00, start: 130.716000, bitrate: N/A
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 196 kb/s
    Stream #1:1: Video: h264 (High), yuv420p(tv, bt709/bt709/iec61966-2-1),
1920x1080, 30.30 fps, 30 tbr, 1k tbn, 60 tbc
[libvpx @ 0x41363c0] v1.4.0-593-gb6131a7
Output #0, ffm, to 'http://127.0.0.1:8182/ogg.ffm':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1920
    displayHeight   : 1080
    fps             : 30
    profile         :
    level           :
    creation_time   : now
    encoder         : Lavf56.36.100
    Stream #0:0: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp, 64 kb/s
    Metadata:
      encoder         : Lavc56.41.100 libvorbis
    Stream #0:1: Video: theora (libtheora), yuv420p, 1920x1080, q=10-42,
1024 kb/s, 30 fps, 1000k tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.41.100 libtheora
Output #1, ffm, to 'http://127.0.0.1:8182/webm.ffm':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1920
    displayHeight   : 1080
    fps             : 30
    profile         :
    level           :
    creation_time   : now
    encoder         : Lavf56.36.100
    Stream #1:0: Audio: vorbis (libvorbis), 22050 Hz, mono, fltp, 64 kb/s
    Metadata:
      encoder         : Lavc56.41.100 libvorbis
    Stream #1:1: Video: vp8 (libvpx), yuv420p, 1920x1080, q=10-42, 1024
kb/s, 30 fps, 1000k tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.41.100 libvpx
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (native) -> vorbis (libvorbis))
  Stream #1:1 -> #0:1 (h264 (native) -> theora (libtheora))
  Stream #0:0 -> #1:0 (mp3 (native) -> vorbis (libvorbis))
  Stream #1:1 -> #1:1 (h264 (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[flv @ 0x40d5f40] Thread message queue blocking; consider raising the
thread_queue_size option (current value: 8)
[flv @ 0x40d9460] Thread message queue blocking; consider raising the
thread_queue_size option (current value: 8)
av_interleaved_write_frame(): Connection reset by peer
    Last message repeated 2 times
frame=   82 fps=2.6 q=0.0 Lq=0.0 size=      16kB time=00:00:02.73 bitrate= 
48.0kbits/s dup=162 drop=0
video:126kB audio:0kB subtitle:0kB other streams:0kB global headers:11kB
muxing overhead: unknown
Conversion failed!

# config:

HTTPPort 8182
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 200
MaxClients 100
MaxBandwidth 5000
<Stream status.html>
   Format status
   ACL allow localhost
</Stream>

<Feed webm.ffm>
   File ./webm.ffm
   FileMaxSize 1G
   ACL allow 127.0.0.1
</Feed>

<Stream stream.webm>
   Feed webm.ffm
   Format webm
   AudioCodec vorbis
   AudioBitRate 64
   VideoCodec libvpx
   VideoSize 1920x1080
   VideoFrameRate 30
   AVOptionVideo flags +global_header
   AVOptionVideo qmin 10
   AVOptionVideo qmax 42
   AVOptionAudio flags +global_header
   PreRoll 15
   VideoBitRate 1024
</Stream>

<Feed ogg.ffm>
   File ./ogg.ffm
   FileMaxSize 1G
   ACL allow 127.0.0.1
</Feed>

<Stream stream.ogg>
	Format ogg
	Feed ogg.ffm

	VideoCodec libtheora
	VideoFrameRate 30
	VideoBitRate 1024
	VideoSize 1920x1080
	VideoQMin 10
	VideoQMax 42
	Preroll 15
	AVOptionVideo flags +global_header

	AudioCodec libvorbis
	AudioBitRate 64
	AudioChannels 2
	AudioSampleRate 44100
	AVOptionAudio flags +global_header
</Stream>



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Local-RTMP-to-live-stream-http-webm-ogg-with-ffserver-tp4671197p4671198.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list