Collapse
Torrentech Radio is currently offline.
The radio is currently offline · No scheduled sets...
Schedule · DJ-s · Stats

> Convert PNG to MP3 
Reply to this topicStart new topic
OfflineMaurizio
post 09. Dec 2010, 11:59
Post #1


VINYLOCIRAPTOR>>>>>> Deep House junkie
**

Group: Members
Posts: 438
Thanks: 84
Joined: 07.09.08
From: Vikingland
Member No.: 37,863



This is an old trick that I had forgotten until I read about it recently on some random audio site. I used to save passwords and keys in images until I realised that my life isn't that interesting for someone to hack the shit I do online :/

Follow the step-by-step instructions and you'll have your own image of your favourite tune.

Convert png to mp3
1. Open the attached .png file in Photoshop and save the file as .raw
2. Rename the file to a .mp3, and play it on your music player...



Convert mp3 to png
1. Rename a .mp3 to .raw
2. Calculate the square root of the bytes of your .raw file.
3. Open up the .raw in Photoshop and choose the dimensions. Use the square root number.
4. Save it as a .png and you're done!

When I did this, the total amount of bytes (of the .raw) was 224531. √224531 = 473.8470...You can't put decimals in the dimension sizes so I chose the dimension 473x474=224202
224531 - (473*474) = 329 <- This number should be put in Header size in the Photoshop Raw Options.

Edit
Read post 15 for more info
This post has been edited by Maurizio: 13. Dec 2010, 13:45
The following 3 user(s) say thank you to Maurizio for this great post:
IrushiNo, psidre, Seaser
+Quote Post
OfflineIllegalMind
post 09. Dec 2010, 12:17
Post #2


Seedbox Supported
*

Group: Members
Posts: 75
Thanks: 39
Joined: 30.11.08
From: Brussels City
Member No.: 40,820



Nice!
Now I just have to make some of my own...
+Quote Post
OfflineInfrasound
post 09. Dec 2010, 13:56
Post #3


Super Freek
****


Group: Members
Posts: 1,656
Thanks: 8306
Joined: 24.09.08
From: Planet X
Member No.: 38,388



Shame, I tought you would teach us how to play a picture in mp3. That would've been fantastic.

EDIT: or is it? If yes I don't get it
+Quote Post
OfflineMaurizio
post 09. Dec 2010, 16:47
Post #4


VINYLOCIRAPTOR>>>>>> Deep House junkie
**

Group: Members
Posts: 438
Thanks: 84
Joined: 07.09.08
From: Vikingland
Member No.: 37,863



QUOTE (Infrasound @ 09. Dec 2010, 13:56) *
Shame, I tought you would teach us how to play a picture in mp3. That would've been fantastic.

EDIT: or is it? If yes I don't get it

The picture can be played after you've converted it: .png->.raw->.mp3
This means that you could make any mp3 to a picture, print it out, scan it and then convert the picture back to mp3...
I don't know if you understood it right, but the pic that I've linked in the first post can be made to a mp3. You should be able to hear the torrentech radio intro.
+Quote Post
OfflineInfrasound
post 09. Dec 2010, 16:49
Post #5


Super Freek
****


Group: Members
Posts: 1,656
Thanks: 8306
Joined: 24.09.08
From: Planet X
Member No.: 38,388



Basically all I need is photoshop, open a mp3 with it save it as .raw then rename the extension to .mp3 and it should work fine?

If yes I understand that.
+Quote Post
OfflineMaurizio
post 09. Dec 2010, 16:53
Post #6


VINYLOCIRAPTOR>>>>>> Deep House junkie
**

Group: Members
Posts: 438
Thanks: 84
Joined: 07.09.08
From: Vikingland
Member No.: 37,863



It's not thaaat easy, follow the guidelines...
+Quote Post
OfflineInfrasound
post 09. Dec 2010, 16:57
Post #7


Super Freek
****


Group: Members
Posts: 1,656
Thanks: 8306
Joined: 24.09.08
From: Planet X
Member No.: 38,388



QUOTE (Maurizio @ 09. Dec 2010, 11:53) *
It's not thaaat easy, follow the guidelines...


Derp (. ) . ( .)
+Quote Post
Offlinedarth
post 09. Dec 2010, 17:12
Post #8


Resident Sith
***

Group: VIPs
Posts: 900
Thanks: 111
Joined: 28.02.07
From: Canada eh!
Member No.: 3,004



that's pretty trippy.
+Quote Post
Offlinerobbee
post 09. Dec 2010, 20:07
Post #9


Songs About My Cats
****

Group: VIPs
Posts: 2,618
Thanks: 4111
Joined: 07.10.07
Member No.: 19,219



doesn't raw to png compression screw up the mp3?
+Quote Post
Offlinewhatupdog
post 09. Dec 2010, 20:20
Post #10


Accroding hard since 1984
***

Group: Members
Posts: 960
Thanks: 77
Joined: 07.04.09
From: Northern Calfornia
Member No.: 47,189



So what does the resulting mp3 sound like after being converted back from png? Does it even work? If so, is it as good as the original, or is there quality loss? (I mean if you convert an mp3 to png and then back to mp3)
+Quote Post
OfflineClarion
post 09. Dec 2010, 20:44
Post #11


The Bomb Squad
**

Group: Members
Posts: 260
Thanks: 16
Joined: 04.06.10
From: _
Member No.: 59,344



is this how Venetian Snares made the cat picture?
+Quote Post
OfflineSik
post 09. Dec 2010, 22:00
Post #12


LiqWeed
***

Group: Members
Posts: 611
Thanks: 1732
Joined: 18.08.09
From: UK
Member No.: 53,478



huge headfuck........
+Quote Post
Offlinerobbee
post 09. Dec 2010, 23:11
Post #13


Songs About My Cats
****

Group: VIPs
Posts: 2,618
Thanks: 4111
Joined: 07.10.07
Member No.: 19,219



QUOTE (Clarion @ 09. Dec 2010, 20:44) *
is this how Venetian Snares made the cat picture?


no, that's the sound spectrum
+Quote Post
OfflineIdle.
post 10. Dec 2010, 00:55
Post #14


Maker of Tin Foil Hats
****

Group: Moderators
Posts: 1,772
Thanks: 515
Joined: 29.10.10
Member No.: 61,180



Very cool, ya file embed, can do it with videos and even torrents =)



For some reason when I make my own, it halves the end-audio file. This is the original, simple sine sweep from C0 to C7 on a piano roll, this is the end result after converting the png above, dunno why it does that.. You can see some corruption in the image though, it's a very sensitive process it seems.
+Quote Post
OfflineMaurizio
post 10. Dec 2010, 04:46
Post #15


VINYLOCIRAPTOR>>>>>> Deep House junkie
**

Group: Members
Posts: 438
Thanks: 84
Joined: 07.09.08
From: Vikingland
Member No.: 37,863



QUOTE (robbee @ 09. Dec 2010, 20:07) *
doesn't raw to png compression screw up the mp3?

No, the data is still there. More data (better quality) <=> bigger picture

QUOTE (whatupdog @ 09. Dec 2010, 20:20) *
So what does the resulting mp3 sound like after being converted back from png? Does it even work? If so, is it as good as the original, or is there quality loss? (I mean if you convert an mp3 to png and then back to mp3)

There is some minor quality loss if you can't find a picture dimension that fits the original mp3 size.
Example: size of mp3=71000 byte
Ex.1: √71000=266.45... 266*267=71022 > 22 byte added
Ex.2: 200*355=71000 > no data lost
All the data is still there. Look at it as if the picture is a music sheet for your computer.

QUOTE (Idle. @ 10. Dec 2010, 00:55) *
For some reason when I make my own, it halves the end-audio file.

Your picture is too small, (320*125=40000) the mp3 is ~65000
This is how it should look like.
-->
What I did: The size of the mp3 is 64852 bytes. Now you need to calculate the square root. This number should be used for the dimension of the png (witdh and height).
√64852=254.66... You can't use decimals so you have to use two full numbers with a value close to 254.66. I chose 254px * 255px
64852-(254*255)=82 (Header size)
+Quote Post
OfflineIdle.
post 10. Dec 2010, 07:41
Post #16


Maker of Tin Foil Hats
****

Group: Moderators
Posts: 1,772
Thanks: 515
Joined: 29.10.10
Member No.: 61,180



QUOTE (Maurizio @ 09. Dec 2010, 20:46) *
snip


I see now! Thanks for the rules, I was able to correctly convert them. At the start of each of these 'image'/mp3's there is a quick fade in that wasn't there in the original, well, less like a fade in and more like clean sounding corruption. That must be because of the few bytes of data lost due to not being able to use decimals, but I see what you did to make it more accurate.

Pretty cool stuff, here are 3 instruments, when sync'd together they create a tiny song woot.gif It's a hassle yeah, but damn awesome.

Drums:


Bass:


Sax lead:


Thanks for the info~
+Quote Post
Offlinejust a boring ni...
post 10. Dec 2010, 10:35
Post #17


N
**

Group: Members
Posts: 321
Thanks: 210
Joined: 01.08.09
From: huhmmm
Member No.: 52,746



this is awesome) another way of piracy has just been created)))
+Quote Post
Offlinerobbee
post 10. Dec 2010, 13:27
Post #18


Songs About My Cats
****

Group: VIPs
Posts: 2,618
Thanks: 4111
Joined: 07.10.07
Member No.: 19,219



lol i'm gonna convert a song to png, draw a smiley on it and convert it back. what would happen? biggrin.gif
+Quote Post
OfflineTRaiNZZZ
post 10. Dec 2010, 17:20
Post #19


your mum's favorite
**

Group: Members
Posts: 404
Thanks: 83
Joined: 28.11.08
From: LuCiFeR'S aNuS
Member No.: 40,722



well that was sweet thumbsup.gif
+Quote Post
Offlinewhatupdog
post 10. Dec 2010, 19:25
Post #20


Accroding hard since 1984
***

Group: Members
Posts: 960
Thanks: 77
Joined: 07.04.09
From: Northern Calfornia
Member No.: 47,189



QUOTE (just a boring nickname @ 10. Dec 2010, 02:35) *
this is awesome) another way of piracy has just been created)))


Yeah, from now on I only download music in png format. I can really hear the difference too! tongue.gif
+Quote Post
Offlinejayzn
post 10. Dec 2010, 22:11
Post #21


ghettotech posterchild
*****

Group: VIPs
Posts: 3,742
Thanks: 480
Joined: 10.02.08
From: vancity
Member No.: 27,111



^^^^^^^^^^^^^^ LOL!


on a side note...ITT: people who need to smoke less weed.
+Quote Post
OfflineIdle.
post 10. Dec 2010, 23:53
Post #22


Maker of Tin Foil Hats
****

Group: Moderators
Posts: 1,772
Thanks: 515
Joined: 29.10.10
Member No.: 61,180



QUOTE (robbee @ 10. Dec 2010, 05:27) *
lol i'm gonna convert a song to png, draw a smiley on it and convert it back. what would happen? biggrin.gif


My guess is that it would corrupt the sound, or maybe a live studio audience will be played back laughing.

Well, I wanted to see if there was any uniformity to it all (since at first glance it's just like no signal static on a TV). I found some crazy diagonal pattern uniformity (that you can slightly see in the first post of this thread) after making 1 sine wave make some noise, then totally silent 0db for a while, this is the image that follows. And for convenience here is the sound of it. The 4 strips of 'noise' at the top followed by silence goes along with the sound, so time seems involved in some way or another.

While frequency doesn't matter, pure 0db silence and any bit of noise does (obvious enough). Fun stuff, you should try that Smiley face lol. If you constructed a png lossless image pixel by pixel using the same parameters that PS does, could you hand-create a whole symphony embed within it? ..mindfuck

yo yo dis b DJ PNG in da house blink.gif
+Quote Post
Offlinejust a boring ni...
post 11. Dec 2010, 11:43
Post #23


N
**

Group: Members
Posts: 321
Thanks: 210
Joined: 01.08.09
From: huhmmm
Member No.: 52,746



and the dj setup in 5 years would look like macbook + photoshop live pro 7.3983
+Quote Post
Offlinewhatupdog
post 11. Dec 2010, 23:30
Post #24


Accroding hard since 1984
***

Group: Members
Posts: 960
Thanks: 77
Joined: 07.04.09
From: Northern Calfornia
Member No.: 47,189



QUOTE (Idle. @ 10. Dec 2010, 14:53) *
QUOTE (robbee @ 10. Dec 2010, 05:27) *
lol i'm gonna convert a song to png, draw a smiley on it and convert it back. what would happen? biggrin.gif


My guess is that it would corrupt the sound, or maybe a live studio audience will be played back laughing.

Well, I wanted to see if there was any uniformity to it all (since at first glance it's just like no signal static on a TV). I found some crazy diagonal pattern uniformity (that you can slightly see in the first post of this thread) after making 1 sine wave make some noise, then totally silent 0db for a while, this is the image that follows. And for convenience here is the sound of it. The 4 strips of 'noise' at the top followed by silence goes along with the sound, so time seems involved in some way or another.

While frequency doesn't matter, pure 0db silence and any bit of noise does (obvious enough). Fun stuff, you should try that Smiley face lol. If you constructed a png lossless image pixel by pixel using the same parameters that PS does, could you hand-create a whole symphony embed within it? ..mindfuck

yo yo dis b DJ PNG in da house blink.gif


Very interesting test. I noticed that you have different grayscale shades in the image you produced. Can you determine what the different grayscale shades correspond to? Maybe frequency? What do different sine wave amplitudes result in? This is so nerdy... geek.gif

Edit:
What happens to the mp3 audio if you lower the resolution of the png? My guess is that it would heavily distort the audio. It might sound cool. Also what if you put a color filter on it, or inverted the blacks and whites? So many cool things to try! What about different wave functions, like sawtooth, or square etc? Me so curious...
+Quote Post
OfflineIdle.
post 12. Dec 2010, 06:11
Post #25


Maker of Tin Foil Hats
****

Group: Moderators
Posts: 1,772
Thanks: 515
Joined: 29.10.10
Member No.: 61,180



QUOTE (whatupdog @ 11. Dec 2010, 15:30) *
I noticed that you have different grayscale shades in the image you produced. Can you determine what the different grayscale shades correspond to? Maybe frequency? What do different sine wave amplitudes result in?


Photoshop assumes Grayscale mode upon opening the .raw file in it, I'm not sure what purpose that serves, I think you can have color just the same, but still researching nuke.gif However, amplitude (no matter how intense or mild), frequency (no matter how high or low), wave types, mixed wave types, etc, all of these values seem to have nothing to do with the way the image appears to us (And we'd need to look into the code of it all). So far as I know, the only things that matter are its file size, pure 0dB silence/post 0dB noise, and in some way or another the duration of the file, that one is still a maybe.

Saw
Square
..and the ironic sound of Static (Which looks meta-ironically more consistent then the others..)

QUOTE (whatupdog @ 11. Dec 2010, 15:30) *
What happens to the mp3 audio if you lower the resolution of the png? My guess is that it would heavily distort the audio.


Just tested that out, altering the resolution of the image, even by 1 pixel, destroys the embed sound - it just doesn't play at all. Now that you mention it though, my first mistake in post 14 ^ is indicative that time does play some role, it was obvious before but I wasn't aware of it like I am now.
_
First attempt at embedding a 2mb video has failed, the png image looks right enough, but it won't play, still wondering what I'm getting wrong, it's in .wmv format so I had to try and add 2 channels in, freaking weird.

This is why I stick to PGP encryption lol
+Quote Post
Offlinepsidre
post 12. Dec 2010, 10:16
Post #26


glitch ghost (बोधिसत्त्व)
**

Group: Members
Posts: 488
Thanks: 305
Joined: 09.01.09
From: Lower Atmosphere
Member No.: 42,834



Attached File  Sanford_And_Son.png
( Size: 652.67K ) Number of downloads: 9



kewl beans. shit works.. that there's the Sanford and Son theme song xD

I tried to just make an image in photoshop then follow the steps to convert it to an mp3 but i got no sound back, which was rather expected.

I used to have a program that does convert visual data into sound and vice versa. Can't recall the name of that program at the moment.. maybe it'll come to me and I'll post the info up here.

This kind of shit really intrigues me.
+Quote Post
 
Reply to this topicStart new topic
Lo-Fi Version Time is now: 18.09.2014 - 10:38