Storing Files on Spotify
Вставка
- Опубліковано 3 жов 2024
- If you are going to use the code don't try encoding files larger than about 1MB
and don't try opening the audio files. This is not for storing your files, but a fun
proof of concept.
Code: github.com/D40...
Socials
---------------------------------------------------
Twitter: / crad1111 ← bangers here
Twitch: / crad_live ← stream once a year - Розваги
guy over here re-inventing dial up.
and yet his bitrate is garbage compared to dialup while he has the latest and greatest in audio encoding technology and not subject to POTS bandpass filtering lmao i cant.
@@88tx what does pots mean?
@@2kadrenojunkie president of the states
@@rebane2001 i don't think thats right. it should be in the context of electrical signal filtering or at least describing how bad it is. i'm thinking it could be a typo and they meant to just type pos.
figured it out, i think its a initialism for "plain old telephone service".
bro found a way to store 2MB file into 11GB of audio file 😍
lazy solution: save the image as the song cover
holy shit. thats brilliant
Conpression:
Since there's a resolution limit too, you won't be able to fit many bits either.
At this point we'd probably have someone store files in a charger
real 🤣
Wait a charger is just to the power so technically it is possible
We would have to put like a computer in the charger, It wouldn't work by itself (probably). There are already chargers with computer's in them typically used in in-person cyber attacks.
@@GriffinForte need more than power, that's why thin charging cables can't also be used for file transfer. it needs more wired to support that, that thicker cables. but maybe storing information in a data transfer cable is possible.
"wait, I don't like this paper..." bro just ended racism
racism 2: return of the kings n shit
@@sparx0sthis is NOT K-Project
You can encode 256 (not just 8) bits using 256 disctinct frequencies, by using the Fourier transform. Basically if your frequencies are 1, 2, 3, …, 256 kHz, and you want encode 1001…0010 (256 bits long), then just have a 256 kHz sine wave + 253 kHz sine wave + … + 2 kHz sine wave for one-tenth of a second. Now just apply a Fourier transform to decode it. Also, increasing the number of distinct frequencies to would increase the number of bits that can be stored per unit time.
i think he is already doing that but spotify limits it at a specific amount of khz frequency so that your dog doesnt go insane
also fourier transform is very fast and i think you can store much larger amounts of data using this method
@@rishibellam738I took a quick look at the code and I didn't find any fourier transforms. Also he didn't import scipy, so no fft and really if you're gonna use Fourier transforms might as well use the quick ones. Conclusion: I'm pretty sure he didn't. I don't blame him tho, Fourier transforms are kinda black magic to me.
@@blubblub3786 he imports in the decode code
import numpy as np
import scipy.fftpack, os, subprocess
from pydub import AudioSegment
in the import code he just generates the frequency of sine waves
@@blubblub3786 huh what happend to my reply that i made
i have an idea
what if we store files, but we use hard disks instead
i should have listened to your warning lmfao, 150 mb file has my pc on its knees
NOOOOOOO STOOOP
@@owneroftheboner i cooked, managed to improve the encoding so it can actually be used... still have to rebuild the decoder thought (i no no wanna)
@@mafio3238 nice, what did you do?
i like how chill you are
You could have divided the length by 2 using the panoramic sound (right and left side of the audio)
stereo
@@nooblolxd3919 yeah mb thank you
what about 7.1 surround?
@@pinguluk1 would be much too complex to implement and would require more disk space
@@LenochJwouldn't adding a second channel complicate this to begin with?
actually respect to u for making a simple code which even a non coder can read and understand, in our community we have respect for ppl who doesnt code just get the work done but also so that others can understand,recreate,or rectify it
it's simple mostly because i'm dum, but still thank you for the comment
You could try to use cloud services that offer free storage like google drive and design a program which has access to all your accounts and which collectively displays all the things you have uploaded, would definetly watch if you do make one.This concept was amazing and it was a quality content. You deserve a lot more subscribers. Subscribing right now!
Storing files on Spotify is actually possible. You can use Spotify’s web API to add and remove songs from playlists, and you can choose a bunch of tracks that is already on Spotify and let each one represent a chunk of 1s and 0s, the size of the binary chunk being determined by how many songs you chose ahead of time. I alr made a repo that does this a few months ago 🙃
Though this approach is HELLA slow just do to the limitations of Spotifys web api, taking like 10 mins to upload a 100kb file
ive seen someone store files using youtube.
not possible due to video compression
@@INFINITE31_it is 😉
@@INFINITE31_ it is totally possible to work around the compression,
I mean even with the worst compression you could still flash a white and black square to store morse code base32 and then you could move on from there
@@INFINITE31_ nah ah
@@INFINITE31_ it technically is possible, but the video compression would just be a bit of a bottleneck
instead of using pitch i would use the phase of the audio file and make it so that every millesecond it is a new bit and if the phase is at the top it would be 1 and if it was at the bottom it would be 0( to do multiple bytes a second I believe you could have phases in between and you could make the dencryption program automatically set the top phase and bottom and then from there divide it into sections) the way i think that compression of audio files works is it lowers the amount of possible phases it could have.
just wanna tell you to keep up making youtube videos man, this is amazing.
you could've used spottily playlists, since there are so many songs on spottily, each track id could be a certain arrangement of bytes?
There is a whole subfield of electrical engineering devoted to shoving information into waves, and sound files are just wave storage
so you're basically trying to reinvent slow scan television, but that can store any file type, and uploaded to the internet.
The way i personally would have approached this is to use the spotify API to manipulate songs in a playlist, where you could choose a selection of songs as, say, each hexadecimal of a byte and then add those songs to the playlist using the APi
I just make alts every month for free premium. You can just give your alt access to your playlists
heard of similar idea but this is also a genius execution haha
3:20 “Wait, I don’t like this paper.”
educational and keeping it in a funny way, new sub
put certain frequencies on certain levels of audio and when decoding the first frequency will be at 20% the second at 40% and the third at 60% so you exclude any audio under 60 or above and you get the last frequency...
this one will do numbers
Mostly ones and zeros
Actually, there was already a program to encode files into Audio a long time ago, I think it was called "kcs" or something. Tho it was meant to be run on DOS, because back in the 80's and 90's it was apparently a thing to store data on Audio cassetes, so you could encode you files in Audio and then record it into a cassette. I don't know how good it worked exactly anymore but I think it used quite a low frequency but that means I could then just load the Audio file into audacity and make it fatter so that it takes less space, and even with lossy Audio conpression it will still work if you then make it shower again, as long as the Bitrate is not too low.
I love that I'm not the only one who's been going down these rabbit holes lmao. One way you could optimize it I think is processing 2 bytes at a time, but separating them into the left and right channels. Not sure how the code for that would look, but theoretically you'd be able to I think
Most over complicated file storage system, I love it
Good content 👍
Thank you, I'm glad you liked it
i have two suggestions for you:
1) to increase the number of bits expodentially you could split the sound between left and right ear instead of stereo- or better yet- have each degree of seperation between left and right be its own bit. assuming you can split one frequancy to 100 different directions between full left and full right, each frequancy now lets you store 100 times more data
2) you can 2x the wav speed and then upload it. once you download the file you can 0.5x the speed. think of it as your own compression.
But 2x speed would compress it even more, so you end up with the same result
hold on i might try this
thinking about it no you cant split degrees, stereo is literally just 2 seperate tracks, there is no inbetween
U just gained a new sub
Create a playlist > change playlist cover
btw did you forget about multi channel sound (aka stereo/5.1)
Yes completely
Cool project 2:49 could use compression too it will reduce file size then convert it that will work really good
Two things I thought of:
1. Music on streaming platforms is stereo. So the same frequency could mean different bytes dependent on it being on the left or right channel
2. Are you only using frequencies in whole numbers? What about halves?
I think it would be really interesting if you used Spotify playlists to store data. Use certain song names to represent bits/bytes.
Something like: song that starts with an even numbered letter = 0, odd numbered letter = 1.
Possibly something more complex if you want to get into dedicating specific songs to a specific byte, so you can store more data using a shorter playlist.
You would write some code that converts image data into your Spotify playlist format, create the playlist, then feed the playlist url into a decoder you also wrote and watch it spit out the original image.
In theory, this would be an entirely lossless form of storage, as well as completely free.
(I don’t know if Spotify caps the number of songs you can put on one playlist, but you could always just split the image into multiple “chunks” of playlists if necessary.)
We've even seen someone store data using network ping requests.
can't you still "upload" songs to Spotify by just using local files? They are still shared between devices so they have to be hosted somewhere on Spotify
Use both channels (left and right) to cut the time in half.
you would somehow get to 10 kb to make a 2 mb file in around 3.3 minutes which is about an average song length, so this would be incredibly hard
however you forgot a very big thing, volume. with another dimension this could go WAY faster (i think?? thinking about this it reallt wouldnt)
Not that it matters but you can upload your own files to spotify, although they wont be publicly available
Ilimitaded storage in:
✓UA-cam
✓Discord
✓Spotify
For once my amateur radio license comes in handy
You're only encoding it in frequency (FM), but you forgot about amplitude (AM)
Each frequency's amplitude can have a value of between -32768 and 32767, giving a possible 65535 values per frequency
To offset compression, it would be wise to decrease the number of allowed amplitudes by ~90% but this still gives you 6553 values per frequency
If you were dead set on having 4096 frequencies, you could have a theoretical maximum file transfer speed of 26,841,088 values per chunk of audio
Then you could increase the number of chunks per second to 4 chunks per second, allowing 107,364,352 values per second, thus greatly increasing the file transfer speed
Hope this helps!
What would stop you from using 8 different frequencies (in different groups, spaced at least 50 hz apart) and just figuring out which one it's closest to? That'd get you a whole 10 bytes per second instead of 10 bits per second, theoretically.
I mean sure they cut it off at 20kHz but what's stopping you from using factions of a frequency. The data is stored as pure sine waves therefore the computer should be able to calculate the frequency of the wave to almost an infinite degree of accuracy without a hitch right? edit: I left this comment right before that section of the video but I feel like my point still stands even with a 1000Hz roof
Why not use panning? You'll be able to use two or more channels, which you could use to encode more bytes
tech like that existed way before, its called SSTV and it encodes images in to audio signals and its used by HAM radios and space stations to transfer photos of space back to earth, im not sure if you can encode anything else than pictures, but i know for sure there is software to convert files in to 24-bit bitmap files and each pixel represents data, you could encode the data carrying BMP in to SSTV signal which saves as a mp3 or ogg or whatever you like, and then try using that to carry data
Or as a more modern variant, there is Digital Radio Mondiale, which supports somewhat efficient image transmission (72kbps) using 16/64QAM. Using Dream, it's extremely easy to create the DRM baseband. You can just output the baseband created by Dream into Voicemeter and record it with Audacity. Though personally, I only have got it to work with images.
if it supports images then converting files to bitmap images should work fine
well, that made me think maybe it's possible to store data in a vinyl disc, i mean, it is but who would be crazy enough to do it hahaha
bro had to put in the hawk tuah
Filecore should defo be a thing
Im gonna encode a 7GB windows installer and you cant stop me
You can do this on Email also. Each email has 15 GB cloud space. I opened 40+ email accounts... 😅
Easier than Converting Files into Binary.
the issue is that you need to create mroe acounts
@@rishibellam738 Create an account it can fill up in 1 month or So depending on usage and Creating new account only takes 2 min.
Giving 2 min every month for unlimited storage is easier. But to remember all those email addresses is difficult so I have to write it down..
BTW which country? 🤔
@@rishibellam738 I am searching to watch OF videos for free... 🤭.
If you Have any method, please share...
@@rishibellam738 In my if you want to store things you won't require much cloud space so that is one of the best and reliable option. A guy once used google drive with multiple accounts and some coding to start his own streaming service (for pirated content).
dont you need more phone numbers?
"W8, I don't liek dis pepa" xD
Why don't you play multiple frequencies at once. As you may know, it is relatively easy to convert a waveform to frequency domain through a Fourier transform. Then all you would need to do is have eight frequencies per byte, and one per bit, and play them at the same time, then decompose them with a fourier transform, If you are able to distinguish 1024 frequencies in a 0.1 second time frame, then thats 10240 bits per second, or 1280 bytes per second, over 1kb/s.
why not use the left and right audio channels, this would cut the size in half as you would get 20/b per second and not 10
my dumba$$ would make it create a playlist, where the first letter of each song is a letter in the data:uri of the file
Bruh. I tried your python program. The 5MB picture didn't work, even after allocating my Server 16GB of RAM 💀. Now the 80KB file only needs 116MB 💀💀💀
Omg please share the soundcloud link for the audio, I wanna see this long ahh audio file lmaoo
why isnt this viral?
i mean , you should learn DSP(digital signal processing ) even though theirs some encryption within data which you wont have access to however can be an rewarding journey
pov me converting fnaf security breach into a wav file : how many petabytes does it need? hmm🤨🤨
WAM, We can store the sound in yt ..
wait don't you just need 512 frequencies to store 16 bits of data?
what if you used lossless audio on apple music?
nice vid keep going!
Maybe using fourier transforms. I am too dumb to think about how you would go on to effectively store data that way, but I am sure it would take way less space (audio length) than just using a pitch for each possible byte and only playing 10 bytes per second.
1:14 thats selection sort sound effect
okay but why is this video so funny LOL
U can upload it to spotify as a podcast for free
i believe there are some free distribution services.
Yes you are right, I looked into it after recording the voicelines. The problem with the free distributors thou is that they limit how often you can upload songs and also put a limit on the file size.
@@owneroftheboner ok
@@ownerofthebonerName any
Honestly I felt disappointed in end result. Whole premise - is just early days of computing, when programs were stored on tapes.
I got a feeling that creator: 1) gave up 2) had no idea what he's doing 3) lacked skills to program something better.
Like you know a there can be multiple frequencies playing at the same time? Also you know you can use amplitude?
dude non integer frequencies exist
i hope a god will bless you with more time of living due to that project
Very cool!
I LOVE UR VIDS IM NEW FAN
Why don't you try with multiple sound channel? Like parting file into chunks.
Oh, someone already said this.
i think you re-invented sstv
@@protat0 yeah just shitier
not sure if i'm missing something obvious, but couldn't you use multiple audio channels to cut the playback time?
yes I could and completly forgot
you know you can just upload the picture as cover picture
this works for all files not just pictures
How do u download back from Spotify???
there are countless songs on spotify, what's stopping you from using a playlist as a zip archive?
Does this also work for storing grocery lists?
btw ditto has a free trial option you could've used, they probably wouldn't have accepted it tho
thanks
just get audacity and import some random file as raw data to to encode it
how are you gonna decode it?
simple:
idk figure it out yourself I’m not smart enough for this
use stereo audio
why don't you just separate the frequencies and save 256 bits or 8 bytes for each "point" of sound?
Edit: now that I think about it, a wav file is not very good, because 1. it uses a lot of space 2. it's not very precise. But it has an upside. A wav file could also store more values by saving data in the offset of the sine wave.
i think he is seperating the frequencys already but he managed to only be able to store 1 and a half bytes per second. 12 bits the theoretical maximum for spotify would be based of of the highest frequency spotify can store.
nice video, just no clickbaits next time fam
I store my files on github
cloud storage in spotify shieeet XD
steganography
Record a fax and you can save documents
4096 = 2^(12)
How did you publish the audios to Spotify?
How do you read it ?(sorry for stupid question)
ZX spectrum
what in the chat gpt is that video
A banger
Please don't remove the channel names from the thumbnails you show. It's really not good manners to remove them.
nice