Hello. What is the buffer in op_test_memory method ? I have try with a array of bytes but without luck: op_test_memory(Bufferofbytes,1024, Err) The error code is -139 (OP_EBADTIMESTAMP). The contend of the Bufferofbytes (from a web-url-audio file) is this: Lavf57.57.100 encoder=Lavc57.65.100 libopustitle=Be Thankful%artist=For What You GotWilliam De Vau$album=Blaxploitation Vol.3 The Payba date=1997TRACKNUMBER=11OggS??d, ????54?@BCDDDEDDDCR?????????????????????????????????????????@*?m??|??G???"??>_4Z??/kv??e"??bvZ6?j? ?z2??PY?*??]luN??H?t?A5QR?s:3?0???:?^??????垄f??8?$5{w>f at r)YZ???K>???T?`?+??????z?g "F^???????a h??芦?o?"t?C?d]J=??kdw?Z3|?L??B???a???r?b?C}??u? L@?????W9??V?W ?+r???{<?`?_??O&?t? G?g??~??o?Q|?~7?E??~!??<?$3? E??I????4????h;?? \0L?|xE??x`??????G??a??@??????P?[?????6,?rk??&??????=????V??+?I3~?~j??^??g?x?a??,l'?_ =????(??a????u?Z??? ?|N+9?~e????2???r?a?R?E????? ?F?j??\??QA??s<6?Cal?????????脛?zE????!Z?&G?"???a???7?r?nt?Q?4?N??{?w[ ??zt??p??%???ZYN????}????7?????? You may note that there are opus infos. Why op_test_memory(Bufferofbytes,1024, Err) is not working ? What kind of data is wanted by the buffer parameter ? Many thanks. Fre;D <http://sites.google.com/site/fiensprototyping/home> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/opus/attachments/20170127/78e52d0c/attachment.html>
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=11OggSIt 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
Hello. Many thanks for your light, indeed the header was corrupt, I have try with a other opus file and... op_test_memory + op_open_test gives 0 as error and the tags are assigned, numer of channels + length ok. Perfect. Thanks. Fre;D ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/opus/attachments/20170128/948edda7/attachment.html>