Skip to content

Instantly share code, notes, and snippets.

@aaomidi
Last active October 31, 2024 15:45
Show Gist options
  • Save aaomidi/0a3b5c9bd563c9e012518b495410dc0e to your computer and use it in GitHub Desktop.
Save aaomidi/0a3b5c9bd563c9e012518b495410dc0e to your computer and use it in GitHub Desktop.
List of nearly all video file extensions
webm
mkv
flv
vob
ogv
ogg
rrc
gifv
mng
mov
avi
qt
wmv
yuv
rm
asf
amv
mp4
m4p
m4v
mpg
mp2
mpeg
mpe
mpv
m4v
svi
3gp
3g2
mxf
roq
nsv
flv
f4v
f4p
f4a
f4b
mod
@SpencerMarks-IDHA
Copy link

thank you

@SpencerMarks-IDHA
Copy link

["webm", "mkv", "flv", "vob", "ogv", "ogg", "rrc", "gifv", "mng", "mov", "avi", "qt", "wmv", "yuv", "rm", "asf", "amv", "mp4", "m4p", "m4v", "mpg", "mp2", "mpeg", "mpe", "mpv", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "flv", "f4v", "f4p", "f4a", "f4b", "mod"]

Swift anyone?

@sachinsenals
Copy link

["webm", "mkv", "flv", "vob", "ogv", "ogg", "rrc", "gifv", "mng", "mov", "avi", "qt", "wmv", "yuv", "rm", "asf", "amv", "mp4", "m4p", "m4v", "mpg", "mp2", "mpeg", "mpe", "mpv", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "flv", "f4v", "f4p", "f4a", "f4b", "mod"]

Swift anyone?

let fileExtensions = ["webm", "mkv", "flv", "vob", "ogv", "ogg", "rrc", "gifv", "mng", "mov", "avi", "qt", "wmv", "yuv", "rm", "asf", "amv", "mp4", "m4p", "m4v", "mpg", "mp2", "mpeg", "mpe", "mpv", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "flv", "f4v", "f4p", "f4a", "f4b", "mod"]

@allanlaal
Copy link

allanlaal commented Jun 27, 2024

with find:

find . -type f -name *.webm -o -name *.mkv -o -name *.flv -o -name *.vob -o -name *.ogv -o -name *.ogg -o -name *.rrc -o -name *.gifv -o -name *.mng -o -name *.mov -o -name *.avi -o -name *.qt -o -name *.wmv -o -name *.yuv -o -name *.rm -o -name *.asf -o -name *.amv -o -name *.mp4 -o -name *.m4p -o -name *.m4v -o -name *.mpg -o -name *.mp2 -o -name *.mpeg -o -name *.mpe -o -name *.mpv -o -name *.m4v -o -name *.svi -o -name *.3gp -o -name *.3g2 -o -name *.mxf -o -name *.roq -o -name *.nsv -o -name *.flv -o -name *.f4v -o -name *.f4p -o -name *.f4a -o -name *.f4b -o -name *.mod

@allanlaal
Copy link

in bash:

 for video_file in *.{webm,mkv,flv,vob,ogv,ogg,rrc,gifv,mng,mov,avi,qt,wmv,yuv,rm,asf,amv,mp4,m4p,m4v,mpg,mp2,mpeg,mpe,mpv,m4v,svi,3gp,3g2,mxf,roq,nsv,flv,f4v,f4p,f4a,f4b,mod}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment