TsBufferExtractor plugin for TvServer

Discussion in 'TV-Server Plugins' started by regeszter, April 28, 2014.

  1. regeszter
    • Team MediaPortal

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,151 / 18
    Home Country:
    Hungary Hungary
    Hi,

    when you are watching the Tv and you decide to record the current program you will lose the 1st part of the program because the timeshift buffer is not included into the recorded file.



    This plugin will save the TvServer timeshift buffer into a .ts file when you press the record button.


    recordedtv.PNG TsBufferExtractor.PNG

    Change log:
    • v0.2.0.0: some options..
    • v0.2.1.0: create xml file for buffer file.
    • v0.3.0.0: stable version, some error->debug log change
    • v0.3.1.0: resolve TS buffer corruption (on low I/O systems)
    • v0.4.0.0: Client-Server version for MP 1.9 Pre Release
    • v0.4.0.1: minor bugfix
    • v0.5.0.0: ask the user to save the buffer (the timeout of the dialog is 10 sec)
    • v0.5.0.1: minor bugfix
    • v0.6.0.0: BETA merge buffer and recorded file to new one. All originals are left.
    • v0.6.0.1: BETA recompiled for 1.16 Pre Release
    • v0.6.1.0: BETA added new config options

    You can download the stable version from here: TsBufferExtractor

    bye,
    regeszter
     

    Attached Files:

    Last edited: September 18, 2017
    • Thank You! Thank You! x 7
    • Great Idea! Great Idea! x 6
    • Like Like x 5
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    One question: Why minus the pre record time?
    I mean if I decide to record a show in the middle and want to copy the buffer to have a complete recording I won't have a prerecording time. Or do I miss something?!

    To make it more clear:
    R = Recording of 5 minutes
    T = Timeshift of 5 minutes
    L = Live Point
    Pre recording: 5 miniutes
    [] = Gap

    User watched a program, than this is the the now status:
    TTTTL
    User hits record => normal recording from the live point starts
    TTTTR...
    User presses button to export the timeshift buffer
    Only TTT gets copied, so the final result would look like this:
    TTT[]RRRRRRR

    Right or wrong?^^
     
  4. regeszter
    • Team MediaPortal

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,151 / 18
    Home Country:
    Hungary Hungary
    User watched a program, than this is the the now status:
    TTTTPTCTTETTL

    User hits record => normal recording from the live point starts
    TTTTPTCTTETTLR...

    User presses button to export the timeshift buffer

    Without pre-record time only ETTL gets copied, so the final result would look like this:
    File 1: ETTL[]
    File 2: RRRRRRR

    With pre-record time the PTCTTETTL gets copied, so the final result would look like this:
    File 1: PTCTTETTL[]
    File 2: RRRRRRR

    Which is the better?
     
    Last edited: April 29, 2014
  5. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    so if i watched the show not from the beginning, but still want to record it from the point where i started to watch it - the plugin won't do it?
    Is there any chance to configure the destination path and name of timeshift copy?
     
  6. regeszter
    • Team MediaPortal

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,151 / 18
    Home Country:
    Hungary Hungary
    Yes. It won't do it if you did not watch from the beginning. The all timeshift buffers will be extracted without this rule. Is there a better solution? I can implement it.

    The path is the same as the recorded file, but I can do some options of course.
     
  7. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    well, if you recognize that you have less timeshift than needed for full program - then why not to take them all? they probably will contain the part of show i started watching.

    makes sense.
    Maybe add options to name the folder where all TS will be copied (relative to main recording file)?
     
  8. Brudertac
    • Premium Supporter

    Brudertac MP Donator

    Joined:
    October 26, 2006
    Messages:
    978
    Likes Received:
    117
    Gender:
    Male
    Location:
    Augsburg
    Ratings:
    +277 / 1
    Home Country:
    Germany Germany
    Show System Specs
    This is really a great Idea for a Server Plugin! Ist there no way to merge the files into on big Record? Then it would be also listed as one Recorded Show...
     
  9. regeszter
    • Team MediaPortal

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,151 / 18
    Home Country:
    Hungary Hungary
    How can you manage the following situation?

    Channel1 Program1 -> Channel1 Program2 -> (Channel switch) -> Channel2 Program1 (partial) -> Start the record.

    I will save the all (big) buffer. Of course I can make an option if the user wants to save the full buffer or the buffer from the beginning (as now).

    Why need you save the file to an another folder than the recorded file? That is the first part of the current program.
     
    • Missing steps to reproduce Missing steps to reproduce x 1
  10. regeszter
    • Team MediaPortal

    regeszter Retired Team Member

    Joined:
    October 29, 2005
    Messages:
    5,335
    Likes Received:
    2,863
    Ratings:
    +5,151 / 18
    Home Country:
    Hungary Hungary
    Sorry but no way to merge because the buffer is not aligned to correctly but you can play with MePo or any other media player.
     
    • Agree Agree x 1
  11. Vasilich
    • Team MediaPortal

    Vasilich Test Group

    Joined:
    August 30, 2009
    Messages:
    3,389
    Likes Received:
    608
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Germany, Mayence
    Ratings:
    +1,172 / 2
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    same as "Channel1 Program1 -> Channel1 Program2 -> (Channel switch) -> Channel2 Program1 -> Start the record." - no way to recognize if the timeshift buffer has the data for particular channel, even if (start time - prerecord) is contained in timeshift.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!