Hi,
thanks for ur quick reply .Can u suggest any other
way in which i can test my program .i need a normal (.ts file ) to be read
on a UDP port without any mix of rtp headers.
Thanks & Regards
anand.
On 4/6/07, Brian Litzinger <[EMAIL PROTECTED]> wrote:
On Fri, Apr 06, 2007 at 08:47:50PM +0200, anand meher wrote:
> Hi,
> libmpeg2 has a program called mpeg2dec.c, which can demultiplex
and
> decode a static transport stream file(.ts) . I modified the program in
such
> a way that it can accept the input on a UDP port ,where each packet is
of
> length 188 bytes and then i am sending that recieved packet for
> demultiplexing and decoding.As of now i am hardcoding the pid of the
video
> packets for demux.
>
> The problem that i am facing is that ,i am
> not able to test my program properly. I am using vlc player to stream
the
> (.ts) file on to the port, on which the mpe2dec.c listens .To my irony
i
> find that the value of the bytes in the packet which i recieve are
different
> from the value of the bytes which are actually present in the static
file .I
> used ethereal to see the contents of the actual (.ts) file. So my doubt
is
> whether VLC actually changes the value of the bytes of a static
file(.ts)
> when it streams out.? I am ready to clairfy a bit more on this if
> required....
>
> The question seems to be a bit out of context from
> libmpeg2 ,but if any one can help me on this ,then that would be really
> grateful.
just guessing...
vlc tends to put 7 188 byte TS packets into a single 1316 byte UDP
packet.
On other hand, it may also be encapsulating the 7 packets into RTP.
Then you would find 1328 byte UDP packets, with the first 12 bytes
being the RTP header, and the remainder being 7x188 TS packets.
different VLC versions have behaved variously in this regard at
various times.
--
brian
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel