Page 1 of 1

Reading RTP payload from file.

Posted: 17 May 2019 17:00
by user192386
Hi, I have a pcap dump with RTSP+RTP session from which I want to extract video and audio channels and then combine them in one video file.
I extract RTP payload of video stream, but in such a raw form it isn't playable, because packetization is needed. Can I use libvlc to do this for me somehow?
I found code for this in rtpfmt.c, but don't know how to use it.
The ideal algorithm for me is to parse RTSP packets manually, get SDP from it, initialize some VLC.RTP module with settings from SDP, and then put all RTP packets to vlc, and take a videofile in response.

Is it possible or that functionality is not intended for such use case?

Re: Reading RTP payload from file.

Posted: 18 May 2019 10:16
by RĂ©mi Denis-Courmont
No. You need to use a suitable file format such as MKV or MP4 to store audio/video in files.

Re: Reading RTP payload from file.

Posted: 18 May 2019 13:55
by user192386
Thanks for your response.