I am trying to decipher the quality of converted videos by inspecting the error output log(s). The log is created by -loglevel error
. The video source is from OTA .ts recordings, and the problem is from signal strength. I could say the quality is that "the video has errors" because those outputs are triggered. Some recordings are better than others though: some with slight artifacts, many artifacts, a/v gets unsynced etc...
I want to filter and count error types to make degrees of judgement of, say, Excellent, Good or Corrupt.
Here is a very bad log containing typical errors. https://pastebin.com/ZajZW5WB
Which ones mean what i.e. severity?
Currently, I only estimate the quality by ranges of error line count.
Edit: Here is the ffmpeg line used via PowerShell:
C:\Users\User\Documents\Computer\FfMPEG\bin\ffmpeg -loglevel error -hide_banner -nostats -y -itsoffset 0.2 -i $videofile.Name -i $videofile.Name -map 0:0 -map 1:1 -vf yadif -c:v:0 libx264 -ar 44100 -scodec copy $newmp4filename 2> C:\Users\User\Documents\Computer\FfMPEG\ffreport.txt
Line summary: command starts, "error" loglevel, same file loaded for offsetting video, deinterlacing filter, video converted with h264, audio rate 44100 kHz, copy subtitles, PS error output stream to file.
-RedirectStandardOutput
or-RedirectStandardError
parameters. So for example in PowerShell runStart-Process "C:\Users\User\Documents\Computer\FfMPEG\bin\ffmpeg.exe" -ArgumentList '-loglevel error -hide_banner -nostats -y -itsoffset 0.2 -i $videofile.Name -i $videofile.Name -map 0:0 -map 1:1 -vf yadif -c:v:0 libx264 -ar 44100 -scodec copy $newmp4filename' -RedirectStandardError "C:\Users\User\Documents\Computer\FfMPEG\ffreport.txt"