old libvlc code problems with 2.0.0

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

old libvlc code problems with 2.0.0

Postby captainst » 31 Mar 2012 05:07

Hello Everyone,

Back from another project after almost 3 weeks, I found that there is a new version of VLC available. So downloaded and installed, discovered quite exciting new features. However when using the new libvlc.dll and libvlccore.dll with the old code (written for 1.x.x), problems come.

To start up, I used before the following code to initialize:

Code: Select all

const char * const vlc_args[] = { "--plugin-path=C:\\Program Files\\VideoLAN\\VLC\\plugins", "--udp-caching=0", "--rtsp-caching=0", "--drop-late-frames", "--skip-frames", "--sout-rtp-caching=0", "--sout-udp-caching=0" }; m_pInstVlc = libvlc_new(sizeof(vlc_args)/ sizeof(vlc_args[0]),vlc_args);
I saw the following problems with the above code with 2.0.0:

1. From this site: http://www.videolan.org/developers/vlc/NEWS, the --plugin-path option has been substituted by the VLC_PLUGIN_PATH environmental variable. So I added the VLC_PLUGIN_PATH manually to the system environmental variable, and removed the "--plugin-path=xxx" option from the vlc_args.

2. After that, I still get a pop-up error "the command line options could not be parsed" when excecuting libvlc_new line. I removed one-by-one the options from the vlc_args[] array, and discovered that the following two caused the above error:

Code: Select all

"--sout-rtp-caching=0", "--sout-udp-caching=0"
So what happened to the above 2 options ?

3. Even if I remove all the options, and make a call like

Code: Select all

m_pInstVlc = libvlc_new(0,NULL);
I still get m_pInstVlc == 0 (the value VLC_PLUGIN_PATH has been setup manually in windows 7: C:\Program Files\VideoLAN\VLC).

So what could be the correct command line options to libvlc_new? Is there available a complete list for the new version ?

Many thanks!

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

Re: old libvlc code problems with 2.0.0

Postby captainst » 31 Mar 2012 17:04

I believe that it is related to the compiler environment. The project was a Qt DLL, after being re-compiled as an application, starts to work.

I am still wondering if anybody knows the available options for libvlc_new, and libvlc_vlm_add_broadcast. May I put any of the listed described in this page ? http://wiki.videolan.org/VLC_command-line_help

Thanks.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests