VLC RTSP disable audio stream

This forum is about all development around libVLC.
acquleo
New Cone
New Cone
Posts: 7
Joined: 24 Jul 2013 16:58

VLC RTSP disable audio stream

Postby acquleo » 25 Jul 2013 16:19

Can i prevent vlc to request the audio track via RTSP? (disable SETUP command on audio track).
We have to keep audio enabled on camera (AXIS) because other services need audio stream.
I need to disable the audio stream because the first rtsp connection is slower on axis camera with audio enabled.
Thanks
Leonardo

Agron
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Jul 2013 15:48
Operating System: Linux

Re: VLC RTSP disable audio stream

Postby Agron » 26 Jul 2013 21:21

Add --no-audio to your libvlc_new function call.

Code: Select all

const char * const vlc_args[] = { "-I", "dummy", /* Don't use any interface */ "--ignore-config", /* Don't use VLC's config */ "--aspect-ratio=4:3", "--no-audio" };


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests