Getting tracks info about a stream without actually playing it (silent+no screen output)

This forum is about all development around libVLC.
fishstyc
Blank Cone
Blank Cone
Posts: 40
Joined: 19 Oct 2010 12:39

Getting tracks info about a stream without actually playing it (silent+no screen output)

Postby fishstyc » 10 Dec 2016 16:14

Hello,

a few years ago, I used LibVLC pre 2.0 to play streams (like rtsp, http, dvb-t, ...)

With that version, I managed to first get the info about the streams 'silently' (in the background) by adding this option to the media first:

Code: Select all

libvlc_media_add_option( preloadMedia, "sout=#description:dummy" );
and then when I got the information, I would load the stream again, but by then I'd know its size so I could properly prepare the textures that it was supposed to render to.

Since 2.0 however, this stopped working, and I would like to know if and how it could be done with the current version of the library.

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Getting tracks info about a stream without actually playing it (silent+no screen output)

Postby Jean-Baptiste Kempf » 27 Dec 2016 11:52

You can use VLC preparsing for that.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests