Topic: Streaming live TV using VLC
Hello
I've been trying to display a live flv stream on the chumby one, but I'm stucked with a codec error.
Basically I'm using VLC to access the tv video card and transcode its signal to a flv stream. In a browser that works just fine, while on the Chumby One it doesn't.
This is the trace generated by my "experimental but mostly working" widget:
2010-05-29 19:45:08 TRACE: NetStream.onStatus called: (76865 ms)
2010-05-29 19:45:08 TRACE: level:status*
2010-05-29 19:45:08 TRACE: code:NetStream.Play.Start*
2010-05-29 19:45:08 TRACE:
2010-05-29 19:45:08 ChumbyVidStats::Dump() completed codec ? 0/0 keyframes (0 bytes) dropped, 0/0 P-frames (0 bytes), 0/0 other frames (0 bytes) dropped
2010-05-29 19:45:08 width 0 (0 scaled), height 0 (0 scaled) rate 0 fps
2010-05-29 19:45:08 elapsed time 0.000s data transferred = 0K
2010-05-29 19:45:08 TRACE: NetStream.onStatus called: (76889 ms)
2010-05-29 19:45:08 TRACE: level:status*
2010-05-29 19:45:08 TRACE: code:NetStream.Play.Stop*
2010-05-29 19:45:08 TRACE:
2010-05-29 19:45:08 TRACE: ns.onMetaData *************
2010-05-29 19:45:08 TRACE: filesize:0*
2010-05-29 19:45:08 TRACE: audiocodecid:2*
2010-05-29 19:45:08 TRACE: stereo:true*
2010-05-29 19:45:08 TRACE: audiosamplesize:16*
2010-05-29 19:45:08 TRACE: audiosamplerate:44100*
2010-05-29 19:45:08 TRACE: audiodatarate:0*
2010-05-29 19:45:08 TRACE: videocodecid:2*
2010-05-29 19:45:08 TRACE: framerate:12.0000048*
2010-05-29 19:45:08 TRACE: videodatarate:781.25*
2010-05-29 19:45:09 TRACE: height:240*
2010-05-29 19:45:09 TRACE: width:320*
2010-05-29 19:45:09 TRACE: duration:0*
2010-05-29 19:45:09 TRACE: NetStream.onStatus called: (77115 ms)
2010-05-29 19:45:09 TRACE: level:status*
2010-05-29 19:45:09 TRACE: code:NetStream.Buffer.Full*
2010-05-29 19:45:09 TRACE:
2010-05-29 19:45:10 TRACE: NetStream.onStatus called: (78139 ms)
2010-05-29 19:45:10 TRACE: level:status*
2010-05-29 19:45:10 TRACE: code:NetStream.Buffer.Empty*
The stream starts, the codec stops working (as the Dump() message seems to suggest) and the stream stops too (network statistics show that data continues to flow, though).
The metadata is correct, the same as I get when I run my widget on the PC.
I also took the time to test the same data stream, but from a regular file (stream to file option) and this one worked nicely.
I suspect that at a widget level there's not much I can do, as the problem seems to originate from the player internals.
Is the chumby one capable of playing a live flv stream?
Thanks
PS: this is the transcode settings I used for VLC 1.0.5 on the command line, as the gui doesn't have an option for flv streaming:
--sout=#transcode{vcodec=FLV1,acodec=mp3,channels=2,samplerate=44100}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8091/stream.flv}