1
0
I have noticed that the file command in linux, is detecting this mpg as data?
http://www.berkut13.com/videos/brakeup.mpg
it detects flv ok but this mpg file it doesn't..
i'd like to be able to detect mpg files.
I found the part of the magic file for MPEG..
# MPEG file
# MPEG sequences
# FIXME: This section is from the old magic.mime file and needs integrating with the rest
0 belong 0x000001BA
>4 byte &0x40
!:mime video/mp2p
>4 byte ^0x40
!:mime video/mpeg
0 belong 0x000001BB
!:mime video/mpeg
0 belong 0x000001B0
!:mime video/mp4v-es
0 belong 0x000001B5
!:mime video/mp4v-es
0 belong 0x000001B3
!:mime video/mpv
0 belong&0xFF5FFF1F 0x47400010
!:mime video/mp2t
0 belong 0x00000001
>4 byte&0x1F 0x07
!:mime video/h264
and the file
$ xxd -p brakeup.mpg | head -n 1
000001ba2100010001800e3b000001bb000c800e3b07e1ffc0c020e0e02e
$ od -x brakeup.mpg | head -n 2
0000000 0000 ba01 0021 0001 8001 3b0e 0000 bb01
0000020 0c00 0e80 073b ffe1 c0c0 e020 2ee0 0000
It's a restricted format so it's not surprising that Linux handles it awkwardly. Do you have the w32codecs package and ffmpeg properly installed? – Blomkvist – 2011-05-08T05:44:32.093
Works fine here.
$ file brakeup.mpg
brakeup.mpg: MPEG sequence, v1, system multiplex
– Ignacio Vazquez-Abrams – 2011-05-08T07:16:23.023here's the magic file http://www.sendspace.com/file/i0qu6h I remember now it was cygwin, i've updated title and tags.
– barlop – 2011-05-08T10:23:52.990