views:

422

answers:

3

Hi,

I am capturing packets off the network from a video conference HDX. The video is sent in RTP and is encoded in H264.

I am trying to capture these packets and generate a video file. I wrote raw H264 data from the packets to disk and i am trying to play it in VLC.

VLC just shows a green box.

Am i being too naive in my approach with data writing or should am I wrong in assuming that VLC should play this file?

Anyone have any experience in such things?

+1  A: 

You should be able to do a raw dump of the packets into a file.

The file format is simply the packets appended one after the other with nothing else in between. The file name should be .dump and once you do that, VLC should replay the video correctly. I just had to do this and this is what worked for me.

Erich Mirabal
+1  A: 

Another option on linux would be to create a gstreamer pipeline that captures rtp, decodes using ffmpeg and displays on screen using ximageview.

Sid H
A: 

what kind of header needs to be appended before each video packet??

Smith