Kodi Community Forum

Full Version: Flag flac in mkv
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a lot of mkv files with dual audio: one flac and one ac-3 or dts, and I'd like XBMC to display the 'Flac' flag if a flac track is listed in the nfo. I use Native flagging, so I edited the 'Includes_MovieMediaFlags.xml', and added this:
Code:
<control type="image">
  <include>MovieMediaflagsVars</include>
  <texture>special://skin/images/flags/movies/audiocodec/flac.png</texture>
  <visible>substring(listitem.AudioCodec,flac)</visible>
  </control>
after this line:
Code:
<!--  Audio Codec (Native)   -->
Now the Flac flag is displayed, but only when flac is the only audio codec listed in the .nfo, if an ac3 audiotrack is present, XBMC displays the DD5.1 flag. how can i make Flac to be "higher piority" then ac3?
r1ctus Wrote:I have a lot of mkv files with dual audio: one flac and one ac-3 or dts, and I'd like XBMC to display the 'Flac' flag if a flac track is listed in the nfo. I use Native flagging, so I edited the 'Includes_MovieMediaFlags.xml', and added this:
Code:
<control type="image">
  <include>MovieMediaflagsVars</include>
  <texture>special://skin/images/flags/movies/audiocodec/flac.png</texture>
  <visible>substring(listitem.AudioCodec,flac)</visible>
  </control>
after this line:
Code:
<!--  Audio Codec (Native)   -->
Now the Flac flag is displayed, but only when flac is the only audio codec listed in the .nfo, if an ac3 audiotrack is present, XBMC displays the DD5.1 flag. how can i make Flac to be "higher piority" then ac3?

you can't.
xbmc indeed uses a priority system when multiple audio streams are available.
the stream with the most audiochannels will take preference over all other streams.
some more info: http://forum.xbmc.org/showpost.php?p=347...tcount=342
ronie Wrote:you can't.
xbmc indeed uses a priority system when multiple audio streams are available.
the stream with the most audiochannels will take preference over all other streams.
some more info: http://forum.xbmc.org/showpost.php?p=347...tcount=342

thanks for the info! i hope the priority will be soon editable, until then i'll just write one channel less for the ac3 track in the nfo.