当前位置:网站首页>【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
2022-07-04 14:23:00 【华为云】
FFmpeg的工程化方案
音频文件和视频文件的转码处理一般称为多媒体处理, 华为云也有相应的媒体处理服务一Media Processing Center,简称MPC,是一种多媒体数据处理服务, 基于华为云云计算服务构建,解决客户自建音视频处理能力不可避免的投入成本高昂、技术门槛高等问题,帮助客户专注于业务能力构建,快速交付上线。
- 视频处理
- 音频处理
FFmpeg转码
通过之前几节课的介绍,我们已经对FFmpeg的多媒体处理能力有一定程度的了解。
接下来,我将向大家演示如何利用FFmpeg 实现部分华为云媒体处理服务的部分音视频处理功能,包括转码能力、视频参数、音频参数三部分内容。
FFmpeg实战演示
- 音频转码
ffmpeg -i XXX. mp3 -acodec aac -ab 3000 -ac 1 -ar 8000 output.aac
我们来分别理解一下这些参数:
-i:输入文件
-acodec:设置音频编码类型
-ab:设置音频码率的参数
-ac:设置声道数
-ar:设置采集率 - 视频转码
ffmpeg -i XXX. mp4 -vcodec h263 -b:v 256000 -r 15 -s 352x288 -acodec copy
output. ts
-vcodec:设置视频编码
-b:v:设置视频码率
-r:设置视频帧率
-s:设置视频采样率
总结:
今天学习的主要是将前面的知识做一个实践,通过两条命令行可以非常清晰的体验到FFmpeg的强大,以及简单的应用,期待后续将他们运用到工作生活中!感谢老师!
边栏推荐
猜你喜欢
Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
Unity脚本常用API Day03
Unity脚本生命周期 Day02
Redis sentinel mode realizes one master, two slave and three Sentinels
They are all talking about Devops. Do you really understand it?
MP3是如何诞生的?
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?
Is BigDecimal safe to calculate the amount? Look at these five pits~~
都在说DevOps,你真正了解它吗?
随机推荐
Width accuracy
中国主要城市人均存款出炉,你达标了吗?
%f格式符
重排数组
谈SaaS下如何迅速部署应用软件
這幾年爆火的智能物聯網(AIoT),到底前景如何?
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
Decimal, exponential
从0到1建设智能灰度数据体系:以vivo游戏中心为例
基于MAX31865的温度控制系统
I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
Optimization method of deep learning neural network
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
微博、虎牙挺进兴趣社区:同行不同路
Helix swarm Chinese package is released, and perforce further improves the user experience in China
IO flow: node flow and processing flow are summarized in detail.
ES6 modularization
.Net 应用考虑x64生成
Deep learning neural network case (handwritten digit recognition)
Hexadecimal form