1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iTiVo (TiVo -> mac -> iPhone)

Discussion in 'TiVo Home Media Features & TiVoToGo' started by Yoav, Nov 6, 2008.

  1. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    The beta version seemed to fix the issue. Downloaded 11.9G without a hiccup. You're right about the progress bar. I happened to be sitting in front of it as it finished, and it was saying like 9min to completion for a few minutes, and then just finished - good news was it TRULY was finished.
     
  2. philby85

    philby85 New Member

    15
    0
    Mar 21, 2009
    Hi Yoav,

    Looks like I am back with the itivo family! The widget worked well then just stopped working. I have uninstalled it as you said.

    I downloaded a HD recording today I used the ps3 preset and it came out in 4:3 aspect ratio. If I do mpeg 2 HD its 16:9 not sure on that one.

    I have been using the command you gave me earlier to get around the 4 tries issue. Works well. Is there any possibility to put a switch in the prefs to toggle it on and off?

    cheers

    Philby
     
  3. moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    FYI, another way to calculate progress without having to rely on curl output is just to poll the current output file size (that's what I do in kmttg).
     
  4. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    (itivo is a munged up piece of applescript inherited from tivodecodemanager. Features were added on top, but the core is the old code. As written, it can't look at the output file size because in the original scenario, the output is fed via a named pipe to tivodecode which feeds to mencoder... so the final output is an unrelated size, and you can't look at the temporary values ---

    clearly the *right* fix would be a re-write, and that would allow for parallel downloads from multiple tivos etc.... but with the code as is, the file size is not available.. All that's available is what curl reports)
     
  5. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Check out the latest beta. Under the advanced prefs there is a new value for 'number of retries'. If you set that to zero it will just accept whatever it gets with one download attempt (what you asked for).

    However, if you set it to 0 and discover that downloads are teminating early for other reasons, you will probably want to raise it back.
     
  6. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Yoav,

    I don't know if it's been mentioned, but I think I found a bug in the 1.7.6b3 beta. 1st of all, I tried setting iTivo as one of my Login items. It works, but each time it comes up with the message "Warning, use at your own risk etc. etc..." It's like the pref's are wiped out. In addition, my subscriptions get erased each time I log in like that. I've repeated that 3 times now. Logging out and logging back in recreate the snafu.

    -fate
     
  7. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    both the prefs AND the subscriptions are written out to <user>/Library/... Is it possible that iTiVo is having problems writing out to that location (which would explain why it resets each time)? I didnt make any code changes that should have impacted the preferences, so I'm surprised it's only happening with 1.7.6b3...

    Is it only having problems when run as a Login item? (There may be some issue with write permissions for login items?).
     
  8. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Yes, only as a login item. To be a little more clear - it's not the actual preferences within iTivo that are being overwritten... Those stay the same - download location, iphone preset... etc. It's just that when the program launches it always prompts me "This program is under active development.." Like it's the first time I opened it. And, yes, all the subscriptions are wiped out. Strange.

    -fate

    Oh, and as for writing to the user/library folder, I haven't moved it to another drive or anything... it's on the boot drive right in the OS X default location.
     
  9. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ahh, there was a piece of code changed to automatically 'accept' that popup after 20 seconds of inactivity.. maybe that behaves 'oddly' when auto-launched? I'll look into it.
     
  10. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Ok I think I see the problem with the popup. Basically, it doesn't record that you've seen the popup unless you do a clean exit from iTiVo at the end of your session, or you change some preferences setting. Since it sounds like you're running it in the background all the time, you probably only 'exit' it by rebooting and such.

    If you go into
    Code:
    <user>/Library/Preferences/com.iTivo.iTiVo.plist
    just find the Launchcount value, and change it to 1 or somesuch, and that should make the popup go away. (Or launch iTiVo by hand, set up your prefs as you like it, and do a clean exit).
     
  11. philby85

    philby85 New Member

    15
    0
    Mar 21, 2009
    Hi Yoav,

    Thank you so much for this I really appreciate it!:up:

    The files that I have the problem with are 10 min kids shows. I pad at the front by 1 min and at the end by 2 minutes. So I am not sure on why it thinks they are partial recordings. Could be the way that channel sets things up. It is the government run station here in Australia.

    Is there any possibility in the future of separating the show lists into groups?

    In regard to the ps3 setting that we chatted about. If i just decode the show using decrypt it's 16:9 If I use the Ps3 preset they are squished up.

    With the show that I have just used the decode setting I can convert it to mp4 with streamclip and it stays 16:9.

    Thanks again so much. i wish I could paypal you a donation?

    regards

    Phil
     
  12. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I don't know why it thinks that they are incomplete, but the tivo is definitely reporting the file sizes as some value, but then only provides part of that size. Anyways, setting retries to 0 will avoid you problem.

    All I can say about the PS3 setting is that when I tried it with an HD feed it was widescreen on my quicktime player and my VLC player. I'm really at a loss as to why it's not on yours.

    There is always a 'possibility' of seperating the shows into groups, but it's a fairly large code change, and the applescript code there really isn't very pretty, so I'm more inclined to do a full re-write than making the code change, and neither of those are high on my priority list. However, you can at least get partway to what you want by clicking the word 'Show' above the names. That will sort all the programs by show-name instead of the tivo default sorting (you can click on any of the column names to pick those as the sort order).
     
  13. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Thanks for the insight. I'm traveling right now and will try it when I get a chance. Do you think the "subscription issue" is related to this as well? I'll report back.
     
  14. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Well, I haven't got too far. found the com.itivo.itivo.plist file. I tried to edit it in textedit and it was gibberish. So I trashed the preference. But here's the kicker. now it's gone. And it doesn't come back when I open iTivo. But my "settings" are still in iTivo (download location, format etc.)

    Even after exiting iTivo "cleanly" I couldn't get it to work as a startup item. Each time the computer logs in, it prompts me with the popup, and the subscriptions get erased. If I enter a new subscription, and exit iTivo normally, restarting iTivo normally keeps the subscription. But, quitting, logging off, and logging back in with iTivo set as a startup item kills reprompts me and kills the subscriptions.

    Have you been able to duplicate this?
     
  15. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Let me see if I understood correctly: When you load up iTiVo, set up your preferences, and exit, there is NO com.itivo.itivo.plist file? If so, something is definitely 'odd' with your setup, and something is preventing itivo from writing things to <user>/Library/Preferences, and that would explain all the issues you're having. I'm not sure WHY this is happening though... Did you change permissions on the directories in there?
     
  16. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    No, I've changed nothing. Actually, this mac is BRAND new. Just got it last week. To update, the plist file finally DID show up. I had to change a preference to make it appear. I though simply opening and closing would create a new preference. I guess only if you change something? In any case. It's back...

    So, to test, I created a new administrator user. Logged in under that name and installed 1.7.5. I was able to create a com.itivo.itivo.plist file. So far so good. I added a subscription. I set itivo as a login item. exited normally. Logged out and back in. The prompt came up (interestingly, it didn't come up the first time I actually opened it under the new user name) and the subscription was erased.

    To further troubleshoot, I tried the same process on my wife's iMac. Same result. pop up at each login and erased subscriptions. Have you tried this yourself?

    Can I give you any more information?
     
  17. fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Yoav,

    I've made one more discovery. iTivo only behaves this way (the startup issue) when the "hide" checkbox is checked in the login items. My goal is to run iTivo in the background automatically downloading subscriptions. If I add iTivo to the login items and leave the checkbox empty, the program starts up normally. Any reason, the "hide" feature would wreak havoc with iTivo?
     
  18. Apr 4, 2009 #378 of 741
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    I'm not entirely sure. iTiVo uses applescript calls to render things on the display. Although I *think* those still complete correctly when the display isn't there / is hidden, there might be a difference between 'hidden' after it launches and 'hidden' from the checkbox (it might completely skip rendering the visual in the first place, which may cause issues). I'm not finding anything useful in apple's documentation about the 'hide' checkbox.. :(
     
  19. Apr 6, 2009 #379 of 741
    fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    :sigh:

    Well, I thought I made some great progress with my desire to find a preset to passthrough ac3 to a high quality archive using comskip. I used a test .mpg decrypt file in the Handbrake GUI using the Quicktime preset (with the bitrate MUCH higher and ac3 passthrough enabled). The encode went fine and the transfer back to the tivo went seamlessly via pytivox (though the audio was out of sync if STREAMED but that's another thread). Transcoding back to mpeg 2 was no problem.

    So, I plugged my Handbrake CLI options into iTivo and I think iTivo crashed. Here's the resulting log of the event. Any ideas? I'll try mencoder options, but the info that I've found on audio options are more cryptic and just using -oac copy seems to crash as well.




    2009-04-06 00:32:27 is download complete 1 / 3
    sh: line 1: 11717 Terminated /Applications/iTiVo.app/Contents/Resources/HandBrakeCLI -e x264 -b7000 -f mp4 -4 -2 -T -a 1,1 -E ac3,faac -B auto,160 -R auto,48 -6 auto,dpl2 -x ref=4:mixed-refs=1:bframes=3:weightb=1:direct=auto:me=umh:subq=6:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1: psy-rd=1,1:b-pyramid=1 -o /Volumes/Video/Tivo\ Shows/1test/Planet\ Earth\ -\ Fresh\ Water.m4v -i /tmp/iTiVo-Tom/iTiVoDLPipe2.mpg > /tmp/iTiVo-Tom/iTiVoDL2 2>&1 < /dev/null
    2009-04-06 00:32:30 killed : HandBrakeCLI:11717 ,
    2009-04-06 00:32:30 is download complete 1 / 3
    2009-04-06 00:32:30 is download complete 1 / 3
    2009-04-06 00:32:30 Complete=true , 85&#37; fullfilesize=4989.5 ; currentfilesize=5398
    2009-04-06 00:32:30 perl /Applications/iTiVo.app/Contents/Resources/GetExtraInfo.pl 192.168.1.89
     
  20. Apr 6, 2009 #380 of 741
    fatespawn

    fatespawn New Member

    139
    0
    Oct 14, 2007
    Chicagoish, IL
    Yoav,

    I tried the standard Quicktime 10mbps preset (with comskip) and the encoding fails. The download completes, comskip completes, then about half way through the encoding, the download starts all over again. Here is a piece of the log file.

    2009-04-06 07:36:51 mencoder timeout: 70 download:1 timeRemaining: 200 timeOn:0 currentPercent: 0
    2009-04-06 07:36:52 mencoder timeout: 71 download:1 timeRemaining: 200 timeOn:0 currentPercent: 0
    2009-04-06 07:36:52 Download completed
    2009-04-06 07:36:52 is download complete 1 / 3
    2009-04-06 07:36:56 killed :
    2009-04-06 07:36:56 is download complete 1 / 3
    2009-04-06 07:36:57 killed :
    2009-04-06 07:36:57 rm -f /tmp/iTiVo-Tom/iTiVoDLPipe* /tmp/iTiVo-Tom/iTiVoTDC* /tmp/iTiVo-Tom/iTiVoDLMeta*
    2009-04-06 07:36:57 mkfifo /tmp/iTiVo-Tom/iTiVoDLPipe ; touch /tmp/iTiVo-Tom/iTiVoDLPipe{2,3}.mpg
    2009-04-06 07:36:57 perl /Applications/iTiVo.app/Contents/Resources/http-fetcher.pl 192.168.1.89 1619892 Planet&#37;5C%20Earth xxxxxxxxxx /tmp/iTiVo-Tom/iTiVoDLPipe >> /tmp/iTiVo-Tom/iTiVo.log 2>&1 & echo $! ;exit 0
    2009-04-06 07:36:57 perl /Applications/iTiVo.app/Contents/Resources/tivo-decoder.pl %2FApplications%2FiTiVo%2Eapp%2F xxxxxxxxxx >> /tmp/iTiVo-Tom/iTiVo.log 2>&1 & echo $! ;exit 0
    curl 'http://192.168.1.89:80/download/Planet%5C%20Earth.TiVo?Container=%2FNowPlaying&id=1619892' -c /tmp/cookies.txt --retry 12 --retry-delay 10 --digest -u tivo:xxxxxxxxxx -o /tmp/iTiVo-Tom/iTiVoDLPipe --stderr /tmp/iTiVo-Tom/iTiVoDL
    2009-04-06 07:36:57 Informing via Growl
    2009-04-06 07:36:57 timeout: 0 currentFileSize: 0 fullFileSize:5870
    /Applications/iTiVo.app/Contents/Resources/tivodecode -n -D -m xxxxxxxxxx -o /tmp/iTiVo-Tom/iTiVoDLPipe2.mpg /tmp/iTiVo-Tom/iTiVoDLPipe
    2009-04-06 07:36:58 timeout: 0 currentFileSize: 5398 fullFileSize:5870
    2009-04-06 07:36:58 timeout: 1 currentFileSize: 2.95639038085938e-05 fullFileSize:5870
    2009-04-06 07:36:59 timeout: 2 currentFileSize: 2.95639038085938e-05 fullFileSize:5870
    2009-04-06 07:36:59 timeout: 3 currentFileSize: 0 fullFileSize:5870
    Encryption by QUALCOMM ;)
     

Share This Page