Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
13th January 2006, 01:52 | #1 | Link |
Knowledge is Power
Join Date: Nov 2005
Location: Singapore
Posts: 53
|
MPEG-2: needs some help
Hi all!
I am writing a program to take a sequence end code off a mpeg-2(vob) stream. I search all the stream to find the sequence end code "0x00, 0x00, 0x01, 0xB7" and replace it by {0x00, 0x00, 0x00, 0x00}. Is it the right way to do it? I am confused because, when I search the vob data in a binary editor, I sometimes find the code {0x00, 0x00, 0x01, 0xB7} inside the stream, where the sequence end code were not supposed to be. Do you think it would be wise to look for both the sequence end code and the padding code to make sure that I am taking off the right sequence end code? Thanks for helping. Afrinux
__________________
"Education is our passport to the future, for tomorrow belongs to the people who prepare for it today." |
13th January 2006, 12:54 | #2 | Link |
Registered User
Join Date: Feb 2002
Location: Borås, Sweden
Posts: 492
|
There already is a program that can do this.
Restream: http://shh.sysh.de/restream.html But it does it only on elementary video stream so you need to demux the video. Perhaps you can try it and see what happens when removing or adding the end code.
__________________
Ronny |
14th January 2006, 05:50 | #3 | Link | |
Knowledge is Power
Join Date: Nov 2005
Location: Singapore
Posts: 53
|
Thanks ronnylov!
I want to write the program to include it into my tool. If ReStream was an opened source, it'd help a lot. Quote:
I still dont have a clue, what does it mean. If someone knows, please help. Afrinux
__________________
"Education is our passport to the future, for tomorrow belongs to the people who prepare for it today." |
|
|
|