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 

Missing progress bar in pulled show

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



Joined: 14 Jul 2012
Posts: 2

PostPosted: Sun Jul 15, 2012 10:40 am    Post subject: Missing progress bar in pulled show Reply with quote

I recently switched from using gopchop to dvbcut for lossless editing of shows. I download a show via pyTivo, and then edit it down via dvbcut to a new .mpg. It works great except that if I pull the resultant .mpg back onto the TiVo, it's somehow not completely compatible. The most obvious problem is that there's no green progress bar on playback. Although playing the show itself works fine, things like fast-forward also don't work.

Does anybody know what can cause this? E.g. Is there some headers problem with the output from dvbcut?

I read through How to make mpegs/vobs compatible with TiVo and pyTivo, but I'm on Linux so I can't try Mpeg StreamClip like it suggests, and vcdgear just segfaults. Also, I'm not seeing early termination of transfers, but is there a way to see if invalid timestamps can be the culprit?

I ran ffmpeg/avconv and was able to get a working file if I convert it to a VOB (i.e. -f vob). So I guess my next question would be if there's anything lost in such a conversion? For example, if I run mpginfo on the original file it shows "Audio : Mpeg 1 layer 3; 64 kbps 44100 Hz", but on the VOB it shows "Audio : Mpeg 1 layer 1; 416 kbps 48000 Hz". Is that a real change in the audio stream, or is mpginfo not reporting it correctly? And, am I missing an option for avconv to "fix" the mpg file without having to convert it?

Sorry if these are dumb questions... I'm still learning about this stuff.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2627
Location: Maryland

PostPosted: Sun Jul 15, 2012 6:43 pm    Post subject: Reply with quote

I can't be sure from what you've posted if it's a real change in the soundtrack. Run "ffmpeg -i filename" and see what it says. But I can tell you that you wouldn't be getting MP3 soundtracks from TiVo recordings.

Successful playback with no green in the bar is what I used to see with MPEG-1/VCD-style muxing. I made pyTivo remux these automatically; however, ffmpeg can't actually tell the difference (when decoding), so the test is based on whether the video track is MPEG-1 or MPEG-2. In the theoretical case of MPEG-2 video in a VCD container, it wouldn't be remuxed. You can force remuxing by specifying a bogus container type in the metadata, e.g.:

Override_container: foo

If you want to do it yourself from the command line, it would be something like "ffmpeg -i oldfile -vcodec copy -acodec copy -f vob newfile". If you're not using the "copy" codecs, it is being reencoded.

I actually use an old version of TyTool under Wine to edit my TiVo files. ISTR I tried gopchop but was dissatisfied, but I don't remember the details. I haven't tried dvbcut.

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
mhk76



Joined: 14 Jul 2012
Posts: 2

PostPosted: Tue Jul 17, 2012 11:06 am    Post subject: Reply with quote

Thanks for the fast response! Yeah, gopchop had done the job for me, but it's a little unpolished. For example, it doesn't have sound and only shows frame numbers (not hours/mins/secs). dvbcut has a nice logarithmic slider that makes it easy to hone in on the frame you want, once you get used to it.

Here's what I get from "ffmpeg -i filename" with the original file from my TiVo HD (1 hour, 1 minute):
Code:
[mpeg2video @ 0xc78f40] mpeg_decode_postinit() failure
    Last message repeated 16 times
[mpeg @ 0xc767a0] Invalid timestamps stream=1, pts=362662, dts=362663, size=7128
[mpeg @ 0xc767a0] Invalid timestamps stream=1, pts=407707, dts=407708, size=4104
[mpeg @ 0xc767a0] Invalid timestamps stream=1, pts=452752, dts=452753, size=3000
[mpeg @ 0xc767a0] max_analyze_duration reached

Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 59.94 (60000/1001)
Input #0, mpeg, from 'Shark Tank - 4942922.mpg':
  Duration: 01:01:01.46, start: 1.000000, bitrate: 3104 kb/s
    Stream #0.0[0x1bd]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.1[0x1e0]: Video: mpeg2video (Main), yuv420p, 528x480 [PAR 40:33 DAR 4:3], 15000 kb/s, 31.42 fps, 59.94 tbr, 90k tbn, 59.94 tbc


For the file output by dvbcut (1 minute):
Code:
[mpeg @ 0x16a87a0] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 30000.00 (30000/1)
Input #0, mpeg, from 'clip.mpg':
  Duration: 00:01:00.54, start: 0.235744, bitrate: 3340 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 528x480 [PAR 40:33 DAR 4:3], 9500 kb/s, 29.97 fps, 30k tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s


For the file output by 'ffmpeg -i clip.mpg -vcodec copy -acodec copy -f vob clip-vob.mpg" (1 minute), which works with the TiVo:
Code:
[mpeg @ 0x13107a0] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 30000.00 (30000/1)
Input #0, mpeg, from 'clip-vob.mpg':
  Duration: 00:01:00.96, start: 1.000000, bitrate: 3352 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 528x480 [PAR 40:33 DAR 4:3], 9500 kb/s, 29.97 fps, 30k tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s


So is the conversion to a VOB lossless? I.e. Can I just store my edits in that format (by using ffmpeg for the conversion) and not lose any info, even if I want to use the clips outside of my TiVo?

And is there a way to detect what container is being used? dvbcut is kind of old, so maybe it is using the VCD container as you suggest (my impression is that VCD is old-school).

Ultimately, I'm trying to decide if I can stick with dvbcut, or if I should go back to gopchop because at least I know its output files work with pyTivo.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2627
Location: Maryland

PostPosted: Tue Jul 17, 2012 5:23 pm    Post subject: Reply with quote

mhk76 wrote:
So is the conversion to a VOB lossless? I.e. Can I just store my edits in that format (by using ffmpeg for the conversion) and not lose any info, even if I want to use the clips outside of my TiVo?

Yes. Although you might also want to look at some additional options, such as buffer size. The reason I said "something like" that line was because I didn't want to look up the exact syntax. Smile

Quote:
And is there a way to detect what container is being used?

Well, like I said, not with ffmpeg. Maybe with some other tool; I dunno. Of course you could always transfer the file to the TiVo and see if it gets a green bar. Smile

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT
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

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.0656s ][ Queries: 12 (0.0080s) ][ GZIP on - Debug on ]