How to stream realtime encoded video/audio stream using LibVLC?

This forum is about all development around libVLC.
pango
Blank Cone
Blank Cone
Posts: 15
Joined: 18 May 2010 15:51

How to stream realtime encoded video/audio stream using LibVLC?

Postby pango » 07 Aug 2020 19:33

My program realtime generate H264(or HEVC) video stream,and AAC audio stream, so how can I stream them using LibVLC? Should I use imem module?

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: How to stream realtime encoded video/audio stream using LibVLC?

Postby mfkl » 10 Aug 2020 09:14

https://mfkl.github.io

pango
Blank Cone
Blank Cone
Posts: 15
Joined: 18 May 2010 15:51

Re: How to stream realtime encoded video/audio stream using LibVLC?

Postby pango » 12 Aug 2020 17:08

Now I'm using ffmpeg to mux video/audio stream into ts stream firstly,and then use libvlc_new_media_callbacks() to feed my ts stream to libvlc,it works fine, but has below problems:

- I put the media instance created by libvlc_new_media_callbacks() into a player instance,the player can play the stream,but the delay time is too long,it is 1.5s at least,how can I short the delay?

- What's the mrl of the media created by libvlc_new_media_callbacks()? I want to stream the ts stream over network using libvlc_vlm_add_broadcast(),but the api require the mrl of input media,I had tried using "imem://" as mrl,but I failed,vlc log report it can not find input module for "imem://", so what's the mrl of the media?

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

Re: How to stream realtime encoded video/audio stream using LibVLC?

Postby Rémi Denis-Courmont » 12 Aug 2020 18:19

libvlc_new_media_callbacks() media cannot be represented by a MRL. The function pointers are not serial data afterall.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 19 guests