NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 2 3 4 5 … 26 Next »
Current extras tuner process not stopped when recording on another channel is schedul

 
  • 0 Vote(s) - 0 Average
Current extras tuner process not stopped when recording on another channel is schedul
greatwhitenorth
Offline

Junior Member

Posts: 8
Threads: 3
Joined: Dec 2014
#1
2022-12-02, 01:00 AM
Testing my new linux NextPVR setup for about 3 weeks now. Slow rolling to make sure everything works as expected but was also waiting for an ESR meter from China as my old Bell boxes need some new capacitors...

First week and a half: scheduled to record 3 series shows daily on different channels, times not consecutive. Periodically also used a browser to confirm channel changes worked. All good.

Next, added 2 consecutive timed weekly shows to record but on different channels. First show recorded okay but still included the default post padding. The recording includes the channel change info header at the end of the show when padding starts. The video and audio devices would still be in use for the the first recording so the second recording gets no data and fails.

Thought I might have messed something up so waited to see what happened the next week week. Same result.

Set up test recordings yesterday to confirm the behavior and it did. Consecutive recordings on the same channel recorded okay.

Set up 3 shows to record today to get a short log. First recording is at 3 pm is okay. Second recording is at 4 pm and third recording at 4:30 pm on a different channel. The second recording continues to the end of the post padding. The third recording is started at 4:30 and changes the channel but gets no data and fails. Log attached.

Probably the same issue but under different circumstances, I inadvertently left a channel running in the browser one night and it was still running the next morning. (Basement computer on low volume so it wasn't noticeable upstairs.) The scheduler made multiple attempts made to record a scheduled show on different channels during the night, all fails.

The behavior I would expect in this situation is that when a channel change is required, the first recording is stopped on time without post padding, then after a few seconds (or when the process is confirmed to have stopped) the next recording is started.

I assume this is a bug?

Platform info:
Linux Mint 21, up to date.
NextPVR version 6.1.1.221106   
One extras tuner active, (second present but disabled and not set up), usb 3 HDMI capture devices
The extras tuner is a shell script that parses the channel number parameter, sends lirc commands to a Raspberry Pi 2b to do the blasting, then starts ffmpeg to create an mpegts stream to stdout.


Attached Files
.zip   logs-20221201-1713.zip (Size: 17.95 KB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,396
Threads: 868
Joined: May 2006
#2
2022-12-02, 01:18 AM (This post was last modified: 2022-12-02, 01:25 AM by mvallevand.)
Yes I am this is the same bug I notified sub about a few weeks ago.  NextPVR doesn't stop a single instance extra when a recording needs the device, it just plows ahead.

Code:
2022-12-01 15:59:00.004    [DEBUG][13]    About to start recording (1756 on 25): /home/lisle/recordings/Taxi/Season 04/Taxi.S04E12.Bobby.Doesnt.Live.Here.Anymore.ts
2022-12-01 15:59:00.004    [DEBUG][13]    (Recording is due to be stopped at 2022-12-01 4:30 p.m.)
2022-12-01 15:59:00.004    [DEBUG][13]    Running: /var/opt/nextpvr/hdmicapture1.sh 1057
..
2022-12-01 16:30:00.266    [DEBUG][13]    About to start recording (1757 on 25): /home/lisle/recordings/The Big Bang Theory/The Big Bang Theory_20221201_16301700.ts
2022-12-01 16:30:00.266    [DEBUG][13]    (Recording is due to be stopped at 2022-12-01 5:00 p.m.)
2022-12-01 16:30:00.266    [DEBUG][13]    Running: /var/opt/nextpvr/hdmicapture1.sh 1051
...
2022-12-01 16:32:00.041    [DEBUG][13]    Stopping recording (1756 on 25). Past end time of recording. 2
2022-12-01 16:32:00.087    [DEBUG][13]    Closing extras standard-out
2022-12-01 16:32:00.321    [DEBUG][13]    extras child has exited...
...
2022-12-01 17:02:00.093    [DEBUG][13]    Stopping recording (1757 on 25). Past end time of recording. 3
2022-12-01 17:02:00.093    [DEBUG][13]    No errors, but no data delivered
2022-12-01 17:02:00.124    [DEBUG][13]    Closing extras standard-out
2022-12-01 17:02:00.128    [DEBUG][13]    StoreMetaData@exit

He said this was removed in 5.2.1 and I asked if he could put it back.  You are lucky, this totally screws up my HDPVR driver and I have to restart Linux to fix it so alternate recordings fail.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,457
Threads: 743
Joined: Nov 2003
#3
2022-12-02, 05:02 PM
Let me know if this updated NShared.dll helps.


Attached Files
.zip   NShared.zip (Size: 364.34 KB / Downloads: 4)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 45,396
Threads: 868
Joined: May 2006
#4
2022-12-03, 01:16 AM
Thanks sub that passed all my tests. Back to back same channel have multirec, different channels stop live tv or recordings as they should. Thanks.

I though there was a log entry when the PostProcessing thread exits but I don't see one. I'd like to see that if it is easy.

Martin
greatwhitenorth
Offline

Junior Member

Posts: 8
Threads: 3
Joined: Dec 2014
#5
2022-12-04, 09:37 PM
Working good for me also. Starting from live tv, scheduled 6 time consecutive recordings with channel changes, no failed recordings.

Thanks!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  nextpvr process consumes all ram mar1 20 257 2023-03-29, 01:52 PM
Last Post: mvallevand
  New linux setup extras help greatwhitenorth 8 371 2023-01-26, 07:11 PM
Last Post: mvallevand
  How can I change the displayed channel name? Deihmos 13 468 2023-01-17, 01:35 PM
Last Post: mvallevand
  Failed recording for a particular show spagio 9 318 2023-01-12, 12:46 AM
Last Post: mvallevand
  HDhomerun tuner lock collision JoeBob 3 133 2022-12-09, 03:31 PM
Last Post: mvallevand
  channel updates superray2 1 156 2022-12-02, 05:18 PM
Last Post: sub
  During recording, time remaining is extremely large thool 8 254 2022-11-19, 07:19 PM
Last Post: thool
  Fresh Xubuntu Install with Tuner Issues (or permissions issues?) larrybari 13 554 2022-11-16, 04:27 AM
Last Post: larrybari
  Channel scan only find the 1st virtual channel in frequency thetrio 29 910 2022-11-07, 11:35 PM
Last Post: sub
  Failed recording Tugdwal 3 256 2022-10-20, 09:18 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode