Attempting to Analyze ~1000 Movies. It will stop after a few

Plex Media Server Logs_2019-06-17_09-29-48.zip (5.5 MB)

Attached are my logs, turned on TRACE logging. I can’t find anything wrong, I will request 1000+ Items scanned. It will stop after a few for no reason.

Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9911 with DTS 8260, packet 9912 with DTS 8260
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9917 with DTS 8265, packet 9918 with DTS 8265
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9923 with DTS 8270, packet 9924 with DTS 8270
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9929 with DTS 8275, packet 9930 with DTS 8275
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9935 with DTS 8280, packet 9936 with DTS 8280
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9941 with DTS 8285, packet 9942 with DTS 8285
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9947 with DTS 8290, packet 9948 with DTS 8290
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9953 with DTS 8295, packet 9954 with DTS 8295
Jun 16, 2019 20:45:01.906 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9959 with DTS 8300, packet 9960 with DTS 8300
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9965 with DTS 8305, packet 9966 with DTS 8305
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9971 with DTS 8310, packet 9972 with DTS 8310
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9977 with DTS 8315, packet 9978 with DTS 8315
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9983 with DTS 8320, packet 9984 with DTS 8320
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9989 with DTS 8325, packet 9990 with DTS 8325
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 9995 with DTS 8330, packet 9996 with DTS 8330
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 10001 with DTS 8335, packet 10002 with DTS 8335
Jun 16, 2019 20:45:01.907 [0x7faf11ae3700] DEBUG - [FFMPEG] - Non-increasing DTS in stream 1: packet 10007 with DTS 8340, packet 10008 with DTS 8340

I often run an integrity check on media before I add to plex, so, when I get these types of messages I know the file is bad.

But if I start a new scan, it will scan the file just fine (the file it broke at previously).

Just saying… ffmpeg doesn’t like the file if it’s reporting those errors. It may still play but doesn’t also mean the file isn’t bad. I try and avoid any errors before I add to plex. With any “glitch” in a video file. They don’t always present themselves.

Okay sure makes sense, what’s your process for integrity checks?

Here is a small excerpt that will help you. Simply saveas whatever.cmd and drag a file you want to check. Oh yeah, you need ffmpeg.exe in the same folder as batch file.

@ECHO OFF

TITLE IntegrityCheck

CD /D %~DP0

IF NOT EXIST ffmpeg.exe ECHO ffmpeg.exe not found! & ECHO Hit a key to exit. & PAUSE>NUL & EXIT

IF [%1] EQU [] ECHO. & ECHO ERROR! You must drag over a file. & PAUSE>NUL & EXIT
IF [%2] NEQ [] IF [%Total%] EQU [] ECHO. & ECHO Sorry, you may only drag over one file at a time. & PAUSE>NUL & EXIT
IF [%Total%] EQU [] CALL:CheckIntegrity "%~1" "%~1.ErrorsDetected.log"

:CheckIntegrity
ECHO Analyzing %~nx1

ffmpeg.exe -v error -i "%~1" -f null - >"%~1.ErrorsDetected.log" 2>&1

IF %~Z2 EQU 0 DEL %2
IF EXIST "%~1.ErrorsDetected.log" COLOR 4F & ECHO ERROR(S) DETECTED !!! Look at the log file for a detailed report. & PAUSE>NUL & EXIT

COLOR 2F & ECHO. & ECHO All file(s) passed integrity check !! & PAUSE>NUL & EXIT
2 Likes

Appears to work also if you create a shortcut to the .cmd file.
This way you can store the .cmd and ffmpeg.exe somewhere in a folder and have a shortcut on the desktop as a drop target.

Yep. I actually have it in the ProgramFiles and created a shortcut to the SendTo folder. I can easily right click any file(s) → SendTo → IntegrityCheck.lnk.

1 Like

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