TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Home Media Features & TiVoToGo
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 04-18-2009, 10:37 PM   #451
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
What happened to the speed?

Recently I have noticed a marked drop in transfer on our programs. I often "bank" a few minutes before I start to play the show and was able to watch the entire show without any pauses due to transfer. Now I get it frequently.

Odd- anyone have any thoughts on this??
Latest release, 10.5.6 G5, iTivo content

Tad
TadK is offline   Reply With Quote
Old 04-18-2009, 10:57 PM   #452
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by TadK View Post
Recently I have noticed a marked drop in transfer on our programs. I often "bank" a few minutes before I start to play the show and was able to watch the entire show without any pauses due to transfer. Now I get it frequently.

Odd- anyone have any thoughts on this??
Latest release, 10.5.6 G5, iTivo content

Tad
is this with streaming (Photos, music, showcases) or pytivo (now playing...)?

Is your network wired or wireless?

Any other computers on the network that might be doing stuff on the network? (downloading a torrent for example?)

Is your desktop computer busy doing other things? Especially since it's a G5, you probably want to keep the computer unbusy if you're transcoding.

(leading to Is the source streamed as-is or is transcoding necessary (i.e. what format did you use when downloading with iTiVo?)

It's hard to guess with so little information, but my instinct is that you're either transferring more data per minute of show (higher bandwidth/quality recording) or your network is 'congested' -- made more likely if it's wireless and the router got moved, or the transmitter is closer to the wall...

But with more info we can probably narrow it down and possibly fix it...

To answer your question, I have not noticed any such problems on my home network.
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-19-2009, 11:39 AM   #453
tiny-e
Registered User
 
tiny-e's Avatar
 
Join Date: Apr 2007
Location: Up North, WI
Posts: 32
Quote:
Originally Posted by wmcbrine View Post
No, and it never will. You can use it for photos and music, but the video portion is only compatible with standalone TiVos.
Rats. Well, that sucks. Tivoserver is hit & miss at best (plus no working native Intel or Universal binary)... Man I wish someone would build it (i've tried with no success).

thanks for helping me straighten this out.
__________________
___________________________
DTivo S2 DSR7000 @ 6.2a
200 gig HD, "Standard suite of hacks"
::::::::::This place is the Mecca of run-on threads::::::::::
(Don't blame me. I voted for Kodos)
tiny-e is offline   Reply With Quote
Old 04-20-2009, 11:38 PM   #454
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
What is it...

Quote:
Originally Posted by Yoav View Post
is this with streaming (Photos, music, showcases) or pytivo (now playing...)?

Is your network wired or wireless? Wired

Any other computers on the network that might be doing stuff on the network? (downloading a torrent for example?) THe network is pretty light. I obviously do not attempt to pull a show from the TiVo while downloading another to the Now Playing

Is your desktop computer busy doing other things? Especially since it's a G5, you probably want to keep the computer unbusy if you're transcoding. ..again- keeping it light while transcoding

(leading to Is the source streamed as-is or is transcoding necessary (i.e. what format did you use when downloading with iTiVo?)I guess this is the interesting part to some degree, although some further tinkering is required. If I have a DVD that I ripped, and encoded using Visual Hub (using the TiVo preset), things seem to transfer fine. I think the issue has been more with the content I've pulled from the TiVo using itivo. My original setup was using "decrypt." I've started to venture out to try some of the other settings but the encoding times are a joke....

It's hard to guess with so little information, but my instinct is that you're either transferring more data per minute of show (higher bandwidth/quality recording) or your network is 'congested' -- made more likely if it's wireless and the router got moved, or the transmitter is closer to the wall...I guess it is likely the attempt to push too much data at the Tivo that makes the most sense to me as I think this has been since I started using itivo. I suppose I could go back and re-encoding things again through VH, but isn't that why I'm using pyTivoX? Argh.

If anyone has a favorite itivo setting to suggest, I'd give it a whirl- as always, I appreciate everyone's comments and help.


But with more info we can probably narrow it down and possibly fix it...

To answer your question, I have not noticed any such problems on my home network.
Tad
TadK is offline   Reply With Quote
Old 04-21-2009, 02:15 AM   #455
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by TadK View Post
Tad
For some reason the first question wasn't answred (pytivo or streambaby). I'm going to assume pytivo for this answer, but either program would have the same issues:

If you notice it with iTivo in 'decrypt' and not with encoding you made with visualhub, then I would guess that the decrypt (i.e. the native format from the tivo) is failing the 'can it be streamed' test in pytivo/streambaby, and therefore it is actually re-encoding the file as it sends the file. This would cause a slowdown as the computer has to work to convert instead of just send files as-is (and on a G5 that would definitely tax the computer).

You can check if that's happening by looking at the logs for either pytivo (/tmp/pyTivoX.log) or streambaby (/tmp/pyTivoX-SB.log). There would be invocation of ffmpeg in there for transcoding.

If that's the case, I'm guessing that's a bug since I'm pretty sure you can stream original tivo data without converting it. We can work to fix it (but lets see if that's indeed the case).
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-21-2009, 05:53 AM   #456
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
Tad, your reply is nearly illegible. Please multi-quote instead of just putting your answers in red in the quote box. You're making extra work for your readers, who are trying to help you.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is online now   Reply With Quote
Old 04-22-2009, 07:01 PM   #457
mohanman
Registered User
 
Join Date: Dec 2007
Posts: 99
HI, thanks for the great program, I have been using it frequently. I have an iMac which has the software on it, and a tivo series 3. Pytivo works just fine (transferring the show), but I can't get streambaby to work, if I click on it using my tivo, nothing happens, just a please wait ..

which lasts for several minutes

What am I doing wrong??

Thanks for everything
Mo
mohanman is offline   Reply With Quote
Old 04-22-2009, 07:55 PM   #458
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by mohanman View Post
I can't get streambaby to work, if I click on it using my tivo, nothing happens, just a please wait ..

which lasts for several minutes
I'm a little unclear on the meaning of 'click on it'..
Do you go to My Photos, Music, Showcases?
Does the pyTivoX streambaby thing show up? Do you click on that? is that when the 'please wait..' happens? Or do you select a show and *then* the please wait happens?

Also, are you using the beta of pyTivoX, or release 1.1?
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-22-2009, 08:00 PM   #459
mohanman
Registered User
 
Join Date: Dec 2007
Posts: 99
Quote:
Originally Posted by Yoav View Post
I'm a little unclear on the meaning of 'click on it'..
Do you go to My Photos, Music, Showcases?
Does the pyTivoX streambaby thing show up? Do you click on that? is that when the 'please wait..' happens? Or do you select a show and *then* the please wait happens?

Also, are you using the beta of pyTivoX, or release 1.1?
Yeah I go through Photos/Music/Showcases, see the imac.local and select that with my remote on the tivo. Then it says please wait, and nothing ever happens. I am using version 1.2b10, should I go back a version or two?

Thanks
Mo
mohanman is offline   Reply With Quote
Old 04-22-2009, 09:04 PM   #460
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Quote:
Originally Posted by Yoav View Post
...You can check if that's happening by looking at the logs for either pytivo (/tmp/pyTivoX.log) or streambaby (/tmp/pyTivoX-SB.log). There would be invocation of ffmpeg in there for transcoding.
I apologize for not clarifying that the issue was pytivo related and not SB. I pulled the log file for an episode of "Lost" that I attempted to load. You'd know better than I if it is envoking FFmpeg in there... I believe that it is? Here is the beginning of the log.

Wednesday, April 22, 2009 8:51:54 PM US/Eastern
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:07] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:09] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:10] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary&SortOrder=Title&ItemCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:13] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:13] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows&SortOrder=!CaptureDate&ItemCount =8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:16] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:16] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows%2FLost&SortOrder=!CaptureDate&It emCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:19] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:19] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows%2FLost&SortOrder=!CaptureDate&It emCount=8&AnchorItem=%2FOur%2520Video%2520Library%2FTelevisi on%2520Shows%2FLost%2FLost%2520-%2520This%2520Place%2520Is%2520Death.mpg&AnchorOffset=-6&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:23] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:23] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows%2FLost&SortOrder=!CaptureDate&It emCount=8&AnchorItem=%2FOur%2520Video%2520Library%2FTelevisi on%2520Shows%2FLost%2FLost%2520-%2520He%2527s%2520Our%2520You.mpg&AnchorOffset=-3&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:25] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:25] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows%2FLost&SortOrder=!CaptureDate&It emCount=1&AnchorItem=%2FOur%2520Video%2520Library%2FTelevisi on%2520Shows%2FLost%2FLost%2520-%2520Dead%2520Is%2520Dead.mpg&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:26] "GET /TiVoConnect?Command=TVBusQuery&Container=Our%20Video%20Libra ry&File=%2FTelevision%20Shows%2FLost%2FLost%20-%20Dead%20Is%20Dead.mpg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [22/Apr/2009 20:52:34] "GET /Our%20Video%20Library/Television%20Shows/Lost/Lost%20-%20Dead%20Is%20Dead.mpg HTTP/1.1" 200 -
FFmpeg version SVN-r18519, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --shlibdir=@executable_path --arch=ppc --cpu=G4 --enable-shared --disable-static --enable-pthreads --disable-mmx --enable-gpl --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libx264 --extra-cflags='-DHAVE_LLRINT -I/Users/yoav/src/lame/include -I/Users/yoav/src/faad2-2.7/include -I/Users/yoav/src/faac-1.28/include -I/Users/yoav/src/x264' --extra-ldflags='-L/Users/yoav/src/lame/libmp3lame/.libs -L/Users/yoav/src/faad2-2.7/libfaad/.libs -L/Users/yoav/src/faac-1.28/libfaac/.libs -L/Users/yoav/src/x264/'
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.25. 0 / 52.25. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Apr 14 2009 21:59:01, gcc: 4.0.1 (Apple Inc. build 5484)

Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Input #0, mpeg, from '/Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg':
Duration: 01:02:01.53, start: 0.833922, bitrate: 6015 kb/s
Stream #0.0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.1[0x1e0]: Video: mpeg2video, yuv420p, 480x480 [PAR 4:3 DAR 4:3], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
Output #0, vob, to 'pipe:':
Stream #0.0: Video: mpeg2video, yuv420p, 544x480 [PAR 20:17 DAR 4:3], q=2-31, 4096 kb/s, 90k tbn, 29.97 tbc
Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 8 fps= 0 q=3.3 size= 0kB time=0.23 bitrate= 0.0kbits/s
frame= 15 fps= 8 q=4.9 size= 400kB time=0.47 bitrate=7014.7kbits/s
frame= 23 fps= 9 q=4.0 size= 512kB time=0.73 bitrate=5713.8kbits/s
frame= 33 fps= 11 q=3.8 size= 676kB time=1.07 bitrate=5186.5kbits/s
frame= 42 fps= 12 q=3.5 size= 830kB time=1.37 bitrate=4970.2kbits/s

yadda, yadda, yadda....
TadK is offline   Reply With Quote
Old 04-22-2009, 10:42 PM   #461
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
It is transcoding, though I'm not sure why. Turn on debug to see the reason.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is online now   Reply With Quote
Old 04-23-2009, 01:36 AM   #462
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by mohanman View Post
Yeah I go through Photos/Music/Showcases, see the imac.local and select that with my remote on the tivo. Then it says please wait, and nothing ever happens. I am using version 1.2b10, should I go back a version or two?

Thanks
Mo
Nah, if you're sticking with the beta (1.2 is the beta branch right now) then you may as well use the latest.

Ok so for some reason it is failing to generate the list of what movies are available. I'm assuming something goes wrong, and hopefully it prints out some useful info in the log... Can you open up Terminal.app and run
Code:
 tail -50 /tmp/pyTivoX-SB.log
or if you're using the LATEST beta (as of today), run
Code:
 tail -50 ~/Library/Logs/pyTivoX/streambaby.log
Anything interesting in there?
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by Yoav : 04-23-2009 at 03:23 AM.
Yoav is offline   Reply With Quote
Old 04-23-2009, 01:39 AM   #463
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by wmcbrine View Post
It is transcoding, though I'm not sure why. Turn on debug to see the reason.
(to turn on debug, you'll need to edit the file
Code:
 <user>/Library/Application Support/pyTivoX/pyTivo.conf
and in a new line right after Port=9032, add

debug=True

Then exit pyTivoX, and start it again.
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-23-2009, 07:23 AM   #464
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Have modified conf file to include debug statement and restarted. I am assuming that I would need to draw a movie over and review the log file to see this debug information?
TadK is offline   Reply With Quote
Old 04-23-2009, 12:45 PM   #465
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by TadK View Post
Have modified conf file to include debug statement and restarted. I am assuming that I would need to draw a movie over and review the log file to see this debug information?
Presumably.. Debug lines in the log will start with the word "DEBUG", you're probably looking for some invocation of 'ffmpeg' and information around it as to why it's choosing to transcode.
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-23-2009, 08:59 PM   #466
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Debug log

I am attaching log file- was unable to post here due to forum limitation (image references??) See attached txt file.
Tad
Attached Files
File Type: txt pyTivoX.txt (21.7 KB, 5 views)
TadK is offline   Reply With Quote
Old 04-23-2009, 09:06 PM   #467
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by TadK View Post
I am attaching log file- was unable to post here due to forum limitation (image references??) See attached txt file.
Tad
I believe the following lines from your logs explain why it's transcoding:
Code:
DEBUG:pyTivo.video.transcode:TRANSCODE=YES, 59.94 vFps, should be 29.97, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:/Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg is not tivo compatible
....
DEBUG:root:transcoding to tivo model 649 using ffmpeg command:
Looks like the original video is set to 60fps, your tivo series 649 (a S2 directivo) is unable to play that.

So, either pytivo is misprobing your tivo and assuming it can't play it, or it's probing correctly, in which case the transcoding makes sense.... ?

Since it's Lost, which comes off
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-23-2009, 11:01 PM   #468
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Yoav,
The Tivo is a Serie 2 Standalone unit - no Direct TV.
I follow you that the the frame rate is off and thereby causing it to kickstart the transcoding. I am just not sure why or if this is resolvable.

I'm using iTivo in decrypt to pull the content off the tivo and pytivox to feed it back- so I'm not clear on why the frame rates are so out of whack....
TadK is offline   Reply With Quote
Old 04-23-2009, 11:04 PM   #469
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Quote:
Originally Posted by Yoav View Post

Since it's Lost, which comes off
is part of your post missing here??
TadK is offline   Reply With Quote
Old 04-24-2009, 12:03 AM   #470
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by TadK View Post
is part of your post missing here??
oops yeah
I was gonna say that ABC broadcasts in 720p, which is supposedly 60fps. But if you pull it off the tivo and it's a series 2, then it's not an HD recording and therefore that's not the reason.

Ok, so fwiw, I just tried pulling an SD show off my Series 3, and it is also exhibiting this 'issue'. Notably, the container frame rate is 60 fps, while the actual frame rate of the video is 30 fps. I'm wondering if that's a bad 'ffmpeg', a bad 'tivodecode', or if tivos just do that... and if so, should pyTivo ignore the container and trust the video stream?

From your log:
Code:
Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Input #0, mpeg, from '/Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg':
  Duration: 01:02:01.53, start: 0.833922, bitrate: 6015 kb/s
    Stream #0.0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.1[0x1e0]: Video: mpeg2video, yuv420p, 480x480 [PAR 4:3 DAR 4:3], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
Output #0, vob, to 'pipe:':
    Stream #0.0: Video: mpeg2video, yuv420p, 544x480 [PAR 20:17 DAR 4:3], q=2-31, 4096 kb/s, 90k tbn, 29.97 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Note the source is actually at 30 fps (29.97 tbr,..., 59.94 tbc).. I'm not a codec weenie though, so the question is how pytivo determines if it's 60 or 30 fps.

wmcbrine?
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by Yoav : 04-24-2009 at 12:18 AM.
Yoav is offline   Reply With Quote
Old 04-24-2009, 12:29 AM   #471
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Ok from sitting and looking at the code, I see what's going on:

transcode.py has the following regexp to figure out the framerate:
Code:
    rezre = re.compile(r'.*Video: .+, (.+) (?:fps|tb).*')
applied to
Code:
    Stream #0.1[0x1e0]: Video: mpeg2video, yuv420p, 480x480 [PAR 4:3 DAR 4:3], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
since there's both a tbr (correct) and tbc (incorrect) value on that line, the regexp swallows as
much as it can into the first .+, and then pulls the tbc value into x.group(1). After this
there is some code to correct for some versions of ffmpeg and a videoredo issue, but nothing
that would fix this.

So some code needs to be added to pytivo to address this behavior of the new ffmpeg....
I'm not sure why it's fps:tb.. but presumably if there's a tbc and tbr value, it should use
the tbr value... Or there may be a more 'correct fix'. Either way Tad you're gonna
have to deal with the transcoding for a little while longer
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by Yoav : 04-24-2009 at 12:47 AM.
Yoav is offline   Reply With Quote
Old 04-24-2009, 04:10 PM   #472
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Yoav,
I'm glad to have stumbled on to this- knowing the power of pytivox- I would hate for someone new to it to try it and think that the transfer rate is slow. I am constantly amazed at the brain-trust here and am sure that a fix will present itself.

Tad
TadK is offline   Reply With Quote
Old 04-24-2009, 06:59 PM   #473
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
I missed this because I was mostly testing with an S3, which accepts the 59.94 rate without transcoding.

I have a tentative workaround... only, I like to know what the frak I'm doing, and I can't find actual documentation of "tbr" etc. anywhere. What does it even stand for? Maybe I'll have to consult the ffmpeg source code to figure it out.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is online now   Reply With Quote
Old 04-24-2009, 07:36 PM   #474
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by wmcbrine View Post
I missed this because I was mostly testing with an S3, which accepts the 59.94 rate without transcoding.

I have a tentative workaround... only, I like to know what the frak I'm doing, and I can't find actual documentation of "tbr" etc. anywhere. What does it even stand for? Maybe I'll have to consult the ffmpeg source code to figure it out.
Well, I'm not much help here either, but from the ffmpeg source, this seems like the relevant code (libavformat/utils.c):
Code:
    if(st->codec->codec_type == CODEC_TYPE_VIDEO){
        if(st->r_frame_rate.den && st->r_frame_rate.num)
            print_fps(av_q2d(st->r_frame_rate), "tbr");
        if(st->time_base.den && st->time_base.num)
            print_fps(1/av_q2d(st->time_base), "tbn");
        if(st->codec->time_base.den && st->codec->time_base.num)
            print_fps(1/av_q2d(st->codec->time_base), "tbc");
Seems like tbr, tbc and tbn are all computed for video streams, each with a different meaning. Running back through the code it seems that the tbr is 'corrected' based on values later printed out as tbn and tbc (whereas tbn and tbc are associated with the length of a frame according to the codec). So I'm guessing tbr is the 'normal' meaning of frame rate, and the other two are codec/container related values... Just for kicks I looked at what ffmpeg prints out for an mp4 rip I made with handbrake... :

Code:
ffmpeg -i /Volumes/External\ Disk/movies/Action/X-Men\ \(2000\).m4v 

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 59.94 (60000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/External Disk/movies/Action/X-Men (2000).m4v':
  Duration: 01:44:18.72, start: 0.-100188, bitrate: 2451 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 720x304, 59.94 tbr, 48k tbn, 47.95 tbc
When I asked mplayer for its opinion of the framerate of that movie, I got:
Code:
mplayer  -identify /Volumes/External\ Disk/movies/Action/X-Men\ \(2000\).m4v 
...
ID_VIDEO_FPS=59.940
...
So it definitely seems like tbr is the right value to go with (at least in both these cases).

edit : I also came across this patch for handbrake that seems to point at a new behavior in ffmpeg related to framerates, which may explain why it's happening with the new ffmpeg and wasn't seen before: http://forum.handbrake.fr/viewtopic.php?f=4&t=10108
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-24-2009, 08:20 PM   #475
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
Yeah... sort of. I grepped the ffmpeg source myself and found a little more info, but it's still vague.

Anyway, I've committed my workaround to the repo. It fixes several of my test videos. However, I still have one video (that came from a Series 2 TiVo!) which comes up as 29.97 with an older version of ffmpeg, and 59.94 with 0.5 -- and it doesn't show 29.97 anywhere. I'm wondering now if I should just pass through 59.94 as valid for the Series 2. It's a kludge, but I don't see it going wrong too often -- the only real use of 59.94 is in 720p video, AFAIK, and that would still be flagged to reencode due to the resolution.

Edit: I went ahead and did that, too. Fingers crossed.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 04-24-2009 at 08:33 PM.
wmcbrine is online now   Reply With Quote
Old 04-24-2009, 08:34 PM   #476
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by wmcbrine View Post
It's a kludge, but I don't see it going wrong too often -- the only real use of 59.94 is in 720p video, AFAIK, and that would still be flagged to reencode due to the resolution.
Updating pyTivoX beta to include your new code changes.. I suppose at worst if 'the kludge' doesn't work, we'll hear about it...

Tad is it working now?
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by Yoav : 04-24-2009 at 08:40 PM.
Yoav is offline   Reply With Quote
Old 04-24-2009, 10:20 PM   #477
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Testing beta changes

Below is the log dump for your review. I brought over LOST again to see if there was a noticeable difference.Video is loading quicker now- certainly faster than before...

INFO:pyTivo:pyTivo is ready.
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:13:30] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:13:58] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:00] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:00] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary&SortOrder=Title&ItemCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:03] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:03] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows&SortOrder=!CaptureDate&ItemCount =8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:05] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:06] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows%2FLost&SortOrder=!CaptureDate&It emCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:08] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
DEBUG:root:starting ffmpeg, will wait 10 seconds for it to complete
DEBUG:root:ffmpeg output=FFmpeg version SVN-r18664, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --shlibdir=@executable_path --arch=ppc --cpu=G4 --enable-shared --disable-static --enable-pthreads --disable-mmx --enable-gpl --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libx264 --extra-cflags='-DHAVE_LLRINT -I/Users/yoav/src/lame/include -I/Users/yoav/src/faad2-2.7/include -I/Users/yoav/src/faac-1.28/include -I/Users/yoav/src/x264' --extra-ldflags='-L/Users/yoav/src/lame/libmp3lame/.libs -L/Users/yoav/src/faad2-2.7/libfaad/.libs -L/Users/yoav/src/faac-1.28/libfaac/.libs -L/Users/yoav/src/x264/'
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.27. 0 / 52.27. 0
libavformat 52.32. 0 / 52.32. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
built on Apr 22 2009 23:15:53, gcc: 4.0.1 (Apple Inc. build 5484)

Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002)
Input #0, mpeg, from '/Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg':
Duration: 01:02:01.53, start: 0.833922, bitrate: 6015 kb/s
Stream #0.0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.1[0x1e0]: Video: mpeg2video, yuv420p, 480x480 [PAR 4:3 DAR 4:3], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
At least one output file must be specified

DEBUG:pyTivo.video.transcode:aFreq=48000; vFps=29.97; container=mpeg; kbps=6015; mapAudio=[('0.0', '[0x1c0]')]; vHeight=480; vCodec=mpeg2video; Supported=True; millisecs=3721530; par=None; aKbps=192; par2=1.33333333333; par1=4:3; mapVideo=0.1; vWidth=480; dar1=4:3; aCodec=mp2
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:TRANSCODE=NO, all compatible, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:TRANSCODE=NO, all compatible, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:08] "GET /TiVoConnect?Command=QueryContainer&Container=Our%20Video%20L ibrary%2FTelevision%20Shows%2FLost&SortOrder=!CaptureDate&It emCount=1&AnchorItem=%2FOur%2520Video%2520Library%2FTelevisi on%2520Shows%2FLost%2FLost%2520-%2520Dead%2520Is%2520Dead.mpg&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:TRANSCODE=NO, all compatible, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:TRANSCODE=NO, all compatible, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:09] "GET /TiVoConnect?Command=TVBusQuery&Container=Our%20Video%20Libra ry&File=%2FTelevision%20Shows%2FLost%2FLost%20-%20Dead%20Is%20Dead.mpg HTTP/1.1" 200 -
INFO:pyTivo:192.168.2.3 [24/Apr/2009 22:14:31] "GET /Our%20Video%20Library/Television%20Shows/Lost/Lost%20-%20Dead%20Is%20Dead.mpg HTTP/1.1" 200 -
DEBUG:root:CACHE HIT! /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:TRANSCODE=NO, all compatible, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
DEBUG:pyTivo.video.transcode:/Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg is tivo compatible
TadK is offline   Reply With Quote
Old 04-24-2009, 10:22 PM   #478
TadK
Registered User
 
Join Date: Oct 2007
Posts: 19
Forgot to mention

I am constantly amazed by you guys....
TadK is offline   Reply With Quote
Old 04-24-2009, 11:09 PM   #479
Yoav
Registered User
 
Join Date: Jan 2007
Posts: 1,048
Quote:
Originally Posted by TadK View Post
I am constantly amazed by you guys....
Code:
DEBUG:pyTivo.video.transcode:TRANSCODE=NO, all compatible, /Volumes/TiVoShows/Television Shows/Lost/Lost - Dead Is Dead.mpg
So at least for this video, it looks like it's now doing the right thing...

Cool, and you can thank wmcbrine for fixing it this quickly...

-- yoav
__________________
Don't pay for Tivo Desktop / Roxio on the mac:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Yoav is offline   Reply With Quote
Old 04-25-2009, 05:47 AM   #480
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 9,113
Quote:
Originally Posted by Yoav View Post
I suppose at worst if 'the kludge' doesn't work, we'll hear about it...
Oh, I knew it worked. My concern was (and is) that it might work "too well", passing through something it shouldn't.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is online now   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 03:28 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |