Log in

View Full Version : Separation of Mpeg 2 Streams


Dave1024
28th February 2011, 20:26
Hi,

I want to test my mpeg video decoder. I have provided streams for mpeg 2 with video and audio. My aim is to separate video content in to another m2v file. For this i want a help to find a tool which gives mpeg 2 as input and m2v as output . I have only 720 p resolution stream so which toll will give a help for separate at least 2 frames.

I tried to write down a parser but i am confused with the video start code. 00 00 01 B3 patteren stream working fine but 00 00 01 BA is failed. so i try for a help.

Thanks
Dave

hank315
1st March 2011, 00:09
00 00 01 BA is a pack header, if you want to extract the video only you can skip this section and read further until you find the next video start code.
Also there's a lot of open source stuff about this available on the net, DGDecode is a good starting point.

Dave1024
1st March 2011, 03:49
Hi,

I searched for open source tool but i don't get any 720p tool.

can u mention any tool for 720p conversion

Thanks
Dave

Midzuki
1st March 2011, 04:22
AFAIK a good MPEG demultiplexer doesn't care about the "frame size" or the frame rate of the input file. But it seems to me you're trying to deal not with a program stream, but with a transport stream, which is a different container. Since Mplayer supports .TS files, you could take a look at its source-code too. :)