PDA

View Full Version : Mezzmo 2.6.2 + HTC Sensation XE + BubbleUPnP - encoding question



Mietekdabest
05-28-2012, 05:05 AM
Hi,

As I don't expect that dedicated device profile for my HTC Sensation XE Android-based mobile will be created in the near future I decided to prepare my own profile based on LGTV profile. I chose LGTV profile because LG TVs have similar features as BubbleUPnP renderer installed on my mobile. The only differences are APE & FLAC support. BubbleUPnP supports natively FLAC files, but not APE. I changed profile guid then added following lines to the end of profile:

<avcontainer id="flac" name="flac" encode="0" mimetype="audio/x-flac" dlnaprofile="FLAC" supportschunked="0">
<audio>
<format id="flac" encode="0" codec="flac">
<maxsamplingrate>96000</maxsamplingrate>
</format>
</audio>
</avcontainer>

<avcontainer id="ape" name="ape" encode="0" mimetype="audio/ape" supportschunked="0">
<audio>
<format id="ape" encode="0">
</format>
</audio>
</avcontainer>

As we expected FLAC files are played without any problems (native support), but APE files are not recognized. I commented APE-related section below and now APE files are transcoded to MP3 format and played smoothly. My question is: what do I need to modify in LGTV profile to force transcoding to WAV/PCM instead of MP3 ?

Kind regards,
Mariusz

Paul
05-28-2012, 11:05 AM
Change the preferredtranscoded="1" to preferredtranscoded="0" in the MP3 section and add preferredtranscoded="1" into the "s16be" section. That tells Mezzmo to prefer transcoding to LPCM instead of MP3. Let me know how you go.

If you create a device profile that works well with Bubble UPnP, then we are happy to include in future Mezzmo releases for other Mezzmo users. Just send it into us at support [at] conceiva [dot] com when you are done.

Mietekdabest
05-29-2012, 04:11 AM
Hi Paul,

If my knowledge about device profile structure increase by 1000% I'll share my profile, I promise ;) But now I've still problems with encoding to LPCM. I modified my customized profile according to your suggestions but Mezzmo still prefer MP3 instead of LPCM. I'm sure I did something wrong. Can you check it, please (attachment) ? Thanks in advance.

Mariusz

Paul
05-29-2012, 10:50 AM
Hi Mariusz,

Two things to do:
(i) change preferredtranscoded="1" to preferredtranscoded="0" in the MP3 section (line 268)
(ii) add preferredtranscoded="1" to <format ...> tag on line 283

Let me know how you go.

Mietekdabest
05-30-2012, 03:12 AM
Hi Paul,

It didn't work, but setting encode="1" in both lines inside "s16be" section fixed all transcoding issues :D I completely have no idea how it works, but it works. Can you validate following part of device profile, please ? My goal is to play MP3 & FLAC files without transcoding, APE files should be transcoded to LPCM format. Video formats (even with SRT subtitles) are played smoothly without any modifications in code so, if you say "yes - there is no logic errors" I've 90% of device profile for BubbleUPnP :cool:

<avcontainer id="mp3" name="mp3" encode="1" mimetype="audio/mpeg" baseline="1" dlnaprofile="MP3" preferredtranscoded="0" supportschunked="0">
<audio>
<format id="mp3" encode="1" codec="libmp3lame" preferredtranscoded="0">
<channels>1</channels>
<channels>2</channels>
<maxbitrate>320000</maxbitrate>
<bitrate>320000</bitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>22050</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
<samplingrate>32000</samplingrate>
</format>
</audio>
</avcontainer>
<avcontainer id="flac" name="flac" encode="0" mimetype="audio/x-flac" dlnaprofile="FLAC" supportschunked="0">
<audio>
<format id="flac" encode="0" codec="flac">
<maxsamplingrate>96000</maxsamplingrate>
</format>
</audio>
</avcontainer>
<avcontainer id="s16be" name="lpcm" encode="1" mimetype="audio/L16;rate=44100;channels=2" baseline="1" dlnaprofile="LPCM" preferredtranscoded="1" supportschunked="0">
<audio>
<format id="s16be" encode="1" codec="pcm_s16be" preferredtranscoded="1">
<channels>2</channels>
<bitrate>1536000</bitrate>
<maxbitrate>1536000</maxbitrate>
<minbitrate>8000</minbitrate>
<maxsamplingrate>48000</maxsamplingrate>
<minsamplingrate>44100</minsamplingrate>
<samplingrate>48000</samplingrate>
<samplingrate>44100</samplingrate>
</format>
</audio>
</avcontainer>

Best regards,
Mariusz

Paul
05-30-2012, 01:27 PM
Yes - there are no logic errors :)

When you think you are done, please send us the device profile to support [at] conceiva [dot] com and we'll review the complete file for you, and include it in the next Mezzmo release for other BubbleUPnP users.

Mietekdabest
05-31-2012, 06:48 AM
Hi Paul,

Alfa version of device profile for BubbleUPnP renderer installed on my Android-based mobile sent. Until now I've no problems with audio nor video files ;-) If extra tests are needed to perform on my mobile I'm ready for them ;-)

Best Regards,
Mariusz

Paul
05-31-2012, 10:16 AM
Hi Mariusz,

Well done! Thanks for sending it to us. We'll check it out & add it to our list of device profiles for the next Mezzmo release. If we see anything wrong, we'll be in contact.

Paul
06-08-2012, 06:03 PM
Just an update - Mezzmo v2.6.3 has been released and this version now has BubbleUPnP support. Let us know if you have any problems. Many thanks to Mariusz for creating this device profile :D