Re: How do I seek to seek to specific samples using libvorbis?
Sergei Steshenko <[email protected]> Tue, 19 May 2015 02:57:02 +0000 (UTC)
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1645232281==
Content-Type: multipart/alternative;
boundary="----=_Part_1550408_1671937213.1432004222463"
------=_Part_1550408_1671937213.1432004222463
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I am no Vorbis developer, and I have never looked into the details of Ogg-V=
orbis implementation, but since Ogg-Vorbis is a lossy format, there is no o=
ne to one correspondence of PCM samples and bytes in the stream. Ogg-Vorbis=
is also a variable bitrate format.
I mean that first the stream has to be reconstituted into uncompressed PCM =
samples, and only then you can get to the desired sample.
Regards,=C2=A0 Sergei.
=20
From: Madison Link <[email protected]>
To: [email protected]=20
Sent: Tuesday, May 19, 2015 3:38 AM
Subject: [Vorbis] How do I seek to seek to specific samples using libvorbi=
s?
=20
<!--#yiv2438338505 #yiv2438338505 p.yiv2438338505MsoNormal, #yiv2438338505=
li.yiv2438338505MsoNormal, #yiv2438338505 div.yiv2438338505MsoNormal {marg=
in:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman"=
;}#yiv2438338505 a:link, #yiv2438338505 span.yiv2438338505MsoHyperlink {col=
or:blue;text-decoration:underline;}#yiv2438338505 a:visited, #yiv2438338505=
span.yiv2438338505MsoHyperlinkFollowed {color:purple;text-decoration:under=
line;}#yiv2438338505 span.yiv2438338505EmailStyle17 {font-family:Arial;colo=
r:windowtext;} _filtered #yiv2438338505 {margin:1.0in 1.25in 1.0in 1.25in;}=
#yiv2438338505 div.yiv2438338505Section1 {}-->What is the best practice for=
seeking to a specific(arbitrary) PCM sample in an Ogg file that contains v=
orbis, using libvorbis?=20
_______________________________________________
Vorbis mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/vorbis
=20
------=_Part_1550408_1671937213.1432004222463
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div dir=3D"ltr" id=3D"yui_3_16_0_1_1432002768159_3394"><span=
id=3D"yui_3_16_0_1_1432002768159_3430">I am no Vorbis developer, and I hav=
e never looked into the details of Ogg-Vorbis implementation, but since Ogg=
-Vorbis is a lossy format, there is no one to one correspondence of PCM sam=
ples and bytes in the stream. Ogg-Vorbis is also a variable bitrate format.=
<br></span></div><div id=3D"yui_3_16_0_1_1432002768159_3458"><br><span id=
=3D"yui_3_16_0_1_1432002768159_3430"></span></div><div id=3D"yui_3_16_0_1_1=
432002768159_3512"><span id=3D"yui_3_16_0_1_1432002768159_3430">I mean that=
first the stream has to be reconstituted into uncompressed PCM samples, an=
d only then you can get to the desired sample.</span></div><div id=3D"yui_3=
_16_0_1_1432002768159_3541"><br></div><div id=3D"yui_3_16_0_1_1432002768159=
_3542">Regards,</div><div id=3D"yui_3_16_0_1_1432002768159_3543"> Ser=
gei.</div><div><br> </div><blockquote id=3D"yui_3_16_0_1_1432002768159_3398=
" style=3D"border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margi=
n-top: 5px; padding-left: 5px;"> <div id=3D"yui_3_16_0_1_1432002768159_339=
7" style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, L=
ucida Grande, sans-serif; font-size: 16px;"> <div id=3D"yui_3_16_0_1_143200=
2768159_3396" style=3D"font-family: HelveticaNeue, Helvetica Neue, Helvetic=
a, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id=3D"yui_3_16=
_0_1_1432002768159_3395" dir=3D"ltr"> <hr id=3D"yui_3_16_0_1_1432002768159_=
3399" size=3D"1"> <font face=3D"Arial" size=3D"2"> <b><span style=3D"font-=
weight:bold;">From:</span></b> Madison Link <[email protected]><br> <=
b><span style=3D"font-weight: bold;">To:</span></b> [email protected] <br> <b=
><span style=3D"font-weight: bold;">Sent:</span></b> Tuesday, May 19, 2015 =
3:38 AM<br> <b><span style=3D"font-weight: bold;">Subject:</span></b> [Vorb=
is] How do I seek to seek to specific samples using libvorbis?<br> </font> =
</div> <div id=3D"yui_3_16_0_1_1432002768159_3431" class=3D"y_msg_container=
"><br><div id=3D"yiv2438338505">
=20
=20
<style>
<!--
#yiv2438338505 =20
#yiv2438338505 p.yiv2438338505MsoNormal, #yiv2438338505 li.yiv2438338505Mso=
Normal, #yiv2438338505 div.yiv2438338505MsoNormal
=09{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times Ne=
w Roman";}
#yiv2438338505 a:link, #yiv2438338505 span.yiv2438338505MsoHyperlink
=09{color:blue;text-decoration:underline;}
#yiv2438338505 a:visited, #yiv2438338505 span.yiv2438338505MsoHyperlinkFoll=
owed
=09{color:purple;text-decoration:underline;}
#yiv2438338505 span.yiv2438338505EmailStyle17
=09{font-family:Arial;color:windowtext;}
_filtered #yiv2438338505 {margin:1.0in 1.25in 1.0in 1.25in;}
#yiv2438338505 div.yiv2438338505Section1
=09{}
-->
</style>
<div>
<div class=3D"yiv2438338505Section1">
<div class=3D"yiv2438338505MsoNormal"><font face=3D"Arial" size=3D"2"><span=
style=3D"font-size:10.0pt;font-family:Arial;">What is the best practice fo=
r seeking to a specific
(arbitrary) PCM sample in an Ogg file that contains vorbis, using libvorbis=
?</span></font></div>=20
</div>
</div>
</div><br>_______________________________________________<br>Vorbis mailing=
list<br><a ymailto=3D"mailto:[email protected]" href=3D"mailto:[email protected]=
rg">[email protected]</a><br><a id=3D"yui_3_16_0_1_1432002768159_3558" href=
=3D"http://lists.xiph.org/mailman/listinfo/vorbis" target=3D"_blank">http:/=
/lists.xiph.org/mailman/listinfo/vorbis</a><br><br><br></div> </div> </div>=
</blockquote> </div></body></html>
------=_Part_1550408_1671937213.1432004222463--
--===============1645232281==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Vorbis mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/vorbis
--===============1645232281==--