This is what I am using:
./ffmpeg.exe -v debug -threads 8 -nostats -i "path/to/file.ts" -f null - >~/error.log 2>&1
Or:
./ffmpeg.exe -v debug -threads 8 -nostats -i "path/to/file.ts" -f null - 2>~/error.log
The second one redirects just the stderr to a file, whereas the first one redirects both, stderr and stdout.
The option -v debug
will print all errors, warnings and debug information, so it may be useful when comparing two video files (e.g. to see which one has less errors). To limit what's reported use other levels according to ffmpeg documentation:
https://www.ffmpeg.org/ffmpeg.html
Look for the option: -loglevel [repeat+]loglevel | -v [repeat+]loglevel
. The other levels are quiet
, panic
, fatal
, error
, warning
, info
, verbose
, debug
.