Help playing mp3 files in audio player

Hey people,

and first of all a big thanks to the new 2211!

I tried to upload a few mp3s into the captures folder to play along to.

But within the new audio player they are not listed.
Am I missing some thing?
Is there another tool to play audio files which were uploaded through the web interface?

Have a nice Zynthurday :upside_down_face:

Hi @Fresh030

Sorry, the audio player doesnā€™t yet support MP3. See this ticket.

1 Like

Oh, thanks for your help!
But wavs seem to workā€¦ so I go with that for now

Wav, ogg and flac are all supported. I will have a look at MP3 support.

1 Like

As MP3 patent has expired, libsnd now fully supports mp3 decoding, so enabling it for zynthian should be quite easy:

Regards,

1 Like

You may say thatā€¦ I spent some time yesterday trying to create deb packages for the lib and dev. Not quite so easy. When we migrate to Bullseye I think it will be sorted but nowā€¦

[Edit] ā€¦but where there is a willā€¦ I have created branch feature/716_mp3_support to zynthian-sys repro which adds mp3 support. I found it too challenging (time consuming) to build working deb packages (the dev package wasnā€™t working properly) so I just added a binary shared library for the updated libsndfile (and the other changes required to support mp3 - and other audio formats). Also requires zynthian-ui branch bug/782_audioplayer_crash.

1 Like

How can I play a mp3 file in Zynthian?

FOUND:
New Special Chain > Audio File Player

1 Like

Yep! You can play MP3, OGG, WAV, FLAC and other formats. You can pitchbend, loop, top & tail, trigger from MIDI, etc.

2 Likes

Hi Riban, how can I play in sequence a complete folder of MP3?

Hi @piattica!

That is not a currently supported feature.This feature request covers something similar but there has been no progress on it due to limited interest. (I think you may be the second user to mention this).

Iā€™ve never tried the Zynthianā€™s webradio, will it accept the path of a locally stored m3u file in place of a url (as described here)? That could be a workaround.

If everything goes well I should have my Zynthian working again sometime this weekend, I could try it out then.

I often leave some songs playing before stage so this function I believe could be useful also for other users.

I would be very suprised if that worked. A m3u in the streaming client requires the far end to provide a stream which wouldnā€™t be the case here. But you could tryā€¦

Yes, I assume it will only work if the engine was designed to support it of course. Iā€™ll try when I can though, sometimes there are surprises.

Using Internet Radio is a really good idea and almost worksā€¦

There was a small issue with audio routing but whist I had the lid off I refactored the code to be more efficient and effective. I need to do some more testing but will add to vangelis soon.

In the mean time hear is some musicā€¦

1 Like

I have pushed my changes to testing (vangelis).

  • Looks for playlists in capture directory.
  • Can step to prev/next tracks in playlist.
  • Can pause/play streams.
  • Improves core components.

Enjoy!

[Edit] Playlists are simple text files with file extension .m3u or .pls with the absolute or relative path of each audio file on a separate line. Audio files may be within directories which may improve file management. It may be advantageous to use USB attached storage which is not currently implemented. (Feature request anyone?) Audio files may be any format supported by zynthian which includes wav, flac, ogg, mp3, etc. (I only tested with ogg so please do let me know if you find something that does not work.

The ā€œstreamā€ control should work for all stream types, stopping the stream when set to ā€œstoppedā€ and reloading the stream when set to ā€œstreamingā€. This should restart a playlist from its start. The ā€œpauseā€ control should pause playlists and restart from the same position. It may have undesirable effect on some streams - I haveā€™t fully tested that yet. (I may need to consider local playlists and remote playlist streams differently.) ā€œprev/nextā€ control works on playlists but there is a risk it may have undesirable effect on streams. Let me know.

I wanted to get this out before the next update because it is such a good idea (thanks @LagoonCity) that will find many use cases. It can provide interval music for gigs, background listening at home between sessions or when doing other work in the studio, etc. There will be many enhancements possible and I anticipate some feature requests in the issue tracker. (I would like to see the list of tracks in a playlist and allow direct selection of next to play.)

4 Likes

This is awesome, throw in a simple crossfader and this could turn into a traktor like dj setup. Maybe one might even dream of a prelistening option on a secondary usb interface.

Keep up the good work

1 Like

Ha ha! Trust me, there is no such thing as ā€œjustā€¦ā€! I appreciate the jest within the comment but maybe it is worth staving off any creep on the idea of a DJ implementationā€¦ Internet Radio would certainly be a poor candidate for such a feature. It uses mplayer as its core engine which can stream and handle playlists of audio (and video - but we donā€™t think that moving pictures fad is likely to catch onā€¦) which makes it a good candidate for the Internet Radio and general audio player but anything more complex that may require an EDL or similar doesnā€™t fit that model. I closed the ticket requesting playlist within zynsampler but I suspect it would be zynsampler that may prove the best candidate for such workflow. It already has some primative EDL support.

[Edit] Stop giving me ideasā€¦ A DJ type workflow is probably best implemented with two chains, each with an audio player. This canā€™t be done with (the current implementation of) Internet Radio because it is a single instance engine, i.e. you may only have one at a time. This limitation could be relaxed since my recent changes but only if there is benefit. What might be useful is an option to stop playback between each track. This may benefit sound effects playback. A user could load up a playlist of sounds and trigger them to play with a button. If this new (currently non-existent) control was asserted then then next sound would be loaded but pausedā€¦ nice idea that I may implement.

Indeed.

If it can be tied into zynseq as well, soundscape life gets interesting.