Log in

View Full Version : unable to open DivX 4 (OpenDivX) wit XviD?


yawnmoth
9th January 2008, 22:05
I'm trying to open up a *.avi with VirtualDub and get this error:

Couldn't locate decompressor for format 'divx' (unknown)

VirtualDub requires a Video for Windows (VFW) compatible codec to decompress video. DirectShow codecs, such as those used by Windows Media Player, are not suitable.
I have xvid installed. Shouldn't that enable me to edit divx encoded files? In the off chance that it doesn't, I tried using this program (http://www.free-codecs.com/AVI_FourCC_Code_Changer_download.htm) to change the fourcc from divx to xvid, but that didn't help and I still get the same exact error as above.

Any ideas?

edit: according to GSpot, it uses DivX 4 (OpenDivX). Shouldn't Xvid be able to handle that?

Dark Shikari
9th January 2008, 22:16
Try installing FFDshow and enabling the Video for Windows decoder included.

yawnmoth
9th January 2008, 22:24
XviD often performs quite while in doom9.org's codec tests:

http://www.doom9.org/index.html?/codecs-final-105-1.htm

How is ffmpeg? Why doesn't doom9.org ever review that? Does ffmpeg use XviD, itself, maybe?

edit: I'm getting the same error. How does one go about enabling the Video for Windows decoder if it isn't enabled just by installing it?

LoRd_MuldeR
9th January 2008, 22:29
ffmpeg/libavcodec has it's own MPEG-4 ASP Encoders and Decoders, independent of Xvid.

yawnmoth
9th January 2008, 22:32
ffmpeg/libavcodec has it's own MPEG-4 ASP Encoders and Decoders, independent of Xvid.
How do I encode using ffmpeg, then? When, in Virtualdub, I go to Video->Compression, what should the name of the ffmpeg/libavcodec encoder be?

LoRd_MuldeR
9th January 2008, 22:43
ffmpeg (http://sourceforge.net/project/showfiles.php?group_id=205275&package_id=248632&release_id=563727) is a command-line application! You don't use it with VirtualDub.
If you want to use the encoders/decoders from ffmpeg project (libavcodec) with VirtualDub, then install ffdshow (http://sourceforge.net/project/showfiles.php?group_id=173941&package_id=199416)!

The aim of the ffdshow project is making the ffmpeg/libavcodec encoders/decoders availabe to DirectShow and VFW applications....

http://img181.imageshack.us/img181/5125/ffdshow3mb5.png

yawnmoth
9th January 2008, 22:51
Hmmm. Didn't realize ffmpeg had changed names. I was getting it from this site:

http://sourceforge.net/projects/ffdshow/

And not this one:

http://sourceforge.net/projects/ffdshow-tryout/

The former didn't present me with a VFW option (as such, I assumed it just did VFW by default).

Thanks!

LoRd_MuldeR
9th January 2008, 22:55
Once you have installed ffdshow, it's VFW interface will appear in VirtualDub:

http://img144.imageshack.us/img144/2104/filevdubffdshowow2.png


Hmmm. Didn't realize ffmpeg had changed names. I was getting it from this site:

http://sourceforge.net/projects/ffdshow/

And not this one:

http://sourceforge.net/projects/ffdshow-tryout/

The first site you mention is the "original" ffdshow homepage, which is abandoned since the original author of ffdshow disappeared :(
The second site is the "ffdshow tryouts" project, which is continuing the development of ffdshow. Make sure you get the up-to-date version from there!

Note: "ffdshow" is not "ffmpeg". ffdshow only uses the encoder/decoder library ("libavcodec") from the ffmpeg project.

ilovejedd
10th January 2008, 04:27
Just a quickfix... The FourCC code is case sensitive and so is ffmpeg. You have to use DIVX or XVID when specifying -vcodec. For the longest time, I had no idea why my xvid encode won't play in MPC or WMP when I had the Xvid VfW codec installed and the file plays properly with VLC. I felt kinda stupid when I figured out the fix was that simple.