15
2020
Encode/Decode Audio To/From PNG Alpha Channel
Small test on embedding Audio data into PNG alpha channel.
With added option to shuffle pixels to hide/”encrypt” original image and sound.
To make sound file small enough, use this option to set low hz.
Ideas for later:
– Compress audio (tested RLE but didn’t do much with audio)
– Use full texture size automatically (currently just fills as long as have data)
– Resample audio in script, instead setting sample rate in audio importer
– Option to encode seed and/or hz value into texture
Sources: (take both scripts)
https://gist.github.com/unitycoder/6fece768157c038fb4c28d4b59931625
Example results
Related Posts
2 Comments + Add Comment
Leave a comment
Recent posts
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
Very interesting, thanks for your work.
spore png image hidden data:
http://www.rouli.net/2008/08/spores-png-format-illustrated.html