Hi all
I'm writing scripts to repair my collection of movies in different video formats. I have so far sorted the .mkv and I'm now looking into the old .avi files.
As I'm on Linux with no graphical environment (CLI only) and do intense use of scripting I would like to parse all the avi/s and get a simple answer on whether the index of the file I'm looking at is corrupted or not.
Is there anything I can use to get such information? I would then use that info to make a decision on whether to force an index rebuild or not.
Dvifix++ does have a "Check Errors" function but it works on GUI only.
All the links I have found on google show how to use mencoder to rebuild the index regardless, but I don't want to do that id the index is already ok.
Any tip/input?
Thanks
+ Reply to Thread
Results 1 to 5 of 5
-
-
But thanks for the feedback
The rebuilding speed is not the issue in my case.
The data I have is backed up offsite via Internet/VPN using rsync.
If I "touch" the existing avi, rsync will retransfer it from scratch as it's essentially a new file. This behaviour is unwanted in my specific case.
P.S. I'm still trying to get my head around the ffprobe suggestion as the list of parameters supported is just overwhelming -
Running ffmpeg copy (as above) on an AVI with index known to be bad:
it is repaired as expected, but there is no console message regarding anything out of the ordinary.
Likewise, ffprobe does not have any AVI index validation as far as I could tell.
My usual method for error checking is the following ffmpeg command line. It's Windows so you might need to translate:Code:ffmpeg.exe -i "file-under-test" -f null "dummy" 2> "fferrorlog.txt"
This test also gave no indication of any problem with that file.
Loading the file in VirtualDub (just loading it, nothing else) results in the following message:Code:[*] AVI: Opening file "E:\Data\Video\AA4 r19 -noindex.avi" [!] AVI: Index not found or damaged -- reconstructing via file scan. [!] AVI: Invalid chunk detected at 126985140. Enabling aggressive recovery mode. [!] AVI: Keyframe flag reconstruction was not specified in open options and the video stream is not a known keyframe-only type. Seeking in the video stream may be extremely slow.
Virtualdub runs on Windows of course, which is why I tried to avoid suggesting it earlier.
vdub.exe is the command-line interface. It is found in the same folder with Virtualdub.exe.
Similar Threads
-
Crt tv speaker repair question
By mazinz in forum DVB / IPTVReplies: 4Last Post: 26th Jun 2016, 18:25 -
Question about cell phone repair in the US
By jimdagys in forum ComputerReplies: 12Last Post: 22nd Nov 2015, 04:21 -
PS3 Repair Question.
By dafoe in forum Off topicReplies: 0Last Post: 7th May 2015, 18:23 -
Question how to repair this mp4 file
By jimdagys in forum ComputerReplies: 1Last Post: 29th Apr 2014, 00:14 -
Question how XP can repair itself
By jimdagys in forum ComputerReplies: 19Last Post: 26th Dec 2013, 07:34