Skip to content

Detect vcodec used in a RIFF file (usually AVI extension), written in GO

License

Notifications You must be signed in to change notification settings

squeeze69/vcodec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vcodec - Squeeze69

quick and dirty program to test for particular vcodec in an AVI (or any format supported by RIFF library)

program written in GO

Scan a RIFF file for the codec (vids in the strh and the structure in the following strf section), then exit with an error level 1 if the video codec is listed on the command line. The "heavy lift" is made by the image/riff library.

If it's used only with the file name, it prints the codec and exits with errorlevel 0.

It's partially based on one of the examples in the image/riff section (the read chunk,etc...).

i.e.:

vcodec file.avi DIV3 DX50 ... (case insensitive)

or: vcodec -c codeclist file.avi

where codeclist is a "text" file with a codec per line

It's quite useful when you want to re-encode with ffmpeg or others a bunch of files only if they use certain codecs

Reference (Even if I do need to study them a little more)

About

Detect vcodec used in a RIFF file (usually AVI extension), written in GO

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages