Cannot load mkv files anymore

Started by Pantelis,

Pantelis

Hello,
i used to open succesfully mkv files with  BASS version 2.4.15.49 having PCM audio. I have updated to 2.4.17 and now i get error codec, do i miss something ? i have updates also extensions

Ian @ un4seen

The BASSWEBM add-on doesn't currently support raw PCM tracks, so BASS would have previously been using Media Foundation to play those files. Unfortunately, Media Foundation's Matroska/WEBM support (mfmkvsrcsnk.dll) was found to have a leak, so it has been disabled since BASS 2.4.17.

Coincidentally, a BASSWEBM update was due to be released today, but if you provide one of your affected files then I'll check if support can be added for that first. You can upload the file(s) here:

    ftp://ftp.un4seen.com/incoming/

Ian @ un4seen

Here's a BASSWEBM update for you to try:

    www.un4seen.com/stuff/basswebm.zip

Please also try that with the rest of your files and let me know if there are any problems.

Ian @ un4seen

Great. It was delayed a bit for some more tweaks, but the new BASSWEBM 2.4.1 release is now up on the BASS page.

v0lt

Does BASSWEBM 2.4.1 support cover art in MKA audio files?

Ian @ un4seen

No, Matroska "attachments" aren't currently supported. I'll check if something can be done for them.

Ian @ un4seen

Here's a BASSWEBM update for you to try:

    www.un4seen.com/stuff/basswebm.zip

The included BASSWEBM.H file adds a BASS_TAG_WEBM_ATTACHMENT tag type and TAG_WEBM_ATTACHMENT structure for retrieving attachments from Matroska files, like this:

// get the n'th attachment (0=first)
const TAG_WEBM_ATTACHMENT *attachment = (const TAG_WEBM_ATTACHMENT*)BASS_ChannelGetTags(handle, BASS_TAG_WEBM_ATTACHMENT + n);

Let me know if you see any problems with it.

v0lt

#9
Thanks. I wrote some code to read attachments and it works.

PS: After including basswebm.h, a BASS_POS_TRACK define conflict occurred. Such a define exists in bass_aac.h.
My code doesn't use it, and I hope there won't be any issues.

Ian @ un4seen

Good to hear the Matroska attachment stuff is working.

Regarding the BASS_POS_TRACK conflict, please upgrade to the latest BASS_AAC version to fix that. BASS_POS_TRACK was introduced in the BASS_AAC 2.4.7 release with a value of 7, but it was changed to 4 to match BASS_POS_CD_TRACK in the BASS_AAC 2.4.7.1 release, and the BASSWEBM 2.4.1 release also uses that value. This is so BASS_POS_TRACK can become the position mode for track changes, instead of different modes for different add-ons.

v0lt

Quote from: Ian @ un4seenRegarding the BASS_POS_TRACK conflict, please upgrade to the latest BASS_AAC version to fix that.
I updated BASS_AAC and the warning is gone. Thank you.
Looking forward to the next release.

PS: I noticed that BASSWEBM's audio codec support is limited. I couldn't play Matroska audio files with ALAC, TTA, and WavPack tracks. This is mentioned in basswebm.chm, but I didn't see it right away. :)

Ian @ un4seen

Yes, unfortunately some codecs won't work, even with add-ons that should apparently add support for them. For example, BASSALAC expects ALAC data to be in an MP4 container, so BASSWEBM would basically need to convert the Matroska file to an MP4 file for that. Vorbis/Opus/MP1/MP2/MP3/AAC/AC3/FLAC/PCM are known to work, but I'm not sure about any other codecs. I was unable to find any Matroska files using ALAC/TTA/WavPack, so I guess they're quite rare?

v0lt

Hi.
Is there a plan to add BASS_TAG_WEBM_ATTACHMENT to the stable release or will it be replaced by something else?

Ian @ un4seen

BASSWEBM 2.4.2, including the BASS_TAG_WEBM_ATTACHMENT option, has now been released.

v0lt

Quote from: Ian @ un4seenBASSWEBM 2.4.2, including the BASS_TAG_WEBM_ATTACHMENT option, has now been released.
Thanks! :D