Kodi Community Forum
Loading external audio tracks - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: Loading external audio tracks (/showthread.php?tid=126156)

Pages: 1 2 3 4 5


RE: Loading external audio tracks - sialivi - 2012-08-28

Some more extensions: .flac, .wav, .m4a, .mka, .wma, .alac, .aiff

Is there no way to get a list of supported audio formats from xbmc's audio classes to avoid having a hardcoded list?


RE: Loading external audio tracks - Ace - 2012-08-29

(2012-08-28, 15:41)sialivi Wrote: Is there no way to get a list of supported audio formats from xbmc's audio classes to avoid having a hardcoded list?

The recognised file extensions are now read from g_settings.m_musicExtensions, i.e., you can easily add more extensions via advancedsettings.xml: http://wiki.xbmc.org/index.php?title=Advancedsettings.xml#.3Cmusicextensions.3E .




RE: Loading external audio tracks - sialivi - 2012-08-31

ace20022,

Will it prioritize what track to default to the same way as it currently does for movies with only internal audio tracks?

Unlike subtitles, were you would normally want to default to external ones, I think in most usecases you would want audio track to default to the best track available.


RE: Loading external audio tracks - Ace - 2012-09-01

I just added a commit to the PR which provides the info from external tracks the system needs for the evaluation of the preferred language.
Furthermore, I added a simple parse step of the filenames, so that a user can provide missing infos.

For example, the file The Matrix.English - Commentary.ac3 will get the language code eng and the name "English - name [Commentary]", where name is the originally calculated name, e.g., "Stereo". a.b.c maps to "b - name" if b is a valid language, and to "name [b]" otherwise.

Have you already tested my code?


RE: Loading external audio tracks - sialivi - 2012-09-01

That's great. I really appreciate the work you're putting into this feature, it's something I use very frequently so it's great to finally not having to switch to another application everytime.

No, I'm not set up to compile xbmc here, I'll have to wait for the next alpha snapshot.


RE: Loading external audio tracks - sialivi - 2012-10-05

Still no word on when this will be merged into the main branch?


RE: Loading external audio tracks - DDDamian - 2012-10-06

Has anyone tested this? I've been watching for reports on this patch being successfully used - post here if you have test comments.


RE: Loading external audio tracks - Ace - 2012-10-06

I can build a nightly version with the patches applied if someone is interested.


RE: Loading external audio tracks - wojak - 2012-10-06

Hello ace20022,
I'm interested in.


RE: Loading external audio tracks - Ace - 2012-10-06

The patches are on top of rev f6744:
https://github.com/downloads/ace20022/xbmc/XBMCSetup-20121006-d5041b2-dx.exe


A new version can be found here: #41
Of course, feedback is welcome.


RE: Loading external audio tracks - wojak - 2012-10-06

Hello ace20022
It works. Smile
Great job.


RE: Loading external audio tracks - access denied - 2012-10-06

@25: ace200022,
you did a great job!

Installed from your link, works fine, but I noticed a glitch:
I can skip back and forth (by pressing up/down or alike) when playing internal audio track just fine, but
if I skip when external audio is played, the audio continues without skipping, video skips, but starts stuttering.
If I skip with internal audio and then switch to external then it is ok too.



RE: Loading external audio tracks - sialivi - 2012-10-06

Confirmed the issue mentioned above, chapter skipping doesn't work though skipping with ff/rew does.


RE: Loading external audio tracks - wojak - 2012-10-07

Hello ace20022
I tried to compile xbmc with patches on linux system and I got this error:

CPP xbmc/cores/dvdplayer/DVDMessage.o
DVDFileInfo.cpp: In static member function ‘static bool CDVDFileInfo:Big GrinemuxerToStreamDetails(CDVDInputStream*, CDVDDemux*, CStreamDetails&, bool, const CStdString&)’:
DVDFileInfo.cpp:468:134: error: cannot pass objects of non-trivially-copyable type ‘struct std:Confusedtring’ through ‘...’
DVDFileInfo.cpp:468:134: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘std:Confusedtring’
DVDFileInfo.cpp:475:147: error: cannot pass objects of non-trivially-copyable type ‘struct std:Confusedtring’ through ‘...’
DVDFileInfo.cpp:475:147: warning: format ‘%s’ expects type ‘char*’, but argument 4 has type ‘std:Confusedtring’
CPP xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.o
make[1]: *** [DVDFileInfo.o] Error 1
make: *** [xbmc/cores/dvdplayer/DVDPlayer.a] Error 2


RE: Loading external audio tracks - Ace - 2012-10-07

Hi wojak,

EDIT: I have committed a fix.

Could you please try it again?

@Access denied and @sialivi I will have a look into this asap.
Just for clarification @Access denied: skipping with ext. tracks doesn't work at all?