[vlc-devel] mpeg4 video input module
drus
drus at td.tomica.ru
Sat Dec 10 14:27:10 CET 2005
Hello. I want to write input-demux module. It will read mp4 video stream
from an encoding device. So now I have a trouble: mp4 stream contains the
symbols of beginning of VOP (frame). Its code is 0x1B6. Or
00000000000000000000000110110110. As I understand, every block of data must
begin with this code and ends exactly before the next code. How to
implement this? I'm trying to remake v4l module.
Here is some source code from function block_t *GrabVideo( demux_t *p_demux):
block_t *p_block;
char p_frame[320000];
p_block = block_New( p_demux, i );
memcpy( p_block->p_buffer, p_frame, i );
//i - the number of bites before the next VOP startcode
in other words: I have minimum 8 bits of information to pass. So what to
do, if I have such block of data?
<some data> 10101000 11101010 10100000 00000000 00000000 00011011 0110<some
data>
this part: 0000 00000000 00000000 00011011 0110 - is VOP startcode
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list