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

myth tv channel

My son and I are working on getting a mythtv channel working. We have finally started to make some progress. Currently we are able to extract information from the mysql database for each recorded show and have the roku list each show on the tv screen, along with a picture from each show.

Next we are going to work on the video playback of a show. Right now we are trying to figure out the ffmpeg/mencoder command line to transcode a mpeg2 file to h.264.

We still have a long way to go, but it was cool seeing part of it working last night.

--Stephen
0 Kudos
14 REPLIES 14
zimbra
Visitor

Re: myth tv channel

There was alot of discussion of various encoding parameters in the "debugging playback" thread, and (IIRC) a link to an article on how netflix is doing the encoding.
0 Kudos
trebonius
Visitor

Re: mythv channel

Cool! That's really exciting. I broke down and got a Roku because I was tired of waiting for Netflix support on my Linux-based MythTV/Boxee machine. Sadly, that means I have to go back to having multiple video sources. If I could use my Roku box as a Myth frontend, I'd be thrilled!

I'll try to dig up an old script I used to use for encoding things for my iPod, which uses mencoder and something else for h.264. Perhaps it will be of some use to you.
0 Kudos
bege
Visitor

I would be willing to help

I was actually starting to this same exact thing last night. I have lots of coding experience and love my MythTV setup. I would be willing to help you guys out getting this working. I think the Roku would be a great quiet myth frontend. Please let me know if there is anything that you need help with.
0 Kudos
KennyJ
Roku Guru

Re: myth tv channel

I installed mythbuntu my old PC but haven't done anything with it. I don't eve n have a tv tuner for it. This might get me to move forward with it.
0 Kudos
trebonius
Visitor

Re: myth tv channel

http://podencoder.googlecode.com/svn/trunk/podencoder

Here's the script I've used. It encodes using mencoder, but since mencoder can't (or at least couldn't) create the correct container for the h.264 stream, MP4Box is used to finish the job.

I used this script successfully for a while, but eventually switched to Handbrake.
0 Kudos
TommyTheKid
Visitor

Re: myth tv channel

I, also would be interested in helping wherever I can. Can you post it to one of the various open-source code-management sites?

Tommy
0 Kudos
jsj123
Visitor

Re: myth tv channel

I am hoping to post the code after this weekend, once we get the video to play. There is some code cleanup and comments I need to add to it, plus I am trying to figure out to write a cgi script to interface with the mysql database.

I am a Oracle dba, not a programmer so my learning curve is steep. What I need right now is an easy way to get xml from mysql. Some googling will probably pop some ideas up. Then I need to learn where the necessary data values are in the mysql tables. Most of them appear to be in recorded_programs, but I have not found the last played position yet.

The way I am driving this project is all of the data needed by the Roku will be in an xml file served up by Apache. The only hardcoded values I have in the Brightscript file is the ip address of my Apache server.

--Stephen
0 Kudos
TommyTheKid
Visitor

Re: myth tv channel

Well, if you are a DBA, the database stuff should come easy, thats the part that most programmers have trouble with 😛

You will have to transcode ahead of time, most likely, or else somehow tell the Myth box to record in the right mp4 format 😕

I, too, recommend looking at "Hand Brake" (CLI) .. I was able to get a DVD to play pretty well using that. There may be problems at 1HR plus, but that shouldn't affect MOST TV shows 🙂

Tommy
0 Kudos
trebonius
Visitor

Re: myth tv channel

I happen to write Perl CGI code to access databases on a daily basis for my day job, so let me know if you'd like any help. What language are you using for the CGI?
0 Kudos