<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
    
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi</p>
<br>
I recently came across the same problem and got round it by adding a meta-data tag 'bits-per-sample' and setting it in the wav, flac, alac and aiff parsers.</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
The patches are attached. bits-per-sample applies to gstreamer1.0, aiff-bits-per-sample-tag applies to gstreamer1.0-plugins-bad, alac-flac-wav-bits-per-sample-tag applies to gstreamer1.0-plugins-good.</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
Hope that helps,</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
Jonathan<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr style="display:inline-block; width:98%" tabindex="-1">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of Arun Raghavan <arun@arunraghavan.net><br>
<b>Sent:</b> 14 July 2016 07:49<br>
<b>To:</b> Discussion of the development of and with GStreamer<br>
<b>Subject:</b> Re: Bit depth in the container format vs. in the output</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Wed, 13 Jul 2016, at 07:08 PM, Carlos Rafael Giani wrote:<br>
> Hello,<br>
> <br>
> there is a problem with displaying file type information. Suppose I want <br>
> to show a file's bit depth on screen. The intuitive solution is to use <br>
> the caps that come out of a uridecodebin for example, and look at its <br>
> format value. But this can be misleading.<br>
> <br>
> For example, if in a system, avdec_flac is used instead of flacdec, then <br>
> the format value will be S32LE even if the actual internal FLAC data <br>
> format is S24_32LE. So now all of a sudden the display shows "32 bit", <br>
> even though "24 bit" is more correct.<br>
> <br>
> This is even visible with gst-discoverer. If you have a 24-bit FLAC <br>
> file, and run gst-discoverer-1.0 -v <flacfile> , the output with flacdec <br>
> present is:<br>
> <br>
>      Channels: 2<br>
>      Sample rate: 192000<br>
>      Depth: 24<br>
>      Bitrate: 0<br>
>      Max bitrate: 0<br>
> <br>
> but with flacdec missing (so only avdec_flac is available) it is:<br>
> <br>
>      Channels: 2<br>
>      Sample rate: 192000<br>
>      Depth: 32<br>
>      Bitrate: 0<br>
>      Max bitrate: 0<br>
> <br>
> So, the correct way to do this is to get the caps that *flacparse* <br>
> outputs, and not the decoder's. However, I have no clue how to do that, <br>
> or even how to communicate such information to the application properly. <br>
> There is no tag that can hold a GstCaps instance.<br>
> <br>
> Any ideas?<br>
<br>
At one point we had toyed with the idea of having a "shallow" mode in<br>
GstDiscoverer -- basically get it to stop at the point of plugging a<br>
parser. Perhaps this is worth resurrecting?<br>
<br>
-- Arun<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" id="LPlnk329076">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div>
</span></font></div>
</div>
</div>

    <br />
    <br />
    
Audio Partnership PLC, Gallery Court, Hankey Place, London SE1 4BB, UK 
Reg No. 2953313
This e-mail is confidential and for the addressee only. 
Please refer to <a href="http://www.audiopartnership.com/AP-disclaimer.php">Disclaimer</a>  for important notices.

    
</body>
</html>