Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A fix for to make the DivFix Perl script work on OS X UNIX
I am a big fan of DivFix for Windows, a program which fixes AVI headers for partially downloaded or damaged DIVX AVI files. Unfortunately, I could not for the life of me find a similar program for OS X. Then I found out that DivFix offered (on their download page) a perl script to do the same thing.

Great. So now I could run it from the Terminal using the perl command. Unfortunately, the script didn't work. Now, I don't know much about perl or scripts, but I did some minor Internet research and used perl -d debugging, and figured something out.

It appears that changing all the instances of the commands pack "i"... and unpack "i"... in the DivFix perl script to pack "V"... or unpack "V" fixed the problem (note uppercase "V"). So that's a quick fix to make DivFix work from the Terminal. This will also fix the avistrip perl script also included with DivFix.

For example, in line 12 of the DivFix script:
   print $fh pack "i",$i;
becomes
  print $fh pack "V",$i;
The other changes are on lines 20 and 121.

[robg adds: I found the two perl scripts in the DivFix for Linux download on the above-linked page; they're both in a folder called "Perl version" within the DivFix folder. I have not tested this hint, however.]
    •    
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[7,656 views]  

A fix for to make the DivFix Perl script work on OS X | 2 comments | Create New Account
Click here to return to the 'A fix for to make the DivFix Perl script work on OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A fix for to make the DivFix Perl script work on OS X
Authored by: Typhoon14 on Sep 09, '05 02:11:35PM

Have you tried DivX Tool (Mac)? It lets you reindex damaged or incomplete files as well.



[ Reply to This | # ]
A fix for to make the DivFix Perl script work on OS X
Authored by: mrmunkily on Sep 11, '05 12:46:30AM

It's not as good. It can't repair "big holes" in files, where this tool does a pretty good job of it.

I created a small platypus applet that's about as easy to use as divxtool, based on this particular script. It's pretty rudimentary, but maybe someone can improve on it.

you can find it at http://www.jonlake.com/pages/projects.php#divfix



[ Reply to This | # ]