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. May 25, 2013 #1 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    There may be easier ways, but recently I discovered a nice way to capture Slingbox video stream directly (not using full screen capture techniques) thanks to "Slinguist" from this post:
    http://placeshiftingenthusiasts.com...-in-high-definition-720-or-1080/page-2/#p7632

    Since there are a few Slingbox users here I thought it may be useful to summarize how to get the above working, since it's not trivial to do:

    1. Download this Perl script:
    http://placeshiftingenthusiasts.com...-file-uploads/slinguist/2013/01/rec350b-1.zip

    2. Requires Perl installation to run if you don't already have it installed:
    http://www.activestate.com/activeperl/downloads

    3. Perl script requires the Crypt::Tea_JS module. You can use the Perl Package Manaager to find and install that module:
    Start Perl Package Manager
    * View->All Packages
    * Find and click on Crypt-Tea_JS
    * Action->Install
    * File->Run Marked Actions.

    4. You then need to edit the rec350b.pl script to update $slingip, $pass and optionally $vs variables.

    5. Sling IP & Port you can find as follows:
    * Start the web based player the usual way (login if needed): http://newwatch.slingbox.com/#SettingsPageFacade/index
    * Click on 'Settings' and then click on 'NETWORK DETAILS' where you can see HOME IP Address and Network Port
    * Now in Perl script set $slingip accordingly.

    6. While keeping the Slingbox stream active in your browser, the 15 digit admin password you then find by opening a new tab in your browser and visiting:
    * https://newwatchsecure.slingbox.com/watch/slingAccounts/account_boxes_js
    * Then look for 'adminPassword' setting in the .js file. (If you have more than 1 Slingbox make sure you grab the setting for the right one).
    * Now in Perl script set $pass accordingly.

    7. I also changed $vs=16 to get 1920x1080 resolution 4Kbps H.264 video for my Slingbox 350.

    8. Now you're ready to run the script and capture video.
    * Make sure you exit Slingbox viewing in your browser before running the Perl script.
    * When you run the script it will create a .asf file in same directory as the script which you can play back using VideoLAN VLC and other players.
    * After running script remember to rename the .asf file to something else before running again, or it will get overwritten.
     
  2. May 31, 2013 #2 of 155
    Series3Sub

    Series3Sub Active Member

    1,125
    8
    Mar 14, 2010
    I plan on just getting one of the supported media streamers (like the WD Live) that have the Sling App already loaded. This means I can sling to my HDTV in the other room without having to use a PC or laptop. Just easier as I don't have the time anymore for much DYI.
     
  3. May 31, 2013 #3 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Not sure I follow your point. This thread is about a means to record Slingbox video directly. Useful for example for capturing a sequence of interaction with a TiVo to illustrate a bug or feature without having to use a video camera to record the TV picture.
     
  4. May 31, 2013 #4 of 155
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    Thanks for the write up, I plan to give this a try. Any idea if this will work with an older slingbox pro? (mpeg2 stream).
     
  5. May 31, 2013 #5 of 155
    Gaidin43

    Gaidin43 Member

    100
    0
    Mar 6, 2013
    If this is true this is an outstanding travel item or tivo mini/tivo stream replacement!
     
  6. May 31, 2013 #6 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
  7. May 31, 2013 #7 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,504
    177
    Apr 17, 2000
    Nevada
    So this captures the digital stream directly from the Slingbox? What format is the video? H.264?
     
  8. May 31, 2013 #8 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Yes it captures and decrypts the Slingbox encoded digital output. You have control over resolution, frame rate and some other basic parameters. For the newer Slingboxes the video is H.264. Here's mediainfo stats for a sample capture:
    Code:
    General
    Complete name                    : H:\scratch\record_1080i.asf
    Format                           : Windows Media
    File size                        : 6.36 MiB
    Maximum Overall bit rate         : 5 120 Kbps
    Movie name                       : Slingbox
    Performer                        : Sling Media
    Comment                          : 1
    
    Video
    ID                               : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Codec ID                         : h264
    Width                            : 1 920 pixels
    Height                           : 544 pixels
    Display aspect ratio             : 3.529
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    
    Audio
    ID                               : 1
    Format                           : 706D
    Codec ID                         : 706D
    Bit rate                         : 256 Kbps
    Channel(s)                       : 2 channels
    Sampling rate                    : 32.0 KHz
    Bit depth                        : 16 bits
    
    I don't like above aspect ratio so normally capture as VGA (640x480).
     
  9. May 31, 2013 #9 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,504
    177
    Apr 17, 2000
    Nevada
    That's weird, it's half the vertical resolution of standard 1920x1080. (1920x1080 is actually 1088 with a cropping rect removing the last 8 lines)

    Can you send me that file?

    http://www.videoredo.net/UploadFiles.htm

    I want to see if I can get it to open in VideoReDo. (see if I can coax our FFmpeg reader into reading that format)
     
  10. May 31, 2013 #10 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Since I'm at work I actually grabbed a clip from that thread I posted above. You can download it from here:
    http://bit.ly/15d7xNt
     
  11. May 31, 2013 #11 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    FYI, here's mediainfo from my own 640x480 capture. That clip I linked to above must have been a European user. The video in my capture is h.264 and audio is 2 chan AAC:
    Code:
    General
    Complete name                    : C:\home\dvd\short_clip.asf
    Format                           : Windows Media
    File size                        : 5.28 MiB
    Movie name                       : Slingbox
    Performer                        : Sling Media
    Comment                          : test
    
    Video
    ID                               : 1
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Codec ID                         : h264
    Width                            : 640 pixels
    Height                           : 480 pixels
    Display aspect ratio             : 4:3
    Color space                      : YUV
    Chroma subsampling               : 4:2:0
    Bit depth                        : 8 bits
    
    Audio
    ID                               : 2
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Codec ID                         : FF
    Bit rate                         : 64.0 Kbps
    Channel(s)                       : 2 channels
    Sampling rate                    : 32.0 KHz
    Bit depth                        : 16 bits
    Compression mode                 : Lossy
    
     
  12. Jun 2, 2013 #12 of 155
    ShayL

    ShayL Member

    211
    0
    Jul 17, 2007
    Dallas, TX
    moyekj, which model of the slingbox do you have?
     
  13. Jun 2, 2013 #13 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    350.
    (I also have the original Slingbox Solo but retired it in favor of the 350 which works MUCH better under low bandwidth conditions).
     
  14. Jun 3, 2013 #14 of 155
    aaronwt

    aaronwt UHD Addict

    19,190
    25
    Jan 31, 2002
    Northern...
    I can even watch content from my SlingBox 350 at my GFs house with her crappy DSL 1.25Mb/s connection.
     
  15. Jun 3, 2013 #15 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Yes, attempting to do that with an old Slingbox Solo would have been practically unwatchable. With the 350 the picture is quite watchable even at 900 Kbps or so.
     
  16. Jun 4, 2013 #16 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    FYI I wasn't able to just remux into mp4 or ts container using ffmpeg using -acodec copy, but converting audio to ac3 worked fine:
    FFMPEG -y -i INPUT -vcodec copy -acodec ac3 -f mp4 OUTPUT

    Resulting mp4 then of course could be read into VRD without issue.
     
  17. Jun 5, 2013 #17 of 155
    HarperVision

    HarperVision TiVo's Italian Cuz!

    5,275
    3
    May 14, 2007
    Paradise...
    I used to watch my Slingbox located in PA when I was in Afghanistan at 128kbps, talk about crappy, but it worked and I was able to watch all my sports at least. :up:

    Why don't you guys just use the Jaksta software to do this? Much easier and not all these hoops to jump through.
     
  18. Jun 5, 2013 #18 of 155
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    OK, you convinced me to spend some cash sitting in my paypal account and upgrade my ancient Slingbox Pro to a new 350 to get the h264 encoding and try this stream capture idea.

    Any chance of adding this capability to kmttg or a separate utility?
     
  19. Jun 5, 2013 #19 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Not familiar with it but it looks like non-free software?
     
  20. Jun 5, 2013 #20 of 155
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Since it is Perl based and requiring a special Perl module it doesn't fit with kmttg. The Perl script here IS the utility, though I suppose you could probably have a wrapper script piping through ffmpeg to get a more standard mp4 or ts container.
     

Share This Page