Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24

Thread: Recordings in progress...

  1. #16
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,276 Times in 1,089 Posts
    Quote Originally Posted by Fuzzy View Post
    A recording isn't taking place though. The problem occurs if anything has been recorded and is finished and there are none coming up. Even recording something for a few seconds and stopping it stops me accessing the tuner settings.
    That's exactly what was happening for me, have you checked the link Birdman posted?

  2. The Following User Says Thank You to ccs For This Useful Post:

    Fuzzy (19-01-19)

  3. #17

    Title
    Senior Member
    Join Date
    Mar 2014
    Posts
    174
    Thanks
    60
    Thanked 29 Times in 19 Posts
    Quote Originally Posted by birdman View Post
    That's the bit mentioned in this post:

    https://www.world-of-satellite.com/s...l=1#post382929

    You don't need to have timeshift enabled for this to be an issue - just that value (somehow) being set.
    Sorted! I changed "Stop timeshift while recording" to 'no' and the problem has gone! I even have timeshift enabled and it is still working fine. I wrongly assumed that because timeshift was turned off that it couldn't affect anything.

    Thanks Birdman and everyone else who has helped because I can honestly say that I would never have found it because I wouldn't have even considered it a possibility.

  4. The Following 2 Users Say Thank You to Fuzzy For This Useful Post:

    widar (23-01-19),Willo3092 (19-01-19)

  5. #18
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by Fuzzy View Post
    Sorted! I changed "Stop timeshift while recording" to 'no' and the problem has gone! I even have timeshift enabled and it is still working fine. I wrongly assumed that because timeshift was turned off that it couldn't affect anything.
    I couldn't (quickly) understand what the code was doing so stopped trying to fathom it.
    However, it has now hit a few people and the workaround isn't obvious, as it seems to relate to something that isn't used.
    Looking at the code again I see that the only other use of stopwhilerecording also checks self.pts_record_running, so perhaps the one causing this problem should too.
    I'll poke around....
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. The Following User Says Thank You to birdman For This Useful Post:

    Fuzzy (21-01-19)

  7. #19
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by birdman View Post
    Looking at the code again I see that the only other use of stopwhilerecording also checks self.pts_record_running, so perhaps the one causing this problem should too.
    I'll poke around....
    Seems to work.
    If I check both values as a combination then I can set off a recording, stop it and get no "are you sure" prompt when accessing tuner configs and rebooting.
    I do still get the prompts if I leave the recording running.
    I'll submit a PR.

    EDIT:
    Well, I will, but not that one, and not quite yet,
    The actual issue is the setting of timeshift.isRecording at the end, which shouldn't be set if timeshift isn't actually on....
    Last edited by birdman; 20-01-19 at 21:03.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. The Following 2 Users Say Thank You to birdman For This Useful Post:

    Fuzzy (21-01-19),Willo3092 (20-01-19)

  9. #20
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Hmmm...why did I decide to look at this :-(.

    There are 13 places in the code where config.timeshift.isRecording.value is set. I've enabled it, run an instant recordings and run a timer. This only results in two of those assignments being used. That's the initialization (to False) and the setting to True at the end of a recording if config.timeshift.stopwhilerecording is True (the one causing the problem). Not sure how the other code places ever get reached. So once it is set that's seems to be it - it won't become unset.

    Might help if I could find out what does unset it, as it's not exactly clear what this variable represents. It is used by RecordTimer, which returns the next timer as being in 300s from now if it is set (which is what causes the prompts at shutdown and tuner config). Now, running a standard timeshift doesn't count as "recording" - possibly this is juts meant to be set if a timeshift buffer is being converted into a recording?
    Any ideas welcome...

    Perhaps I need to concentrate on the TODO section of the comment related to the offending lines?
    Last edited by birdman; 21-01-19 at 04:01.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  10. #21
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    An update.

    (I think) I've worked out what config.timeshift.isRecording represents. It's whether the current timeshift buffer should be converted into a recording when the programme ends (an option you can set using the record button when timeshift is active). This is needed so that activities which would affect a recording (shutdown, changing tuner configs, etc.*) can warn if you try to use them when this is active - since it does not show as an actual recording timer.

    So, I set off a "timeshift recording" whilst having a recording timer set to start and stop before the current programme ended and looked at what was happening (leaving the remote control alone...). This was done with stopwhilerecording set to True.


    • The timeshift recording buffer started to fill. config.timeshift.isRecording was set to True (by setting of the "timeshift recording": code in Screens/InfoBarGenerics.py at line 3190).
    • Then the recording started - at this point the timeshift buffer went away (and was not converted to any actual recording - I'm going to ignore that here too).
    • The recording stopped (and was OK). Timeshift started up again. config.timeshift.isRecording was set to True (by a recording ending: code in Components/Timeshift.py at line 1272, which is the setting causing this issue).
    • At the end of the programme timeshift stops! config.timeshift.isRecording is set to True again (because we're about to merge recordings - read on...: code in Components/Timeshift.py at line 632
    • The timeshift buffer is copied(moved) to a recording file.
    • A 5-min timer recording (a real one - it shows up in the timer list) of the channel that I was "timeshift recording" now appears!
    • After 5-mins, this stops abd timeshift starts running again.
    • There are now a few occurrences of config.timeshift.isRecording being set to True in quick succession.
    • At the end the 5-min recording has been merged with (appended to) the "timeshift recording".
    • config.timeshift.isRecording is then set to False (cleanup after merging: code in Components/Timeshift.py at line 1043


    [* but not, interestingly, changing the channel, which does restart the timeshift buffer and hence remove the recording you think you are making. But I'm going to ignore that here...]



    From what I can see config.timeshift.isRecording is never unset when timeshift is paused for a recording.
    Consequently it doesn't need to be set when a recording ends.
    So I reckon the solution to this problem is to remove line 1272 in Components/Timeshift.py.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  11. The Following 3 Users Say Thank You to birdman For This Useful Post:

    Fuzzy (22-01-19),Joe_90 (23-01-19),Willo3092 (22-01-19)

  12. #22
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,100
    Thanks
    1,265
    Thanked 1,115 Times in 879 Posts
    @birdman - I think you have identified an issue that I have experienced occasionally. Sometimes, I go to bed with a timeshift recording in progress and I put the box in standby, assuming that my auto deep standby timer (30 mins) will put the box to deep sleep after the timeshift recording is finished. Quite often I find the box still running in the morning and the shutdown timer being blocked by "recording in progress" when there is actually none! I think it happens when I have an actual timer recording which may have finished shortly before I put the box in standby which is simultaneous with the timeshift.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  13. #23
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by fat-tony View Post
    I think it happens when I have an actual timer recording which may have finished shortly before I put the box in standby which is simultaneous with the timeshift.
    So presumably you don't have the option to stop timeshift when recording set?
    This issue should only affect those who do.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  14. The Following User Says Thank You to birdman For This Useful Post:

    Joe_90 (24-01-19)

  15. #24
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,100
    Thanks
    1,265
    Thanked 1,115 Times in 879 Posts
    Can't check the setting right at the moment, but will respond later.


    EDIT - I have the option to "stop timeshift when recording" set to NO
    Last edited by Joe_90; 24-01-19 at 13:45.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.