当前位置:网站首页>sample_ What is the relationship between rate, sample and duration
sample_ What is the relationship between rate, sample and duration
2022-07-05 18:19:00 【hjjdebug】
sample_rate( Sampling rate ),sample( sampling ),duration( Duration ) What's the relationship
It is found that an audio packet is broken into a frame after , Here's the data
nb_samples = 1024
sample_rate = 48000
pkt_duration = 1920
pkt_size = 427
What is the relationship between these values ?
pkt_size = 427 Indicates that the size of the audio compression package is 427 bytes
nb_samples = 1024 It means that after decoding 1024 Sample data
sample_rate = 48000 It means that it needs to be broadcast every second 48K data
pkt_duration = 1920
sample_rate: Sampling rate , Samples per second 48000HZ, Every sample The time is 1/48000 second
nb_samples: Number of samples
Audio playback time , nb_samples The time that the sampling point can play
duration_s=nb_samples*(1/48000) second ,
duration The unit of is not seconds , It's not milliseconds , It is AVStream Number of time bases .
duration=duration_s / av_q2d(st->time_base)
st->time_base yes (1,90k), be av_q2d=1/90k
therefore duration It's actually the number of seconds multiplied by 90K
be :
duration = 1024 * 1/48K *90K = 1920
special case : If you make st->time_base == sample_rate,
be duration=nb_samples.
in addition , pts Is in accordance with the duration To deliver long .
边栏推荐
- 开户注册挖财安全吗?有没有风险的?靠谱吗?
- Sibling components carry out value transfer (there is a sequence displayed)
- 开户注册股票炒股安全吗?有没有风险的?靠谱吗?
- Maximum artificial island [how to make all nodes of a connected component record the total number of nodes? + number the connected component]
- 记录Pytorch中的eval()和no_grad()
- Introduction to Resampling
- 写作写作写作写作
- pytorch yolov5 训练自定义数据
- Let more young people from Hong Kong and Macao know about Nansha's characteristic cultural and creative products! "Nansha kylin" officially appeared
- 《力扣刷题计划》复制带随机指针的链表
猜你喜欢

nacos -分布式事务-Seata** linux安装jdk ,mysql5.7启动nacos配置ideal 调用接口配合 (保姆级细节教程)

星环科技数据安全管理平台 Defensor重磅发布

rust统计文件中单词出现的次数

Sophon base 3.1 launched mlops function to provide wings for the operation of enterprise AI capabilities

node_ Exporter memory usage is not displayed
![含重复元素取不重复子集[如何取子集?如何去重?]](/img/b2/d019c3f0b85a6c0d334a092fa6c23c.png)
含重复元素取不重复子集[如何取子集?如何去重?]

Nacos distributed transactions Seata * * install JDK on Linux, mysql5.7 start Nacos configure ideal call interface coordination (nanny level detail tutorial)
![[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business](/img/a6/aa0b8d30913dc64f3c0cd891528c40.png)
[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business

分享:中兴 远航 30 pro root 解锁BL magisk ZTE 7532N 8040N 9041N 刷机 刷面具原厂刷机包 root方法下载

小林coding的内存管理章节
随机推荐
Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
Check namespaces and classes
Simulate the hundred prisoner problem
文章中的逻辑词
Writing writing writing
热通孔的有效放置如何改善PCB设计中的热管理?
The easycvr platform reports an error "ID cannot be empty" through the interface editing channel. What is the reason?
matlab内建函数怎么不同颜色,matlab分段函数不同颜色绘图
How to improve the thermal management in PCB design with the effective placement of thermal through holes?
ConvMAE(2022-05)
开户注册股票炒股安全吗?有没有风险的?靠谱吗?
GIMP 2.10教程「建议收藏」
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
U-Net: Convolutional Networks for Biomedical Images Segmentation
Xiaobai getting started with NAS - quick building private cloud tutorial series (I) [easy to understand]
【PaddlePaddle】 PaddleDetection 人脸识别 自定义数据集
消除`if()else{ }`写法
Nacos distributed transactions Seata * * install JDK on Linux, mysql5.7 start Nacos configure ideal call interface coordination (nanny level detail tutorial)
How to solve the error "press any to exit" when deploying multiple easycvr on one server?
吴恩达团队2022机器学习课程,来啦