Unable to rewrite Timestamps

What is theis error ... Creates a temp file but will not replace it ....

2023/02/23 17:06:32.364168 [MTS] Rewriting video timestamps for file-5048: The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg
2023/02/23 17:07:36.755241 [MTS] Statistics for #5048 "The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg": skipped=168 unhandled_packets=0 discontinuity_detected=0 transport_errors=6 invalid_pts=0 invalid_dts=0 saw_pcr=true saw_pmt=true highest_pts=3749.685256
2023/02/23 17:07:36.965560 [ERR] Rewriting video timestamps for file-5048 failed: replace Y:\ChannelsDVR\TV\The Masked Singer.The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg.3557441245 Y:\ChannelsDVR\TV\The Masked Singer\The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg: Access is denied.

Permissions issue?

Or maybe windows problem when file is in use..

Is this from using the Rewrite option?

Is recording currently being watched?

I will reboot PC see if somehow it is in use ... Not a Permission Issue as file has access to everyone. Yes using Fix Video TimeStamps option.

@tmm1 you were correct Windows must somehow had it in use ... Worked now after reboot.

2023/02/23 17:29:08.665245 [MTS] Rewriting video timestamps for file-5048: The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg
2023/02/23 17:30:58.089681 [MTS] Statistics for #5048 "The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg": skipped=168 unhandled_packets=0 discontinuity_detected=0 transport_errors=6 invalid_pts=0 invalid_dts=0 saw_pcr=true saw_pmt=true highest_pts=3749.685256
2023/02/23 17:30:59.512899 [MTS] Finished rewriting video timestamps for file-5048 in 110s
2023/02/23 17:30:59.716400 [IDX] Generating video index for file-5048: TV\The Masked Singer\The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg
2023/02/23 17:30:59.719083 [DVR] Running commercial detection on file 5048 (TV\The Masked Singer\The Masked Singer S09E02 ABBA Night 2023-02-22-1959.mpg)
2023/02/23 17:31:13.991361 [IDX] Finished video index generation for file-5048 in 14s

Edit Still no good after timestamp fix I guess the file is corrupted.

See Corrupted time/duration with latest MPEG-TS Rewriter (server v2023.02.19.2355) - #5 by eric

I was using it last Night turned it off .... must not be releasing the file on certain conditions thanks.

Funny thing is that the recording was not even Interrupted clean recording. when I try to watch it skips to the end after a while even after fixing timestamps.

Can you submit diagnostics?

Logs have been submitted as 987c84ab-dcf7-4a44-97d6-3e88f151d33c

It doesn't appear this has anything to do with the new TVE timestamp rewriter — this was an OTA recording.

It appears there's something unexpected going on when "Rewrite Timestamps" is invoked on Windows. I'm going to have to understand more about why this wouldn't be working correctly.

Regarding the situation that caused the issue with the timestamps at all, because you are using custom m3u sources to reach your HDHR instead of using our direct integration, we are not collecting the HDHR signal stats to give insight into any reception issues you might have. Our signal and network notifications are pretty nice and helpful.

1 Like

It is an M3U from an Instance of Channels DVR that has all tuners. So it is an M3U stream and does not connect Directly to the tuners.

#EXTINF:-1 channel-id="12.1" tvg-id="12.1" tvg-chno="12.1" tvg-logo="https://tmsimg.fancybits.co/assets/s28719_ll_h15_ac.png?w=360&h=270" tvc-guide-stationid="24507" tvg-name="KPTVDT" group-title="HD",FOX
http://10.0.0.106:8089/devices/ANY/channels/12.1/stream.mpg?format=ts&codec=copy

I see, so you'll want to look at that other DVR to see the signal stats for that tell you if there were issues with the reception.

Logs have been submitted as 0357750d-b579-480a-b64a-93c84d55669d.

There were definitely some signal issues:

2023/02/22 23:00:45.499589 [SNR] Statistics for ch6.1 KOIN-HD: ss=99%,29%-100% snq=97%,0%-100% seq=99%,0%-100% bps=10291424,0-15259584 pps=881,0-1306

I'll continue to try to figure out why the rewriting would fail to overwrite the file.

Ok We did have a snowstorm last night and heavy winds.

Looking at your logs further, it appears the timestamp rewrite failed because Windows does not allow us to overwrite a file that is currently being used. You had an active playback session when you tried to de the rewrite which caused the error.

I've made a fix to prevent those temporary files from sticking around when this fails in the future.

1 Like

Yeah, It did not show as being watched in the DVR but a reboot of windows released it.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.