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. Nov 9, 2011 #3281 of 5683
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Yes, it is the key frame setting. For ffmpeg the string is --keyint. It defaults to 250, which amounts to around 8s for 29.97fps video. I normally IVTC my video back to 23.976fps and then use a keyint of 48.
     
  2. bgc

    bgc New Member

    165
    0
    Jan 12, 2008
    IVTC? Does this slow down the FF? If so, how would you go about setting this using pyTivo?

    Thanks,
    BGC
     
  3. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    IVTC is inverse telecine. It is a method of removing the 3:2 pullup that is applied to FILM rate video (24p) to place on DVD (29.97fps). It doesn't really affect FF, but the number of keyframes will.

    You don't use it in pyTivo, but you need to IVTC before sending to pyTivo. I do this when preparing files. I then send the completed files to my tivos with pytivo.
     
  4. Shanezam203

    Shanezam203 New Member

    787
    0
    Jul 27, 2007
    I have tried a few times unsuccessfully to setup pyTivo but I want to try again. :) Setup correctly, will I be able to create a Folder for MOVIES and relocate movies recorded on HBO that are in my Now Playing into that folder?

    Essentially I'd like to push the Now Playing button & have a few specific folders. Or leave everything in Now Playing as it is and just make 1 folder for Movies.

    Thanks,

    Shane
     
  5. bgc

    bgc New Member

    165
    0
    Jan 12, 2008
    Aren't you supposed to be able to add commands to what is sent to ffmpeg when pyTivo calls it?
     
  6. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    pyTivo doesn't have any affect on anything that is already on your TiVo.

    Since you said the movies are recorded off of HBO, they are probably copy protected and you can't even pull them to the PC, but if they aren't:

    The only way to do what you want to do would be to pull the movies to your PC, decrypt and generate metadata for them, modify the metedata so they all have the same grouping data, delete them from the TiVo and push them (or pull if it is a Premiere).

    If you wanted to leave them on the PC, you could just put them all in the same folder on the PC and create a pyTivo share for that folder.
     
  7. Shanezam203

    Shanezam203 New Member

    787
    0
    Jul 27, 2007
    Thanks for the reply, so with pyTivo it more so communicates with media on my PC to the Tivo, not actually used to Group the media in Now Playing?
     
  8. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    More or less correct. It's like TiVo Desktop+ except much better ... and free. The thing is, if the movies aren't copy protected, you could copy them to your PC, put them all in a folder, create a pyTivo "share" and that folder would show up in the NPL of your TiVo.

    As i said though, they are most likely copy protected.
     
  9. Shanezam203

    Shanezam203 New Member

    787
    0
    Jul 27, 2007
    A lot of them have the red no smoking copy protected sign... with that said, there isn't much I can do to try to make Groups in now playing right? I have the 1tb esata drive, so it's nice; but it would be nice to be able to organize the media besides just alphabetically and chronological.
     
  10. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    You cannot regroup files that are already transferred to the tivo. The tivo does the grouping based on the metadata sent with the file. pytivo sends the metadata and the file to the tivo.

    By changing the metadata and resending the file, you can change how they are grouped.

    If you have a large number of files, say a group of movies and want them presented by genre, actor, date or whatever on the tivo, I suggest you look at vidmgr, and HME extension for pytivo that creates very nice HD menus for video stored on your server and transferres it to the tivo on demand.
     
  11. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Yes, but ffmpeg doesn't have a filter to do inverse telecine.
     
  12. bgc

    bgc New Member

    165
    0
    Jan 12, 2008
    Is there a way to fix the keyframes so FastForward acts normally?
     
  13. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    H.264 video is more difficult to decode than MPEG2. You can't really get the same seeking performance, but you can get closer with more keyframes. Ffmpeg uses -g to set the maximum value between keyframes. I normally use a value equal to 2x the framerate (48 for film rate video or 60 for NTSC video).
     
  14. Shanezam203

    Shanezam203 New Member

    787
    0
    Jul 27, 2007
    any screen shots of that on the Tivo now playing page?
     
  15. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
  16. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    I have a very odd situation. I recorded something on the TP and transferred it to my PC via kmttg. When I try to transfer it back to either the TP or the THD via pyTivo pull, it is flagged as "Transferring prohibited by the copyright holder". I can transfer it fine via TTG or directly between from the TP to the THD.
     
  17. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Means ffmpeg can't read it.
     
  18. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Admittedly, I was using a newer version of ffmpeg. I switched back to the recommended version - no change. Additional info:

    It transcodes OK and the mpeg transfers and plays with no problem.
     
  19. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Show log/console output if you want more help.
     
  20. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Not really seeking help, just reporting it:

    INFO:pyTivo.config:Shares security in use -- zeroconf disabled
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:192.168.1.104 [24/Nov/2011 21:26:43] "GET /TiVoConnect?Command=Query
    Container&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:26:43] "GET /TiVoConnect?Command=Query
    Container&Container=%2F&DoGenres=1 HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.103 [24/Nov/2011 21:26:44] "GET /TiVoConnect?Command=Query
    Container&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:26:58] "GET /TiVoConnect?Command=Query
    Container&Container=%2F&DoGenres=1 HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:26:58] "GET /TiVoConnect?Command=Query
    Container&Container=%2F&DoGenres=1 HTTP/1.0" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:03] "GET /TiVoConnect?Command=Query
    Formats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:03] "GET /TiVoConnect?Command=Query
    Container&Container=TiVoToGo&SortOrder=!CaptureDate&ItemCount=8&Filter=x-tivo-co
    ntainer%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*&Se
    rialNum=<REDACTED> HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:05] "GET /TiVoConnect?Command=Query
    Formats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:05] "GET /TiVoConnect?Command=Query
    Container&Container=TiVoToGo&SortOrder=!CaptureDate&ItemCount=-8&Filter=x-tivo-c
    ontainer%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*&S
    erialNum=<REDACTED> HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:06] "GET /TiVoConnect?Command=Query
    Formats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:06] "GET /TiVoConnect?Command=Query
    Container&Container=TiVoToGo&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FTi
    VoToGo%2FThe%2520Untouchables.S04E12.Doublecross.TiVo&AnchorOffset=-8&Filter=x-t
    ivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%
    2F*&SerialNum=<REDACTED> HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:09] "GET /TiVoConnect?Command=Query
    Formats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:09] "GET /TiVoConnect?Command=Query
    Container&Container=TiVoToGo&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FTi
    VoToGo%2FSecrets%2520of%2520a%2520Restaurant%2520Chef.000.The%2520Secret%2520to%
    2520Piccolini.TiVo&AnchorOffset=-8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-
    container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*&SerialNum=<REDACTED> HTTP/
    1.1" 200 -
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:13] "GET /TiVoConnect?Command=Query
    Formats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:starting ffmpeg, will wait 10 seconds for it to com
    plete
    DEBUG:pyTivo.video.transcode:ffmpeg output=FFmpeg version SVN-r21659-rdian06-1.0
    2-win-x86_32, Copyright (c) 2000-2010 Fabrice Bellard, et al.
    built on Aug 24 2010 20:46:16 with gcc 4.4.0
    configuration: --enable-memalign-hack --disable-debug --enable-hardcoded-table
    s --enable-runtime-cpudetect --enable-static --disable-shared --disable-ffserver
    --disable-ffplay --enable-gpl --enable-pthreads --enable-libmp3lame --enable-li
    bvorbis --enable-libtheora --enable-libspeex --enable-libgsm --enable-libx264 --
    enable-libschroedinger --enable-libfaad --enable-libxvid --disable-decoder=aac -
    -enable-avisynth --enable-postproc --enable-avfilter --enable-avfilter-lavf
    libavutil 50. 8. 0 / 50. 8. 0
    libavcodec 52.52. 0 / 52.52. 0
    libavformat 52.50. 0 / 52.50. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libavfilter 1.17. 0 / 1.17. 0
    libswscale 0.10. 0 / 0.10. 0
    libpostproc 51. 2. 0 / 51. 2. 0

    Seems stream 1 codec frame rate differs from container frame rate: inf (1/0) ->
    nan (0/0)
    Input #0, mpeg, from 'F:\Video\Rachael Ray.6054.Jason Segel.TiVo':
    Duration: 01:00:03.21, start: 1.000000, bitrate: 3076 kb/s
    Stream #0.0[0x1bd]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.1[0x1e0]: Video: mpeg2video, 90k tbn
    At least one output file must be specified

    DEBUG:pyTivo.video.transcode:failed at vWidth/vHeight
    DEBUG:pyTivo.video.transcode:failed at vFps
    DEBUG:pyTivo.video.transcode:aFreq=48000; vFps=; container=mpeg; kbps=3076; mapA
    udio=[('0.0', '[0x1bd]')]; vHeight=; vCodec=mpeg2video; Supported=False; aKbps=1
    92; par=None; millisecs=3603210; par2=None; par1=None; mapVideo=0.1; vWidth=; da
    r1=None; aCodec=ac3
    DEBUG:pyTivo.video.transcode:FALSE, file not supported F:\Video\Rachael Ray.6054
    .Jason Segel.TiVo
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:13] "GET /TiVoConnect?Command=Query
    Container&Container=TiVoToGo&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2FTi
    VoToGo%2FRachael%2520Ray.6054.Jason%2520Segel.TiVo&AnchorOffset=-1&Filter=x-tivo
    -container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F*
    &SerialNum=<REDACTED> HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:CACHE HIT! F:\Video\Rachael Ray.6054.Jason Segel.Ti
    Vo
    DEBUG:pyTivo.video.transcode:FALSE, file not supported F:\Video\Rachael Ray.6054
    .Jason Segel.TiVo
    INFO:pyTivo:192.168.1.102 [24/Nov/2011 21:27:13] "GET /TiVoConnect?Command=TVBus
    Query&Container=TiVoToGo&File=%2FRachael%20Ray.6054.Jason%20Segel.TiVo&SerialNum
    =<REDACTED> HTTP/1.1" 200 -
     

Share This Page