简体   繁体   English

帧率与采样率

[英]frame rate vs sample rate

What is the difference between sample rate and frame rate? 采样率和帧率之间有什么区别? I tried to check a song and found sample rate and frame rate using java.They have same value, It makes me confuse. 我尝试检查一首歌,并使用java找到了采样率和帧率。它们具有相同的值,这让我感到困惑。

doesn't frame consist of many sample? 框架由多个样本组成?

thank you 谢谢

From: http://www.jsresources.org/faq_audio.html#frame_rate 来自: http//www.jsresources.org/faq_audio.html#frame_rate

For PCM, A-law and μ-law data, a frame is all data that belongs to one sampling intervall. 对于PCM,A律和μ律数据,帧是属于一个采样间隔的所有数据。 This means that the frame rate is the same as the sample rate. 这意味着帧速率与采样率相同。

For compressed formats like Ogg Vorbis, mp3 and GSM 06.10, the situation is different. 对于像Ogg Vorbis,mp3和GSM 06.10这样的压缩格式,情况有所不同。 A frame is a block of data as it is output by the encoder. 帧是由编码器输出的数据块。 Often, these blocks contain the information for several sampling intervalls. 通常,这些块包含几个采样间隔的信息。 For instance, a mp3 frame represents about 24 ms. 例如,mp3帧表示大约24毫秒。 So the frame rate is about 40 Hz. 因此帧速率约为40 Hz。 However, the sample rate of the original is preserved even inside the frames and is correctly restored after decoding. 但是,即使在帧内也保留原始采样率,并在解码后正确恢复。

read the documentation 阅读文档

Sample rate = number of samples / second 采样率=样本数/秒

Frame = 1 sample from each channel (PCM) 帧=来自每个通道(PCM)的1个样本

Frame Size = Sample size * Channels 帧大小=样本大小*通道

Frame Rate = frames / second. 帧速率=帧/秒。

For PCM the sample rate and the frame rate are the same since a frame consists of aa sample from each channel 对于PCM,采样率和帧速率是相同的,因为帧由每个通道的样本组成

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM