开发者

raw h.264 packet capture and playing in VLC

开发者 https://www.devze.com 2022-12-27 04:52 出处:网络
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 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 na开发者_如何学编程ive 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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号