The difference between .dat file and .mpg file
LEAF_ZHOU_8@hotmail.com
http://www.minshida.com
Often some people ask .DAT files and. MPG files? This problem has also been plagued for a long time. Now I finally have a real understanding, I don't dare to enjoy it, introduce it to everyone.
First, .dat files and .mpg files are audio and video data streams that meet MPEG1 compression standards (of course, there is no audio), but their data subcontract size is different. The .dat file is the data engraved on the VCD disc. In order to facilitate access to the optical disc data, it follows the criteria of the VCD burning. Each packet is 2324 bytes, which is just a sector storage space. size. The VCD disc is composed of one or more tracks. The first track is a small 2048-byte / sector data rail, with an ISO9660 file system, which typically contains a Windows VCD player, but there may be other information (for example: images, text, etc.). If there is a picture, most is the directory of the song and the production company's propaganda picture. The second and subsequent tracks are unprocessed 2324 bytes / sectors MPEG (movie) rails, each sector contains an MPEG PS packet without a file system. Usually we see about 600 MB of .dat files, in fact it is not a file, this is the so-called ISO channel, used to make Windows can handle such a track (Windows does not allow procedures to directly access unprocessed devices). When playback, the optical drive sequentially reads each fan drive, and forms a continuous MPEG (movie) data stream. Therefore, you can't copy or play these files under Linux. And the. MPG file is not prepared to engrave the VCD disk. So the packet can be large or small. This is often encountered, the whole. MPG file is a packet.
Second, since the subcontract size is different, it is also different when it is used. Usually,
.
The program of the file can be solved
.mpg
file. This situation requires them to have a commonality, that is
0x000001BA
The header of the system. Because once
0x000001BA
At the beginning, it means that it also includes audio data and video data. If there is no audio data,
0x000001B3
At the beginning, otherwise it is not necessary to join the system.