Categories
C++

SDL 渲染

beiko camera 就是使用SDL 直接渲染的

Categories
C++

VLC 编译

vlc 是一个开源播放器 能播放市面上大部分音视频

vlc 源码地址

VideoLAN / VLC · GitLab

vlc编译指导(交叉编译为windows 64 dll)

doc/BUILD-win32.md · master · VideoLAN / VLC · GitLab

血的教训(因为交叉编译 对环境 依赖很高 主要是版本问题 导致本地环境很难编译过)

vlc团队有docker环境 安装(安装了所有依赖项 拉下源码即可编译)

https://code.videolan.org/videolan/vlc/-/blob/master/extras/ci/gitlab-ci.yml

文档中有docker地址

variables:
    VLC_WIN32_IMAGE: registry.videolan.org/vlc-debian-win32:20221214121630
    VLC_WIN64_IMAGE: registry.videolan.org/vlc-debian-win64:20221214115142
    VLC_WIN_LLVM_MSVCRT_IMAGE: registry.videolan.org/vlc-debian-llvm-msvcrt:20221214101739
    VLC_WIN_LLVM_UCRT_IMAGE: registry.videolan.org/vlc-debian-llvm-ucrt:20221214110439
    VLC_DEBIAN_IMAGE: registry.videolan.org/vlc-debian-unstable:20221213103803
    VLC_ANDROID_IMAGE: registry.videolan.org/vlc-debian-android:20221214124003
    VLC_SNAP_IMAGE: registry.videolan.org/vlc-ubuntu-focal:20221023195550
    VLC_RASPBIAN_IMAGE: registry.videolan.org/vlc-ubuntu-raspberry:20221023200157
    VLC_WASM_EMSCRIPTEN: registry.videolan.org/vlc-debian-wasm-emscripten:20221213104631

不同的编译版本下载对应的docker镜像(镜像稍大需要耐性)

docker pull registry.videolan.org/vlc-debian-win64:20221011230137

本地运行

git bash

winpty docker run -v /c/Users/15699/vlcdirectory/:\vlc -u 0 -it –privileged=true registry.videolan.org/vlc-debian-win64:20221214115142 bash

CMD

docker run -v c://Users/15699/vlcdirectory/:/vlc -u 0 -it registry.videolan.org/vlc-debian-win64:20221214115142 bash

然后拉取源码 运行编译(当然源码中需要下载很多第三方包)最好先下载下来 然后 在makefile指定本地文件

mkdir build
cd build
../vlc/extras/package/win32/build.sh -a x86_64

VLC 录像功能 – 简书 (jianshu.com)

给 vlc sdk 添加录像接口_mengzhengjie的博客-CSDN博客

更改VLC源码 实现使用libVLC录像功能_sooth2008的博客-CSDN博客