If you can give some additional details on this, I can likely incorporate that script into OliveTin-for-Channels to run on an ongoing basis. All of the icons in green are scripts that are currently running on a recurring basis -- some Python and some not:
Can you give more of an explanation on what this system looks like? I really don't understand how you would have corrupted timestamps on a local system like that. Do you have a device that is re-encoding the stream or is this just being passed along from the satellite source?
That's confusing to me, because that setting literally puts the exact same timestamp rewriter in the process of recording that would be used when you run the Rewrite Timestamps after the fact, so I'm wondering if it didn't get added properly to the m3u.
I’m still routing the SAT>IP stream through Dispatcharr, as I need to re-encode in order to select the correct audio stream. Without doing this, I end up with audio description on most channels.
The route is: Sat Reciever --M3U--> Dispatcharr --M3U--> CDVR
It’s not the most ideal route or setup, but it works perfectly for everything except long-duration events.
Based on this comment, I may have misunderstood how the setting is applied. I assumed it was something that needed to be added to the M3U URL assigned to a source, but is that incorrect?
Does it instead need to be specified as a tag on each channel within the M3U itself? If so, could you provide an example of what that should look like?
This is the URL I was using, which I believed was the correct approach:
I’ve requested permission from the person who wrote the script to see if I can share it. That said, with help from the developers, we may already have a solution now that I understand how it works.
2026/01/09 10:09:00.001383 [DVR] Starting job 1767953340-ch251 The Sopranos on ch=[251]
2026/01/09 10:09:00.001487 [DVR] Waiting 5h35m0s until next job 1767973440-68 Garden Rescue
2026/01/09 10:09:01.283837 [TNR] Opened connection to M3U-Sky for ch251 Sky Atlantic
2026/01/09 10:09:01.284222 [DVR] Recording for job 1767953340-ch251 from M3U-Sky ch251 into "TV/The Sopranos/The Sopranos S01E09 2026-01-09-1009.mpg" for 1h6m59.998474068s
2026/01/09 10:09:01.467355 [IDX] Generating video index for job 1767953340-ch251
2026/01/09 10:16:42.696704 [DVR] Waiting 42m17s until next job 1767956340-ch290 Murder by Numbers
2026/01/09 10:41:19.353943 [DVR] Fetched guide data for XMLTV-SkySportsPlus in 144ms
2026/01/09 10:41:19.752486 [DVR] Indexed 1260 airings into XMLTV-SkySportsPlus (70 channels over 72h0m0s) + 0 skipped [398ms index]
2026/01/09 10:41:19.772495 [DVR] pruned 1260 replaced airings in 20ms.
2026/01/09 10:41:19.936891 [DVR] Fetched guide data for XMLTV-SkySports in 124ms
2026/01/09 10:41:20.199458 [DVR] Indexed 551 airings into XMLTV-SkySports (15 channels over 330h0m0s) + 374 skipped [262ms index]
2026/01/09 10:41:20.235139 [DVR] pruned 14 replaced airings in 36ms.
2026/01/09 10:41:20.428440 [DVR] Fetched guide data for XMLTV-Sky in 166ms
2026/01/09 10:41:21.174405 [DVR] Indexed 1828 airings into XMLTV-Sky (29 channels over 74h55m0s) + 896 skipped [746ms index]
2026/01/09 10:41:21.202652 [DVR] pruned 25 replaced airings in 28ms.
2026/01/09 10:41:21.405644 [DVR] Fetched guide data for XMLTV-ParamountPlusUSA in 175ms
2026/01/09 10:41:21.930450 [DVR] Indexed 1818 airings into XMLTV-ParamountPlusUSA (101 channels over 72h0m0s) + 0 skipped [525ms index]
2026/01/09 10:41:21.966003 [DVR] pruned 1818 replaced airings in 36ms.
2026/01/09 10:41:22.046249 [DVR] Fetched guide data for XMLTV-PDCDarts in 53ms
2026/01/09 10:41:22.139732 [DVR] Indexed 144 airings into XMLTV-PDCDarts (8 channels over 72h0m0s) + 0 skipped [93ms index]
2026/01/09 10:41:22.177948 [DVR] pruned 152 replaced airings in 38ms.
2026/01/09 10:41:22.354931 [DVR] Fetched guide data for XMLTV-Kids in 152ms
2026/01/09 10:41:22.899267 [DVR] Indexed 1421 airings into XMLTV-Kids (24 channels over 72h13m0s) + 1172 skipped [544ms index]
2026/01/09 10:41:22.939764 [DVR] pruned 155 replaced airings in 40ms.
2026/01/09 10:41:24.371387 [DVR] Waiting 17m36s until next job 1767956340-ch290 Murder by Numbers
2026/01/09 10:59:00.000977 [DVR] Starting job 1767956340-ch290 Murder by Numbers on ch=[290]
2026/01/09 10:59:00.001031 [DVR] Waiting 4h45m0s until next job 1767973440-68 Garden Rescue
2026/01/09 10:59:21.043718 [DVR] Starting job 1767956340-ch290 Murder by Numbers on ch=[290]
2026/01/09 10:59:21.043773 [DVR] Waiting 4h44m39s until next job 1767973440-68 Garden Rescue
2026/01/09 10:59:32.630527 [TNR] Opened connection to M3U-Sky for ch290 SKY CINEMA THRILLER
2026/01/09 10:59:32.633181 [DVR] Recording for job 1767956340-ch290 from M3U-Sky ch290 into "TV/Murder by Numbers/Murder by Numbers 2026-01-09-1059.mpg" for 2h16m38.956193999s
2026/01/09 10:59:32.793892 [IDX] Generating video index for job 1767956340-ch290
2026/01/09 11:16:00.004845 [TNR] Closed connection to M3U-Sky for ch251 Sky Atlantic
2026/01/09 11:17:57.992675 [DVR] Commercial detection for The Sopranos S01E09 2026-01-09-1009.mpg finished with 12 markers in 1m57s (12 threads).
2026/01/09 11:21:00.000232 [TNR] Closed connection to M3U-Sky for ch281 SKY CINEMA ANIMATION
2026/01/09 11:21:00.028033 [SNR] Buffer statistics for "TV/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse 2026-01-09-0949.mpg": buf=0%-1% drop=0%
2026/01/09 11:21:00.060990 [MTS] Statistics for "TV/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse 2026-01-09-0949.mpg": discontinuity_detected=0 transport_errors=0 saw_pcr=true saw_pmt=true highest_pts=5545.861333
2026/01/09 11:21:00.067803 [DVR] Finished job 1767952140-ch281 Teen Titans Go! & DC Super Hero Girls: Mayhem in the Multiverse
2026/01/09 11:21:00.142514 [DVR] Waiting 4h23m0s until next job 1767973440-68 Garden Rescue
2026/01/09 11:21:00.163421 [DVR] Processing file-3846: TV/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse 2026-01-09-0949.mpg
2026/01/09 11:21:00.686950 [DVR] Running commercial detection on file 3846 (TV/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse/Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse 2026-01-09-0949.mpg)
2026/01/09 11:23:32.387771 [DVR] Commercial detection failed for Teen Titans Go! & DC Super Hero Girls Mayhem in the Multiverse 2026-01-09-0949.mpg: comskip did not detect any commercials
I had another recording at the same time (but longer) work fine.
I get this is to do with the reliability of the stream but if fixing the timestamp fixes it and i'm able watch the entire show without any issues (which from past experience i can) then something must be able to be done in CDVR to cater for this. Please confirm if the M3U change i made is correct and if there is anything else i should have done in CDVR after making this change.
The fact that i can watch a recording "nearly live" and it works fine until the recording ends surely says that the timestamps are correct throughout the stream.
Yes, that should work. I'm definitely surprised it did not fix the issue. I realize that you may have needed to select "Reload M3U" after you updated it for the DVR to see it.
One thing I realized is that if you're getting weird timestamps from your source and you're already using ffmpeg, if you add this to your ffmpeg command it could fix it for you: -fflags +genpts
Is the duration on these recordings generally very small or did this one just happen to be small?
I uploaded a new M3U file with hardcoded entires so this should have covered that.
I have tried with and without that command and it made no difference on previous attempts. I have re added it to test.
The times vary, sometimes they are really short (seconds) other times they are 3 hours of a 4 hour recording.
I have had more successful tests today than unsuccessfully but i'm still continuing to test.
One thing i have noticed though is that now i have added tvc-stream-timestamps="rewrite" when i try to watch a in progress recording it starts at the start of the recording, but shows as live and I can't time shift.
This is a recording i just test going in the middle of a show, as you can see when i play the recording it shows as if its Live and i cant time shift.. when in fact this is the start of the recording as when i stop and start it, it starts in the same place. This did not happen before adding the new command to the M3U
If you could make a recording with and without the rewrite directive and upload them it could be helpful for us to identify what sort of issue is going on here. The issue you're having is very confusing and sounds like a misbehaving encoder, but the fact that none of these solutions have helped doesn't make much sense.
Can this issue also show up when playing custom channels live? I'm constantly seeing live channels showing that I am behind on the timeline despite being live, also having issues with the audio being delayed by ~300ms.
I have been doing excessive testing and everything seems to be working a lot better now after adding tvc-stream-timestamps="rewrite" to my M3U and restarting everything.
I have had no failed recordings in the last 8 days.
This is only an issue when using tvc-stream-timestamps="rewrite" though. Without this it works as "nomral". Is this intended behaviour? seems strange that i can time shift in the app but not the browser.
Sorry, i think there was an issue with my lasts tests relating to this problem as i was wasn't testing with a like to like source.
I have just tested again with 2 streams, one with tvc-stream-timestamps="rewrite" and one without and got the same results in the web interface.
So its normal that you can timeshift in the client apps (such as Apple TV) but not the web browser?
Is that a technical limitation or just a missing feature?