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: 
AwesomeSauce
Visitor

Problem streaming local content to Roku 2 with Ubuntu XAMPP

I have a Ubuntu server running XAMPP and I changed the source code for the simple video player app to http://ipaddress/movies/movie.mp4 When I load up the app the loading bar fills up but it never starts playing. What am I doing wrong? :?:
0 Kudos
8 REPLIES 8
RokuJoel
Binge Watcher

Re: Problem streaming local content to Roku 2 with Ubuntu XA

Can you post exactly what you changed?
What are the encoding parameters of the video file? Is the Audio AAC? What kind of encoder? If you post the link, or send it to me in a private message then we can test it.

- Joel
0 Kudos
AwesomeSauce
Visitor

Re: Problem streaming local content to Roku 2 with Ubuntu XA

On the simple video player I changed the urls line and the few under it to:
urls = ["http://192.168.1.2/Movies/TheHangover.mp4"]
qualities = ["SD"]
StreamFormat = "mp4"
title = "The Hangover"
srt = "The Hangover Movie"
The video has a resolution of 720X304 and a audio MP3 bit rate of 64kbps with 23FPS. Is something with the encoding of my movie wrong?
0 Kudos
belltown
Roku Guru

Re: Problem streaming local content to Roku 2 with Ubuntu XA

"AwesomeSauce" wrote:
On the simple video player I changed the urls line and the few under it to:
urls = ["http://192.168.1.2/Movies/TheHangover.mp4"]
qualities = ["SD"]
StreamFormat = "mp4"
title = "The Hangover"
srt = "The Hangover Movie"
The video has a resolution of 720X304 and a audio MP3 bit rate of 64kbps with 23FPS. Is something with the encoding of my movie wrong?

'srt' needs to be the url of a file containing the SRT subtitles, not a text string.

Try changing that line to:


srt = ""


and see what happens.
0 Kudos
AwesomeSauce
Visitor

Re: Problem streaming local content to Roku 2 with Ubuntu XA

Nope it is still doing the same thing. This is what I have now:
'Swap the commented values below to play different video clips...
urls = ["http://192.168.1.2/Movies/TheHangover.mp4"]
qualities = ["SD"]
StreamFormat = "mp4"
title = "The Hangover"
srt = ""
0 Kudos
RokuJoel
Binge Watcher

Re: Problem streaming local content to Roku 2 with Ubuntu XA

"AwesomeSauce" wrote:
On the simple video player I changed the urls line and the few under it to:
urls = ["http://192.168.1.2/Movies/TheHangover.mp4"]
qualities = ["SD"]
StreamFormat = "mp4"
title = "The Hangover"
srt = "The Hangover Movie"
The video has a resolution of 720X304 and a audio MP3 bit rate of 64kbps with 23FPS. Is something with the encoding of my movie wrong?


Yeah. First of all you are specifying MP4 when you just stated that the audio is mp3.

Officially speaking, we don't support mp3 audio - it does *usually* work with HLS live streams on the Roku2 platform only. I don't know if it works with MP4 VOD playback, and I would tend to doubt it, so try re-encoding with AAC audio, 23.97 framerate h.264 mp4 video.

- Joel
0 Kudos
AwesomeSauce
Visitor

Re: Problem streaming local content to Roku 2 with Ubuntu XA

I re-encoded the movie with AAC audio but it is still doing the same thing.
0 Kudos
RokuJoel
Binge Watcher

Re: Problem streaming local content to Roku 2 with Ubuntu XA

Can you PM us a url for testing the file from here as opposed to a LAN url? Are you sure your server supports range request headers?

- Joel
0 Kudos
gonzotek
Visitor

Re: Problem streaming local content to Roku 2 with Ubuntu XA

"RokuJoel" wrote:
Can you PM us a url for testing the file from here as opposed to a LAN url? Are you sure your server supports range request headers?

- Joel
From the thread title, it ought to be Apache, which has supported range requests for many years. I'm betting it'll turn out to be something to do with the file encoding.
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
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.