You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to decode audio recorded by Google Chrome, using the audio/webm;codecs=pcm configuration.
Trying to decode this file then results in the pcm: maximum frames per packet is required error.
I was able to fix this problem by setting params.max_frames_per_packet = 65536 in case this value is None.
According to OggPCM (https://wiki.xiph.org/OggPCM): The "Maximum number of frames per packet" field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames. This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.
However, I do not think Chrome uses this field.
Check the following audio sample: pcm_sample.zip
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to decode audio recorded by Google Chrome, using the
audio/webm;codecs=pcm
configuration.Trying to decode this file then results in the
pcm: maximum frames per packet is required
error.I was able to fix this problem by setting
params.max_frames_per_packet = 65536
in case this value is None.According to OggPCM (https://wiki.xiph.org/OggPCM):
The "Maximum number of frames per packet" field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames. This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.
However, I do not think Chrome uses this field.
Check the following audio sample:
pcm_sample.zip
Thanks.
The text was updated successfully, but these errors were encountered: