当前位置:网站首页>【读书会第十三期】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的强大,以及简单的应用,期待后续将他们运用到工作生活中!感谢老师!
边栏推荐
- %S format character
- PLC Analog input analog conversion FC s_ ITR (CoDeSys platform)
- 每周招聘|高级DBA年薪49+,机会越多,成功越近!
- Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
- SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
- 这几年爆火的智能物联网(AIoT),到底前景如何?
- Preliminary exploration of flask: WSGI
- 内存管理总结
- Decimal, exponential
- How to rapidly deploy application software under SaaS
猜你喜欢
随机推荐
暑期复习,一定要避免踩这些坑!
从0到1建设智能灰度数据体系:以vivo游戏中心为例
华为云数据库DDS产品深度赋能
Unity update process_ Principle of unity synergy
信号处理之一阶RC低通滤波器宏指令实现(繁易触摸屏)
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
Decimal, exponential
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
Details of FPGA underlying resources
中国主要城市人均存款出炉,你达标了吗?
Redis 发布和订阅
Usage of database functions "recommended collection"
Five minutes of machine learning every day: how to use matrix to represent the sample data of multiple characteristic variables?
函数计算异步任务能力介绍 - 任务触发去重
selenium 浏览器(2)
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Preliminary exploration of flask: WSGI
Leecode learning notes - Joseph problem
They are all talking about Devops. Do you really understand it?
重排数组











