Page 1 of 1

using libvlc to stream A/V with rtp protocol from memory

Posted: 22 Jun 2019 11:03
by MikOfClassX
Hello,

I've seen some samples of RTMP streaming from memory. All the samples refer to VIDEO (see https://forum.videolan.org/viewtopic.php?t=148542)
What about creating an A/V source, i.e. RGB frames + Audio frames (PCM16S), in-memory ?

libvlc_media_new_callbacks() is very useful here. But I guess we should interleave uncompressed raw data just like [VIDEO_FRAME][AUDIO_FRAME][VIDEO_FRAME][AUDIO_FRAME]...
But I suppose we must select a correct demuxer. Here's where I'm stopping.

Comments welcome. Thanks!

Re: using libvlc to stream A/V with rtp protocol from memory

Posted: 22 Jun 2019 21:06
by RĂ©mi Denis-Courmont
This ties much deeper into VLC internals and you need to write your own plugin. This cannot be done with the simple memory callbacks.

Re: using libvlc to stream A/V with rtp protocol from memory

Posted: 08 May 2020 04:17
by cannono
Did you ever find a solution? I am trying to do something very similar.