Re: Decode ogg file while downloading: what are the good practices?

Matthieu Regnauld <[email protected]> Sat, 3 Nov 2018 22:18:28 +0100
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <CADjM6tBLAOZdUjU2rEZw_NqXh2c9=Lo3H_-aysT33gwCFHbtaQ@mail.gmail.com>
--===============0378071462297777946==
Content-Type: multipart/alternative; boundary="0000000000001ede120579c9320a"

--0000000000001ede120579c9320a
Content-Type: text/plain; charset="UTF-8"

Well, your " OggPlayer::release; OggPlayer::open; before OggPlayer::seek"
seems to work!
Thank you so much!

Also, I'll take a look at the Opus codec, thanks for the advice!

For your information, here was the problem in details: let's say I download
an audio file whose length is 300 seconds.
When, for example, 15 seconds of the file were downloaded, I called
OggPlayer::open().
After that moment, even if the file was fully downloaded, I was able to
seek in the file, but only between 0 and 15 seconds (whether I use
ov_pcm_seek() or even ov_raw_seek()).

So yes, that makes sence if libvorbisfile builds a seek table only when
opening the file.
That said, isn't there any function that allows to rebuild that seek table?

--0000000000001ede120579c9320a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Well, your &quot;

OggPlayer::release; OggPlayer::open; before OggPlayer::seek&quot; seems to =
work!<div>Thank you so much!</div><div><br></div><div>Also, I&#39;ll take a=
 look at the Opus codec, thanks for the advice!</div><div><br></div><div>Fo=
r your information, here was the problem in details: let&#39;s say I downlo=
ad an audio file whose length is 300 seconds.</div><div>When, for example, =
15 seconds of the file were downloaded, I called <font face=3D"monospace, m=
onospace">OggPlayer::open()</font>.</div><div>After that moment, even if th=
e file was fully downloaded, I was able to seek in the file, but only betwe=
en 0 and 15 seconds (whether I use<font face=3D"monospace, monospace"> ov_p=
cm_seek()</font> or even <font face=3D"monospace, monospace">ov_raw_seek()<=
/font>).</div><div><br></div><div>So yes, that makes sence if libvorbisfile=
 builds a seek table only when opening the file.</div><div>That said, isn&#=
39;t there any function that allows to rebuild that seek table?</div><div><=
br></div></div>

--0000000000001ede120579c9320a--

--===============0378071462297777946==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVm9yYmlzLWRl
diBtYWlsaW5nIGxpc3QKVm9yYmlzLWRldkB4aXBoLm9yZwpodHRwOi8vbGlzdHMueGlwaC5vcmcv
bWFpbG1hbi9saXN0aW5mby92b3JiaXMtZGV2Cg==

--===============0378071462297777946==--