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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-2 Encoding
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th January 2006, 01:52   #1  |  Link
Afrinux
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."
Afrinux is offline   Reply With Quote
Old 13th January 2006, 12:54   #2  |  Link
ronnylov
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
ronnylov is offline   Reply With Quote
Old 14th January 2006, 05:50   #3  |  Link
Afrinux
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:
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.
I have tried it. Now I am facing problems with Buffer Management Occupancy.
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."
Afrinux is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.