<div dir="ltr">I have run a few more test at different bitrates and 1.1 is looking even worse in terms of speed compared to previous versions.<div><br></div><div>I have shared a google sheet which has the raw data and charts for 6,16 and 32 kbps. Unfortunately you cannot show proper error bars on Google sheets but the standard deviation is in the data if you want to look. You can see that the profile for 1.1 is a lot different from 0.9.14 and 1.0.3. </div>
<div><br></div><div>I will probably do another run at 64kbps and then find a music sample and repeat the operation.</div><div><br></div><div>I then will re-compile as fixed point and see what that looks like.</div><div><br>
</div><div>Link for the spreadsheet is here:<a href="https://docs.google.com/spreadsheet/ccc?key=0AmUOhhaYBtrKdEJaUGFmZkxzaUE0VVdZRUtJRU16bnc&usp=sharing"> https://docs.google.com/spreadsheet/ccc?key=0AmUOhhaYBtrKdEJaUGFmZkxzaUE0VVdZRUtJRU16bnc&usp=sharing </a></div>
<div class="gmail_extra"><br clear="all"><div><div>Best Regards,</div><div><br></div><div>Stuart Marsden</div><div><br></div><div>Tactical Communications Consultant</div><div>FinMars Consulting Ltd</div><div>UK: +441865589833
</div><div>Finland: +358453046287</div></div>
<br><br><div class="gmail_quote">On 20 December 2013 18:24, Stuart Marsden <span dir="ltr"><<a href="mailto:stuartmarsden@finmars.co.uk" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=stuartmarsden@finmars.co.uk&cc=&bcc=&su=&body=','_blank');return false;">stuartmarsden@finmars.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Cliff,<div><br></div><div>Yes it would be good, but very hard to get a figure for the quality.</div><div>
<br></div><div>At 6kbps I assume it does not bother trying to figure what mode to use as at that rate it can only use SILK. When I run some other bitrates it may get a bit slower trying to decide whether it is voice or music.</div>
<div><br></div><div>I started with low bit rate because I am only really interested in Voice and very low bit rate.</div><div><br></div><div>I think there are so many variables it is hard to get that useful metrics. For instance I cannot really hear the difference between complexity 0 or 10 on this sample. It may be however that 10 would be much better with a poorer input from a cheap microphone with lots of background noise. I also have yet to look at the lost packet tolerance is that affected by the complexity? For realtime applications on most hardware it seems you could just go for the default complexity 10 and hope for the best. For low power devices or microcontrollers however the speed difference could be crucial.</div>
<div><br></div><div>At the moment on the Pi, which is admittedly quite an old ARM architecture, the promised speed boost for 1.1 on ARM is not present. Unless you compare old complexity 10 with new complexity 5 which I understand may be equivalent. So it is just something to be aware of.</div>
</div><div class="gmail_extra"><div class="im"><br clear="all"><div><div>Best Regards,</div><div><br></div><div>Stuart Marsden</div><div><br></div><div>Tactical Communications Consultant</div><div>FinMars Consulting Ltd</div>
<div>UK: <a href="tel:%2B441865589833" value="+441865589833" target="_blank">+441865589833</a>
</div><div>Finland: <a href="tel:%2B358453046287" value="+358453046287" target="_blank">+358453046287</a></div></div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On 20 December 2013 17:20, Cliff Parris <span dir="ltr"><<a href="mailto:cliff@espico.co.uk" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=cliff@espico.co.uk&cc=&bcc=&su=&body=','_blank');return false;">cliff@espico.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
What would be interesting would be a plot of complexity versus subjective or<br>
object audio quality.<br>
<br>
I've not had a chance to look at the new analysis code in 1.1 so maybe in<br>
the case of a 6kbps compression you could clarify what decisions would it be<br>
making that would justify the extra complexity?<br>
<br>
Best Regards<br>
<br>
Cliff Parris<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:opus-request@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus-request@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus-request@xiph.org</a><br>
Sent: Thursday, December 19, 2013 6:07 PM<br>
To: <a href="mailto:opus@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus@xiph.org</a><br>
Subject: opus Digest, Vol 59, Issue 21<br>
<br>
Send opus mailing list submissions to<br>
<a href="mailto:opus@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus@xiph.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.xiph.org/mailman/listinfo/opus" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:opus-request@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus-request@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus-request@xiph.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:opus-owner@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus-owner@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus-owner@xiph.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of opus digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Opus Major Version Benchmarks on Raspberry Pi (Stuart Marsden)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 19 Dec 2013 20:06:57 +0200<br>
From: Stuart Marsden <<a href="mailto:stuartmarsden@finmars.co.uk" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=stuartmarsden@finmars.co.uk&cc=&bcc=&su=&body=','_blank');return false;">stuartmarsden@finmars.co.uk</a>><br>
Subject: [opus] Opus Major Version Benchmarks on Raspberry Pi<br>
To: "<a href="mailto:opus@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus@xiph.org</a>" <<a href="mailto:opus@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus@xiph.org</a>><br>
Cc: Gregory Maxwell <<a href="mailto:gmaxwell@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=gmaxwell@gmail.com&cc=&bcc=&su=&body=','_blank');return false;">gmaxwell@gmail.com</a>><br>
Message-ID:<br>
<CALPi7JckeXBzKuE2M4iG5iH91M=joj6uNO=<a href="mailto:RsTVb%2Bqt04mKsQw@mail.gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=RsTVb%2Bqt04mKsQw@mail.gmail.com&cc=&bcc=&su=&body=','_blank');return false;">RsTVb+qt04mKsQw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I wanted to roughly benchmark how the different version of libopus<br>
performed at each complexity level for a 6kbit/s output opus file. This was<br>
conducted on a Raspberry Pi so it is a constant hardware platform. This was<br>
done on an early Pi so only 256MB RAM but it was never used up so should<br>
not make a difference.<br>
<br>
I compiled the three final versions of each major release of libopus so<br>
that was 0.9.14, 1.0.3 & 1.1. These were all compiled natively on the<br>
machine using the current repo version of gcc 4.6.3 and with these<br>
optimisation flags:<br>
<br>
-O2 -pipe -march=armv6j -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard<br>
<br>
<br>
These were compiled with floating point enabled. I will look at the fixed<br>
point version separately later.<br>
<br>
I used a clip of speech from a librevox recording which was resampled from<br>
44.1khz to 48khz within audacity. The clip is 2 minutes long. I wrote a<br>
simple bash script that ran the encode at each complexity level and<br>
repeated 10 times to try and get a good average.<br>
<br>
The results can be seen in this graph<br>
<a href="http://ubuntuone.com/2gOdUG3h3MyjLY7gSYseRN" target="_blank">http://ubuntuone.com/2gOdUG3h3MyjLY7gSYseRN</a><br>
<br>
[image: Inline images 1]<br>
<br>
This clearly shows what I had discovered in what appears to be a regression<br>
for complexity 7,8,9 and 10. From what Gregory said earlier then in fact<br>
this is because these levels are producing more quality than they did<br>
before. It is still good to know this profile though if you only have a<br>
little CPU to play with such as in embedded applications. The thing I<br>
cannot graph on this is encode quality. My ears are not good enough to hear<br>
the difference and unless there is an automated way to score it we will<br>
just have to assume that each complexity level does increase the quality.<br>
<br>
The graph also suggests that on this platform at least complexity level 9<br>
is pointless as it was slower than 10 and presumably produces worse<br>
results. This could of course have been some background task kicking in on<br>
the OS when this ran and the error bars are quite large so I will see if<br>
this maintained over other runs.<br>
<br>
All these speeds were taken from opusenc outputs and I used version 0.1.2<br>
of opus-tools which was compatible with all three versions of the library.<br>
I am running another test using 0.1.8 at the moment but it will only work<br>
with libopus 1.0.3 and 1.1. I think I observed that it was slightly slower<br>
but we will see if the results will bear that out.<br>
<br>
I also will run some tests at different bit rates and with music instead of<br>
voice as well and share the charts here. If anyone wants I can share the<br>
OpenOffice spreadsheet with the raw numbers and the bash script I used<br>
(though you have to do all the compiling yourself).<br>
<br>
Hope this is helpful.<br>
<br>
Best Regards,<br>
<br>
Stuart Marsden<br>
<br>
Tactical Communications Consultant<br>
FinMars Consulting Ltd<br>
UK: <a href="tel:%2B441865589833" value="+441865589833" target="_blank">+441865589833</a><br>
Finland: <a href="tel:%2B358453046287" value="+358453046287" target="_blank">+358453046287</a><br>
<br>
<br>
On 18 December 2013 00:14, Stuart Marsden<br>
<<a href="mailto:stuartmarsden@finmars.co.uk" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=stuartmarsden@finmars.co.uk&cc=&bcc=&su=&body=','_blank');return false;">stuartmarsden@finmars.co.uk</a>>wrote:<br>
<br>
> Gregory,<br>
><br>
> That is good to know and if therefore the true apples to apples comparison<br>
> is 0.9.14 at comp 10 and 1.1 at comp 5 then things are fine. My ears are<br>
> not good enough to hear the difference so for speed I would target comp 5<br>
> or lower.<br>
><br>
> I just did a quick test and 0.9.14 at comp 10 was 3.872<br>
> 1.1 at comp 5 was 5.218<br>
><br>
> So if the output is comparable then we do in fact see a speed improvement.<br>
><br>
> Thanks for pointing this out. Is it documented? I admit I have only read<br>
> some of the documentation.<br>
><br>
><br>
> Best Regards,<br>
><br>
> Stuart Marsden<br>
><br>
><br>
><br>
> On 17 December 2013 23:50, Gregory Maxwell <<a href="mailto:gmaxwell@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=gmaxwell@gmail.com&cc=&bcc=&su=&body=','_blank');return false;">gmaxwell@gmail.com</a>> wrote:<br>
><br>
>> On Mon, Dec 16, 2013 at 5:03 AM, Stuart Marsden<br>
>> <<a href="mailto:stuartmarsden@finmars.co.uk" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=stuartmarsden@finmars.co.uk&cc=&bcc=&su=&body=','_blank');return false;">stuartmarsden@finmars.co.uk</a>> wrote:<br>
>> > I have just started trying Opus with a view to using it in a project. I<br>
>> am<br>
>> > interested in embedded hardware and tried it on the Raspberry Pi using<br>
>> the<br>
>> > raspbian distro.<br>
>> ><br>
>> > The version of libopus in the repos is 0.9.14. I installed this and<br>
>> tried<br>
>> > encoding 2 minutes of speech from a librevox recording. It managed this<br>
>> at a<br>
>> > respectable pace for complexity 10:<br>
>><br>
>> Complexity 10 is new analysis code that didn't exist in prior<br>
>> versions, setting complexity 5 gets you basically the same analysis<br>
>> that the 1.0 version had.<br>
>><br>
>> On x86 and modern arm cores with fast FPUs the other speedups are<br>
>> enough that complexity 10 is about the same speed in the old software<br>
>> or the new software (but with much higher and consistent VBR quality).<br>
>> But on chips with slow FPUs the new analysis code is much slower, in<br>
>> particular because it has not been entirely converted to fixed point<br>
>> (e.g. in the fixed point builds) which is what I believe you're seeing<br>
>> here.<br>
>><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL:<br>
<a href="http://lists.xiph.org/pipermail/opus/attachments/20131219/6320e394/attachment.htm" target="_blank">http://lists.xiph.org/pipermail/opus/attachments/20131219/6320e394/attachment.htm</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: not available<br>
Type: image/png<br>
Size: 41961 bytes<br>
Desc: not available<br>
Url :<br>
<a href="http://lists.xiph.org/pipermail/opus/attachments/20131219/6320e394/attachment.png" target="_blank">http://lists.xiph.org/pipermail/opus/attachments/20131219/6320e394/attachment.png</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
opus mailing list<br>
<a href="mailto:opus@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/opus" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
<br>
<br>
End of opus Digest, Vol 59, Issue 21<br>
************************************<br>
<br>
_______________________________________________<br>
opus mailing list<br>
<a href="mailto:opus@xiph.org" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=opus@xiph.org&cc=&bcc=&su=&body=','_blank');return false;">opus@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/opus" target="_blank">http://lists.xiph.org/mailman/listinfo/opus</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div>