Flag flac in mkv

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
r1ctus Offline
Senior Member
Posts: 119
Joined: Aug 2009
Reputation: 0
Post: #1
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?
(This post was last modified: 2009-08-21 11:01 by r1ctus.)
find quote
ronie Offline
Team-Kodi Member
Posts: 9,132
Joined: Jan 2009
Reputation: 157
Post: #2
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

Always read the Kodi online-manual, FAQ and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
r1ctus Offline
Senior Member
Posts: 119
Joined: Aug 2009
Reputation: 0
Post: #3
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.
find quote