arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.35k stars 3.51k forks source link

Why my publisher always disconnected on it's own? #863

Open sukianto opened 8 years ago

sukianto commented 8 years ago

I'm using: adobe flash media live encoder for publisher format h264, 60 fps AWS ec2 c3.xlarge for nginx-rtmp server input rtmp output hls

publisher always disconnected on it's own, i see that on http://myserver.com:3000/stat 3 minutes publish and the live streams will disappear on flash media live encoder it still streaming but disappear on stat help me please sorry for bad english

morgansson commented 8 years ago

Probably you are using more than 1 worker on the nginx-rtmp server nginx configuration, that lead you into these kind of stat errors.

See this page: http://nginx-rtmp.blogspot.com.ar/2013/06/multi-worker-statistics-and-control.html

Rockies07 commented 8 years ago

I using worker_processes auto; is this multi worker? what I must change?

Rockies07 commented 8 years ago

Sorry I sukianto wrong github id

sukianto commented 8 years ago

Ok, worker fixed thank you morgansson, last question, Im using ffmpeg for generating thumbnail, codec Im sending to nginx-rtmp is h264, why always error? it said

Server returned 404 Not Found

Thank you so much for your information about worker

sukianto commented 8 years ago

Im using this command: ffmpeg -re -i http://xx.xxx.xxx.xxx:3000/hls/test1.m3u8 -vcodec png -vframes 1 -an -f rawvideo -y test1.png

I can play it using ffplay with error [http @ 000001eec2cf6720] HTTP error 404 Not Foundsq= 0B f=0/0 [hls,applehttp @ 000001eec2d11d60] Failed to open segment of playlist 0 [http @ 000001eec2cf5a00] HTTP error 404 Not Foundsq= 0B f=0/0 [hls,applehttp @ 000001eec2d11d60] Failed to open segment of playlist 0 [mpegts @ 000001eec2d25260] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options [hls,applehttp @ 000001eec2d11d60] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options

but it play