[opus] buffer of op_test_memory ?

Ralph Giles giles at thaumas.net
Fri Jan 27 19:25:00 UTC 2017


On 2017-01-27 11:05 AM, Fred van Stappen wrote:

> What is the buffer in op_test_memory method ?

This should be a .opus stream loaded into memory. Opus audio in the Ogg
container.

> op_test_memory(Bufferofbytes,1024, Err)
> 
> 
> The error code is  -139 (OP_EBADTIMESTAMP).

1024 bytes may not be enough data to find the first timestamp. Data
pages are usually around 4k.

> The contend of the Bufferofbytes (from a web-url-audio file) is this:
> 
> 
> Lavf57.57.100encoder=Lavc57.65.100 libopustitle=Be
> Thankful%artist=For What You GotWilliam De Vau$album=Blaxploitation
> Vol.3 The
> Paybadate=1997TRACKNUMBER=11OggS

It looks like this is starting in the middle of the header data. Try
starting the buffer with the first OggS, the second one before this
section. It looks corrupt in other ways, with incomplete tag values
and without 4 bytes between tag entries, but that may be an effect of
the way you've dumped it.

Anyway, hope that helps,
 -r



More information about the opus mailing list