[Approved] Fix for TVE #0002126 (1 Viewer)

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,012
    2,107
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #2
    Since I tested it on a USB key, I found better cartridges for my rifle.
    And, here are the evidences (screenshots before/after) :

    I modified older classes wich are now for latest #23143 SVN.
     

    Attachments

    • before.JPG
      before.JPG
      49 KB
    • after.JPG
      after.JPG
      49.5 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Actually it would be more important to fix the MediaPortal client side to show the correct error note when the disk is full.
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,012
    2,107
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #4
    Hi tourettes,

    Ah, OK, it was not very clear, in the mantis. ;)
    May I hope this fix will be integrated anyway ?
    Then I didn't work for nothing ?
    I will have a look on the client side but, I don't promise something for sure.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I think it's also important to handle disk space also during recording and timeshifting, not only on starting.

    does your patch cover this?
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,012
    2,107
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #6
    Hi morpheus,

    I admit not, for the server side but, I would like to explain you what I found :

    For the server side :
    TimeShifter doesn't want to start if there is less space than 488,5 MB.
    I'm absolutely sure of that because fully tested.
    The TimeShift file is always 250 MB.
    Then, for this event, user has to stay on record state in the TV-Server Configuration during more than 7 minutes.
    And even if more than 7 minutes, the TV-Server doesn't crash.
    Of course, in this case, .ts file will not be really usable but, click record button on Manual Control Form, isn't it intended only for testing if record is OK, finally ?
    Then, shouldn't it be enough, just for this case ?
    Don't forget, before, it was a messagebox with another message displayed but, there was neither specific thread or timer for that too.
    Then, I thought it was just a bug to fix.

    For the client side, it's not the same error message (look at screenshot) :
    It appears to be inside TVHome.cs, when ChannelTuneFailedNotifyUser(TvResult succeeded, bool wasPlaying, Channel channel) method is called.
    Then, shouldn't it be another mantis record for that ?
    (Just wonder and of course, I agree, we have to fix it too).

    What do you think, about ?

    Edit : ooops, just seen that unknown error, is because of the new NoFreeDiskSpace implemented and, not treated yet in TVHome.
    I must to look a bit more inside.
     

    Attachments

    • before_client.JPG
      before_client.JPG
      55.9 KB

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,012
    2,107
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #7
    Enjoy Client side :
     

    Attachments

    • after_client.JPG
      after_client.JPG
      57.6 KB
    • TVHome.patch
      30.6 KB
    • strings_en.patch
      30.6 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    shouldn't your patch consider also the settings from tvservice?

    i.e. you can set timeshift file size to 1 GB per file, min 2, max 4. your hardcoded check "<500000" wouldn't fit here.

    I think this should be possible to check?
    :D
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,012
    2,107
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #9
    morpheus, sorry to ask you this.
    Remember, I'm a bit noob, with this TVE3. :p
    I didn't know there were such settings.
    Is it what I surrounded in red and green ?
    I have to multiply Minimum files with Filesize to obtain the value and finally use it in the test ?
    Is it what you ask me for ?

    Edit : Well, or maybe, I suppose multiply Maximum files with Filesize, isnt it ?
     

    Attachments

    • noob.JPG
      noob.JPG
      58.6 KB

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,012
    2,107
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #10
    After many tests :

    - Changing Minimum or Maximum files settings doesn't change disk space needed.
    - Only changing Filesize is influential with disk space needed.
    A 256 MB/file value in Filesize implies 512 000 000 bytes free on HDD for it works.
    (488 MB exactly because, you know of this story for bad commercial disk size, they count 1 KB = 1000 Bytes and 1 MB = 1000 KB).
    A 257 MB/file value in Filesize implies 514 000 000 bytes free on HDD for it works.

    Then, I determined this calcul solution for it works :

    Error No Free Disk Space if :

    Free Disk Space on HDD < (timeshiftMaxFileSize in Bytes * 2)


    I uploaded newer TimeShifter.patch in the first post, if you agree with my solution...
     

    Users who are viewing this thread

    Similar threads

    https://forum.team-mediaportal.com/threads/mediaportal-1-1-34-with-x64-support-released.141238/
    https://forum.team-mediaportal.com/threads/mediaportal-1-1-34-with-x64-support-released.141238/
    Bei Computerbase.de gibt es die Version 1.34 (in x86 und x64) seit Mitte der Woche (19.06.2024): Hier wird noch die Beta...
    Replies
    1
    Views
    142
    MP has adjustable audio delay. I don't know whether this works for all video formats, but it certainly works for TS files, and may work for MP4 files. There is a slider that allows you to adjust the audio delay while playing a video. Press the INFO button on the remote control to display the OSD, select the "Audio" icon, and then...
    MP has adjustable audio delay. I don't know whether this works for all video formats, but it certainly works for TS files, and may...
    This is not an audio/video out of sync issue but a delay in audio in playback I have been using MP for years and noticed their...
    Replies
    1
    Views
    466
    MP1 MP2 DVB-T playback DE
    Those signal numbers look fine. (y) Unfortunately, I don't have any other suggestions as to the possible cause of your problem. :( -- from CyberSimian in the UK
    Those signal numbers look fine. (y) Unfortunately, I don't have any other suggestions as to the possible cause of your problem. :(...
    I've just rebuilt my htpc and added DVB-S and DVB-T cards TBS6281 and TBS6982. The system is all working well except for playback...
    Replies
    3
    Views
    363
    • Sticky
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in driving the development of an advanced HTPC software? Would you like new features get implemented faster? Well, then join us! What we offer: Almost unlimited creative leeway The possibility to closely...
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in...
    Software Developer C# The MediaPortal 2 team is seeking committed people to strengthen its developer basis Are you interested in...
    Replies
    0
    Views
    6K
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    2K
    Top Bottom