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

framug

Super Moderator
  • Team MediaPortal
  • January 31, 2005
    6,232
    2,386
    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,232
    2,386
    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,070
    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,232
    2,386
    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,232
    2,386
    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,070
    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,232
    2,386
    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,232
    2,386
    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

    Not exactly sure how....but have now managed to correct this issue.:rolleyes:
    Not exactly sure how....but have now managed to correct this issue.:rolleyes:
    Using latest 64 bit MP1......for some time.....no problems! Now find that video has no audio.....but TV audio is fine...
    Replies
    1
    Views
    605
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which solved the problem with dolby digital plus audio. I want to thank Doskabouter for all his time and energy he put into resolving this!!
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which...
    Hi all, I could use some help with the following; OS: Win11 24H2 TV server: 1.37.000.0|x64 (working with Mediaportal for maybe 20...
    Replies
    4
    Views
    3K
    Are the media/video folders on the Mint host?
    Are the media/video folders on the Mint host?
    I've used Mediaportal for years on a Windows Host with restricted online-access. Lately I reinstalled...
    Replies
    1
    Views
    1K
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    654
    Top Bottom