Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
belltown
Roku Guru

Re: How to stream from sound card to TV/Roku?

I've almost got this working. I've managed to get VLC to stream both my webcam video and sound card's stereo mix output to Wowza, formatted as "Video - H.264 + AAC (MP4)" over "RTP / MPEG Transport Stream". I modified the simplevideoplayer app to read the HLS stream from Wowza, and I'm able to get my webcam's video and sound card's audio on my TV.

However, I'm not interested in the video portion, just the audio. But if I try streaming only the audio I get nothing from Roku. I suspect that roVideoScreen requires a video stream to work, not just audio. Is this correct? If so, is there any way I can get only an audio stream over HLS without the video?
0 Kudos
gonzotek
Visitor

Re: How to stream from sound card to TV/Roku?

"belltown" wrote:
I've almost got this working. I've managed to get VLC to stream both my webcam video and sound card's stereo mix output to Wowza, formatted as "Video - H.264 + AAC (MP4)" over "RTP / MPEG Transport Stream". No, the roVideoScreen component won't work with audio-only input.

I modified the simplevideoplayer app to read the HLS stream from Wowza, and I'm able to get my webcam's video and sound card's audio on my TV.

However, I'm not interested in the video portion, just the audio. But if I try streaming only the audio I get nothing from Roku. I suspect that roVideoScreen requires a video stream to work, not just audio. Is this correct? If so, is there any way I can get only an audio stream over HLS without the video?
I hacked myself together a pc audio streaming app using Edcast to capture the audio and icecast to stream (I chose these because I'm familiar with them and they're free, there are other options, like the Winamp Shoutcast plugin). I used the audioapp example from the Roku SDK* to start from, and pared down from there. The chain looks like this Sound Card Out->Ed Cast Capture(as mp3*)->Icecast Server->Custom Roku Audio App.

I could post my source, but it's a ugly hack-job of the example source and I haven't looked at it since summer. I'm not really sure in what state I left it in. If you got the video stuff to work, you'll probably be fine working from the example. Feel free to ask if you need anything.

*Note 1: The 2.8 SDK is missing several files from the audioapp example. RokuChris posted the complete source to the 2.7 version of the example(which works fine with 2.8 )
*Note 2: The only streaming audio-only codec you can use with Roku is currently mp3. For files, aac and wma both work, but not streams of indefinite length.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
belltown
Roku Guru

Re: How to stream from sound card to TV/Roku?

I finally have it working now. The solution is actually very simple.

I just use VLC media player to capture my stereo mix and stream it as MP3 using HTTP over my network. I set the destination port to 8080 and path to /mp3. To play it on Roku I only need to change one line of code, the URL in the NPR module of the audioapp, to http://192.168.0.100:8080/mp3 and lo-and-behold my sound card output is now being streamed to my TV. No need to use Wowza or any other streaming media media servers.
0 Kudos
dynamitemedia
Binge Watcher

Re: How to stream from sound card to TV/Roku?

now if we didnt have to deal with "HLS" we could do the same with Video!

AVC streamer seems to work a bit but i'm not having luck. i have been playing with a few other solutions however and will post as soon as i can get something working.

eventually i am sure the guys at VLC will have a HLS streaming option and then the roku world will be perfect!! 😄

you can also use my private channel https://owner.roku.com/Account/ChannelCode/?code=DQMFC

and just add the url or even Chaneru and add it as a .url in case you ever need to make any changes in the ip address and dont want to fool with changing your code all the time
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.