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

pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    So, post it...

    Then pyTivo isn't running.
     
  2. jilter

    jilter Happy to be here.

    8,802
    2
    Oct 4, 2002
    Thank you very much for your time in replying. I have been at this all morning, and I decided to delete all my pyTivo folders and files and start from scratch.
    I was able to finally see the pyTivo page and I am on number 11 in your EXCELLENT pyTivo-Wiki-Windows Install:
    "Click on Web Configuration link to change your pyTivo settings."
    That link does not appear, at the top is just pyTivo
    and Settings .
    I guess I missed something in the install,
    Thanks for your patience.
     
  3. jilter

    jilter Happy to be here.

    8,802
    2
    Oct 4, 2002
    Interesting: when I run pyTivo from the Command Line, I get the following.
    PLEASE NOTE - I had to edit the below to separate the INFO: from the letter 'P"
    because on this forum that produces a smile icon and one is limited to 8 per post. I wonder why I have not come across someone posting about that before? (insignificant but I felt I should point out the spaces between INFO: and pyTivo...are inserted after for posting on this forum - (I left one smilie in so one could see what I am referring to)



    INFO: pyTivo:Last modified: Mon Apr 21 12:36:46 2014
    INFO: pyTivo:python: 2.7.6
    INFO: pyTivo:System: Windows-XP-5.1.2600-SP2
    ERROR: pyTivo.config:Bad ffmpeg path: /usr/bin/ffmpeg
    INFO: pyTivo.beacon:Scanning for TiVos...
    INFO: pyTivo.beacon:Series3
    INFO: pyTivo.beacon:Announcing shares...
    INFO: pyTivo.beacon:Registering: MyMovies
    INFO: pyTivo:pyTivo is ready.
    INFO: pyTivo:10.0.0.9 [10/May/2014 13:14:40] "GET /TiVoConnect?Command=QueryConta
    iner&Container=%2F HTTP/1.0" 200 -
    INFO: pyTivo:127.0.0.1 [10/May/2014 13:18:49] "GET / HTTP/1.1" 200 -
     
  4. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    When you want to post something like this w/o the smilies, "Go advanced" and either surround it with "CODE" tags (my preference) or turn off smilies.
     
  5. moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    That looks normal, then click on "Settings" and then choose "Global Server Settings" and fix the path to ffmpeg.exe which is currently wrong in your setup. Then click on "videos" and put in path to where your video files reside and save and restart pyTivo using the so-named buttons.
     
  6. jilter

    jilter Happy to be here.

    8,802
    2
    Oct 4, 2002
    Thank you.
    I was able to see the shares from my Tivo.
    This interface with pyTivo is completely different than I remember.
    It used to be a program installed in my Programs list and I could choose between Service or Console.
    I am so happy just to be able to pull videos from my PC right now, but my curiosity is getting the best of me. Could that have been a different version of pyTivo I was using?
     
  7. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    I never used it, but I would guess that you were probably using the Windows Installer, which hasn't worked for many years.
     
  8. jilter

    jilter Happy to be here.

    8,802
    2
    Oct 4, 2002
    I see, so how do people typically start pyTivo?

    Also, after scouting around, I experimented with transferring an MP4 file to my Tivo. The file was much smaller and thus the transfer much faster than the first one I tried (xvid). I do not recall using MP4s before. Has Tivo always been able to read MP4 files?
     
  9. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    I guess most run it as a service, but I just run it in a command prompt window. That way I can see what's going on.

    Series 4 (Premiere) and later can play h.264. Make sure you have "ts=on" in the pyTivo.conf.
     
  10. mattack

    mattack Active Member

    20,750
    4
    Apr 9, 2001
    sunnyvale
    I only recently set up pytivo (I used to use pyTivoX, which is really old), and I am not intending to do any conversion, so as far as I remember, all I have changed from the default is add my path, and I set a user setting to use transport format (so I still get captions).

    I've transferred various things, but trying to transfer back my recent downloads of Marvel's Agents of SHIELD, it seems like one command is giving another command bad input, so I have basically CLI prompts interspersed in the output.. Here's the whole output...

    What else do I need to set up to be able to transfer these properly back to my Tivo?

    Thanks.

    INFO:pyTivo.video.video:[10/May/2014 20:11:46] Start sending "/Volumes/tivo3/kmttgdownloads/Marvels Agents of S.H.I.E.L.D/05_06_2014 Ragtag 121.mpg" to Premiere4
    ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 9 2013 10:18:52 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
    configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --arch=x86_64 --enable-runtime-cpudetect
    libavutil 52. 38.100 / 52. 38.100
    libavcodec 55. 18.102 / 55. 18.102
    libavformat 55. 12.100 / 55. 12.100
    libavdevice 55. 3.100 / 55. 3.100
    libavfilter 3. 79.101 / 3. 79.101
    libswscale 2. 3.100 / 2. 3.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 3.100 / 52. 3.100
    [mpeg2video @ 0x7fde58803200] Invalid frame dimensions 0x0.
    Last message repeated 3 times
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=97507, dts=97508, size=6860
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=106516, dts=106517, size=6753
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=115525, dts=115526, size=1502
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=124534, dts=124535, size=6476
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=133543, dts=133544, size=4019
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=142552, dts=142553, size=6905
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=151561, dts=151562, size=6370
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=160570, dts=160571, size=749
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=169579, dts=169580, size=8172
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=178588, dts=178589, size=5140
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=187597, dts=187598, size=5661
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=196606, dts=196607, size=7168
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=205615, dts=205616, size=1569
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=214624, dts=214625, size=6942
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=223633, dts=223634, size=13777
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=232642, dts=232643, size=20762
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=241651, dts=241652, size=1210
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=250660, dts=250661, size=1413
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=259669, dts=259670, size=2594
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=268678, dts=268679, size=1304
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=277687, dts=277688, size=3332
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=286696, dts=286697, size=2796
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=295705, dts=295706, size=678
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=304714, dts=304715, size=2799
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=313723, dts=313724, size=2324
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=322732, dts=322733, size=2723
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=331741, dts=331742, size=2723
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=340750, dts=340751, size=693
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=349759, dts=349760, size=2908
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=358768, dts=358769, size=3092
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=367777, dts=367778, size=2733
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=376786, dts=376787, size=3267
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=385795, dts=385796, size=702
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=394804, dts=394805, size=3275
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=403813, dts=403814, size=2900
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=412822, dts=412823, size=663
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=430840, dts=430841, size=700
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=439849, dts=439850, size=700
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=448858, dts=448859, size=699
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=457867, dts=457868, size=701
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=466876, dts=466877, size=701
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=475885, dts=475886, size=701
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=484894, dts=484895, size=702
    Input #0, mpeg, from '/Volumes/tivo3/kmttgdownloads/Marvels Agents of S.H.I.E.L.D/05_06_2014 Ragtag 121.mpg':
    Duration: 01:03:00.91, start: 0.435233, bitrate: 6752 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Please use -b:a or -b:v, -b is ambiguous
    Output #0, mpegts, to 'pipe:':
    Metadata:
    encoder : Lavf55.12.100
    Stream #0:0: Video: mpeg2video, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 6368 kb/s, 59.94 fps, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=97507, dts=97508, size=6860
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=106516, dts=106517, size=6753
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=115525, dts=115526, size=1502
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=124534, dts=124535, size=6476
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=133543, dts=133544, size=4019
    [mpeg @ 0x7fde5881a600] Invalid timestamps stream=0, pts=142552, dts=142553, size=6905
    [mpegts @ 0x7fde58b1c000] first pts value must be set
    av_interleaved_write_frame(): Invalid data found when processing input
    INFO:pyTivo.video.video:[10/May/2014 20:11:47] Done sending "/Volumes/tivo3/kmttgdownloads/Marvels Agents of S.H.I.E.L.D/05_06_2014 Ragtag 121.mpg" to Premiere4, 34216 bytes, 0.86 Mb/s
     
  11. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Even the Series 3 will accept h.264, in MP4 files, but only via Push.
     
  12. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Mattack,

    Did you transfer them to the computer in TS format? If so, what did you use to convert them to mpg?

    Did you add "ts=on" to the pyTivo global settings?

    I would suggest running QS fix, but only if you have VideoReDo. The projectx version doesn't retain captions.
     
  13. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    You could undo the ts=on setting, since the remux is failing. (Yes, then you'd lose captions.)

    From the command line, try this:

    ffmpeg -i filename.mpg -vcodec copy -acodec copy -fflags +genpts newfile.ts

    and then try transferring that new file.
     
  14. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    huh. Learn something new everyday.
     
  15. ZombiE

    ZombiE TIVO Bender

    210
    0
    Dec 16, 2005
    Fort Walton...
    Hi everyone!

    I have been running pytivo for, I can't remember how many years? 6, 7 anyway my server MB died on my this past weekend and in setting up my new "server" I found myself staring at the screen trying to figure out how to set pytivo back up? So naturally I came here, 156 pages of Pytivo info!!!!! OMG. Can someone please point me to a ---> how to set up pytivo from scratch?
    I also upgraded from XP to Win 7 on that computer. I am hoping that all programs will run ok on win7? Thank you to whomever can point me in the correct direction so I can help myself. :)
     
  16. ZombiE

    ZombiE TIVO Bender

    210
    0
    Dec 16, 2005
    Fort Walton...
    Hi everyone!

    I have been running pytivo for, I can't remember how many years? 6, 7 anyway my server MB died on my this past weekend and in setting up my new "server" I found myself staring at the screen trying to figure out how to set pytivo back up? So naturally I came here, 156 pages of Pytivo info!!!!! OMG. Can someone please point me to a ---> how to set up pytivo from scratch?
    I also upgraded from XP to Win 7 on that computer. I am hoping that all programs will run ok on win7? Thank you to whomever can point me in the correct direction so I can help myself. :)
     
  17. gonzotek

    gonzotek tivo_xml developer

    2,404
    3
    Sep 24, 2004
    Outside...
    Windows 7 should be fine. I run pyTiVo on several windows 7 machines. Follow the steps in the link below and post here for help if you need it.
    http://pytivo.sourceforge.net/wiki/index.php/Windows_Install
     
  18. ZombiE

    ZombiE TIVO Bender

    210
    0
    Dec 16, 2005
    Fort Walton...
    Thank you GonZotek! Appreciate the nudge. Hopefully when I get going my brain will start to remember, ha!
     
  19. mattack

    mattack Active Member

    20,750
    4
    Apr 9, 2001
    sunnyvale
    I'm doing this all on a Mac.. so obviously I can't do any of that.

    I did not transfer them to the computer in TS format.. I simply tivodecoded them (err, kmttg did).

    I sure thought moyekj told me in some other thread that I *didn't* have to originally transfer them in TS format to be able to transfer them _back_ in TS format.

    I'll try turning off the ts=on. I thought I tried that before, but maybe not.
     
  20. moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    When transferring FROM TiVo in either TS or PS container captions are preserved. The problem is for series 4 and later TiVos when you transfer back it has to be in TS container else captions won't work. So if transferring back in PS container you have to use ts=on setting in pyTivo to preserve captions.

    Based on mattack's pyTivo log post above he already has ts=on setting, so pyTivo is using ffmpeg to remux from PS to TS container as expected, but the problem is that is failing. Hence wmcbrine suggested a manual fix to try to see if it solves the problem by adding "-fflags +genpts" option to ffmpeg remux command.

    If you remove ts=on it should transfer back as is and thus won't use ffmpeg and it should work, but you won't have captions in the resulting transfer.
     

Share This Page