Jump to content

Module support


Recommended Posts

Posted

Hey,

I am writing to request playback support for module files (.mod, .xm, .it, etc). Currently, Emby tries to play these but fails. 

There are several C# .NET libraries for mod playback, eg. SharpMik: https://github.com/thegouldfish/SharpMik

I would be interested in fulfilling this need as a plugin, but I did not find any information on how to get the currently playing audio stream into a plugin. If someone can help me with this, then maybe I will be able to write a plugin for this purpose. Or are playback decoder plugins even possible?

Alternatively, please tell me how to have Emby ignore module files in folders marked as Music. As I said, currently, mod files in my music folders get an attempted play, that results in an error message. I would primarily like to fix this error message by having a plugin that provides the playback capabilities, but if that's not possible, I would like at least to be able to avoid the error messages, which also stop playback! For reference, attached is the error I'm getting.

 

emby.png

Posted
Quote

As I said, currently, mod files in my music folders get an attempted play, that results in an error message

 

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. Thanks!

 

Posted

Ok, so here is a log of trying to play an IT (Impulse Tracker) file in the latest Linux server (4.9.3). Emby (correctly) identifies it as music, so files of this type in a music library get attempted plays, but there is failure because there isn't actually a valid decoder available. 

I would be willing to contribute such a decoder (as a .NET plugin), but I would need some guidance on how to do that. None of the plugin APIs I found deliver audio streams to the plugin to handle.

embyserver.txt

Posted

We'll just disable support for the .it extension for now. Support for it will need to be added to the server ffmpeg build before they will work.

Posted

I understand if you do not want to commit resources to developing support for tracker modules (such as IT, and also MOD, XM, etc), but as I said, I would be willing to do that work for you, if you only helped me understand how. I'm thinking that since Emby supports .NET plug-ins, I should be able to write my own decoder, where I could use something like the mentioned SharpMik, or LibOpenMPT.NET ( https://github.com/Xpl0itR/LibOpenMPT.NET ) for decoding. So, there are ready-made implementations for the heavy lifting of actual decoding and playback, but what I would need to know is how to get the audio buffer from Emby into the plugin..?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...