Publishing music

Publishing music

Postby Lyberta » 13 Sep 2019, 03:02

Hi. So I wonder what is the good way to publish music. Like, I have a master render as WAV but I want my listeners to choose the format they want.

The obvious first thought: "Ah, I can just have a download page where they can choose format, bitrate, stuff like that and when they click "Download" I just fire up ffmpeg on the server that produces the file at exact settings". But then that feels difficult to program.

So maybe I just convert master file to a lot of formats beforehand and just have that? But what options to use? I have no idea. Anyone else been in this situation? Maybe you have a list of formats/bitrates/etc ready somewhere?
⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧
User avatar
Lyberta
 
Posts: 616
Joined: 19 Jun 2013, 10:45

Re: Publishing music

Postby fluffrabbit » 13 Sep 2019, 03:15

Don't waste your precious server resources transcoding. Stick to popular file formats and standard bitrates. The patents on MP3 have expired, so it is a free format now. MP3 @ 320 kbps is standard. OGG Vorbis with .ogg extension and OGG Opus with .opus extension are also desirable, though nobody has agreed on standard bitrates for those codecs. Also FLAC, which shouldn't need any special configuration.
fluffrabbit
 
Posts: 570
Joined: 11 Apr 2019, 11:17

Re: Publishing music

Postby freemedia2018 » 13 Sep 2019, 09:30

If you upload the wav to the Internet Archive, it will probably convert it to various formats.

I'd try it, then try a couple other formats.

Some formats just upload as-is, others get automatically converted to others (including the original.)
User avatar
freemedia2018
 
Posts: 97
Joined: 21 Jul 2019, 07:30

Re: Publishing music

Postby anon666 » 13 Sep 2019, 22:03

you normally upload the audio/music in .flac or .wav formats on bandcamp (its for music but many games share soundtracks there)
then the user can choose the format (it will transcode the entire thing or single tracks)
maybe not the best option but its the most simple and probably popular
anon666
 
Posts: 3
Joined: 09 Sep 2019, 22:36

Re: Publishing music

Postby Lyberta » 14 Sep 2019, 19:06

freemedia2018 {l Wrote}:If you upload the wav to the Internet Archive, it will probably convert it to various formats.

I'd try it, then try a couple other formats.

Some formats just upload as-is, others get automatically converted to others (including the original.)


Internet Archive is pretty shitty tbh. Your account is tied to your e-mail address and there is no way to change item identifiers. My music has been there for a while. I've lost control over it when I changed e-mail and id carries my deadname.
⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧
User avatar
Lyberta
 
Posts: 616
Joined: 19 Jun 2013, 10:45

Re: Publishing music

Postby Ntech » 15 Sep 2019, 18:28

I didn't know you made music, that's great! :-)

If you have no concern for CPU or RAM usage, I'd suggest you transcode files on the server. Process: 1) Create a RAMFS and mount it to a directory, so that you won't be trashing your SSD/HDD 2) Use Python to make a Flask website that calls ffmpeg's CLI to generate required files in proper bitrates and formats. 3) Voilla!

You could also use something else to build your website, and use Python to make a simple websocket server, which your webpage can call via JavaScript. If you do this, you wouldn't have to run the websocket server on your main webserver.
Deo gratias, Ave Maria
User avatar
Ntech
 
Posts: 47
Joined: 30 May 2019, 20:40

Re: Publishing music

Postby Lyberta » 16 Sep 2019, 02:05

Ntech {l Wrote}:If you have no concern for CPU or RAM usage, I'd suggest you transcode files on the server. Process: 1) Create a RAMFS and mount it to a directory, so that you won't be trashing your SSD/HDD 2) Use Python to make a Flask website that calls ffmpeg's CLI to generate required files in proper bitrates and formats. 3) Voilla!

You could also use something else to build your website, and use Python to make a simple websocket server, which your webpage can call via JavaScript. If you do this, you wouldn't have to run the websocket server on your main webserver.


If I were to actually write this, I'd use C++ for server-side and just HTML button for download. Surely, that's how HTML forms worked before JavaScript, right?
⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧⚧
User avatar
Lyberta
 
Posts: 616
Joined: 19 Jun 2013, 10:45

Re: Publishing music

Postby freemedia2018 » 16 Sep 2019, 02:09

Lyberta {l Wrote}:Your account is tied to your e-mail address and there is no way to change item identifiers.


The second part is a arguably a feature, though I'm with you on the email thing.

Fair point about identifiers and dead names. To some degree the archive may make exceptions and help out with that, but they certainly don't make it user-friendly or standard or obvious. So, fair points. Either way I mostly wanted you to know the option is there, which you clearly do already. Cheers.
User avatar
freemedia2018
 
Posts: 97
Joined: 21 Jul 2019, 07:30

Who is online

Users browsing this forum: No registered users and 1 guest