Server Version#: 1.24.2.4973 (via Plex pass docker image)
Player Version#: N/A
Tuner Make/Model: HDHomeRun PRIME
Guide/Lineup name: XFinity/Comcast
Using XMLTV?: N/A
Channel number/Name: Various
I’m seeing an issue with the Plex DVR feature where it randomly truncates recordings. From looking at the logs it appears that the live TV and/or transcoder process stops when it sees a timestamp in the stream that is out of range. Here is an example:
Sep 15, 2021 11:50:16.223 [0x7fac0408bb38] DEBUG - [Transcode] Transcoder segment range: 0 - 1214 (1214)
Sep 15, 2021 11:50:16.223 [0x7fac0408bb38] DEBUG - [Transcode] Transcoder segment range: 0 - 1215 (1214)
Sep 15, 2021 11:50:16.376 [0x7fac03f02b38] DEBUG - [Live/85d2f495-0a60-43f0-9984-f422feab43c1/cc22ab3f-3591-47d1-8e36-772ad44b297b] buildLiveM3U8: min 0 max 1214 ended 0
Sep 15, 2021 11:50:16.377 [0x7fac03f02b38] DEBUG - [Live/85d2f495-0a60-43f0-9984-f422feab43c1/cc22ab3f-3591-47d1-8e36-772ad44b297b] buildLiveM3U8: ended due to segment 18741.198911 past end time 2021-09-15 19:00:00.000000000 +0000
Sep 15, 2021 11:50:16.380 [0x7fac05541b38] DEBUG - Request: [127.0.0.1:60692 (Loopback)] GET /livetv/sessions/85d2f495-0a60-43f0-9984-f422feab43c1/cc22ab3f-3591-47d1-8e36-772ad44b297b/01213.ts (14 live) Signed-in
Sep 15, 2021 11:50:16.381 [0x7fac05541b38] DEBUG - Content-Length of /transcode/Transcode/Sessions/plex-transcode-85d2f495-0a60-43f0-9984-f422feab43c1/media-01213.ts is 556104 (of total: 556104).
Sep 15, 2021 11:50:16.389 [0x7fac0d251b38] DEBUG - Completed: [127.0.0.1:60692] 200 GET /livetv/sessions/85d2f495-0a60-43f0-9984-f422feab43c1/cc22ab3f-3591-47d1-8e36-772ad44b297b/01213.ts (14 live) 8ms 556104 bytes (pipelined: 2)
Sep 15, 2021 11:50:16.391 [0x7fac0d251b38] DEBUG - Removed transcode data consumer, active count 1 => 0
Sep 15, 2021 11:50:16.480 [0x7fac0ee58b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 15359 is 0 (success)
Sep 15, 2021 11:50:16.480 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Recording for 'The Pioneer Woman - E8 - Easy Entertaining' on channel 5fc76e1bfdb85d002d2da35e-5fc705e97dd72e002d6dd201 stopped with status complete.
Sep 15, 2021 11:50:16.480 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Using recording status.
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Recorder: No more consumers, stopping.
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Recorder: Asked to stop recording 'The Pioneer Woman - E8 - Easy Entertaining' on channel 5fc76e1bfdb85d002d2da35e-5fc705e97dd72e002d6dd201.
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Recorder: Stopping transcode session.
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Killing job.
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Signalling job ID 15335 with 9
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Job was already killed, not killing again.
Sep 15, 2021 11:50:16.480 [0x7fac056b9b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Stopping transcode session 85d2f495-0a60-43f0-9984-f422feab43c1
Sep 15, 2021 11:50:16.481 [0x7fac0411ab38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Cleaning directory for session 85d2f495-0a60-43f0-9984-f422feab43c1 (/transcode/Transcode/Sessions/plex-transcode-85d2f495-0a60-43f0-9984-f422feab43c1)
Sep 15, 2021 11:50:16.482 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Activity: updated activity bad981fa-7239-40ac-91db-3e00978711ca - completed 100.0% - Recording
Sep 15, 2021 11:50:16.482 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Activity: updated activity bad981fa-7239-40ac-91db-3e00978711ca - completed 100.0% - Recording
Sep 15, 2021 11:50:16.482 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] [MI] Opening input file: "/auto/tivo/series/.grab/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406-ec33d704f288dc07f8df582cf3ac1b0f0fd4904c/The Pioneer Woman (2011) - S18E08 - Easy Entertaining.ts"
Sep 15, 2021 11:50:16.482 [0x7fac049a1b38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] Activity: updated activity 3a90a983-bb31-4312-b6b6-00d7ad184356 - completed 34.3% - Refreshing Sub
Sep 15, 2021 11:50:16.483 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] [FFMPEG] - Opening '/auto/tivo/series/.grab/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406-ec33d704f288dc07f8df582cf3ac1b0f0fd4904c/The Pioneer Woman (2011) - S18E08 - Easy Entertaining.ts' for reading
Sep 15, 2021 11:50:16.483 [0x7fac04d5bb38] DEBUG - [Grabber/3f19d9b1aacabdfc504edad6937ed0bb2a1b9406] [FFMPEG] - Setting default whitelist 'file,crypto'
Sep 15, 2021 11:50:16.486 [0x7fac0ee58b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 15335 is -9 (signal: Killed)
In the above case, the episode being recorded was 30min/1800s; the segment timestamp it reported is well past the end of the recording and this tripped some sort of assertion.
These are difficult failures to identify, since
- The failure messages only appear when debug logging is enabled
- In order to correctly identify the failure, you need the logs from the start of the recording (when the recording duration from the EPG is reported) and the end of the recording
- The Linux docker image provided by Plex aggressively rotates the logs, such that there is only an hour or so of debug messages on disk at any moment
This issue has been reported in the forums many times in the last year, see e.g.
In all cases there was no followup from Plex engineers, and thread/bug report was closed after 90 days of inactivity.
This appears to be a persistent issue with the DVR feature, can we please get some traction on this?