当前位置:网站首页>The FFmpeg library is configured and used on win10 (libx264 is not configured)
The FFmpeg library is configured and used on win10 (libx264 is not configured)
2022-08-09 13:03:00 【A 12 knowledge】
Directory
Background
Audio and video development is inseparable from encoding and decoding. Through encoding and decoding, delay-free video transmission and playback can be realized.
The most widely used protocols in audio and video codec are MPEG-4 and h264, and h264 is actually a part of MPEG-4.
Codecs are generally divided into soft solutions and hard solutions. Soft solutions are algorithm implementations that can be used across platforms, such as libx264 and FFmpeg. Hard solutions refer to the hardware codecs that the hardware platform itself has.
1. What is FFmpeg?
FFmpeg is an open source multimedia video processing tool. FFmpeg has very powerful functions including video capture function, video format conversion, video capture, adding watermark to video, etc., and supports multiple platforms.
Second, Windows configuration steps
1. Download FFmpeg
Usually go to the official website (http://www.ffmpeg.org/) to download the source code or exe file, but to develop on it, you need .dll, .lib, and .h files.
This is the FFmpeg library (-dev and -shred) required for win10 development, I am looking for it~
Link: https://pan.baidu.com/s/1bA5aag8tlSluXmBYLLEf-g
Extraction code: c8f0
2.Configuration vs
1. Right-click on the project name -> Properties -> Configuration Properties -> c/c++ -> Additional include directories: Add dev\include directories
2. Right-click the project name->Properties->Configuration Properties->Linker->General->Additional library directory:Add dev\lib directory
3. Right click on the project name -> Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies: Add swscale.lib;avcodec.lib;avutil.lib;avformat.lib;
4. Copy all dlls under shared\bin to the project directory (the next level of .sln)
3. Test
#include extern "C" {#include "libavcodec/avcodec.h"#include "libavformat/avformat.h"}int main(int argc, char* argv[]) {printf("%s\n", avcodec_configuration());return 0;}If an error is reported: d:\ffmpeg-4.3.1-win64-dev\include\libavutil\rational.h : warning C4819: The file contains cannot be included in the current code page (936)character represented in .Please save the file in Unicode format to prevent data loss, refer to the blog https://blog.csdn.net/qq_36226393/article/details/77725493
边栏推荐
- ARP协议原理
- 鹅厂机器狗花式穿越10m梅花桩:前空翻、单桩跳、起身作揖...全程不打一个趔趄...
- 程序员的专属浪漫——用3D Engine 5分钟实现烟花绽放效果
- LeetCode 1413.逐步求和得到正数的最小值
- 结构体变量的首地址获取注意事项
- win10编译x264库(也有生成好的lib文件)
- Blazor Server (9) from scratch -- modify Layout
- 微服务架构的核心关键点
- 修改VOT2018.json文件,去掉图片路径中的color
- How should the acceptance criteria for R&D requirements be written?| Agile Practices
猜你喜欢
随机推荐
阿里云新增三大高性能计算解决方案,助力生命科学行业快速发展
罗振宇折戟创业板/ B站回应HR称用户是Loser/ 腾讯罗技年内合推云游戏掌机...今日更多新鲜事在此...
web course design
OpenSSF的开源软件风险评估工具:Scorecards
世界第4疯狂的科学家,在103岁生日那天去世了
LeetCode_单调栈_中等_456.132 模式
基于CAP组件实现补偿事务与幂等性保障
人体解析(Human Parse)开源数据集整理
Programmer's Exclusive Romance - Use 3D Engine to Realize Fireworks in 5 Minutes
读写分离后,性能居然提升100%了呀
【微服务~远程调用】整合RestTemplate、WebClient、Feign
鹅厂机器狗花式穿越10m梅花桩:前空翻、单桩跳、起身作揖...全程不打一个趔趄...
从零开始Blazor Server(9)--修改Layout
西湖大学教授怎么看AI制药革命?|量子位智库圆桌实录
MySQL中的锁
张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来
实验记录:搭建网络过程
8、IDEA提交代码出现: Fetch failed fatal: Could not read from remote repository
阻塞、非阻塞、多路复用、同步、异步、BIO、NIO、AIO 一锅端
曲鸟全栈UI自动化教学(八):框架代码讲解和进一步优化









