PDA

View Full Version : Flag flac in mkv


r1ctus
2009-08-21, 10:54
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:
<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: <!-- 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?

ronie
2009-08-21, 16:38
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:
<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: <!-- 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://xbmc.org/forum/showpost.php?p=347704&postcount=342

r1ctus
2009-08-21, 17:22
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://xbmc.org/forum/showpost.php?p=347704&postcount=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.