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 

H.264
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo
 View previous topic :: View next topic  
Author Message
wmcbrine



Joined: 04 Jan 2008
Posts: 444

PostPosted: Sat Jul 19, 2008 12:29 pm    Post subject: Reply with quote

It's premature to say that they're hiding it. The YouTube app is the first ever HME app to support video streaming. I'm hopeful that an updated spec document (or a complete updated SDK) will be published soon. (There are hints of video streaming in the spec that accompanied SDK 1.4.1experimental, but the comments about it were either unfinished, or incompletely removed.)

If not... we'll just have to figure it out ourselves.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
rectalogic



Joined: 17 Jul 2008
Posts: 8

PostPosted: Sun Jul 20, 2008 11:43 am    Post subject: Reply with quote

wmcbrine wrote:
(There are hints of video streaming in the spec that accompanied SDK 1.4.1experimental, but the comments about it were either unfinished, or incompletely removed.)


I wonder if the existing HME streaming APIs used for MP3 can be used for MP4.

It might be worth trying with a drop-dead simple HME app like this one, pointing to the skatedog.mp4 test video:

http://www.tivocommunity.com/tivo-vb/showthread.php?p=6197976#post6197976
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 369

PostPosted: Thu Jul 31, 2008 8:13 am    Post subject: Reply with quote

So I modified my pyTivo (latest krkeegan git) to pass mp4 files unprocessed. My S3 with 9.4 software rejects it soon after the transfer begins.

Then I tried changing the tmpl file to use different mime types instead of video/x-tivo-mpeg. I used:

video/mp4
video/x-tivo-mp4
video/x-tivo-mpeg4
video/mpeg4

All result in the video recording showing with a red circle with a line through it for prohibited transfer. Says that video is not compatible with the dvr.

Going to have to wait until the weekend to setup a hub for packet capture of the Youtube HME app.
Back to top
View user's profile Send private message
PaulS



Joined: 04 Jan 2008
Posts: 140

PostPosted: Thu Jul 31, 2008 8:32 am    Post subject: Reply with quote

rdian06 wrote:
So I modified my pyTivo (latest krkeegan git) to pass mp4 files unprocessed. My S3 with 9.4 software rejects it soon after the transfer begins.

Then I tried changing the tmpl file to use different mime types instead of video/x-tivo-mpeg. I used:

video/mp4
video/x-tivo-mp4
video/x-tivo-mpeg4
video/mpeg4

All result in the video recording showing with a red circle with a line through it for prohibited transfer. Says that video is not compatible with the dvr.

Going to have to wait until the weekend to setup a hub for packet capture of the Youtube HME app.


Yup. This mirrors what I experienced a few weeks ago when I was playing with it.

Definitely let us know what you find when you get your capture set up.
Back to top
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 226

PostPosted: Thu Jul 31, 2008 4:52 pm    Post subject: Reply with quote

BTW, if you are adjusting the 'format' option in the config or web admin to change the output to something other than vob, I found out a couple days ago that the function to get the new format from the config was improperly named ever since I created the new ffmpeg template a few months ago. It's now been corrected.
_________________
Download pyTivo
my pyTivo branch
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 369

PostPosted: Thu Jul 31, 2008 6:47 pm    Post subject: Reply with quote

wgw wrote:
BTW, if you are adjusting the 'format' option in the config or web admin to change the output to something other than vob, I found out a couple days ago that the function to get the new format from the config was improperly named ever since I created the new ffmpeg template a few months ago. It's now been corrected.


Ah. Shouldn't have mattered. I found the code lines for exempting .tivo files from transcoding and added similar ones for .mp4 . So I didn't need to touch my conf file at all.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 444

PostPosted: Fri Aug 01, 2008 6:32 am    Post subject: Reply with quote

Now that I have 9.4:

rectalogic wrote:
It might be worth trying with a drop-dead simple HME app like this one, pointing to the skatedog.mp4 test video:

http://www.tivocommunity.com/tivo-vb/showthread.php?p=6197976#post6197976

That actually works -- sound only, at the moment. Hang on while I try changing the MIME type... ooh, wait, I saw a still of the dog as I pressed the TiVo button... nope, no difference from changing the MIME type. How about the resolution? ...no, that doesn't help either. Still, it's tantalizingly close to working.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
PaulS



Joined: 04 Jan 2008
Posts: 140

PostPosted: Fri Aug 01, 2008 6:35 am    Post subject: Reply with quote

Wow! So close....
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 444

PostPosted: Fri Aug 01, 2008 7:53 am    Post subject: Reply with quote

And it turns out that it's sufficient to set the resource of the root view to the newly created stream. Like so:

Code:
import hme

TITLE = 'Video Test'
CLASS_NAME = 'VidTest'

class VidTest(hme.Application):
    def startup(self):
        stream = hme.Stream(self, 'http://%s/test.mp4' %
                            self.context.headers['host'])
        self.root.set_resource(stream)

I'm getting some errors, so I still have to sort that out, but it works.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
PaulS



Joined: 04 Jan 2008
Posts: 140

PostPosted: Fri Aug 01, 2008 8:33 am    Post subject: Reply with quote

wmcbrine wrote:
And it turns out that it's sufficient to set the resource of the root view to the newly created stream. Like so:

I'm getting some errors, so I still have to sort that out, but it works.


First of all, this is awesome!

So, what are the implications going forward as far as HMO versus HME ?
How difficult would integrating something like this into pyTivo be ?
Back to top
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 226

PostPosted: Fri Aug 01, 2008 2:09 pm    Post subject: Reply with quote

And there was more rejoicing. Smile
_________________
Download pyTivo
my pyTivo branch
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 369

PostPosted: Fri Aug 01, 2008 3:38 pm    Post subject: Reply with quote

So being somewhat of a newbie and not having looked into HME, does HME give you the capability to store things to the Tivo's hard drive for later playback? Or is it just pick and play the stream from some remote location?
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 369

PostPosted: Fri Aug 01, 2008 3:49 pm    Post subject: Reply with quote

Also, what happens when you pass a high def mp4? And an mp4 with AAC 5.1?

I really hope they implemented AAC 5.1 playback since there is no other 5.1 format supported in mp4.
Back to top
View user's profile Send private message
KyleR96



Joined: 13 Jun 2008
Posts: 3
Location: Lewisville, TX

PostPosted: Sat Aug 02, 2008 3:28 pm    Post subject: Reply with quote

I took a HD mkv and converted it to mp4 format using the same method as for the PS3 and it works but the sound is ahead of the video and after about 5 mins the TiVo will suddenly drop back to LiveTV. I haven't tested the video on my PC to see if the file is the problem yet but my TiVo seem to have no problem playing the video in HD. So far I have tested with two TiVoHDs. I haven't tried my S3 yet.
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 369

PostPosted: Sat Aug 02, 2008 3:49 pm    Post subject: Reply with quote

KyleR96 wrote:
I took a HD mkv and converted it to mp4 format using the same method as for the PS3 and it works but the sound is ahead of the video and after about 5 mins the TiVo will suddenly drop back to LiveTV. I haven't tested the video on my PC to see if the file is the problem yet but my TiVo seem to have no problem playing the video in HD. So far I have tested with two TiVoHDs. I haven't tried my S3 yet.


This is using a skeleton HME app as wmcbrine described?
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
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.4486s ][ Queries: 13 (0.0811s) ][ Debug on ]