<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="font-size:10pt;" size="2" color="#5133AB" face="Arial,sans-serif"><br id="FontBreak"></font><br>Thanks Vishwa, I will test and let you know.<br><br><font style="background-color:rgb(255, 255, 255);font-size:10pt;" size="2" color="#5133AB" face="Arial">Best Regards,</font><div><font style="background-color:rgb(255, 255, 255);font-size:10pt;" size="2" color="#5133AB" face="Arial">Sakharam Thorat.</font></div><br /><br /><div>> Date: Mon, 13 Apr 2015 11:37:18 -0500<br>> Subject: Re: [opus] Regarding Opus Codec Input output file.<br>> From: viswanath.puttagunta@linaro.org<br>> To: sakharam.thorat@outlook.com<br>> CC: opus@xiph.org<br>> <br>> Hi Sakharam,<br>> <br>> I see 2 potential issues with what you are doing.<br>> 1. ./opus_demo -e voip 48000 2 16 music_orig.wav testcase30.opus<br>> in above command, "16" for bits/sec seems too low. I'm no audio<br>> expert, but just cant convince myself you can get any reasonable audio<br>> data with 16 bits/sec. FYI, I was able to encode and decode with 16<br>> bits/sec, but when I played the decode file with "aplay", couldn't<br>> hear anything.<br>> <br>> I used 96000 bits/sec with command<br>> ./opus_demo -e voip 48000 2 96000 music_orig.wav testcase30.opus<br>> <br>> Then decoded with same command you gave<br>> ./opus_demo -d 48000 2 testcase30.opus testcase31.wav<br>> <br>> And played using command (on my ubuntu 14.04 linux box)<br>> aplay -t raw -c 2 -r 48000 -f S16_LE testcase31.wav<br>> and was able to hear the audio clearly<br>> <br>> 2. The file that gets generated with "./opus_demo -d 48000 2<br>> testcase30.opus testcase31.wav"<br>> (testcase31.wav) is just a raw data file.. It does not have wav header.<br>> For example, if you do<br>> $ file music_orig.wav<br>> music_orig.wav: RIFF (little-endian) data, WAVE audio,<br>> Microsoft PCM, 16 bit, stereo 48000 Hz<br>> <br>> But, for testcase31.wav, you get<br>> $ file testcase31.wav<br>> testcase31.wav: data<br>> <br>> So, if your audio quality app is looking for Wav header, it<br>> will not find it... You will need to add this header to your data file<br>> to make it a real "wav" file.<br>> <br>> Regards,<br>> Vish<br>> <br>> <br>> On 13 April 2015 at 07:29, Sakharam Thorat <sakharam.thorat@outlook.com> wrote:<br>> ><br>> > Hi All,<br>> ><br>> > Need Help !<br>> ><br>> > I am interested testing opus codec encoding decoding qaulity. for this have<br>> > complied opus code codec from souce. After compiling i got opus_demo app.<br>> ><br>> > for Encoding i followed below steps:<br>> > 1) Reference file used music_orig.wav<br>> > (http://www.opus-codec.org/examples/samples/music_orig.wav)<br>> > Number of samples : 4358219 (90.8 s) 2015-04-13 10:40:07 UTC<br>> > Sampling frequency: 48000 Hz<br>> > Number of channels: 2 (16-bit integer)<br>> > File name: music_orig.wav<br>> > Header length: 44<br>> > Sampling frequency: 48000<br>> > No. samples: 4358219<br>> > No. channels: 2<br>> > Data type: integer16<br>> > File byte order: little-endian<br>> > Host byte order: little-endian<br>> > 2) I encode this file using following command<br>> ><br>> > ./opus_demo -e voip 48000 2 16 music_orig.wav testcase30.opus<br>> ><br>> > 3) Then Decoded testcase30.opus using following command<br>> ><br>> > ./opus_demo -d 48000 2 testcase30.opus testcase31.wav<br>> ><br>> > 4) My quality monitoring app not able to identify file type of<br>> > "testcase31.wav" , gives following error.<br>> ><br>> > AFfindType - Unknown audio file type<br>> > AFopnRead: Error opening input audio file "testcase31.wav"<br>> ><br>> ><br>> > Can some body please take look and verify that i have followed correct steps<br>> > while encoding and decoding , else let know correct steps.<br>> ><br>> > If any body have quality testing related resouce , test cases, sample files,<br>> > web links please share.<br>> ><br>> ><br>> > Best Regards,<br>> > Sakharam Thorat.<br>> ><br>> > _______________________________________________<br>> > opus mailing list<br>> > opus@xiph.org<br>> > http://lists.xiph.org/mailman/listinfo/opus<br>> ><br></div>                                            </div></body>
</html>