[TV] Add timeshift buffer to a recording (1 Viewer)

shummi

Portal Pro
February 24, 2010
51
2
Denmark Denmark
Hi @infinite.loop

When you watch a live show, it creates a time shift file, when you change channel it still record to the same file.
so first i think it should create a new file on channel change.
After that, when you after 10 min. choose to record, MP could keep this time-shift file, and rename it and move it to record folder when finished.
Just a thought

/Shummi
 

mattjcurry

Development Group
  • Team MediaPortal
  • October 24, 2011
    261
    207
    39
    Country flag
    I am not sure how the appending would work since it has to appear instant to the user. Also, even after the user hits record, they should be able to move back and forth seamlessly between what has been timeshifted and what is recorded tv.

    Also, I think that the feature should be egp aware. In other words, if I started watching tv 1.5 hours ago, but then a new show comes on 10 minutes ago and I want to record it, the only part of the ts buffer that should be appended to the recording is from the beginning of the show as indicated by the egp (maybe using the default pre and post buffer options).
     

    shummi

    Portal Pro
    February 24, 2010
    51
    2
    Denmark Denmark
    @mattjcurry
    You got a point.
    I haven't found any reliable TS-file cutter, so a possibility is to create 2 TS-files, when recording starts.
    1. Normal time-shift file.
    2. Record-file, that's:
    • Named the with the actual EPG info
    • EPG-aware, so filecreation starts with pre and post buffer
    • Channel change aware. so filecreation starts when channel changes.
    This will require double (tripple) the filespace.
    Then when the user hits record, MP will:
    • Show Record "red-dot"
    • Show warning if user try to change channel
    • After recording, move the already saved file to recordfolder.
    /Shummi
     

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    I think I have top clarify a bit:
    there is already a TS-file cutter in the TvService, because this feature was already available in TVE2 and experimental in TVE3, but seems to be broken currently.
    Also you don't need multiple ts files.
    You can just copy that specific part from the timeshiftbuffer-file to the beginning of the recording file.
    The hard part is to determine at which position exactly the recording started and get only the relevant part of the timeshiftfile over to the recording ;)
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    The hard part is to determine at which position exactly the recording started and get only the relevant part of the timeshiftfile over to the recording ;)
    Hard? You can say that again!
    Currently it is not possible as TsWriter has no concept of "current position". All that stuff is playback domain - TsReader.
    Joining or cutting TS files is relatively simple. I think the current behaviour could be improved by joining the files automatically, but cutting to program is non-trivial. A smart solution is needed if it is possible at all.
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,749
    New Zealand
    New Zealand New Zealand
    Country flag
    This was already looked at ?last year? and someone made a mod/branch with a lot of changes, it was able to do it. I think the changes had some undesirable effects as well.... Anyway It was also looked at by some of the MP team and it was decided that it required too many changes to make it into mediaportal.

    EDIT: Here it is
    https://forum.team-mediaportal.com/threads/step-2-add-already-watched-ts-buffer-to-recording.81937/

    EDIT2: Derp linked in first post...

    However I think this feature would be great, I could see it implemented 3 ways

    1. Press Record, MP looks at the epg, decides what time the program started and uses timeshift from that position + a precord buffer

    2. User time shifts backwards then presses record at the point he wants to record then chooses to stop recording when the program is finished via the same dialog box we get currenty (manual stop vs record current program)

    3. User time shifts backwards then presses record at the point he wants to record, chooses manual stop, then he can skip forward in the timeshift buffer and press stop. The recording could only span the timeshift buffer or it could include part of the timeshift buffer and part of the "live buffer"

    So when you press Record you get the following dialog

    Record entire show
    Record from now till show end
    Record from now till manual stop
     
    Last edited:

    blub

    MP Donator
  • Premium Supporter
  • October 1, 2013
    223
    82
    Giessen
    Germany Germany
    Hi

    This a "killer feature". The Linux VDR distribution can do this, they use only one TS-file which gets deleted when you change channel.
    If you decide to record when in TS-mode it copies all the data from the show you want to record to new recording and merges it with the "live recording" stream.

    You cannot change the channel until the copying process is finished.
    One disadvantage is that when you accidentally change the channel in TS mode all data is gone and you can only resume to the show in live mode - missing quite a lot.
     

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,930
    2,234
    Ba-Wü
    Germany Germany
    Country flag
    Hi

    This a "killer feature". The Linux VDR distribution can do this, they use only one TS-file which gets deleted when you change channel.
    If you decide to record when in TS-mode it copies all the data from the show you want to record to new recording and merges it with the "live recording" stream.

    You cannot change the channel until the copying process is finished.
    One disadvantage is that when you accidentally change the channel in TS mode all data is gone and you can only resume to the show in live mode - missing quite a lot.
    Have you checked: https://forum.team-mediaportal.com/threads/include-timeshift-buffer-in-recordings.121648/
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    ajs [solved] Add CI AppVeyour to github account MediaPortal 1 46
    M Add Radio channels and EPG to Mediaportal xmlTV 2
    horned_reaper [solved] Add support for Bluetooth events Improvement Suggestions 2
    ajs [WiP] 5030: Add UHD Thumb size to TV Server MediaPortal 1 0
    ajs [fixed] 5029: Add the ability to choose the type of pause for designers in the slideshow MediaPortal 1 4
    P MP 2 - Request to add an additional TV series Filename protocal Feature Requests 0
    raffe How to add 500+ streams? OnlineVideos 1
    T How to add missing buttons IR Server Suite (IRSS) 0
    R [solved] Moving pictures importer wont add files from a removable drive. Is there a work around ? Moving Pictures 8
    cbr954rr Possibillity to add more Movie Folders in Menu General 5
    ajs [solved] 4935: Add string.replace function to Skin engine MediaPortal 1 10
    haaitje Crashes when trying to add lyrics MPTagThat 0
    H Add site to home OnlineVideos 5
    E Can I add folder icons to my list of videos MediaPortal 1 Talk 9
    Timothy Cobb Mediaportal 2 Weather - Can't add Weather locations Plugin Development 5
    E How can I add some site to Online Video Plugin ? OnlineVideos 4
    J silly question: where do I add my login details!! OnlineVideos for MediaPortal 2 5
    G [solved] timeshift error Newcomers Forum 2
    k12158 [solved] Keine Zugriff auf NAS Ordner mit Recordings und TimeShift Allgemeines Support- und Diskussionsforum 6
    P Timeshifting in XMLTV General 2
    joecool70 Fehlermeldung Error invoking action "Start Timeshift" Allgemeines Support- und Diskussionsforum 1
    cladinshadows85 timeshift error <solved> General 2
    S EPG timeshift advice needed please Electronic Program Guide 3
    R Mp2.2 verschiedene (neue) probleme, server nicht gefunden, client stürzt bei tv ab, timeshift... Allgemeines Support- und Diskussionsforum 1
    L Live TV stoppt wenn Buffer "voll" TV / Streaming 1
    Similar threads

























    Top Bottom