Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: MPlayer <-> VDR, the second one



> Is there a nice & simple way to detect the type of the file?

maybe

file *
test.avi:      RIFF (little-endian) data, AVI
test.mpg:      MPEG system stream data

and use a special magic file:
# AVI == Audio Video Interleave
>8      string          AVI\            AVI
# MPEG animation format
0       belong          0x000001b3              MPEG
0       belong          0x000001ba              MPEG

with 
file -m magic *
test.avi:      AVI
test.mpg:      MPEG


Thilo



-- 
Thilo Wunderlich  -  tw@ubcom.net



Home | Main Index | Thread Index