It is a linux script, but perhaps also a hint for another systems . :
Every video with the respective container (mp4, ...) will be analyzed, a txt-file will be generated, video-file-name.txtCode:#!/bin/bash # if the script was not launched from a terminal, restart it from a terminal if [ ! -t 0 ] && [ -x /usr/bin/konsole ]; then /usr/bin/konsole -e "bash -c \"$0 $*; read -s -p 'Press enter to continue...'\"" exit fi 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\|mov\|mpg\|ts\)" -print0) echo "Ready" notify-send "Frame check complete" mpv --no-video /home/richard/Musik/JamieWaltersHoldOn.mp3
To have a complete indication, a notification will be written also an acoustic feedback I will get (must be adapted to your system, wishes).
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Linux script to get errors in video frames + timestamp
By Gloster in forum Newbie / General discussionsReplies: 2Last Post: 4th Jan 2025, 10:55 -
Video frame check with ffmpeg, timestamp included (Linux)
By Gloster in forum Video ConversionReplies: 1Last Post: 12th Jan 2024, 05:23 -
A GUI to download bulk download files through their respective M3U8 links
By UNforces885 in forum Video Streaming DownloadingReplies: 4Last Post: 4th May 2023, 14:04 -
FFMPEG: Output file ending timestamp is incorrect. File keeps playing beyon
By BillyP in forum EditingReplies: 0Last Post: 18th Sep 2022, 13:14 -
ffmpeg "Missing key frame while searching for timestamp" message
By the_steve_randolph in forum Newbie / General discussionsReplies: 0Last Post: 19th Aug 2021, 14:38


Quote