How to get the mrl of libvlc_media_new_callbacks() defined custom input stream?

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

How to get the mrl of libvlc_media_new_callbacks() defined custom input stream?

Postby pango » 12 Aug 2020 12:05

I use libvlc_media_new_callbacks() to input a realtime ts stream to libvlc, and then use "libvlc_vlm_add_broadcast()" to stream it over network,I put the libvlc_media_t * of libvlc_media_new_callbacks to call libvlc_media_get_mrl(),it return the mrl of media is "imem://",I treat the mrl as "psz_input" param to call libvlc_vlm_add_broadcast(),but I failed ,because I found the read callback function of media is never called,and vlc report below errors:

main input debug: `imem://' gives access `imem' demux `any' path `'
main input source debug: creating demux: access='imem' demux='any' location='' file='(null)'
main demux debug: looking for access_demux module matching "imem": 15 candidates
imem demux error: Invalid get/release function pointers
main demux debug: no access_demux modules matched
main stream debug: creating access: imem://
main stream debug: looking for access module matching "imem": 26 candidates
imem stream error: Invalid get/release function pointers
main stream debug: no access modules matched
main input error: Your input can't be opened
main input error: VLC is unable to open the MRL 'imem://'. Check the log for details.


It seems the media mrl is wrong, so how to get the mrl of a custom input stream? what's the "psz_input" param of libvlc_vlm_add_broadcast() when input is custom?

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

Re: How to get the mrl of libvlc_media_new_callbacks() defined custom input stream?

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

The MRL is indeed imem://. The pointers are passed out of band, cannot be used with VLM (and VLM is deprecated anyway).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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

Re: How to get the mrl of libvlc_media_new_callbacks() defined custom input stream?

Postby pango » 13 Aug 2020 04:09

The MRL is indeed imem://. The pointers are passed out of band, cannot be used with VLM (and VLM is deprecated anyway).
VLM is deprecated , so which api should be used for stream work?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests