Hoping someone can help me, I've found some good info on these forums though I can't seem to get it to work. Thanks in advance :)
My aim: To validate the integrity of several hundred .mp4 which where downloaded over http. Due to connection issues, some of the videos are only partially downloaded. They show as correct video duration but the file size is significantly smaller. Videos play fine at start then cut off.
Below are several commands I've used with FFmpeg with varying success:
Scan Each Frame (Works, but takes very long time)
Scan 1 audio track (False negative)Code:ffmpeg -v error -i "File Name".mp4 -f null - >error.log 2>&1
Scan Last 60sec (False negative, unless -sseof > or = video duration)Code:ffmpeg -v error -i "File Name".mp4 -map 0:1 -f null - >error.log 2>&1
Code:ffmpeg -v error -sseof -60 -i "File Name".mp4 -f null - >error.log 2>&1
I also would like to be able to run a batch scan of all files in folder, though can't get it to work.
Batch Scan Each Frame
Gives following error:Code:find . -type f -exec sh -c 'ffmpeg -v error -i "{}" -f null - > "{}".log 2>&1' \;
Code:Access denied - . File not found - -TYPE File not found - F File not found - -EXEC File not found - SH File not found - -C File not found - 'FFMPEG File not found - -V File not found - ERROR File not found - -I File not found - -F File not found - NULL File not found - - File not found - ' File not found - \;
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Verify integrity of a video file with ffmpeg?
By pxstein in forum Newbie / General discussionsReplies: 3Last Post: 14th Nov 2015, 10:36 -
MPG2Cut2 to FFMPEG MP4 vs FFMPEG MPG2 to MP4 AviDemux
By RedPenguin in forum Video ConversionReplies: 4Last Post: 29th Apr 2015, 12:16 -
.mp4 integrity checker
By mahjohn in forum Video ConversionReplies: 2Last Post: 9th Dec 2013, 15:13 -
Batch validate large number of video files
By kruuth in forum Newbie / General discussionsReplies: 15Last Post: 28th Jul 2013, 14:56 -
Let ffmpeg show used audio and video codec inside a (.mp4) video file?
By pxstein in forum Newbie / General discussionsReplies: 1Last Post: 26th Jan 2013, 02:47