当前位置:网站首页>【读书会第十三期】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的强大,以及简单的应用,期待后续将他们运用到工作生活中!感谢老师!
边栏推荐
- Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
- Huawei cloud database DDS products are deeply enabled
- SAIC Maxus officially released its new brand "mifa", and its flagship product mifa 9 was officially unveiled!
- C1 certification learning notes 3 -- Web Foundation
- 宽度与对齐
- 压力、焦虑还是抑郁? 正确诊断再治疗
- 智能客服赛道:网易七鱼、微洱科技打法迥异
- Implementation of macro instruction of first-order RC low-pass filter in signal processing (easy touch screen)
- Unity脚本生命周期 Day02
- Width and alignment
猜你喜欢

音视频技术开发周刊 | 252

03-存储系统

Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example

How to handle exceptions in multithreading?

智能客服赛道:网易七鱼、微洱科技打法迥异

Five minutes of machine learning every day: why do we need to normalize the characteristics of numerical types?

Techsmith Camtasia Studio 2022.0.2屏幕录制软件
![[Dalian University of technology] information sharing of postgraduate entrance examination and re examination](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination

开源人张亮的 17 年成长路线,热爱才能坚持

Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
随机推荐
【学习笔记】拟阵
LeetCode 1200 最小絕對差[排序] HERODING的LeetCode之路
The performance of major mainstream programming languages is PK, and the results are unexpected
LeetCode 58. 最后一个单词的长度
压力、焦虑还是抑郁? 正确诊断再治疗
CentOS 6.3 下 PHP编译安装JSON模块报错解决
夜天之书 #53 Apache 开源社群的“石头汤”
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Summer Review, we must avoid stepping on these holes!
Enter the width!
这几年爆火的智能物联网(AIoT),到底前景如何?
Hexadecimal form
一篇文章搞懂Go语言中的Context
Helix Swarm中文包发布,Perforce进一步提升中国用户体验
AI做题水平已超过CS博士?
Details of FPGA underlying resources
Introduction of text mining tools [easy to understand]
They are all talking about Devops. Do you really understand it?
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
Unity脚本API—GameObject游戏对象、Object 对象

