Skip to content

yl12053/Music_In_JPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Music In JPG

0x01 Introduction

Basically it is just my... imagination?
I think that JPG and zip have their own magic number, then if I can place musics in a archive and append into the JPG file?
After some tries and search on internet, I succedd, however I found that there are already some ways to do it on internet.
However don't know why sometimes those methods cannot be used, so I still decided to post it.

0x02 Usage (Creating / Modifying picture)

There will be a file called "music_track.py" (well, there's no GUI this time)
When you run this script, it will ask you for a picture (can be the picture proceed or a JPEG picture)
And it will jump into a fake "interaction shell"
You can input some command into it
Input help will result in

add - Add songs to SoundTrack
rem - Remove songs from SoundTrack
save - Save changes and exit
exit - Discard changes and exit

0x03 Usage (Music Player)

A small script for playing the music inside picture called "play.py"

0x04 Notes

The script for extract the files inside have not been implemented, but will be uploaded later
You can also do it yourself! (As known as, DIY)
The zip archive is append just after the JPEG file, and
it is also correct to said that the archive is stored after the first FF D9 (b'\xff\xd9')
so no matter use ZipFile in python or write it in a file and extract it is also OK.

Postscript

There are a example picture which include two japanese music I like is inside the repo. You can test with it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages