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);
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"
3. Even if I remove all the options, and make a call like
Code: Select all
m_pInstVlc = libvlc_new(0,NULL);
So what could be the correct command line options to libvlc_new? Is there available a complete list for the new version ?
Many thanks!