stream output drop frame option

This forum is about all development around libVLC.
captainst
Blank Cone
Blank Cone
Posts: 24
Joined: 01 Sep 2011 16:43

stream output drop frame option

Postby captainst » 01 Mar 2012 06:11

Hello Everyone,

I am using the libvlc for a surveillance application. The init code and options I used is as follows (I am using Qt):

Code: Select all

const char * const vlcargs[] = { "--plugin-path=C:\VideoLan\VLC", "--sout-udp-caching=0", "--udp-caching=0", "--rtsp-caching=0", "--sout-rtp-caching=0", "--skip-frames", "--sout-x264-fast-pskip", "--sout-x264-fast-pskip" }; m_pInstVlc = libvlc_new(sizeof(vlc_args)/ sizeof(vlc_args[0]),vlc_args);
Then I add to VLM broadcast, which uses the RTP to push the stream to another IP address on port 5004:

Code: Select all

const char * const vlmargs[] = { "--no-sout-rtp-sap", "--no-sout-standard-sap", "--ttl=1", "--sout-keep"}; libvlc_vlm_add_broadcast(m_pInstVlc, "test", strInput, "#rtp{dst=192.168.55.100,port=5004,mux=ts}", sizeof(vlmargs)/ sizeof(vlmargs[0]), vlmargs, true, 0); libvlc_vlm_play_media(m_pInstVlc, "test");

With sufficient bandwidth, the above does not have problem, I am able to watch the video using VLC open network stream from another computer.
However when the bandwidth is not enough (20~30% of that required), the vlm broadcast does not skip o drop automatically the frames that it could not transmit. On the other computer I saw that slowly the first seconds arrived, but then it froze and never updated anymore.

Have I used correctly the parameters as in "vlcargs", or is there some other way to let the VLM broadcast automatically drop the frames when it could not manage to transmit the frames ?

Many thanks again.

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: stream output drop frame option

Postby Jean-Baptiste Kempf » 01 Mar 2012 11:30

Can you share the logs?
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.

captainst
Blank Cone
Blank Cone
Posts: 24
Joined: 01 Sep 2011 16:43

Re: stream output drop frame option

Postby captainst » 01 Mar 2012 13:40

Hello Jean,

Thank you for your prompt. Would you let me know how to save the log with libvlc ?

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: stream output drop frame option

Postby Jean-Baptiste Kempf » 01 Mar 2012 14:41

-vvv should output it to stderr
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: Bing [Bot] and 13 guests