NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 61 62 63 64 65 … 102 Next »
Should v5 try to reconnect a scheduled recording?

 
  • 0 Vote(s) - 0 Average
Should v5 try to reconnect a scheduled recording?
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#1
2019-10-12, 07:33 PM
I've been test driving NextPvr after being disappointed with the way TvMosaic handles interrupted recordings. Creates a lot of partials while recording an inherently less reliable IPTV source.  I'm finding NextPvr has the same struggle. But at least NextPvr doesn't seem to corrupt the .TS file after an interruption. It's a good test bed now since xcode recently blew up and providers are working to restore reliability in their feeds.

Curious, how NextPvr is designed to record.  For example, while watching an IPTV stream live and recording simultaneously I see a 10 second drop in the IPTV stream then it resumes.  I notice the recording stops in response to the dropped stream and never resumes recording.  Is v5 suppose to keep trying to reconnect the stream and then start a 2nd recording to finish the same programmed scheduled?  Or does it simply drop the recording and leave the user with one partial recording instead of two or more?  If the latter I would like to suggest a feature enhancement that would restart the recording so only the time the connection dropped is missing, even if it results in multiple partial recordings for one scheduled program.  Hope this is clear.

Is it possible?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2019-10-12, 09:49 PM
The behaviour varies a bit depending on if the source was an m3u8 or ts stream, and whether the stream was down at the time the recording was due to start.

If it was down when the recording was due to start, the recording will be marked as failed, with whatever error was returned (like 403 unavailable etc). In the case of the stream going down mid recording, and it's a TS stream, it's supposed to continue to try reconnecting, and when it manages to reconnect it'll just resume writing to the same .ts file. (you'll probably end up with a pretty crappy file if the IPTV stream went down though. ie, duration will probably report incorrectly in various players)
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#3
2019-10-12, 11:16 PM
Source provides ts stream. Have yet to see NextPvr append onto an existing ts file after the source stream was briefly interrupted. I'll watch the log file and see if I can find this action.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2019-10-12, 11:29 PM
Actually thinking about it, I'm not 100% sure its the same in NextPVR v5. In v4 it'll reconnect and append to the existing file. I'd have to check it with v5 (which has a different implementation of this stuff vs v4). In theory it should have the same behaviour though, and if it's not, I'll fix it to behave that same way.
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#5
2019-10-12, 11:34 PM
Thanks much! It's my biggest issue with recording Iptv, I rarely watch live. So it would be fantastic to see it work as you suggest.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#6
2019-10-12, 11:39 PM
That's the worst thing about IPTV...streams/connections from the providers are just unreliable. If you're got connections going up and down, you're going to end up with some crap in your recordings, regardless of how the software behaves (after all, it can't work magic). Life is so much nicer with streams coming from devices, where you can generally rely on them working all the time.
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#7
2019-10-12, 11:45 PM (This post was last modified: 2019-10-12, 11:48 PM by markn62.)
Sure is. During the best of reliability I would get about 1 in 5 recordings corrupt. I was researching and find some suggestions that recording in ts format is not the best for this situation as it only indexes the start and end of the recording so it can get corrupted easily. I'll probably expose my ignorance on this topic but I thought perhaps if recordings could be stored in another container like mkv or mp4 that has indexing every so many seconds it might better survive a less than perfect source while recording to disk. Not sure all the implications of storing in other than ts. Or perhaps getting the source stream in HLS or RTMP may help, any thoughts on another stream type helping?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#8
2019-10-12, 11:51 PM
.ts is the best storage format for live tv and recordings from live tv, because it has no indexes. It's just a copy of exactly what your broadcaster (or IPTV Provider in this case) sent. It was designed for digital tv, and is the universal standard used for all digital services (except the upcoming ATSC 3.0)

.mkv/.mp4 instead have indexes at the start of the file, that must be updated at completion of the recording. This has many downsides, including not being able to play recordings while they're in-progress. These are good standards for content authored from good pre-existing source material. They're not good live sources.

At the end of the day though, if your iptv connection goes down, or the provider restarts the encoder, or other numerous things they can do, you're going to have some crap in your file regardless of whether its .ts, .mp4, .mkv etc.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#9
2019-10-12, 11:56 PM
For better quality recordings out of connections that go up and down, you may find benefit in remuxing in PostProcessing.bat (whether to .ts or .mp4 or .mkv)
markn62
Offline

Member

Posts: 214
Threads: 36
Joined: Oct 2019
#10
2019-10-12, 11:59 PM
Hmmm, I'll try that. Appreciate you expanding on this. Your explanation is most helpful. I appended a last minute thought on my post, you may have missed. Would perhaps getting the source stream in HLS or RTMP help or would it not improve recording reliability? I'm not even certain if NextPvr can handle these two alternate stream types.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording Glitches - Debug Advice? andrewj 7 359 2025-06-23, 08:19 PM
Last Post: mvallevand
  Advanced Recording Scheduling question Bobins 7 347 2025-06-17, 12:56 AM
Last Post: mvallevand
  "Recording interrupted" problem started happening sharkbite 8 707 2025-06-02, 08:08 AM
Last Post: sharkbite
  Can't delete scheduled recordings Druhl 3 308 2025-04-22, 09:10 PM
Last Post: mvallevand
  Failed: Recording interrupted jzk 3 509 2025-04-18, 09:06 PM
Last Post: mvallevand
  Unable to delete recording. File may be in use. seattlefog 24 1,356 2025-04-13, 01:08 AM
Last Post: sub
  Scheduled Late Night through-midnight recordings suddenly stop at midnight Andre_Mikulec 4 492 2025-03-29, 12:56 AM
Last Post: mvallevand
  Directory not deleted after recording deleted Bobins 13 1,139 2025-03-08, 05:30 PM
Last Post: sub
  Recording IPTV lemmy999 8 860 2025-03-02, 06:13 PM
Last Post: lemmy999
  Temporarily Suspend Recording andrewj 1 315 2025-02-25, 12:44 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