当前位置:网站首页>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 .
边栏推荐
- Use of print function in MATLAB
- 星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
- Record eval() and no in pytoch_ grad()
- [TestLink] testlink1.9.18 solutions to common problems
- mybash
- [QNX Hypervisor 2.2用户手册]6.3.2 配置VM
- 深拷贝与浅拷贝【面试题3】
- 《2022中国信创生态市场研究及选型评估报告》发布 华云数据入选信创IT基础设施主流厂商!
- Wu Enda team 2022 machine learning course, coming
- About Estimation with Cross-Validation
猜你喜欢

Leetcode exercise - 206 Reverse linked list

图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统

图像分类,看我就够啦!

Cmake tutorial step1 (basic starting point)

模拟百囚徒问题

Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection

ConvMAE(2022-05)

Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀

FCN: Fully Convolutional Networks for Semantic Segmentation

Sophon CE社区版上线,免费Get轻量易用、高效智能的数据分析工具
随机推荐
How can cluster deployment solve the needs of massive video access and large concurrency?
LeetCode笔记:Weekly Contest 300
【在優麒麟上使用Electron開發桌面應】
ConvMAE(2022-05)
Sophon base 3.1 launched mlops function to provide wings for the operation of enterprise AI capabilities
吳恩達團隊2022機器學習課程,來啦
让更多港澳青年了解南沙特色文创产品!“南沙麒麟”正式亮相
What is the reason why the video cannot be played normally after the easycvr access device turns on the audio?
苹果手机炒股安全吗?打新债是骗局吗?
Use JMeter to record scripts and debug
IDC report: Tencent cloud database ranks top 2 in the relational database market!
Sibling components carry out value transfer (there is a sequence displayed)
[paddlepaddle] paddedetection face recognition custom data set
隐私计算助力数据的安全流通与共享
Can communication of nano
ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V
图片数据不够?我做了一个免费的图像增强软件
[use electron to develop desktop on youqilin]
Clickhouse (03) how to install and deploy Clickhouse
Star ring technology data security management platform defender heavy release