Record timeshift buffer as well | Page 3

Discussion in 'Improvement Suggestions' started by Arterio, April 4, 2009.

  1. dareh

    dareh Portal Pro

    Joined:
    July 7, 2006
    Messages:
    104
    Likes Received:
    9
    Location:
    Alcalá de Henares
    Ratings:
    +9 / 0
    Home Country:
    Spain Spain
    Show System Specs
    +1 Pleeeaaase ;).



    Thanks.
    Dareh.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Mantis bug tracking & feature (todo list?) won't feature anything that wont' fullfill the following:

    • Is a confirmed bug
    • Is a feature that team has agreed to be added and we have a developer that has agreed to implement the feature
    • Is a feature that we have a community patch that is waiting for the integration testing (and team has agreed that the feature is a wanted one)
     
  4. pilehave
    • Premium Supporter

    pilehave Community Skin Designer

    Joined:
    April 2, 2008
    Messages:
    2,566
    Likes Received:
    500
    Gender:
    Male
    Occupation:
    Technical consultant, marketing
    Location:
    Hornslet
    Ratings:
    +517 / 0
    Home Country:
    Denmark Denmark
    ok...but put it in MP 2.0 please, its easier to do from scratch than to rewrite tons of classes ;)
     
  5. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Would require rewriting TsReader and TsWriter on some parts :) (and those are most likely going to be used in MPII).
     
  6. tanstaafl

    tanstaafl Portal Member

    Joined:
    December 19, 2007
    Messages:
    13
    Likes Received:
    0
    Occupation:
    Computational Linguist (unemployed)
    Location:
    Uppsala
    Ratings:
    +0 / 0
    Home Country:
    Sweden Sweden
    All the more reason to start thinking about it before it's too late! =)

    Could you or someone with fair knowledge of TsReader/Writer outline what would have to be done in some detail (including any other classes that would need changing)?

    Might make it a more attractive project if there's a brief outline of what classes to look at: TVE code isn't always that easy to follow. :p

    /tans

    PS: I do mean a _brief_ outline, say a few lines, a paragraph... Heck, even a list of classes, methods, that would definitely need altering would be useful. =)
     
  7. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    Actually TsReader doesn't need any changes...

    Here's a short list that could help up starting the developement

    • TV client needs to have an option / dialog that asks if the buffered / timeshifted material is wanted to be recorded when user presses a record on active show (that has timeshifted material)
    • TV client needs to maintain some state information of the buffer content (i.e. how much timesifted material there is available for the currently playing show)
    • TV client needs to ask server to record a buffered content (if user selects that option)
    • TV server needs to have an interface to be able to tell it to record the buffered data as well (client will tell how much)
    • TsWriter will have a new class that is able to parse the buffered data (timestamps mainly from multiple files) and then copy the needed buffer data to the newly created recording file (and assure that timestamps are continuous). Related code is somewere in TsWriter.cpp and DiskRecorder.cpp.

    Propably something else needs to be implemented as well, but I don't know the whole code that is affecting the recording use case (it has been at least one year when I have last time worked in that area). But at least that list should give some pointers for an interested community developer to start the work.

    Anyone, feel free to correct the ideas as they might be totally wrong :p
     
    • Like Like x 4
  8. te3hpurp
    • Premium Supporter

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    904
    Likes Received:
    182
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +229 / 0
    Home Country:
    Finland Finland
    Show System Specs
    Those are the tough solution guidelines...

    But what about simpler solution for those who want it so badly ?

    Ie User uses skip setps to go back to the point he/she wants to start recording and presses record. Dialog shows options to choose how long to record like 0,5 h, 1h, 1,5h etc. Then users selects correct length and mp records the same what is currently playing in screen. The you can close tv scree and go away and slected length of buffer is recoirded.

    regards,
     
  9. Gixxer
    • Premium Supporter

    Gixxer Retired Team Member

    Joined:
    August 18, 2007
    Messages:
    1,383
    Likes Received:
    41
    Occupation:
    Mechanical Engineer
    Location:
    Spain
    Ratings:
    +41 / 0
    Home Country:
    Spain Spain
    i dont know much about programming so i might be completly off here...

    wouldnt it be an option to keep for example a txt file of what is inside the timeshift buffer file.

    that means each line saying:
    -at 1:32 channel A program A
    -at 5:32 channel B program B
    -etc

    then if you hit record program A you do something like:
    -extract from timeshift buffer file from minute 1.32 to minute 5.32
    -start recording program A
    -when program A finishes recording, join extract to recording.

    im sure there are many complications i dont know about, but this could be an option where tsreader and tswriter are not modified. an external process could be in charge of first extracting the appropiate part from the timeshift buffer and then merging it to the actual recording.

    probably all this is wrong, but just my idea.
     
  10. tourettes
    • Premium Supporter

    tourettes Retired Team Member

    Joined:
    January 7, 2005
    Messages:
    17,301
    Likes Received:
    4,595
    Ratings:
    +4,810 / 3
    I would assume the most complex thing is the buffer handling (and copying). So, there won't be any shortcuts :) The GUI and server client interface changes are trivial compared to that.
     
  11. esas

    esas Portal Pro

    Joined:
    November 14, 2006
    Messages:
    160
    Likes Received:
    22
    Ratings:
    +27 / 1
    Home Country:
    Norway Norway
    Show System Specs
    • Like Like x 1
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!