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. seattlewendell

    seattlewendell New Member

    248
    0
    Jan 11, 2006
    The steps are followed are from here:
    http://pytivo.sourceforge.net/wiki/index.php/Mac_OS_X_Install

    -I downloaded it. Renamed your pytivo-master file to pyTivo and then moved it to the applications folder.
    -Created the bin folder
    -Downloaded and moved FFMPEG 1.1 (the one with a build date of 1/8/2013) to the bin folder
    -created the config file with the only thing in it being [Server]
    everything else in the config file I posted abovewas put there by the web GUI
    -I run it using:
    cd /path/to/pyTivo/pyTivo.py
    ./pyTivo.py
    -I used the GUI to add all the folders, push functions, MAK, etc.

    [​IMG]

    There are no other versions on my system. As I stated I also tried the lucasnz fork but have since deleted it, and reinstalled the wmcbrine fork. The attached images are from the current install which is the wmcbrine fork.

    I will put the terminal output in separate post.
     

    Attached Files:

  2. seattlewendell

    seattlewendell New Member

    248
    0
    Jan 11, 2006
    Output from terminal for a current transfer. The transfer is about 20 minutes in when I took this snapshots

    Last login: Fri May 23 23:11:57 on ttys000
    Wendells-iMac:~ Wendell-iMac3$ cd /Applications/pyTivo
    Wendells-iMac:pyTivo Wendell-iMac3$ ./pyTivo.py
    INFO:pyTivo:Last modified: Mon Apr 21 12:36:46 2014
    INFO:pyTivo:python: 2.7.6
    INFO:pyTivo:System: Darwin-13.2.0-x86_64-i386-64bit
    Python Imaging Library not found; using FFmpeg
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo.beacon:Tivo-LR
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: Movies
    INFO:pyTivo.beacon:Registering: Photos
    INFO:pyTivo.beacon:Registering: TV Shows
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:48:22] "GET /TiVoConnect?Command=QueryContainer&Container=%2F&DoGenres=1 HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:02] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:02] "GET /TiVoConnect?Command=QueryContainer&Container=Movies&Recurse=Yes&SortOrder=!CaptureDate&ItemCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*&SerialNum=748000190435C62 HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:05] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:06] "GET /TiVoConnect?Command=QueryContainer&Container=Movies&Recurse=Yes&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2FMovies%2FRoboCop%25202014%2520720p%2520BluRay%2520DTS%2520x264.mkv&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*&SerialNum=748000190435C62 HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:06] "GET /TiVoConnect?Command=TVBusQuery&Container=Movies&File=%2FRoboCop%202014%20720p%20BluRay%20DTS%20x264.mkv&SerialNum=748000190435C62 HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:15] "GET /Movies/RoboCop%202014%20720p%20BluRay%20DTS%20x264.mkv?Format=video%2Fx-tivo-mpeg HTTP/1.1" 206 -
    INFO:pyTivo.video.video:[23/May/2014 23:49:15] Start sending "/Volumes/WD 1TB/Movies/RoboCop 2014 720p BluRay DTS x264.mkv" to Tivo-LR
    ffmpeg version 1.1-pytivo Copyright (c) 2000-2013 the FFmpeg developers
    built on Jan 8 2013 15:00:31 with gcc 4.7.2 (MacPorts gcc47 4.7.2_2+universal)
    configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --mandir=/opt/local/share/man --enable-pthreads --cc=/opt/local/bin/gcc-mp-4.7 --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --disable-shared --enable-static --enable-swscale --enable-avfilter --enable-runtime-cpudetect --enable-hardcoded-tables --enable-postproc --enable-libx264
    libavutil 52. 13.100 / 52. 13.100
    libavcodec 54. 86.100 / 54. 86.100
    libavformat 54. 59.106 / 54. 59.106
    libavdevice 54. 3.102 / 54. 3.102
    libavfilter 3. 32.100 / 3. 32.100
    libswscale 2. 1.103 / 2. 1.103
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 2.100 / 52. 2.100
    [matroska,webm @ 0x101804a00] Stream #2: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #3: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #4: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #5: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #6: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #7: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #8: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #9: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #10: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #11: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #12: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #13: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #14: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Stream #15: not enough frames to estimate rate; consider increasing probesize
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 14 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [matroska,webm @ 0x101804a00] Could not find codec parameters for stream 15 (Subtitle: hdmv_pgs_subtitle): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, matroska,webm, from '/Volumes/WD 1TB/Movies/RoboCop 2014 720p BluRay DTS x264.mkv':
    Metadata:
    creation_time : 2014-05-08 14:55:57
    Duration: 01:57:29.22, start: 0.000000, bitrate: 7060 kb/s
    Chapter #0.0: start 0.000000, end 273.899000
    Metadata:
    title : 00:00:00.000
    Chapter #0.1: start 273.899000, end 531.740000
    Metadata:
    title : 00:04:33.899
    Chapter #0.2: start 531.740000, end 873.915000
    Metadata:
    title : 00:08:51.740
    Chapter #0.3: start 873.915000, end 1021.604000
    Metadata:
    title : 00:14:33.915
    Chapter #0.4: start 1021.604000, end 1167.041000
    Metadata:
    title : 00:17:01.604
    Chapter #0.5: start 1167.041000, end 1312.937000
    Metadata:
    title : 00:19:27.041
    Chapter #0.6: start 1312.937000, end 1573.572000
    Metadata:
    title : 00:21:52.937
    Chapter #0.7: start 1573.572000, end 1847.971000
    Metadata:
    title : 00:26:13.572
    Chapter #0.8: start 1847.971000, end 1968.675000
    Metadata:
    title : 00:30:47.971
    Chapter #0.9: start 1968.675000, end 2172.379000
    Metadata:
    title : 00:32:48.675
    Chapter #0.10: start 2172.379000, end 2346.970000
    Metadata:
    title : 00:36:12.379
    Chapter #0.11: start 2346.970000, end 2583.498000
    Metadata:
    title : 00:39:06.970
    Chapter #0.12: start 2583.498000, end 2740.655000
    Metadata:
    title : 00:43:03.498
    Chapter #0.13: start 2740.655000, end 3130.377000
    Metadata:
    title : 00:45:40.655
    Chapter #0.14: start 3130.377000, end 3441.188000
    Metadata:
    title : 00:52:10.377
    Chapter #0.15: start 3441.188000, end 3683.889000
    Metadata:
    title : 00:57:21.188
    Chapter #0.16: start 3683.889000, end 3779.901000
    Metadata:
    title : 01:01:23.889
    Chapter #0.17: start 3779.901000, end 3965.920000
    Metadata:
    title : 01:02:59.901
    Chapter #0.18: start 3965.920000, end 4230.476000
    Metadata:
    title : 01:06:05.920
    Chapter #0.19: start 4230.476000, end 4406.527000
    Metadata:
    title : 01:10:30.476
    Chapter #0.20: start 4406.527000, end 4704.867000
    Metadata:
    title : 01:13:26.527
    Chapter #0.21: start 4704.867000, end 4916.203000
    Metadata:
    title : 01:18:24.867
    Chapter #0.22: start 4916.203000, end 5164.993000
    Metadata:
    title : 01:21:56.203
    Chapter #0.23: start 5164.993000, end 5286.907000
    Metadata:
    title : 01:26:04.993
    Chapter #0.24: start 5286.907000, end 5522.976000
    Metadata:
    title : 01:28:06.907
    Chapter #0.25: start 5522.976000, end 5752.956000
    Metadata:
    title : 01:32:02.976
    Chapter #0.26: start 5752.956000, end 5910.655000
    Metadata:
    title : 01:35:52.956
    Chapter #0.27: start 5910.655000, end 6090.751000
    Metadata:
    title : 01:38:30.655
    Chapter #0.28: start 6090.751000, end 6224.635000
    Metadata:
    title : 01:41:30.751
    Chapter #0.29: start 6224.635000, end 6401.562000
    Metadata:
    title : 01:43:44.635
    Chapter #0.30: start 6401.562000, end 6612.689000
    Metadata:
    title : 01:46:41.562
    Chapter #0.31: start 6612.689000, end 7049.216000
    Metadata:
    title : 01:50:12.689
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle
    Stream #0:5(fre): Subtitle: hdmv_pgs_subtitle
    Stream #0:6(spa): Subtitle: hdmv_pgs_subtitle
    Stream #0:7(ita): Subtitle: hdmv_pgs_subtitle
    Stream #0:8(por): Subtitle: hdmv_pgs_subtitle
    Stream #0:9(chi): Subtitle: hdmv_pgs_subtitle
    Stream #0:10(ind): Subtitle: hdmv_pgs_subtitle
    Stream #0:11(kor): Subtitle: hdmv_pgs_subtitle
    Stream #0:12(may): Subtitle: hdmv_pgs_subtitle
    Stream #0:13(chi): Subtitle: hdmv_pgs_subtitle
    Stream #0:14(tha): Subtitle: hdmv_pgs_subtitle
    Stream #0:15(vie): Subtitle: hdmv_pgs_subtitle
    Please use -b:a or -b:v, -b is ambiguous
    Output #0, vob, to 'pipe:':
    Metadata:
    encoder : Lavf54.59.106
    Chapter #0.0: start 0.000000, end 273.899000
    Metadata:
    title : 00:00:00.000
    Chapter #0.1: start 273.899000, end 531.740000
    Metadata:
    title : 00:04:33.899
    Chapter #0.2: start 531.740000, end 873.915000
    Metadata:
    title : 00:08:51.740
    Chapter #0.3: start 873.915000, end 1021.604000
    Metadata:
    title : 00:14:33.915
    Chapter #0.4: start 1021.604000, end 1167.041000
    Metadata:
    title : 00:17:01.604
    Chapter #0.5: start 1167.041000, end 1312.937000
    Metadata:
    title : 00:19:27.041
    Chapter #0.6: start 1312.937000, end 1573.572000
    Metadata:
    title : 00:21:52.937
    Chapter #0.7: start 1573.572000, end 1847.971000
    Metadata:
    title : 00:26:13.572
    Chapter #0.8: start 1847.971000, end 1968.675000
    Metadata:
    title : 00:30:47.971
    Chapter #0.9: start 1968.675000, end 2172.379000
    Metadata:
    title : 00:32:48.675
    Chapter #0.10: start 2172.379000, end 2346.970000
    Metadata:
    title : 00:36:12.379
    Chapter #0.11: start 2346.970000, end 2583.498000
    Metadata:
    title : 00:39:06.970
    Chapter #0.12: start 2583.498000, end 2740.655000
    Metadata:
    title : 00:43:03.498
    Chapter #0.13: start 2740.655000, end 3130.377000
    Metadata:
    title : 00:45:40.655
    Chapter #0.14: start 3130.377000, end 3441.188000
    Metadata:
    title : 00:52:10.377
    Chapter #0.15: start 3441.188000, end 3683.889000
    Metadata:
    title : 00:57:21.188
    Chapter #0.16: start 3683.889000, end 3779.901000
    Metadata:
    title : 01:01:23.889
    Chapter #0.17: start 3779.901000, end 3965.920000
    Metadata:
    title : 01:02:59.901
    Chapter #0.18: start 3965.920000, end 4230.476000
    Metadata:
    title : 01:06:05.920
    Chapter #0.19: start 4230.476000, end 4406.527000
    Metadata:
    title : 01:10:30.476
    Chapter #0.20: start 4406.527000, end 4704.867000
    Metadata:
    title : 01:13:26.527
    Chapter #0.21: start 4704.867000, end 4916.203000
    Metadata:
    title : 01:18:24.867
    Chapter #0.22: start 4916.203000, end 5164.993000
    Metadata:
    title : 01:21:56.203
    Chapter #0.23: start 5164.993000, end 5286.907000
    Metadata:
    title : 01:26:04.993
    Chapter #0.24: start 5286.907000, end 5522.976000
    Metadata:
    title : 01:28:06.907
    Chapter #0.25: start 5522.976000, end 5752.956000
    Metadata:
    title : 01:32:02.976
    Chapter #0.26: start 5752.956000, end 5910.655000
    Metadata:
    title : 01:35:52.956
    Chapter #0.27: start 5910.655000, end 6090.751000
    Metadata:
    title : 01:38:30.655
    Chapter #0.28: start 6090.751000, end 6224.635000
    Metadata:
    title : 01:41:30.751
    Chapter #0.29: start 6224.635000, end 6401.562000
    Metadata:
    title : 01:43:44.635
    Chapter #0.30: start 6401.562000, end 6612.689000
    Metadata:
    title : 01:46:41.562
    Chapter #0.31: start 6612.689000, end 7049.216000
    Metadata:
    title : 01:50:12.689
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 1280x534 [SAR 1:1 DAR 640:267], q=2-31, 16384 kb/s, 90k tbn, 23.98 tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 -> mpeg2video)
    Stream #0:1 -> #0:1 (dca -> ac3)
    Press [q] to stop, [?] for help
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:18] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.2 [23/May/2014 23:49:18] "GET /TiVoConnect?Command=QueryContainer&Container=Movies&Recurse=Yes&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FMovies%2FRoboCop%25202014%2520720p%2520BluRay%2520DTS%2520x264.mkv&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*&SerialNum=748000190435C62 HTTP/1.1" 200 -
    frame=126108 fps=115 q=2.0 size= 4569924kB time=01:27:39.99 bitrate=7117.3kbits/s
     
  3. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    This issue aside, you should definitely add "ts=on" to your pyTivo configuration file. The Premiere supports h.264 video natively so pyTivo simply needs to remux it from the .mkv container.

    How is the Premiere connected to the TV?
     
  4. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    OK, it looks like a current pyTivo... but I can't see it being downrrezzed to SD from this log. I need to see the debug output.
     
  5. mattack

    mattack Active Member

    20,743
    4
    Apr 9, 2001
    sunnyvale
    Of course, I was able to turn off ts=on, but I finally tried this.. and I also tried without spaces in the filename (but it made no difference, as I expected).

    zzz-2512:Arrow local2$ ffmpeg -i 02_26_2014-Time-of-Death-214.mpg -vcodec copy -acodec copy -fflags +genpts 02_26_2014-Time-of-Death-214.tts
    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 @ 0x7fa0b1803200] Invalid frame dimensions 0x0.
    Last message repeated 1 times
    Input #0, mpeg, from '02_26_2014-Time-of-Death-214.mpg':
    Duration: 00:59:59.68, start: 0.478000, bitrate: 2839 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    [NULL @ 0x7fa0b1803800] Unable to find a suitable output format for '02_26_2014-Time-of-Death-214.tts'
    02_26_2014-Time-of-Death-214.tts: Invalid argument

    Is there a workaround for this?

    btw, since someone will probably ask:
    zzz-2512:Arrow local2$ ffmpeg -version
    ffmpeg version 2.0.2
    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
     
  6. moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    mattack, you used .tts suffix which is wrong. Change it to .ts
     
  7. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    I had the same problem with "ō". Not sure if you ever got a chance to look at this or not. I fixed it by renaming the file.
     
  8. TheOneEyedMan

    TheOneEyedMan New Member

    6
    0
    Jan 11, 2008
    Hello. I can't seem to get my files (push or pull) to transfer from my linux based pytivo server to my tivo. I previously had a windows based server which had a working pytivo install but I wanted to upgrade to a different machine. When I select the video from the share (appears on the now playing list) I can select the file to transfer and the blue light flickers for a moment and shuts off. When I try to push from my machine I choose the file to transfer and then get a "The connection was reset" error.

    Here are the results of running the pytivo command from the command line while doing this:
    Code:
    sudo python /usr/share/pyTivo/pyTivo.py
    [sudo] password for -: 
    INFO:pyTivo:Last modified: Sat May 31 20:18:06 2014
    INFO:pyTivo:Python: 2.7.6
    INFO:pyTivo:System: Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: 2TB_movies_1
    INFO:pyTivo.beacon:Registering: 2TB_photos_1
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.114 [31/May/2014 23:31:35] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:127.0.0.1 [31/May/2014 23:35:01] "GET / HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [31/May/2014 23:35:01] "GET /main.css HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [31/May/2014 23:35:04] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1&Format=text/html HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [31/May/2014 23:35:04] "GET /folder.png HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [31/May/2014 23:35:06] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1/Watched&Format=text/html HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [31/May/2014 23:35:09] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1/Watched/9%20%7B2009%7D%20DVDRIP.%20Jaybob&Format=text/html HTTP/1.1" 200 -
    ERROR:pyTivo:Exception during request from ('127.0.0.1', 45710)
    Traceback (most recent call last):
      File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/share/pyTivo/httpserver.py", line 91, in __init__
        client_address, server)
      File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
        self.handle()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 342, in handle
        self.handle_one_request()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "/usr/share/pyTivo/httpserver.py", line 146, in do_POST
        self.handle_query(query, tsn)
      File "/usr/share/pyTivo/httpserver.py", line 177, in handle_query
        if self.do_command(query, command, basepath, tsn):
      File "/usr/share/pyTivo/httpserver.py", line 156, in do_command
        method(self, query)
      File "/usr/share/pyTivo/plugins/video/video.py", line 129, in Push
        tsn = query['tsn'][0]
    KeyError: 'tsn'
    ERROR:pyTivo:Exception during request from ('127.0.0.1', 45711)
    Traceback (most recent call last):
      File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/share/pyTivo/httpserver.py", line 91, in __init__
        client_address, server)
      File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
        self.handle()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
        self.handle_one_request()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "/usr/share/pyTivo/httpserver.py", line 146, in do_POST
        self.handle_query(query, tsn)
      File "/usr/share/pyTivo/httpserver.py", line 177, in handle_query
        if self.do_command(query, command, basepath, tsn):
      File "/usr/share/pyTivo/httpserver.py", line 156, in do_command
        method(self, query)
      File "/usr/share/pyTivo/plugins/video/video.py", line 129, in Push
        tsn = query['tsn'][0]
    KeyError: 'tsn'
    
    Thank you for your help and please let me know if I can supply additional information.

    I confirmed that ffmpeg was working by running something like this "ffmpeg -i 9.avi 9.mp4" to convert a file and making sure I could play it. I was worried about that since I had to compile it myself from directions here:
    trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

    Here are the directions I followed for my ubuntu pytivo installation
    edsalisbury.net/how-to-set-up-a-tivo-media-server-on-ubuntu-linux
     
  9. Jun 1, 2014 #4709 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    TheOneEyedMan, your log just shows two failed Push requests. Do you have a log of a failed NPL request?

    "KeyError: 'tsn'" is a strange error, but it suggests that you tried to push to something that wasn't a TiVo -- perhaps none appeared next to the "Send to TiVo" button? -- and the fact that nothing shows up under "Scanning for TiVos..." would fit with that.

    Assuming that you're actually using the version of pyTivo that's in my repos as of today, you really need to either 1) have Zeroconf working, or 2) hardwire the names, addresses and TSNs of your TiVos in your pyTivo.conf. I recommend the former.

    Previously, the list of available TiVos also included anything with a TSN that connected to pyTivo in response to its old-style beacons; however, this was causing problems with Roamio Plus and Pro units, due to their included Streams. (This is not necessarily the permanent solution, but it's what I have right now.)
     
  10. Jun 1, 2014 #4710 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    OK, a compromise (in my repos now): if and only if no TiVos are found, either via Zeroconf, or hardwired in pyTivo.conf, pyTivo will now fall back to the old behavior of adding anything with a TSN that makes a request to the list. This should work for TheOneEyedMan, although I'd still urge him to try and sort out why Zeroconf isn't working for him. (It's not disabled; it's just not returning any results. I'd probably start by rebooting the TiVo.)
     
  11. Jun 2, 2014 #4711 of 5684
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    I recommend the approach you will find in my thread covering Linux which you can find here. I doubt it will fix your issue, but it will provide a log file every time pyTivo is started - which can help in this and similar situations - and it will properly register pyTivo as a service. It's also a more sophisticated approach more in line with System V initialization procedures, as well as being more future proof than the approach above.
     
  12. Jun 2, 2014 #4712 of 5684
    TheOneEyedMan

    TheOneEyedMan New Member

    6
    0
    Jan 11, 2008
    As you suggest, I am not seeing any tivos under the heading Pull from TiVos on my pytivo page. I tried rebooting but that didn't fix anything. Do you have advice or are there directions I can follow for sorting out that problem?

    Is it likely that the failure to pull files from the server is related? I turned on debug mode and tried to pull a file from my computer to my tivo and got the following logs:
    Code:
     
    INFO:pyTivo:Last modified: Sat May 31 20:18:06 2014
    INFO:pyTivo:Python: 2.7.6
    INFO:pyTivo:System: Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: 2TB_movies_1
    INFO:pyTivo.beacon:Registering: 2TB_photos_1
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.114 [01/Jun/2014 16:45:25] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:31] "GET / HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:31] "GET /main.css HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:31] "GET /favicon.ico HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:33] "GET / HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:33] "GET /main.css HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:59] "GET /TiVoConnect?Command=Settings&Container=Settings HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:59] "GET /plugins/settings/settings.css HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:45:59] "GET /plugins/settings/settings.js HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:46:03] "GET /TiVoConnect?Command=Restart&Container=Settings HTTP/1.1" 200 -
    INFO:pyTivo.beacon:Unregistering: 2TB_movies_1 2TB_photos_1
    INFO:pyTivo:Last modified: Sat May 31 20:18:06 2014
    INFO:pyTivo:Python: 2.7.6
    INFO:pyTivo:System: Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: 2TB_movies_1
    INFO:pyTivo.beacon:Registering: 2TB_photos_1
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.114 [01/Jun/2014 16:46:12] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:127.0.0.1 [01/Jun/2014 16:46:13] "GET /TiVoConnect?Command=Settings&Container=Settings HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [01/Jun/2014 16:51:12] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.114 [01/Jun/2014 17:55:16] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.114 [01/Jun/2014 17:55:17] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.114 [01/Jun/2014 17:55:34] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:37:01] "GET / HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:37:01] "GET /main.css HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:37:02] "GET / HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:37:02] "GET /main.css HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:40:55] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:01] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:02] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1&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.1.114 [02/Jun/2014 06:41:02] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:03] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched&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.1.114 [02/Jun/2014 06:41:04] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:04] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob&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.1.114 [02/Jun/2014 06:41:07] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:ffmpeg output=ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
      built on May 31 2014 19:51:57 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
      configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
      libavutil      52. 87.100 / 52. 87.100
      libavcodec     55. 65.100 / 55. 65.100
      libavformat    55. 42.100 / 55. 42.100
      libavdevice    55. 13.101 / 55. 13.101
      libavfilter     4.  5.100 /  4.  5.100
      libswscale      2.  6.100 /  2.  6.100
      libswresample   0. 19.100 /  0. 19.100
      libpostproc    52.  3.100 / 52.  3.100
    Input #0, avi, from '/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi':
      Metadata:
        encoder         : Lavf51.12.1
      Duration: 01:19:14.17, start: 0.000000, bitrate: 1339 kb/s
        Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 640x368 [SAR 1:1 DAR 40:23], 1199 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
        Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
    At least one output file must be specified
    
    DEBUG:pyTivo.video.transcode:aFreq=48000; aCh=2; container=avi; kbps=1339; mapAudio=[('0:1', ' mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s')]; vHeight=368; vCodec=mpeg4; Supported=True; aKbps=128; par=None; millisecs=4754170; vFps=23.98; par2=None; par1=None; mapVideo=0:0; vWidth=640; dar1=40:23; rawmeta={'encoder': [u'Lavf51.12.1']}; aCodec=mp3
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi vCodec=mpeg4 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:07] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2F2TB_movies_1%2FWatched%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob.avi&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi vCodec=mpeg4 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:07] "GET /TiVoConnect?Command=TVBusQuery&Container=2TB_movies_1&File=%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob.avi HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:09] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 06:41:09] "GET /TiVoConnect?Command=QueryItem&Url=http%3A%2F%2Fa%2Fb%3FContainer%3D%2FNowPlaying%26id%3D%2F2TB_movies_1%2FWatched%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob.avi HTTP/1.1" 404 -
    ERROR:pyTivo:Exception during request from ('192.168.1.114', 32897)
    Traceback (most recent call last):
      File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/share/pyTivo/httpserver.py", line 91, in __init__
        client_address, server)
      File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
        self.handle()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
        self.handle_one_request()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "/usr/share/pyTivo/httpserver.py", line 129, in do_GET
        self.handle_file(query, splitpath)
      File "/usr/share/pyTivo/httpserver.py", line 246, in handle_file
        plugin.send_file(self, path, query)
      File "/usr/share/pyTivo/plugins/video/video.py", line 185, in send_file
        tivo_name = config.tivos[tsn].get('name', tsn)
    KeyError: '<my TSN is here>'
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:43:05] "GET /TiVoConnect?Command=Settings&Container=Settings HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:43:05] "GET /plugins/settings/settings.css HTTP/1.1" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 06:43:05] "GET /plugins/settings/settings.js HTTP/1.1" 200 -
    
    Where <my TSN> us what came off the machine but in the form 12345678901234 (ommiting the dashes)

    192.168.1.114 is the ip address of my Tivo
     
  13. Jun 2, 2014 #4713 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    Yes, it's the same error. Please update your pyTivo to include the change I posted about yesterday.

    Also, it's likely that the reason Zeroconf is failing is that your router is blocking multicast. This seems to be a widespread misfeature. You should be able to turn it off in the router's settings. But, failing that, you should still be able to get pyTivo to work by updating it.
     
  14. Jun 2, 2014 #4714 of 5684
    TheOneEyedMan

    TheOneEyedMan New Member

    6
    0
    Jan 11, 2008
    I turned of multicasting on my router and downloaded the new files from git hub and reinstalled but I still am not able to transfer and the startup script still appears to be empty.
    Code:
    /usr/share/pyTivo$ sudo python /usr/share/pyTivo/pyTivo.py
    INFO:pyTivo:Last modified: Mon Jun  2 20:10:34 2014
    INFO:pyTivo:Python: 2.7.6
    INFO:pyTivo:System: Linux-3.13.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: 2TB_movies_1
    INFO:pyTivo.beacon:Registering: 2TB_photos_1
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.114 [02/Jun/2014 20:27:41] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:127.0.0.1 [02/Jun/2014 20:28:25] "GET /TiVoConnect?Command=Quit&Container=Settings HTTP/1.1" 200 -
    
     
  15. Jun 2, 2014 #4715 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    It would be multicast filtering or blocking that you'd want to turn off, so multicast would actually be "on" (passed through). But, I don't know the exact wording on your router. However, if the setting has two positions, and you've tried them both, then I guess we can rule that out. It could be that port 5353 UDP is blocked by a firewall on the Linux box, although I wouldn't expect that.

    That log doesn't show any transfer requests, so I can't comment further. (To be clear, the TiVos will never be listed under "Scanning for TiVos..." unless Zeroconf is working, but you should still be able to push and pull.)
     
  16. Jun 3, 2014 #4716 of 5684
    TheOneEyedMan

    TheOneEyedMan New Member

    6
    0
    Jan 11, 2008
    Here is the code when I attempted to putt the same file as before.
    For what it is worth, I have two sorts of routers, 2 that run DDWRT on which I unchecked "Filter Multicast" on the security / firewall tab and on the FIOS modem / router I disable the IGMP proxy which handles such things as far as I can tell.

    Here: is the output from my pyTivo when I pull a file from my Tivo.

    Code:
    INFO:pyTivo:Last modified: Mon Jun  2 20:10:34 2014
    INFO:pyTivo:Python: 2.7.6
    INFO:pyTivo:System: Linux-3.13.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: 2TB_movies_1
    INFO:pyTivo.beacon:Registering: 2TB_photos_1
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:31:19] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:01] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:06] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:06] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1&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.1.114 [03/Jun/2014 06:32:07] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:07] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched&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.1.114 [03/Jun/2014 06:32:09] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:09] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob&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.1.114 [03/Jun/2014 06:32:10] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:ffmpeg output=ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
      built on May 31 2014 19:51:57 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
      configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
      libavutil      52. 87.100 / 52. 87.100
      libavcodec     55. 65.100 / 55. 65.100
      libavformat    55. 42.100 / 55. 42.100
      libavdevice    55. 13.101 / 55. 13.101
      libavfilter     4.  5.100 /  4.  5.100
      libswscale      2.  6.100 /  2.  6.100
      libswresample   0. 19.100 /  0. 19.100
      libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        encoder         : Lavf55.42.100
      Duration: 01:19:14.17, start: 0.042667, bitrate: 814 kb/s
        Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x368 [SAR 1:1 DAR 40:23], 669 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)
        Metadata:
          handler_name    : SoundHandler
    At least one output file must be specified
    
    DEBUG:pyTivo.video.transcode:aFreq=48000; aCh=2; container=mov; kbps=814; mapAudio=[('0:1', '(und) aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)')]; vHeight=368; vCodec=h264; Supported=True; aKbps=139; par=None; millisecs=4754170; vFps=23.98; par2=None; par1=None; mapVideo=0:0; vWidth=640; dar1=40:23; rawmeta={'major_brand': [u'isom'], 'encoder': [u'Lavf55.42.100'], 'compatible_brands': [u'isomiso2avc1mp41'], 'minor_version': [u'512']}; aCodec=aac
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4 vCodec=h264 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:11] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2F2TB_movies_1%2FWatched%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob%2F9.mp4&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4 vCodec=h264 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:11] "GET /TiVoConnect?Command=TVBusQuery&Container=2TB_movies_1&File=%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob%2F9.mp4 HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:11] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4 vCodec=h264 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9.mp4
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:11] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob&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.1.114 [03/Jun/2014 06:32:13] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:ffmpeg output=ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
      built on May 31 2014 19:51:57 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
      configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
      libavutil      52. 87.100 / 52. 87.100
      libavcodec     55. 65.100 / 55. 65.100
      libavformat    55. 42.100 / 55. 42.100
      libavdevice    55. 13.101 / 55. 13.101
      libavfilter     4.  5.100 /  4.  5.100
      libswscale      2.  6.100 /  2.  6.100
      libswresample   0. 19.100 /  0. 19.100
      libpostproc    52.  3.100 / 52.  3.100
    Input #0, avi, from '/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi':
      Metadata:
        encoder         : Lavf51.12.1
      Duration: 01:19:14.17, start: 0.000000, bitrate: 1339 kb/s
        Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 640x368 [SAR 1:1 DAR 40:23], 1199 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
        Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
    At least one output file must be specified
    
    DEBUG:pyTivo.video.transcode:aFreq=48000; aCh=2; container=avi; kbps=1339; mapAudio=[('0:1', ' mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s')]; vHeight=368; vCodec=mpeg4; Supported=True; aKbps=128; par=None; millisecs=4754170; vFps=23.98; par2=None; par1=None; mapVideo=0:0; vWidth=640; dar1=40:23; rawmeta={'encoder': [u'Lavf51.12.1']}; aCodec=mp3
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi vCodec=mpeg4 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:13] "GET /TiVoConnect?Command=QueryContainer&Container=2TB_movies_1%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2F2TB_movies_1%2FWatched%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob.avi&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:tsn: <my tsn here>
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=/media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi vCodec=mpeg4 vWidth=640 vHeight=368 vFps=23.98 millisecs=4754170 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec mpeg4 not compatible, /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    DEBUG:pyTivo.video.transcode:CACHE HIT! /media/user/2TBDRV_1/Videos/Watched/9 {2009} DVDRIP. Jaybob/9 {2009} DVDRIP. Jaybob.avi
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:13] "GET /TiVoConnect?Command=TVBusQuery&Container=2TB_movies_1&File=%2FWatched%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob%2F9%20%7B2009%7D%20DVDRIP.%20Jaybob.avi HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:14] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.114 [03/Jun/2014 06:32:14] "GET /TiVoConnect?Command=QueryItem&Url=http%3A%2F%2Fa%2Fb%3FContainer%3D%2FNowPlaying%26id%3D%2F2TB_movies_1%2FWatched%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob%2F9%2520%257B2009%257D%2520DVDRIP.%2520Jaybob.avi HTTP/1.1" 404 -
    ERROR:pyTivo:Exception during request from ('192.168.1.114', 32889)
    Traceback (most recent call last):
      File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/share/pyTivo/httpserver.py", line 91, in __init__
        client_address, server)
      File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
        self.handle()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
        self.handle_one_request()
      File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "/usr/share/pyTivo/httpserver.py", line 128, in do_GET
        self.handle_file(query, splitpath)
      File "/usr/share/pyTivo/httpserver.py", line 245, in handle_file
        plugin.send_file(self, path, query)
      File "/usr/share/pyTivo/plugins/video/video.py", line 192, in send_file
        tivo_name = config.tivos[tsn].get('name', tsn)
    KeyError: '<my tsn here>'
    
     
  17. Jun 3, 2014 #4717 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    OK, that shouldn't be happening still. I can only question whether you really updated... try copying out the .conf file, totally erasing the pyTivo directory, extracting the latest version, and re-adding the .conf file.
     
  18. Jun 5, 2014 #4718 of 5684
    TheOneEyedMan

    TheOneEyedMan New Member

    6
    0
    Jan 11, 2008
    I tried deleting the directory and reinstalling again without luck. As before, I left any multicast filtering off.

    Then I was messing arround and made two additional changes and now things are working. I defined a new section to manually specify the Tivo in the pyTivo.conf file like this:
    [_tivo_<tsn>]
    name = Living_room
    address = <ip of Tivo>

    as well as moving back to the default for beacon instead of <ip of Tivo>

    Now I still don't get automatic detection of my tivo but I do get the ability to push and pull from it. Thank you for all your help.

    As part of my linux/ubuntu/Tivo/pyTivo adventures, I was able to verify that multicast processes were running on my network (like my network sharred printer), others may want to give it a shot. The command ifconfig eth0 was useful in establishing that indeed the unix box has multicast running.

    avahi-discover and mdns-scan
     
  19. Jun 5, 2014 #4719 of 5684
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Latest version of pyTivo has problems when configured for remote push. I get the following when attempting to access it via browser:
    Code:
    ERROR:pyTivo:Exception during request from ('127.0.0.1', 50808)
    Traceback (most recent call last):
      File "C:\Python27\lib\SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "C:\Pusher pyTivo\httpserver.py", line 91, in __init__
        client_address, server)
      File "C:\Python27\lib\SocketServer.py", line 649, in __init__
        self.handle()
      File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
        self.handle_one_request()
      File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "C:\Pusher pyTivo\httpserver.py", line 131, in do_GET
        self.infopage()
      File "C:\Pusher pyTivo\httpserver.py", line 357, in infopage
        '">' + escape(config.tivos[tsn]['name']) +
    KeyError: 'address'
    attempt to push via kmttg to either a remote or local TiVo gets this:
    Code:
    ERROR:pyTivo:Exception during request from ('127.0.0.1', 51045)
    Traceback (most recent call last):
      File "C:\Python27\lib\SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "C:\Pusher pyTivo\httpserver.py", line 91, in __init__
        client_address, server)
      File "C:\Python27\lib\SocketServer.py", line 649, in __init__
        self.handle()
      File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
        self.handle_one_request()
      File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "C:\Pusher pyTivo\httpserver.py", line 123, in do_GET
        self.handle_query(query, tsn)
      File "C:\Pusher pyTivo\httpserver.py", line 176, in handle_query
        if self.do_command(query, command, basepath, tsn):
      File "C:\Pusher pyTivo\httpserver.py", line 155, in do_command
        method(self, query)
      File "C:\Pusher pyTivo\plugins\video\video.py", line 137, in Push
        if config.tivos[key]['name'] == tsn:
    KeyError: 'name'
    ERROR:pyTivo:Exception during request from ('127.0.0.1', 51046)
    Traceback (most recent call last):
      File "C:\Python27\lib\SocketServer.py", line 593, in process_request_thread
        self.finish_request(request, client_address)
      File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "C:\Pusher pyTivo\httpserver.py", line 91, in __init__
        client_address, server)
      File "C:\Python27\lib\SocketServer.py", line 649, in __init__
        self.handle()
      File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
        self.handle_one_request()
      File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
        method()
      File "C:\Pusher pyTivo\httpserver.py", line 123, in do_GET
        self.handle_query(query, tsn)
      File "C:\Pusher pyTivo\httpserver.py", line 176, in handle_query
        if self.do_command(query, command, basepath, tsn):
      File "C:\Pusher pyTivo\httpserver.py", line 155, in do_command
        method(self, query)
      File "C:\Pusher pyTivo\plugins\video\video.py", line 137, in Push
        if config.tivos[key]['name'] == tsn:
    KeyError: 'name'
    pyTivo.conf:
    Code:
    [Server]
    precache = False
    tivo_password = xxxxxxxxxxxxx
    tivo_mak = xxxxxxxxxxxx
    tivo_username = xxxxxxxxxxxxxx
    externalurl = http://xx.xxx.xxx.xx:9032
    ts = on
    togo_path = D:\TiVo Offload
    ffmpeg = C:\pyTivo\bin\ffmpeg.exe
    allowedips = 127.0.0.1 192.168.1
    
    [_tivo_SD]
    
    [_tivo_HD]
    audio_lang = ENG
    
    [Nimitz kmttgmpegs]
    path = C:\kmttgmpegs
    type = video
    force_alpha = on
    
    [Nimitz Video]
    type = video
    path = D:\Video
    force_alpha = on
    
    [_tivo_846000190304FA2 ]
    
    [_tivo_74600119055800F]
    
    [_tivo_74600019069EC32]
    tivo_password = xxxxxxxxxxxxx
    tivo_username = xxxxxxxxxxxxxxx
    tivo_mak = xxxxxxxxxxxxxxxx
    external = True
    
    [_tivo_1300000801E990C]
    tivo_username = xxxxxxxxxxx
    optres = on
    tivo_password = xxxxxxxxxxxx
    tivo_mak = xxxxxxxxx
    external = True
    
    
     
  20. Jun 6, 2014 #4720 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    OK, try it now.
     

Share This Page