sameersbn / docker-wowza

Dockerfile to containerize Wowza Streaming Engine
MIT License
64 stars 42 forks source link

Can't push RTMP to instance using this container #13

Closed rainabba closed 8 years ago

rainabba commented 8 years ago

First, I realize this isn't wowza support and I don't expect that, but I'm gonig to ask anyway in case this has to do with setup and assumptions that might have been made one way or another.

For testing live, I use ffmpeg to push RTMP using copy where the source is a an h.264, baseline with aac audio (all very typical). In the past, I've had no issues using this (see below) to push a stream to wowza, but with the instance I created using this container, I'm getting strange errors that I've not seen and I'm wondering if there might be dependencies on the server that aren't setup, which were with the official EC2 Wowza AMI.

To make matters worse, it seems like the stream will run for as much as 10 seconds some times and error out instantly at others. I have ~35Mbps uplink and the video is only 3.5Mbps so I don't think that's relevant (though I've never seen such behavior when I was pushing too much anyway.)

Any thoughts?

My command: "c:\Program Files\ffmpeg\bin\ffmpeg.exe" -stream_loop -1 -i teaser.mp4 -vcodec copy -acodec copy -f flv rtmp://my.streaming.server:1935/liveorigin/teaser

The errors (tail of output):

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
WriteN, RTMP send error 10054 (129 bytes)
WriteN, RTMP send error 10054 (41 bytes)
WriteN, RTMP send error 10038 (42 bytes)
av_interleaved_write_frame(): Operation not permitted
[flv @ 00000228787fa020] Failed to update header with correct duration.
[flv @ 00000228787fa020] Failed to update header with correct filesize.
Error writing trailer of rtmp://my.streaming.server:1935/liveorigin/teaser: Operation not permittedframe=   24 fps=0.0 q=-1.0 Lsize=     294kB time=00:00:00.95 bitrate=2514.0kbits/s speed=3.75x
video:461kB audio:23kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
jshimko commented 8 years ago

Can you try using the demo version of Wirecast (if you don't own it) or Adobe Flash Encoder to rule out the possibility of ffmpeg options being your problem? My experiences using ffmpeg have been far from consistently successful and I've never has any issues using this container.

rainabba commented 8 years ago

That did the trick so it's clearly not wowza (or this image). Thank you.

sameersbn commented 8 years ago

thanks for helping out @jshimko. much appreciated :+1: