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

Capturing Slingbox 350/500 video

Discussion in 'TiVo Coffee House - TiVo Discussion' started by moyekj, May 25, 2013.

  1. Jun 9, 2013 #21 of 155
    qz3fwd

    qz3fwd Member

    255
    1
    Jul 6, 2007
    the crypt tea package likely implements std enc/dec algorithms. what are the c/c++ equivalent libraries to port this over to a compiled language?
     
  2. Jun 9, 2013 #22 of 155
    Worf

    Worf Active Member

    1,988
    4
    Sep 15, 2000
    It implements the TEA encryption (tiny encryption algorithm).

    A tiny, but not very secure encryption algorithm that's used because of its small algorithm size. There are well known flaws in TEA that was used to break the original Xbox.
     
  3. Jun 9, 2013 #23 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Among other things the Perl script uses very powerful "pack" and "unpack" Perl functions which are not trivial to port to other languages. Probably the TEA part is more easily ported.
     
  4. Jun 9, 2013 #24 of 155
    magnus

    magnus Tivo User

    2,506
    0
    Nov 12, 2004
    Texas
    That don't work no where near as good as a slingcatcher.
     
  5. Jun 9, 2013 #25 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    FYI, I just found that using $vs=16 gives you full 1920x1080 resolution. I then remux to mp4 container & convert audio to ac3 and this is the resulting video specs:
    Code:
    General
    Complete name                    : C:\home\video_samples\1920x1080_slingbox_sample.mp4
    Format                           : MPEG-4
    Format profile                   : Base Media
    Codec ID                         : isom
    File size                        : 6.97 MiB
    Duration                         : 13s 920ms
    Overall bit rate                 : 4 202 Kbps
    Movie name                       : Slingbox
    Performer                        : Sling Media
    Writing application              : Lavf55.7.100
    Comment                          : test
    
    Video
    ID                               : 1
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format profile                   : High@L4.0
    Format settings, CABAC           : Yes
    Format settings, ReFrames        : 2 frames
    Codec ID                         : avc1
    Codec ID/Info                    : Advanced Video Coding
    Duration                         : 13s 881ms
    Bit rate                         : 4 015 Kbps
    Width                            : 1 920 pixels
    Height                           : 1 080 pixels
    Display aspect ratio             : 16:9
    Frame rate mode                  : Variable
    Frame rate                       : 29.970 fps
    Minimum frame rate               : 29.412 fps
    Maximum frame rate               : 30.303 fps
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    Scan type                        : MBAFF
    Bits/(Pixel*Frame)               : 0.065
    Stream size                      : 6.64 MiB (95%)
    
    Audio
    ID                               : 2
    Format                           : AC-3
    Format/Info                      : Audio Coding 3
    Mode extension                   : CM (complete main)
    Codec ID                         : ac-3
    Duration                         : 13s 920ms
    Bit rate mode                    : Constant
    Bit rate                         : 192 Kbps
    Channel(s)                       : 2 channels
    Channel positions                : Front: L R
    Sampling rate                    : 32.0 KHz
    Bit depth                        : 16 bits
    Compression mode                 : Lossy
    Stream size                      : 326 KiB (5%)
    
    So this actually may be a decent method of making copies of CCI protected recordings from your TiVo.
     
  6. Jun 9, 2013 #26 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    Why convert to AC3? The original audio is AAC so it should work without conversion.
     
  7. Jun 9, 2013 #27 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Because ffmpeg craps out when just doing copy audio & video for some reason. i.e. Originally I tried using ffmpeg just for remux into mp4 and/or ts container and copying video & audio but that didn't work. However transcoding audio to ac3 allows remux to work so that's what I'm using. Probably with some more fiddling it may be possible to get working without transcoding audio but since it's only 2 channel audio it doesn't really matter one way or another to me.
     
  8. Jun 9, 2013 #28 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    Yeah it's pretty low bitrate too, so since you're transcoding I'd suggest you bump the audio bitrate to at least 124. I'd probably go with 224 for AC3 since it's not as efficient as AAC and needs a few more bits to prevent further loss.
     
  9. Jun 9, 2013 #29 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Audio bitrate is already at 192 Kbps per the mediainfo dump. Probably bumping up the sampling rate to 48KHz would be better.
     
  10. Jun 10, 2013 #30 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    Bumping the sample rate is like increasing the resolution of a picture. You're creating samples where they don't exist so the quality is at the mercy of the interpolation routine. I really don't recommend it unless you have a device that requires a higher sample rate.
     
  11. Jun 16, 2013 #31 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Since I really like this capability I have an initial implementation in place in kmttg planning to go out in next release. It's basically a GUI around the Perl script(s) posted here. I looked into porting the Perl scripts to Java but that turned out to be too daunting, so I left scripts as Perl called from kmttg.

    Since I have Slingbox 350 I'm confident that it works well. I'm looking for volunteers with a Slingbox Pro or Slingbox Pro HD to test out the kmttg integration if there are any. I was not able to get my ancient Slingbox Solo working so that is unsupported.

    If you want to volunteer to test this please post here or PM me.
     
  12. Jun 17, 2013 #32 of 155
    jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    You talked me into a 350, my Slingbox Pro went to the great recycling bin in the sky. Did not dawn on me to keep it for testing projects. I do look foreword to your kmttg upgrade with the sling support integrated.
     
  13. Jun 17, 2013 #33 of 155
    jaredmwright

    jaredmwright New Member

    215
    0
    Sep 5, 2004
    Bay Area
    Moykj, let me know and I can test out. I have a Slingbox 350 and Solo and would love to have this capability. Let me know how to download and try it out.

    Jared
     
  14. Jun 17, 2013 #34 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    OK, for those that want to test it out, a full beta version of kmttg is available here:
    http://kmttg.googlecode.com/files/kmttg_v1p0b_beta2.zip

    Once installed, go to File-Config-Visual and enable "Show Slingbox capture tab".
    Then you will see a "Slingbox" tab in kmttg main window. From there click on the "Help" button which will open a web browser pointing to the Wiki page with instructions on how to set things up.

    If you have trouble or think the Wiki is not clear enough please post here so we can work through it.
     
  15. Jun 17, 2013 #35 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    I was somewhat surprised to find today that this worked great from outside my home as well! Running kmttg at work I simply entered my WAN IP for Slingbox IP. I guess part of the Slingbox installation must automatically configure port forwarding in the router from WAN side to LAN side since I never did that manually.

    So technically all you would need is the admin password and WAN IP to be able to capture other people's Slingbox outputs.
     
  16. Jun 17, 2013 #36 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    I seem to remember there being a step about this in the PC software setup. IIRC it wasn't able to do it automatically for my particular router and I had to do it manually instead.
     
  17. Jun 19, 2013 #37 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    FYI, for completeness I added optional ability to specify a channel to tune to via slingbox IR blaster before starting a capture. Not something I would use but since capability is there it may be useful for some.
     
  18. Jun 23, 2013 #38 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    This capability is now officially released in kmttg v1p0b release. There were some changes and fixes implemented since the beta version so if using that you should update to the official version.
     
  19. Oct 1, 2013 #39 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    First off, thanks for adding this to KMTTG. I have a SB Pro and am really looking forward to trying out the Slingbox capture.

    I'm a bit stuck at the second step, however. It appears Crypt-Tea_JS is now behind ActiveState's "Business Edition" section which requires a license. I'm not a Perl expert, so perhaps someone could direct me to how to install/build that package manually in WinXP (ActivePerl 5.10)?

    Any help would be appreciated.
     
  20. Oct 1, 2013 #40 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    You should update your installation of Perl to 5.16 or 5.18 and then you will be able to find that module without any problem. (I also had an older Perl installation before needing that module and couldn't get package manager to find the module).
     

Share This Page