Code covered by the BSD License  

Highlights from
List Video Codecs, FourCC

4.5

4.5 | 2 ratings Rate this file 66 Downloads (last 30 days) File Size: 3.45 KB File ID: #28706

List Video Codecs, FourCC

by

 

13 Sep 2010 (Updated )

Lists all available video compressors for usage with avifile in Matlab

| Watch this File

File Information
Description

  This function GETFOURCC gives a list of available Video encoder-codecs in
  the current Windows installation. The FourCC code of a codec in the list
  can be used to select a custom compressor in the AVIFILE function.
 
  Usage :
 
    getfourcc , Will display a list with available video codecs
        or
    L = getfourcc , Returns a struct with all available video codecs
    
 
  Supported OS,
    Windows NT, 2000, Vista, Windows 7
 
 
  Example Output,
 
    Four CC | Description (Driver / DLL)
  -----------+---------------------------------------------- -----
      mrle | Microsoft - Run Length Encoding (msrle32.dll)
      msvc | Microsoft - Video 1 (msvidc32.dll)
      i420 | Intel - Indeo 4 codec (iyuv_32.dll)
      cvid | Supermac - Cinepak (iccvid.dll)
    
    See also avifile/addframe, avifile/close, movie2avi

MATLAB release MATLAB 7.10 (R2010a)
Other requirements Windows
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
11 May 2012 Sylvain Bernhardt  
21 Mar 2012 Nikolay S.

Hi.
It fails to display LAGS codec installed on my system, while I'm able to generate video with it using AVIFILE

16 Mar 2011 Zira

HI, CAN I KNOW HOW THO INSTALL IT? I'M STILL NEW IN MATLAB

16 Feb 2011 Dirk-Jan Kroon

*Kenneth Cate
Thank you for your comment. I understand the usefulness of adding the try and catch line. But why replace i by "k"?

15 Feb 2011 Kenneth Cate

Remove trailing backslashes from the two reglok= lines

Put try / catch around the keys = winqueryreg line like so:

try
keys = winqueryreg('name','HKEY_LOCAL_MACHINE',[reglok, '\Drivers32']);
catch %#ok<CTCH>
continue
end

Use k instead of i in:

for k=1:length(keys)
key=keys{k};

I make some other changes to dress up the display of the table that I could send you if you would like.

09 Dec 2010 Richard Crozier

Kalim DElia, you're probably using windows XP which is not supported, see help above. It would be great if this did support XP, is there any way to achieve this?

03 Dec 2010 Kalim DElia

I Have this problem

??? Error using ==> winqueryreg
Specified key is invalid.

Error in ==> getfourcc at 37
keys = winqueryreg('name','HKEY_LOCAL_MACHINE',[reglok
'\Drivers32']);

Updates
16 Sep 2010

Fixed bug : Inner for-loop used also the variable "i"

16 Feb 2011

Added try-catch

Contact us