Hi, I'm trying to get the following project to work : * acquisition from video acqusition card using vlc * vlc transcode to theora/vorbis and sends it to an icecast2 server Using VLC to acquire from the device is working ok. I get a stream in theora/vorbis format with audio & video sync'ed. Now, when I use VLC to send the stream to my icecast2 server, the stream mounts, it is listed in the active mountpoints page, but suddenly disappear, leaving this in error.log in debug mode : DBUG stats/modify_node_event update node total_bytes_read (69615) DBUG stats/modify_node_event update node total_bytes_sent (0) DBUG stats/modify_node_event update node total_bytes_read (69615) DBUG stats/modify_node_event update node total_bytes_sent (0) DBUG source/get_next_buffer last 1291723291 timeout 10 now 1291723302 WARN source/get_next_buffer Disconnecting source due to socket timeout INFO source/source_shutdown Source "/live.ogg" exiting DBUG source/source_clear_source clearing source "/live.ogg" DBUG format-ogg/format_ogg_free_headers releasing header pages DBUG format-ogg/free_ogg_codecs freeing codecs DBUG format-vorbis/vorbis_codec_free freeing vorbis codec DBUG format-theora/theora_codec_free freeing theora codec DBUG source/source_free_source freeing source "/live.ogg" DBUG stats/process_source_event delete source node /live.ogg DBUG stats/modify_node_event update node clients (0) DBUG stats/modify_node_event update node sources (0) DBUG slave/_slave_thread checking master stream list and this in access log : "SOURCE /live.ogg HTTP/1.0" 200 19 "-" "VLC media player 1.1.4" 14 For information, my "sout" command-line in vlc : '#transcode{vcodec=theo,vb=800,scale=1,acodec=vorb,ab=128,channels=2,samplerate=44100}:std{access=shout,mux=ogg,dst=source:hackme at 193.50.79.124:8000/live.ogg}' How can I troubleshoot this issue ? Thanks for your help. -- Emmanuel Lesouef
On Tue, Dec 07, 2010 at 01:09:27PM +0100, Emmanuel Lesouef wrote:> DBUG stats/modify_node_event update node total_bytes_read (69615) > DBUG stats/modify_node_event update node total_bytes_sent (0) > DBUG source/get_next_buffer last 1291723291 timeout 10 now 1291723302 > WARN source/get_next_buffer Disconnecting source due to socket timeout > and this in access log : > > "SOURCE /live.ogg HTTP/1.0" 200 19 "-" "VLC media player 1.1.4" 14Those two things together look very much like VLC is not sending stream data. This is most likely caused by an choked CPU. It simply never gets to create any valid theora data and throws away what it half did. Make sure your system has the computational power and is nowhere near 95% CPU load. Notice that this is more or less single threaded. Multiple cores won't help (much). Cheers Thomas
Le Tue, 7 Dec 2010 13:31:27 +0100, "Thomas B. Ruecker" <dm8tbr at afthd.tu-darmstadt.de> a ?crit :> On Tue, Dec 07, 2010 at 01:09:27PM +0100, Emmanuel Lesouef wrote: > > DBUG stats/modify_node_event update node total_bytes_read (69615) > > DBUG stats/modify_node_event update node total_bytes_sent (0) > > DBUG source/get_next_buffer last 1291723291 timeout 10 now > > 1291723302 WARN source/get_next_buffer Disconnecting source due to > > socket timeout and this in access log : > > > > "SOURCE /live.ogg HTTP/1.0" 200 19 "-" "VLC media player 1.1.4" 14 > > Those two things together look very much like VLC is not sending > stream data. This is most likely caused by an choked CPU. It simply > never gets to create any valid theora data and throws away what it > half did. > > Make sure your system has the computational power and is nowhere near > 95% CPU load. Notice that this is more or less single threaded. > Multiple cores won't help (much). > > Cheers > > ThomasHi Thomas and thank you for answering ! The CPU of the encoding station if far from getting to 95%. What sounds strange to me is that if I don't append the icecast part, thus only transcoding and creating an http muxer in theora/vorbis, there seems to be data continuously... -- Emmanuel Lesouef
Emmanuel Lesouef <e.lesouef at crbn.fr> writes:> Hi, > > I'm trying to get the following project to work : > > * acquisition from video acqusition card using vlc > * vlc transcode to theora/vorbis and sends it to an icecast2 server[...]> How can I troubleshoot this issue ?I've tried reproducing your issue with my webcam and couldn't: cvlc v4l:///dev/video0 --sout '#transcode{vcodec=theo,vb=800,scale=1,acodec=vorb,ab=128,channels=2,samplerate=44100}:std{access=shout,mux=ogg,dst=source:hackyou at localhost:8000/live.ogg}' but, I could see that the stream that gets out of my icecast has pts all wrong, and no player seems to be able to correct them. * does this happen with any capture source (try other machines, other capture cards) * does this happen at particular times ? (i.e. in your log you read:> DBUG stats/modify_node_event update node total_bytes_read (69615)I got down to: | DBUG stats/modify_node_event update node total_bytes_read (3117500) without reproducing.) * try splitting the problem, recording your muxed ogg from VLC to a file, and then streaming that (big) file back. Cheers, -- Niv Sardi