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. Oct 1, 2013 #41 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    Thanks. That did the trick. I am now able to record streams from my Pro-HD, but only on the "Slingbox Pro" setting in the "Slingbox model" drop-down box.

    Also, I can view the stream in VLC just fine, but can not open it for editing in VideoReDo TVSuite (I got a trial license to try it out. I had VideoReDo Plus already). However, when I open the .ts file in VRD TVSuite, I get the error message "H264 stream, missing info in the sequence parameter set." Is there a difference in the stream recording between the Pro-HD, Pro, and 300/500 models? HAve you or someone else been able to edit a stream recording from a Pro-HD?

    I'm happy to help test out the app if you're still looking for testers.
    Thanks.
     
  2. Oct 1, 2013 #42 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Yes I'm able to use VideoRedo TVSuite to edit the captures. Make sure you are using latest version which you can download here:
    http://www.videoredo.net/beta/VRDTVSH264-4-21-2-666a.exe
    Also for a trial VRD version I think you have to register with your trial key in order to get full functionality.
     
  3. Oct 1, 2013 #43 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    I just downloaded the trial (and registered the trial for 8 days of full features - I will buy only if I can get it to work with these streams). That's what I tried to open it with and got the above error. The version I got was 4.21.3.667, one release newer than the version you mentioned.
    If I PM you a link to the .ts file, could you try to open it? I've put in a support question at the VRD forum also.

    Edit: I've got too few posts to PM you. If you'd like to try the file, maybe PM me an email address or some other method. Or maybe the VRD folks will have a solution.
     
  4. Oct 1, 2013 #44 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    OK. Note that I'm capturing from Slingbox 350 which I know puts out H.264 for video. It's possible your Pro is not H.264 for video which could be the problem.
     
  5. Oct 1, 2013 #45 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    I can't PM you yet due to forum rules (too pew posts), but VLC shows the Codec is

    H264 - MPEG-4 AVC (part 10) (h264) for video and
    A52 Audio (aka AC3) (a52) for Audio

    It also shows a SlingBox stream as Program1

    Here's a Google Drive link. The file is 11MB:
    https://docs.google.com/file/d/0B_bRT-L-5Z3HaGRWU19RT0dhQWc/edit?usp=sharing
     
  6. Oct 1, 2013 #46 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    It certainly seems like VRD should be able to open it but I had same trouble you posted trying to open it. Comparing it to another file I have the only real difference that stands out is AC3 audio sampling rate is 32KHz in your capture. I'll try and re-encode audio of your capture with 48KHz sampling rate using ffmpeg to see if that makes any difference...
    I'd be curious to see what VRD folks say about it...
     
  7. Oct 1, 2013 #47 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Re-encoding audio to 48KHz sampling rate made no difference. I tried re-encoding video to H.264 and copying audio using ffmpeg and resulting sample could then be edited by VRD. So looks like VRD doesn't like something with the original H.264 video of the capture. Seems to me like possibly a VRD bug?
     
  8. Oct 1, 2013 #48 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    I explained this over on our forums, but here is is again for posterity...

    VideoReDo requires a frame rate to open a video. TS files do not have anywhere to store the frame rate at the container level which means we require it to be in the SPS NAL of the H.264 stream. It appears that these files are missing the frame rate in the SPS. With MP4/MKV files there is a place to store the frame rate at the container level, so in that case if we notice the frame rate missing from the SPS we just pick it up from the container instead. With TS that's not an option.

    Most player programs don't care about the frame rate because they simply look at the time stamps for the individual frames and use those for playback. In VRD we need a frame rate for our syncing and recoding routines to work so we reject files that don't have one. This is the same reason we don't currently support variable frame rate video.

    If you could make KMTTG remux to MP4/MKV and set the frame rate at the container level then those files would open. Although if you then save to TS the resulting file would lose the frame rate and you'd never be able to open it in VRD again.
     
  9. Oct 1, 2013 #49 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    OK, based on Dan's post I took the sample and simply remuxed to mkv container using ffmpeg and the resulting file opens fine in VRD. You can use following encoding profile in kmttg to do it:

    ff_mkv_remux.enc
    Code:
    <description>
    Remux to matroska container for Slingbox captures for VideoRedo
    
    <command>
    FFMPEG -y -i INPUT -vcodec copy -acodec copy -f matroska OUTPUT
    
    <extension>
    mkv
    
    Note that kmttg is already transcoding audio to AC3 during the capture using ffmpeg, so it would be trivial to write out to mkv instead of ts container. I'll have to think about perhaps using an encoding profile instead of hard coding so that user has option to adjust if desired.
     
  10. Oct 1, 2013 #50 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    Yes, I posted similar results at the VRD forum:

    "I used the tool "MKVToolNix", which is just a GUI wrapper for mkvmerge, among other things, and told it to force the framerate to 29.97 (well, 30000/1001p) and the .mkv file it created was openable/editable in VRD."

    I'm fine with using ffmpeg instead of mkvmerge to do the mkv container conversion. I'll try the encoding profile and let you know.
    Thanks again!
     
  11. Oct 1, 2013 #51 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    I looking at a possible way to fix this in VRD without having to remux. I'll report back if it works.
     
  12. Oct 1, 2013 #52 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    For next release kmttg release I've added "Video container to use" option to Slingbox GUI with choice of mpegts or matroska. This was easier than giving full control over how to transcode.
     
  13. Oct 1, 2013 #53 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    That makes sense. However, I should still be able to encode Sling recordings after the recording is finished using the same encoding profile(s) I use for my TiVo recordings, right? Just using the "Files" tab and my encoding profile of choice?
     
  14. Oct 1, 2013 #54 of 155
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,446
    165
    Apr 17, 2000
    Nevada
    I got it working. I added some code that can calculate a frame rate based on the time stamps of the individual frames if neither an SPS or container frame rate exists. I'll try to sneak it into the next beta.
     
  15. Oct 1, 2013 #55 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    Good to know. I look forward to trying it out.
     
  16. Oct 2, 2013 #56 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Yes. Note that most of the encoding profiles assume your starting point is mpeg2 however. Depending on your target device it's possible you can leave the H.264 video alone though instead of re-encoding to H.264 which would save a lot of time and preserve better video quality. So it may be worthwhile making a custom profile that perhaps uses "-vcodec copy" and just re-encodes audio and uses a different container.
     
  17. Oct 2, 2013 #57 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    The devices I'd want them to play on (for now) would be Android (MX Player), PS3 and StreamBaby back to the TiVo. I will try the H264 in MKV Container not re-encoded on all 3 and see if I have any problems.
     
  18. Oct 2, 2013 #58 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    I noticed today the "Tune to channel" option at the bottom of the Slingbox tab. Would it be possible to issue a different command to the Slingbox's source device (TiVo, DVR, etc). For example, I might cue up the video I want to capture and pause it, and then would want the Slingbox capture to send the play/pause button command when it starts capturing. Otherwise I can use my regular remote control, but it would be nice to not have to.
    Thanks again for the great tool and new features!
     
  19. Oct 2, 2013 #59 of 155
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    If you have a series 3 or later TiVo you are capturing from you can always use the kmttg Remote to do it. I know it's not automated like you were looking for but perhaps a little more convenient.
     
  20. Oct 3, 2013 #60 of 155
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    That is a good idea, and certainly use that to control my Premiere. Unfortunately that's not the only device attached to the Slingbox that I want to record from. How does the "Tune to channel" message work using the Perl script? Is it limited to channel commands?
     

Share This Page