User Tools

Site Tools


user:dgirard3:portfolio:pictures

Project: Music in a photo!

A project for Data Communications by Derek Girardi during the fall 2012.

This project was begun on 12/10/12 and is anticipated to take 1 day.

Objectives

I want to see if i am able to put music data inside image data! I just want to see if the difference in data matters when the two are intertwined.

Prerequisites

In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved:

  • Linux
  • Command Line
  • Knowledge on data
  • File formats

Background

This project is just something fun to do. When you hide music inside a photo, you wont actually hear it at first. But once you see the photo in a mp3 player, the audio will start playing. The purpose of doing this is to see if i can do it! I just want to see how simple or how complex it can be putting music literally inside a photo. I just want to see it done and you will through this project!

Scope

I am just going to run through the steps of doing it and show the code on the command line of how i got there!

Procedure

Step 1: Find a picture and some small audio clip you want. I will personally probably be using nyan cat audio with a nyan cat picture because i want to and yea. Any picture and or gif can be used, they will all work. (See figure 1)

Step 2: The picture i found was way too big so i issued the command mogrify -resize 640 *.png which will convert the photos in the folder into a smaller image. It should still be able to hold an audio file.

Step 3: Next i will put the audio right into the picture to create our final music picture! (see figure 2)

Step 4: If everything works out, try it out! click on it and see if it opens up your mp3 player or whatever you may be using.

Code

Figure 1:

Figure2:

dataking@dataking-K53E:~$ cd Nyanmusic/
dataking@dataking-K53E:~/Nyanmusic$ ls
Nyan3.wav                 Nyan Cat trim2.wav  nyango.wav     nyantrim.wav
Nyan_cat_250px_frame.PNG  nyan-full.wav       nyan-trim.wav
dataking@dataking-K53E:~/Nyanmusic$ cat Nyan_cat_250px_frame.PNG nyan-full.wav>NYAN.png
dataking@dataking-K53E:~/Nyanmusic$ ls
Nyan3.wav                 Nyan Cat trim2.wav  nyango.wav  nyan-trim.wav
Nyan_cat_250px_frame.PNG  nyan-full.wav       NYAN.png    nyantrim.wav
dataking@dataking-K53E:~/Nyanmusic$ 

Reflection

This project can definitely be taken farther, i just wanted to see how it could be done and well, it can! More can be done though…

References

In performing this project, the following resources were referenced:

user/dgirard3/portfolio/pictures.txt · Last modified: 2012/12/13 07:35 by dgirard3