vlc库下载地址:http://download.videolan.org/pub/videolan/vlc/3.0.6/

下载结束后,需要修改vlc.h文件

加入typedef __int64 ssize_t;这句话,否则会报错(应该是配置工程为x64的时候,会报错)

#ifndef VLC_VLC_H
#define VLC_VLC_H 1

/**
 * \file
 * This file defines libvlc new external API
 */

# ifdef __cplusplus
extern "C" {
# endif

typedef __int64 ssize_t;

#include <vlc/libvlc.h>

 

opencv库,不说了,网上很多

代码:https://blog.csdn.net/bleakie/article/details/79817796

要先设置视频的宽和高,默认播放的话,貌似用的是显卡进行的,就不需要设置宽和高,至今不明白为啥

opencv的videocapture,可以读取rtsp的视频流,但是无法读取rtp的,不知道为啥