Stream from VLC Player

Roku's free SDK allows developers to build channels and applications and publish them to the Roku Channel Store. Register for the Developer Program at http://www.roku.com/developer

Moderators: RokuDouglas, RokuKen, RokuRyan, RokuJamesL, RokuJoel, RokuChris

Stream from VLC Player

Postby compctech » Wed Aug 04, 2010 9:06 am

I am trying to stream from VLC Player (Capture Device) to the Roku box. It there any thing that I need to set on the VLC HTTP streaming to have It pickup on the player. I may using the customerplayer in the SDK to test it out and keep receiving "9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected."

Thanks
Sam L.
compctech
 
Posts: 6
Joined: Wed Aug 04, 2010 5:51 am

Re: Stream from VLC Player

Postby kbenson » Wed Aug 04, 2010 11:32 am

What format is VLC outputting in? The Roku supports a specific set of formats. Look at section 3.1 of the Developer Guide document in the SDK. It lists the supported formats. I believe there have been reports in the forums that some other combinations can work based on what the hardware actually supports, but I haven't done anything with that and am unsure whether it is theoretical but requires changes from Roku or if you can get it to work.
-- GandK Labs
Check out Reversi! in the channel store!
kbenson
 
Posts: 886
Joined: Fri Apr 09, 2010 9:53 am
Location: Santa Rosa, Ca

Re: Stream from VLC Player

Postby compctech » Wed Aug 04, 2010 12:04 pm

I am streaming with the profile "Video - H.264 + AAC (MP4)".

Here is the generated stream output string using the VLC GUI:

Code: Select all
:sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:http{dst=:8080/test.mp4} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep
compctech
 
Posts: 6
Joined: Wed Aug 04, 2010 5:51 am

Re: Stream from VLC Player

Postby dradon » Wed Aug 04, 2010 1:56 pm

I don't think the Roku box supports VLC's http streaming - you'll have to use HLS via the new livehttp VLC module. I think you'll have to install a nightly build to get it.

The last time I messed with it my params looked like this:
Code: Select all
--sout '#transcode{vcodec=x264,venc=x264,width=624,height=352,fps=23.97,acodec=aac,ab=128,channels=2,samplerate=48000,threads=3}:standard{access=livehttp{seglen=10,delsegs=true,numsegs=10,index=/var/www/mystream.m3u8,index-url=http://machinename/mystream-########.ts},mux=ts,dst=/var/www/mystream-########.ts}}'
dradon
 
Posts: 2
Joined: Fri Apr 30, 2010 8:24 pm

Re: Stream from VLC Player

Postby compctech » Wed Aug 04, 2010 5:27 pm

OK, With the code you listed, do I need to recompile VLC or can I just use somthing else like apache?

Also where can I find the nightly builds. I am now willing to try it in windows just to see if it works.(Currently using Gentoo) I just got the update to 1.1.2. Will it be in there?
compctech
 
Posts: 6
Joined: Wed Aug 04, 2010 5:51 am

Re: Stream from VLC Player

Postby compctech » Wed Aug 04, 2010 5:39 pm

OK just realized that it is calling the livehttp module. Anyone know where I can get a nightly build (Linux or Windows)?
When I do get the nightly build install do I need a web server or will VLC use the built-in one?

Sam L.
compctech
 
Posts: 6
Joined: Wed Aug 04, 2010 5:51 am

Re: Stream from VLC Player

Postby compctech » Wed Aug 11, 2010 11:44 am

Got it semi-working. It will stream if it is in the first 10 segments of the stream. After that if I try to connect is will give me a blank screen with audio. Any one know what may be causing this?
compctech
 
Posts: 6
Joined: Wed Aug 04, 2010 5:51 am

Re: Stream from VLC Player

Postby renojim » Wed Aug 11, 2010 3:26 pm

Are you using the built-in vlc server? If so, what command line are you using? I've only used vlc in combination with another server.

-JT
renojim
** Valued Community Member **
 
Posts: 2441
Joined: Mon Feb 15, 2010 1:35 pm

Re: Stream from VLC Player

Postby compctech » Fri Aug 13, 2010 5:39 pm

I have only got it working with apache.
compctech
 
Posts: 6
Joined: Wed Aug 04, 2010 5:51 am


Return to Roku Developer Program

Who is online

Users browsing this forum: Komag and 2 guests