<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 17, 2014 at 4:50 PM, Sebastian <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">Dröge</span></span> <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank"><span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">sebastian</span></span>@<span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">centricular</span></span>.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mo, 2014-02-17 at 10:28 -0300, Tiago Katcipis wrote:<br>
> > [...]<br>
<div class="">> ><br>
> > It seems that the bitrate cant be fixed, but i read that vorbis does<br>
> > support CBR, am i missing something ?<br>
<br>
</div>Yes I don't think you can use vorbis for your use case. You won't get a<br>
100% accurate, constant bitrate that you can use to pre-calculate the<br>
resulting stream size. Why do you need that btw?<br></blockquote><div><br></div><div>I'm building a audio streaming server that <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">transcodes</span></span> audio from <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">CODECs</span></span> not supported by the browser (the HTML5 audio tag) to a <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">CODEC</span></span> that is (in this case, <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">OGG</span></span>/<span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">Vorbis</span></span>). I'm also doing some watermarking on the audio, extracting application specific <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">metadata</span></span>, etc.<br>
<br></div><div>I don't want to process the entire file to then provide it to the user, my hope was to be able to provide the file as it is being <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">transcoded</span></span>, so if the user requests a big file it does not have to wait a lot of time to start listening to the audio.<br>
<br></div><div>I implemented a simple server able to handle the Range HTTP requests made by the browser and everything is fine, but today I'm limited to processing all the file before starting streaming. If i could predict the file size i could merge the current server with audio being provided "on the fly".<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Also even if you tell Vorbis to generate a CBR stream, you still have to<br>
account for the overhead that the Ogg container is going to add.<br></blockquote><div><br></div><div>Yeah i made more tests without <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">oggmux</span></span> and the error rate is considerably slower, but it is still not 100% accurate, and i don't know if the information inserted by <span style="background:none repeat scroll 0% 0% yellow" class=""><span style class="">oggmux</span></span> is not variable (it seems odd to me that it is variable...but I'm not sure).<br>
<br></div><div>Thanks for the help Sebastian, someone confirming that it is really not possible helps a lot (i wasn't sure if i was doing something wrong).<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<span class=""><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div>