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
KyleR96



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

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

rdian06 wrote:

This is using a skeleton HME app as wmcbrine described?


Yes that is correct.
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 463

PostPosted: Sat Aug 02, 2008 4:16 pm    Post subject: Reply with quote

Got a link to the method you're using to convert the mkv to mp4? Just curious if it's cooking the audio.
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 4:37 pm    Post subject: Reply with quote

rdian06 wrote:
Got a link to the method you're using to convert the mkv to mp4? Just curious if it's cooking the audio.


Here is the one I tried:

http://clipmarks.com/clipmark/D052FB6C-9138-4DC3-B63C-7792BCC076CA/

I think this converts the audio to stereo. I wanted something that worked on linux. I'm trying out GOTSent right now.

I did play the file I convert on my PC and it had the same sound sync problem so its not the TiVo.
Back to top
View user's profile Send private message
Tennesotans



Joined: 08 Jul 2008
Posts: 4

PostPosted: Thu Aug 07, 2008 11:24 am    Post subject: Reply with quote

If I understand this thread, y'all have found a way of playing h264 on your Tivo with a custom script/HME. What resolution h264 can the Tivo HD decode? 720p? 1080p? Does this play with pause, 30 sec skip, ff, rw...??

I'd MUCH rather use my Tivo HD than buy a blu-ray player Wink
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Thu Aug 07, 2008 2:58 pm    Post subject: Reply with quote

I've played a 1280x720p 24fps h264 file with no trouble. I'll try 1080i/p when I find them... I'd be surprised if they didn't work.

Trick play works if you program it. Currently I have it doing pause/play/ff/rw, but not skip/replay yet. (This requires a slightly more complex app than the one I posted here. I'll post it on TCF in the "Video Streaming in HME" thread later. Meanwhile, you can get some additional functionality from Allanon's version, if you can't write it yourself.)

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



Joined: 12 Apr 2008
Posts: 463

PostPosted: Thu Aug 07, 2008 6:39 pm    Post subject: Reply with quote

wmcbrine wrote:
I've played a 1280x720p 24fps h264 file with no trouble. I'll try 1080i/p when I find them... I'd be surprised if they didn't work.

Trick play works if you program it. Currently I have it doing pause/play/ff/rw, but not skip/replay yet. (This requires a slightly more complex app than the one I posted here. I'll post it on TCF in the "Video Streaming in HME" thread later. Meanwhile, you can get some additional functionality from Allanon's version, if you can't write it yourself.)


Nice. Have you tried anything with AAC 5.1 audio? Or does it only handle AAC stereo?
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Thu Aug 07, 2008 8:20 pm    Post subject: Reply with quote

I myself have only stereo equipment, sorry.
_________________
My pyTivo fork
Back to top
View user's profile Send private message
Tennesotans



Joined: 08 Jul 2008
Posts: 4

PostPosted: Fri Aug 08, 2008 7:19 am    Post subject: Reply with quote

Sounds promising... I will see if I set this up... I will report back Smile
Back to top
View user's profile Send private message
MasterCephus



Joined: 04 Jan 2008
Posts: 173
Location: Hueytown, AL

PostPosted: Wed Aug 13, 2008 10:11 am    Post subject: Reply with quote

So to summarize, wmcbrine, you can successfully send a h.264 file to the Tivo and it will play without it having to be transcoded using the HME stuff you speced out?
_________________
MetaGenerator
pyTivo Manager
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Wed Aug 13, 2008 11:22 am    Post subject: Reply with quote

Yes. But, only in that way. After some failed experiments, I've decided that I'm not going to spend any more time trying to do it through pyTivo until we know that it can be done at all via HMO (rather than HME) -- presumably when TiVo Desktop 2.7 comes out.
_________________
My pyTivo fork
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 463

PostPosted: Tue Sep 16, 2008 4:02 pm    Post subject: Reply with quote

Don't mean to get anyones' hopes up prematurely. Just wanted to add a few links to relevant information for if/when we start pursuing the h264 HMO route again.

1) h264 + AC3 5.1 audio in an mp4 container will work with HME streaming currently. See:

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

2) ffmpeg as of SVN 15184 (tweaked again in SVN 15197) has AC3 muxing support for mov/mp4/m4v. Meaning my recent SVN 15216 build should be able to turn an h264 + AC3 mkv into an h264 + AC3 mp4 file by just simple remuxing or do just audio transcoding and remuxing for h264 + AC3 high bit rate/DTS/AAC to h264 + AC3 mp4.

3) Streaming/transferring an mp4 container out of ffmpeg on the fly will be problematic because mp4 streaming requires transplanting the moov atom from the end of the file to the beginning of the file using a utility called qt-faststart that is part of the ffmpeg utils suite.

See http://multimedia.cx/eggs/improving-qt-faststart/

A pure Python version of qt-faststart.py exists here:

http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2008-September/052952.html

Basic research on qt-faststart and ffmpeg indicates that the moov atom is normally moved as part of a second pass and that the whole of original file where mdat atom appears before moov atom must be available for the second pass to begin.

My conjecture at this time is that we either have to figure out if ffmpeg can be modified to somehow determine the moov atom by scanning the input file and then generating the moov before the streaming begins (so that it can send the moov atom before mdat atom) OR hope that Tivo will be made to accept an EVO or MPEG2-TS container for HMO in the future.
Back to top
View user's profile Send private message
jcthorne



Joined: 30 Jan 2008
Posts: 27
Location: Houston, TX

PostPosted: Wed Sep 17, 2008 9:52 am    Post subject: Reply with quote

Heck I'd be happy with a two step process.

Convert the mkv to an MP4 and then let pytivo/ffmpeg stream it to Tivo.

Got my hopes up you did! Smile
Back to top
View user's profile Send private message
PaulS



Joined: 04 Jan 2008
Posts: 148

PostPosted: Wed Sep 17, 2008 10:19 am    Post subject: Reply with quote

Absolutely. Dealing with these MKV files is more trouble that it's worth.
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 463

PostPosted: Wed Sep 17, 2008 11:13 am    Post subject: Reply with quote

jcthorne wrote:
Heck I'd be happy with a two step process.

Convert the mkv to an MP4 and then let pytivo/ffmpeg stream it to Tivo.

Got my hopes up you did! Smile


Actually, I believe with HME (using moyekj's tivostream or wmcbrine's HME/VLC Video Streamer) and my latest ffmpeg build with the new AC3 muxing for MP4 support, the two step process is possible now. As I explained above, the conversion process would take an h264 + AC3/DTS/AAC mkv and remux + transcode the audio to h264 + AC3 384k mp4. The video shouldn't require any transcoding (though I don't know if there is a limit to the bitrate that the Tivo HME playback can handle).

The ffmpeg command line would look something like this (assuming my.mkv has h264 video and you have an ffmpeg SVN 15197 or higher) :

Code:

ffmpeg -i my.mkv -vcodec copy -ab 448k -ar 48000 -acodec ac3 -copyts -f mp4 my.mp4


Then you have to run my.mp4 through either the compiled c version of qt-faststart or the python version of qt-faststart.py (see previous post) to move the moov atom to the front of the file for streaming.

I don't have time to test this right now because I don't have tivostream or HME/VLC Video streamer setup yet. Plus I have been devoting what time I do have to ffmpeg building. But the key is that moyekj has already confirmed that h264 video + AC3 audio in an mp4 processed by qt-faststart works with the Tivo.

No HMO yet with pyTivo, but hopefully in the future.
Back to top
View user's profile Send private message
jcthorne



Joined: 30 Jan 2008
Posts: 27
Location: Houston, TX

PostPosted: Thu Sep 18, 2008 10:57 am    Post subject: Reply with quote

Sorry, I should not have said streaming. What I am looking for is HMO I suppose. I don't mind the two step process, heck most of the mkv files have to be preprocessed before pytivo gets them now. But I would like to store h.264 video on the tivo rather than mpeg2 for the significant space savings.

I do not and will not stream from a file server to tivo. Streaming in real time for HD video is a loosing proposition with Tivo due to its overhead for network operations. And I do not want a file server independent of the Tivo running 24/7 for cost of operation reasons. Tivo is pretty energy efficient, even with large drives attached. PC file servers are not.

Really look forward to this h264 being a part of pytivo storing the video on the Tivo. Heck, I'd really like to find a way to move our music and photo data to tivo or a very efficient NAS device.
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 5 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.3048s ][ Queries: 13 (0.1988s) ][ Debug on ]