[FFmpeg-user] [FFmpeg] about conversion of movies
Richard Bartczak
richard.bartczak at gmx.de
Mon May 26 14:58:01 EEST 2025
Am 26.05.25 um 13:01 schrieb p db:
> Dear FFmpeg,
>
> Imagine that you have provided to convert a movie in *.mkv; *.ogv; *.webm;
> there is not a
> a log after conversion that says, how was converted the movie, if there are
> errors in the
> movie, why it stopped during the conversion...
> and the possibility to type commands on the shell to work on the movie and
> to know if the
> movie was fine converted.
>
> Awaiting your reply,
>
> Best Regards,
>
> Paolo Del Bene
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
If you mean :
1.Only to chnage the container, e.g.: from mp4 to mkv ..., and there are
errors in frames, no error indication by ffmpeg
2. If you change e.g. VP9 to h.265, or vice versa, or something like
that, a frame analysis will be done during decoding by ffmpeg. Therefore
you will get allways the frame analysis results.
If you have a linux system, you can use this script, to check whether a
movie have corrupted frames .
All movies of a directory will be checked (currently checked movies :
refer to line "... done < " and add file extensin as you need), and a
txt-file, same name as the movie, will be generated.
You must start the script in a terminal (copy the script to a txt-file,
file extension.sh) and make it executable) :
#!/bin/bash
while IFS= read -r -d $'\0' video
do
filename=$(basename -- "$video")
filename="${filename%.*}"
ffmpeg -y -i "$video" -vcodec libx264 -crf 51 -preset ultrafast
-acodec copy -f mp4 -movflags frag_keyframe+empty_moov+delay_moov pipe:1
>/dev/null 2>"${filename}.txt" </dev/null
TxtFileName="${filename}.txt"
mystring=${TxtFileName}
echo $mystring
grep -i -n 'error\|duplicate\|failure\|missing\|POCs\|corrupt'
"${TxtFileName}"
echo "Ready"
done < <(find -iregex ".*\.\(mp4\|mkv\|m2ts\|mpg\|ts\)" -print0)
#dos2unix -c mac "${TxtFileName}"
#grep -C 5 -i -n 'error\|duplicate\|failure' "${TxtFileName}"
echo "Ready"
read pause
Best regards
Richard
More information about the ffmpeg-user
mailing list