solved Double storage of the same audio files

alt=
@dim
8 years ago
167 posts
Why Jamroom stores twice the same audio files?

Now I have about 50 GB of user-files on my server's HDD, but it could be fit in about 25 GB without duplicates.
jr16.jpg
jr16.jpg  •  29KB


updated by @dim: 12/08/16 05:47:12PM
michael
@michael
8 years ago
7,714 posts
The original uploaded version could be a .wav or any of these file types:

aac
aif
flac
m4a
mp3
ogg
wav
wma

The only file type that will play on the web is .mp3 so an .mp3 file is created to be played on the web. There are options to just play a sample of the mp3 then only deliver the original to the purchaser of the song.

In your case it looks like the original is the same as the conversion so its not really needed in your case, but in cases like if the original was of a very high bit rate a lower version would be played on the web.

In short,
* The original is stored to reconvert off if anything goes wrong.
* The original is delivered if the item is sold or downloaded.
* The other version is a playable net version.
alt=
@dim
8 years ago
167 posts
Michael,
it would be good to create a rule according to which the mp3-double will not be created if the original is the same quality or format / extension, etc.
michael
@michael
8 years ago
7,714 posts
If you only want to allow your users to upload .mp3 files then you can have it this way.

Go to:
ACP -> MODULES -> PROFILES -> AUDIO -> QUOTA CONFIG

and un-check all of the "Allowed Upload" boxes except for .mp3, then uncheck the "Convert to MP3".

That will force your users to only upload .mp3 files and no .original. will be created. You will just have one copy of the files.
alt=
@dim
8 years ago
167 posts
Michael, It looks like it worked. Thanks!
I also found a .zip-archive with the songs which is formed in each user's folder. How can I disable its creation?
It turns every song has three clones: 1 - its original, 2 - its converted copy of the original, 3 - its copy in .zip-archive.
Wow!
brian
@brian
8 years ago
10,148 posts
The ZIP files are for downloading albums - you can disable that by CHECKING the "block album downloads" Audio Global Config option - that will prevent the ZIP files from being created:
Quote:
Check this option to block album downloads - this can save disk space on your server by preventing album ZIP files from being created.
I'd recommend looking at the various options in the Audio module and clicking on the "help" button to get info on what each setting does.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@dim
8 years ago
167 posts
@brian,
The option "block album downloads" has always been active on my website, but I see a .zip-archives.

Tags