I am looking for some information about the structute of MPEG headers, I have done many searches but have been unable to find anything complete.
I'm looking for what makes up the hex from "00 00 01 BA" to "00 00 01 B3". I have some M1V files and I want to add a muxed header them so any application other than a player can read it. I have had success with Movie2MPEG with the system stream/elementary stream option.
This is what I've gathered so far:
- Header (Starts with 00 00 01 BA ...)
- Padding (Usually FF FF)
- Video Header (Starts with 00 00 01 B3...)
- Closing Data?
- Padding (Usually FF FF)
- Closing Data?
- Audio Header
- Closing Data? (Usually ending in ...00 01 B7)
- Padding (Usually FF FF)
I found some helpful information at this website:
http://homepage.mac.com/rnc/EditMpegHeaderIFO.html
How to editing the playback
attributes of mpeg and .ifo file
This will require HexEditor: search VersionTracker.com
There maybe a file size limit to HexEditor
VTS_01_0.mpv mpeg header
Open your demuxed mpeg video stream (mpv,m1v,m2v) in HexEditor,
Locate the sequence header 00 00 01 b3 (usually hex address 000)
Make changes as need, then save.
Here is an example: 740x480, 16:9, 23.976 fps
0000000: 00 00 01 B3 2E 01 E0 31 00 00 00 00 00 00 00 00
Horizontal Size in Hex
16 0 = 352
1E 0 = 480
2D 0 = 720
2E 4 = 740
Vertical Size in Hex
0F 0 = 240
1E 0 = 480
Aspect Ratio
1 = 1:1
2 = 4:3
3 = 16:9
4 = 2.211 (not used in dvd)
Frame Rate
1 = 23.976
2 = 24
3 = 25
4 = 29.97
5 = 30
6 = 50
7 = 59.94
8 = 60
In theory, a svcd to dvd patch would change the resolution from 480x480 to 352x480 ie from 1e0x1e0 to 160x1e0
VTS_01_0.IFO file hex address 200
Open your VTS_01_0.IFO in HexEditor,
Locate hex address 200
Make changes as need, then save.
Here is an example: 16:9, 740x480, AC3 audio
0000200: F9 00 00 01 00 01 00 00 00 00 00 00 00 00 00 00
Aspect Ratio
43 = 4:3
F9 = 16:9
Resolution NTSC (PAL)
00 = 720x480 (720x576)
1 = 704x480 (704x576)
0A = 352x480 (352x576)
0C = 352x240 (352x288)
Audio Coding
00 = AC3
02 = Mpeg-1
03 = Mpeg-2ext
04 = LPCM
06 = DTS
Closed Thread
Results 1 to 2 of 2
-
-
Please don't cross post.
https://www.videohelp.com/forum/viewtopic.php?t=192830&highlight=
Similar Threads
-
MPEG-2 TS PAT header decoding problem
By jeromedroz in forum ProgrammingReplies: 21Last Post: 27th Jan 2016, 04:02 -
Hexadecimal header and offset of a MPEG-2 Transport stream file?
By coconut83 in forum ComputerReplies: 1Last Post: 26th Oct 2010, 10:41 -
covert avi header to mpeg header
By nidhi in forum Video ConversionReplies: 6Last Post: 29th Jul 2010, 19:40 -
How to strip ip header from raw mpeg
By aj99v in forum Capturing and VCRReplies: 0Last Post: 11th Mar 2010, 13:54 -
header information of MPEG-4 and AVI
By firadayat in forum Newbie / General discussionsReplies: 2Last Post: 9th Mar 2009, 08:53