Reprinted with the source: http://www.cnitblog.com/buf/archive/2012/10/10/74993.html
VLC has rich and powerful command line parameters, allowing you to easily perform transcoding and IO redirection (file, network ...) And so on. There are also a lot of related information on the network, so I won't be so embarrassed here. Here, I would like to share my experience on using libvlc for streaming.
1. First. To use libvlc, you must include the header file "VLC/VLC. H" and the files connecting libvlc. lib and libvlccore. Lib.
2. libvlc requires stdint. h. If this file is not available, download it to the SDK \ include \ VLC directory and put # include <stdint in libvlc_structures.h. h> Replace with # include "stdint. H ", compilation will be okay.
3. After connecting to libvlc, the program will run libvlc. dll, libvlccore. dll, and a series of plug-in function DLL. These are included in the ZIP files downloaded in 1 and copied to the directory where the program is located. Keep the directory structure unchanged. For example: