|
| Author |
Message |
wmcbrine

Joined: 04 Jan 2008 Posts: 444
|
Posted: Sat Jul 19, 2008 12:29 pm Post subject: |
|
|
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 |
|
 |
rectalogic
Joined: 17 Jul 2008 Posts: 8
|
Posted: Sun Jul 20, 2008 11:43 am Post subject: |
|
|
| 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 |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Thu Jul 31, 2008 8:13 am Post subject: |
|
|
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 |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 140
|
Posted: Thu Jul 31, 2008 8:32 am Post subject: |
|
|
| 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 |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 226
|
Posted: Thu Jul 31, 2008 4:52 pm Post subject: |
|
|
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 |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Thu Jul 31, 2008 6:47 pm Post subject: |
|
|
| 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 |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 444
|
Posted: Fri Aug 01, 2008 6:32 am Post subject: |
|
|
Now that I have 9.4:
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 |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 140
|
Posted: Fri Aug 01, 2008 6:35 am Post subject: |
|
|
| Wow! So close.... |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 444
|
Posted: Fri Aug 01, 2008 7:53 am Post subject: |
|
|
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 |
|
 |
PaulS
Joined: 04 Jan 2008 Posts: 140
|
Posted: Fri Aug 01, 2008 8:33 am Post subject: |
|
|
| 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 |
|
 |
wgw
Joined: 06 Jan 2008 Posts: 226
|
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Fri Aug 01, 2008 3:38 pm Post subject: |
|
|
| 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 |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Fri Aug 01, 2008 3:49 pm Post subject: |
|
|
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 |
|
 |
KyleR96
Joined: 13 Jun 2008 Posts: 3 Location: Lewisville, TX
|
Posted: Sat Aug 02, 2008 3:28 pm Post subject: |
|
|
| 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 |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Sat Aug 02, 2008 3:49 pm Post subject: |
|
|
| 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 |
|
 |
|