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. Nov 10, 2013 #81 of 155
    morac

    morac Cat God

    8,940
    20
    Mar 14, 2003
    NJ
    I found a work around. I installed mkvtoolnix and then opened the mkvmerge GUI and opened the file and in the video, changed the FPS to 30 fps and then "merged" it to a new file. After that VRD TV Suite could open and save it without issue. I didn't try re-encoding, but I didn't need to as the audio wasn't messed up when doing smart re-encoding.

    mkvtoolnix is a bunch of command line tools with some GUI wrappers, so it could be run from kmttg if need be.
     
  2. Nov 11, 2013 #82 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    moyekj - Like morac, I've found a workaround for getting the kmttg Slingbox output into VideoRedo. His fix doesn't work on my files, however, if I take a .ts capture created by kmttg and run it through Handbrake with a constant framerate of 30, I'm able to work with the resulting .mp4. That file will load in VideoRedo and will then remux to a .wtv. That .wtv will play in WMC7 complete with commercial skipping via Comskip created skip files. The only thing that's a little funky is that WMC7 starts playing the audio right away and the video takes 5 seconds or so to get rolling, after that all is per usual.

    So, hopefully this intermediate step will be eliminated in a future release of VideoRedo. I was wondering though, if it would be possible to force the framerate to 30 using ffmpeg's -r argument. I couldn't quite figure out the correct syntax myself to test it. I guess the question would be whether a forced frame rate of 30 would result in the header info VideoRedo is looking for. I'm guessing that my Handbrake step is fixing more issues than just that. It takes about 5 minutes to process a 60 minute episode.
     
  3. Nov 11, 2013 #83 of 155
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    benicehavefun, can you confirm that the same rec2a.pl script posted above works for both your Pro and your Solo? To be safe I was going to designate the above script only for Solo models, but if it works OK with Pro models as well I may reconsider.
     
  4. Nov 11, 2013 #84 of 155
    morac

    morac Cat God

    8,940
    20
    Mar 14, 2003
    NJ
    I tested it with a Pro-HD. It seems to work fine, besides the 1000 fps issue.
     
  5. Nov 11, 2013 #85 of 155
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    OK thanks, I'll probably keep 1 script for both then.
     
  6. Nov 11, 2013 #86 of 155
    morac

    morac Cat God

    8,940
    20
    Mar 14, 2003
    NJ
    Actually I did see one issue that slipped my mind, but I don't know if it's the script or something else since I could capture successfully, just not every time. Sometimes the video capture would freeze and stutter at start up causing skips in the video (the time counter in KMTTG would actually pause or even jump back and forth between 0 and the current time). I just took that to be an issue with my machine though since it seemed to happen randomly at the start of captures. Once the capture started working it was good to go.

    I also didn't try a HD capture since the source video I wanted was SD and the aspect of HD videos was all screwed up in my earlier captures. As such I don't know if HD videos work better or worse than before.
     
  7. Nov 12, 2013 #87 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    moyekj - I don't have my HD dish setup right now, which means the receiver connected to my Pro HD isn't giving any meaningful video for me to capture. However, I'll get it setup later today and get back to you to confirm functionality on your version of rec2a.pl with the Pro HD. Thanks!
     
  8. Nov 12, 2013 #88 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    moyekj - it sounds like you're working on rolling rec2a.pl into a future kmttg release -- if so I have a couple of feature requests:

    The first is, would you be willing to add an option to your "Slingbox" tab for us to use our own output filename? If so, I'd be able fully automate the process from Slingbox capture through to having the episode show up on my HTPC, without a manual rename step required after the capture is completed.

    The second (and less important), what are the chances that the kmttg "tune to channel" field could also be used to send either a Slingbox "Select/OK" or "Play" IR command instead of the channel change digits? There was some work done on this in Place Shifting Enthusiasts thread. This way kmttg could start DVR playback of an already queued-up episode at the same time a capture is initiated.
     
  9. Nov 12, 2013 #89 of 155
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I'll plan to add optional file naming to the GUI. For the 2nd request since I don't have an older Slingbox so I can't test the rec2a.pl script for Select, Play IR commands. You can experiment with a copy of the script and try and get that going based on the PSE thread and if you do get something working I can try and incorporate into kmttg.
     
  10. Nov 12, 2013 #90 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    Ok great! Thanks for adding a custom output file name option. I'll see what I can do about getting those IR commands figured out...
     
  11. Nov 12, 2013 #91 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    moyekj - Ok, I set up my HD dish and I can confirm that your version of the rec2a.pl script (through kmttg) works great with the Pro HD. No issues. Thanks again!
     
  12. Nov 16, 2013 #92 of 155
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    FYI, I just released new version of kmttg (v1p0j) that has a few Slingbox related enhancements:
    * Support for Solo models
    * Optional file name specification
    * Option to capture raw file from Slingbox (in asf container) without remuxing to new container and re-encoding audio to ac3.
     
  13. Nov 17, 2013 #93 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    Excellent! Thanks for the continued development of kmttg. I'll confirm with you after I've tested my Solo with this latest release.
     
  14. Nov 18, 2013 #94 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    The new release is working great with the Solo. The ability to capture the raw file is nice too! FYI - The output directory and filename in raw output mode aren't enclosed in quotes when the command line is generated -- so spaces aren't tolerated. Easy to work around but would be great if you could fix that next time around. Is this an OK place to report issues, or do have an official tracker system?
     
  15. Nov 18, 2013 #95 of 155
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Good catch. Fixed in source code for next release.
     
  16. Nov 19, 2013 #96 of 155
    bayern_fan

    bayern_fan New Member

    201
    0
    Aug 11, 2013
    Getting "invalid perl executable" with kmttg on Mac OSX

    Right now I'm having it point at /usr/local/ActivePerl-5.16/bin which I thought was correct. Any advice?

    UPDATE: Changed Perl directory to /usr/local/ActivePerl-5.16/bin/perl-dynamic but now getting the following error

    Capture to file failed: /Users/../Desktop/kmttg_v1p0j/slingbox_2013_11_19_19_29_11.ts
    Exit code: 1
    FFmpeg version SVN-r19732, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --shlibdir=@executable_path --arch=i386 --cpu=i686 --disable-static --enable-shared --enable-pthreads --enable-gpl --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libfaad --enable-libx264 --extra-cflags='-I/Users/yoav/src/lame/include -I/Users/yoav/src/faad2-2.7/include -I/Users/yoav/src/faac-1.28/include -I/Users/yoav/src/x264' --extra-ldflags='-L/Users/yoav/src/lame/libmp3lame/.libs -L/Users/yoav/src/faad2-2.7/libfaad/.libs -L/Users/yoav/src/faac-1.28/libfaac/.libs -L/Users/yoav/src/x264/'
    libavutil 50. 3. 0 / 50. 3. 0
    libavcodec 52.34. 0 / 52.34. 0
    libavformat 52.38. 0 / 52.38. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libswscale 0. 7. 1 / 0. 7. 1
    built on Aug 27 2009 10:32:06, gcc: 4.0.1 (Apple Inc. build 5484)
    box in use at /Users/.../Desktop/kmttg_v1p0j/slingbox/rec350.pl line 61.
    pipe:: Unknown format
     
  17. Nov 19, 2013 #97 of 155
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I think the key error message you are getting is "box in use" (I bolded below), which would imply maybe you have something else using the Slingbox while you are attempting to use kmttg to capture the video. You cannot have anything else using your Slingbox while you try the capture. The 350/500 have a light that comes on indicating when it is in use, so make sure that is off before attempting a capture.

     
  18. Nov 24, 2013 #98 of 155
    benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    moyekj - I've been playing around with getting "p" for "PLAY" and "o" for "OK/Select" working as an option in lieu of sending a channel change command in the rec2a.pl script.

    I have it working for both the Solo and the Pro HD with the following code:

    $ircmds .= pack("v2", $chdigit eq 'p' ? 24 : $chdigit eq 'o' ? 42 : $chdigit ? $chdigit + 8 : 18, 500);

    which replaces:

    $ircmds .= pack("v2", $chdigit ? $chdigit + 8 : 18, 500);

    The kicker is that on the Solo $irparm needs to be set to 2 and on the Pro HD it needs to be set to 3. It's a nice little extra to be able to start the capture right at the beginning of playback on a recorded show, so if you can work it in to kmttg, that would be great!

    Thanks.
     
  19. Nov 25, 2013 #99 of 155
    hollowfield

    hollowfield New Member

    1
    0
    Nov 25, 2013
    Hi, I am playing with the rec2a.pl script, I'm more interested in remote control than recording. I added my Slingbox IP and Password to the script and ran it. This was giving me a 135 error, so I changed the irparm from 3 to 2 as per the instructions in the script. The script works for recording, but the channel doesn't change.

    rec2a.pl -chan 101

    I am using a slingbox solo and a sky+hd box.

    Any help would greatly be appreciated.
     
  20. benicehavefun

    benicehavefun New Member

    16
    0
    Nov 4, 2013
    So, am I correct that you're running the kmttg modified version of the script from the command line? Also, is this a UK version of the Solo?

    If you don't need or want a GUI, you may want to get the original version of rec2a.pl from:

    http://placeshiftingenthusiasts.com...stream-in-high-definition-720-or-1080/page-9/

    (You'll need to register to see the script attached to one of the posts on page 9)

    Then, the usage would be in the form:

    perl.exe -w rec2a.pl <x> <y> <z>

    Where <x> is the delay in seconds before beginning capture, <y> is the number of seconds to capture and <z> is the channel number to change to. Don't use the < >!

    If you look through the above above referenced forum, you'll see that another user with a UK Slingbox (a Pro HD) had to set $irparm = 0. So 2 and 3 aren't the only options...
     

Share This Page