Log in

View Full Version : How to extract H264 from transport stream


mawmawmaw
26th May 2008, 07:51
Hi everyone

i got a problem about extracting H264 from DVB-H transport stream (TS)
when parsing TS until RTP layer, i extract RTP payload from TS to get H264 content
i modified the payload header and add the start code "00 00 01" at the start of RTP payload
and then i used the VLC player to play H264 file
but i saw the progress bar is running instead of video and audio
So can anyone give me a suggestion how to modify the TS to get the playable H264 file

thanks !!!

bob0r
29th May 2008, 14:50
1: mplayer -dumpvideo -dumpfile raw.264 file.ts
2: use tsremux: http://forum.doom9.org/showthread.php?t=125447

mawmawmaw
2nd June 2008, 07:43
I'v tried this the commandmplayer -dumpvideo xxx.ts -dumpfile xxx.264
the produced xxx.264 is empty

And if i use this commandmplayer -dumpstream xxx.ts -dumpfile xxx.264
it will produce a xxx.264 file, but the file i can not play
So can you help me to find out what going wrong and extract H264 from transport stream

Here is a DVB-H transport stream
http://www.uploadpedia.com/17DIYT4STW2T/dvb-h-tvbs-news-ts.html

thanks a lot!!!

drmpeg
2nd June 2008, 13:57
You'll have a difficult time finding any software on the internet than will demux this Transport Stream. This stream contains IP datagrams in multiprotocol encapsulation sections. In addition, the stream_type is 0x90, which signals MPE-FEC and/or time slicing (which is another layer of complexity).

For more information, see ETSI EN 301 192.

Ron

mawmawmaw
2nd June 2008, 17:49
I'v decoded this transport stream till RTP layer
and i clloected serveral RTP payload to be a H264 file
But i do not know what data should add in order to play this H264 video
So can you tell me what to do in order to play H264 file

thanks!!!