Reading RTP payload from file.

This forum is about all development around libVLC.
user192386
New Cone
New Cone
Posts: 2
Joined: 17 May 2019 16:46

Reading RTP payload from file.

Postby user192386 » 17 May 2019 17:00

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Reading RTP payload from file.

Postby Rémi Denis-Courmont » 18 May 2019 10:16

No. You need to use a suitable file format such as MKV or MP4 to store audio/video in files.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

user192386
New Cone
New Cone
Posts: 2
Joined: 17 May 2019 16:46

Re: Reading RTP payload from file.

Postby user192386 » 18 May 2019 13:55

Thanks for your response.


Return to “Development around libVLC”

Who is online

Users browsing this forum: Bing [Bot] and 36 guests