pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Infrant ReadyNAS integration?

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo
 View previous topic :: View next topic  
Author Message
ryanrk



Joined: 14 Jan 2008
Posts: 14

PostPosted: Sun Aug 03, 2008 5:57 pm    Post subject: Infrant ReadyNAS integration? Reply with quote

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)
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 369

PostPosted: Mon Aug 04, 2008 4:13 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ryanrk



Joined: 14 Jan 2008
Posts: 14

PostPosted: Mon Aug 04, 2008 6:13 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 444

PostPosted: Mon Aug 04, 2008 6:45 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.7238s ][ Queries: 13 (0.5938s) ][ Debug on ]