当前位置:网站首页>Introduction to ffmpeg
Introduction to ffmpeg
2022-07-18 06:40:00 【Mr.codeee】
1. Basic composition
FFmpeg The basic components of the framework include AVFormat、AVCodec、AVFilter、AVDevice、AVUtil Wait for module library .

2.AVFormat
AVFormat Most media encapsulation formats are implemented in , Including encapsulation and unpacking , Such as MP4、FLV、TS Wait for the file encapsulation format ,RTMP、RTSP、HLS And so on network protocol encapsulation format .
3.AVCodec
AVCodec It realizes most commonly used encoding and decoding formats , Both support coding , It also supports decoding . In addition to supporting MPEG4、AAC、MJPEG And other self-contained media encoding and decoding formats , Third party codecs are also supported , Such as H.264 code 、H.265 code ;MP3 code .
4.AVFilter
AVFilter Provides a general audio 、 video 、 Subtitle and other filter processing frame .
5.swscale
swscale The module provides high-level image conversion API, For example, image scaling and pixel format conversion are allowed . example : hold 1080P convert to 720P, Or the YUV Convert to RGB data .
6.swresample
swresample The module provides high-level audio resampling API, For example, allow the operation of audio sampling .
7. Tool introduction
When we go to the official website to download the development library , There will be the following exe Program .

7.1FFmpeg Codec tools ffmpeg.exe
example : Turn to encapsulate , take MP4 The file to avi Format
./ffmpeg.exe -i input.mp4 output.aviParameters -i take input.mp4 Input as input source , Then conduct transcoding and repacking , Output to output.avi
The workflow is as follows :
- decapsulation
- decode
- code
- encapsulation
The following steps are required :

7.2FFmpeg Player tools ffplay.exe
If you want to use ffplay, The system needs to have SDL To support the foundation .
7.3FFmpeg Multimedia analysis tools ffprobe.exe
You can get the desired media information from the media file , For example, the parameters of audio 、 Video parameters, etc .
Example : Display file information
./ffprobe.exe -show_streams F:\movie\1.mp4give the result as follows :

边栏推荐
- R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the dot strip plot, set the position parameter to configure the separation of different grouped data poin
- R language dplyr package summary_ The at function calculates the count number, mean value and median of multiple data columns (specified by vectors) in the dataframe data, and uses the list function t
- [MySQL learning notes 33] log
- R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用exp函数、confint函数、coef函数获取模型中每个变量(自变量改变一个单位)对应的优势比
- 循环语句及数组
- 【C#】常用的Utils
- 动画以及封装(offset、client、scroll系列)
- Localdatetime format date and @jsonformat annotation usage and @tablefield (fill = fieldfill.insert)
- R language ggplot2 visual bar graph: visual bar graph through two-color gradient color theme
- External interrupt of stm32f4
猜你喜欢

QT ui设计师界面常用操作记录(QTableWidget)

flink. 14. How is the underlying layer of datastream module source implemented?

The difference between let / const /var

Application du moteur de visualisation Web de topologie dans le domaine de la simulation et de l'analyse

Redis (II) three special types of redis

图扑 Web 可视化引擎在仿真分析领域的应用

Special topic of software R & D efficiency demand value stream analysis

网络套接字编程

Canal realizes real-time synchronization of data from Mysql to es

Distributed basic theory that cannot be ignored
随机推荐
【C#】常用的Utils
Domain Driven Design Fundamentals
SSM integration problems - org apache. ibatis. transaction. TransactionFactory
【森城市】GIS数据漫谈(四)— 坐标系统
VI editor commands
智能工厂具体的名词解释
看完这5个理由,我终于知道FTP被替代的原因
杰理之入耳检测功能【篇】
G1这么强,你确定不了解一下?
Animation and encapsulation (offset, client, scroll series)
企业在创建产品帮助中心时需要注意的问题!
数据类型新用法与解构赋值
How to set notepad++ as the default opening method
FFmpeg 音视频转封装(MP4与FLV互转,流数据转FLV、MP4)
Network socket programming
24. Exchange the nodes in the linked list in pairs
Together with Alibaba cloud, grafana labs will provide the first grafana hosting service in China
函数与箭头函数
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses exp function, confint function and coef function to obtain the corr
探秘ZGC