RTP pack/unpack #275
rcvangemert
started this conversation in
General
Replies: 3 comments
-
mabe rtp_queue_t is the answer? This way I should have fully formed RTP packets to feed decoder->input(unpacker, data, bytes) |
Beta Was this translation helpful? Give feedback.
0 replies
-
rtp encode/decode has many useful api:
For rtp packet decode:
so, use rtsp_demuxer_create if any. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the info.
I am now trying rtp_demuxer_create. I think I understand the process.
I chose jitter and frequency values that I have seen in your code but I do
not understand. Can you give a brief explanation so I can investigate?
As I am not locked to a format I chose "encoding" but rtp_payload_find
fails because "encoding" is not known. Opus seems to be my best choice but
your code is locked to defined formats.
rtp_demuxer_create(100, 90000, RTP_PAYLOAD_DYNAMIC, "encoding",
rtp_onpacket, 0);
…On Mon, 8 May 2023 at 22:49, Chen ***@***.***> wrote:
rtp encode/decode has many useful api:
1. librtp/include/rtp-payload.h:
rtp_payload_encode_create/rtp_payload_decode_create
2. librtp/include/rtp-demuxer.h: rtp_demuxer_create
3. librtsp/include/rtsp-muxer.h/rtsp-demuxer.h: rtsp_demuxer_create
For rtp packet decode:
1. rtp_payload_decode_create: only for rtp packet decode, output raw
payload;
2. rtp_demuxer_create: rtp packet decode + rtp reorder
3. rtsp_demuxer_create: rtp packet decode + rtp reorder + sdp fmtp
parse + mpeg-ps/ts decode + audio/video packet handle
so, use rtsp_demuxer_create if any.
—
Reply to this email directly, view it on GitHub
<#275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGSW3CLRSFJYXC5ARQCM2DXFDTUFANCNFSM6AAAAAAXZRPKMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Thanks for your library. I am trying to use rtp to encode/decode data. As is am not locked to a known format I am using your rtp-pack.c & rtp-unpack.c
I have the encode side working but am struggling with the decode side. I hope to feed in an async stream with the input data coming in by repeating calls to decode. The way I see it you can only call encode once. What am I missing?
Thanks,
Robert
Beta Was this translation helpful? Give feedback.
All reactions