Posted: Sun Aug 03, 2008 5:57 pm Post subject: Infrant ReadyNAS integration?
So I'm thinking of maybe porting pyTivo to run on an Infrant ReadyNAS. One major hurdle is that ReadyNas's processor's and very slow so I highly doubt FFMPEG will work. Is there a way to disable it so it will only pass Tivo Compatible Files without conversion. For instance I would already have files that are in Tivo format just need it to do the Tivo api functionality?
I haven't totally looked at the source yet, if it is possible then I might dive on in. (possible = pretty easy source change)
Yeah, in pyTivo\plugins\video\transcode.py, there is a function called video_info which is used to create the data for each video entry in the folder listing.
The first thing it does is check for the .tivo extension and then sets the Supported flag to true. After that, it does a number of ffmpeg test to determine if ffmpeg can transcode it or if the mpeg file is already tivo compatible. The first bit of code runs ffmpeg and kills it if it takes too long to respond. If ffmpeg is unresponsive, then Supported is set to false and you will see a red circle with a line through it in the listing on the Tivo
If you just want to be able to handle .tivo files, then just set Supported = false and return after the .tivo test. If you want to also support mpeg files that are Tivo compatible, you'll just have to read through the code and decide where to change the Supported = True to Supported = False when interpreting the ffmpeg test conditions.
Thanks, I'll look into it. I totally want ffmpeg out and let tivo decide if the file isn't compatible. I'll probably start by only allowing .tivo and .mpg. It's just a small processor don't want it to do much work.
If you allow ffmpeg to run only for the test (and not to do actual transcoding), which is what will happen if you put only TiVo-compatible MPEG files in your shares, it won't be a big burden on your processor. _________________ My pyTivo fork
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum