Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fourjr/file2mp4
save file as binary in mp4
https://github.com/fourjr/file2mp4
Last synced: 26 days ago
JSON representation
save file as binary in mp4
- Host: GitHub
- URL: https://github.com/fourjr/file2mp4
- Owner: fourjr
- Created: 2023-11-19T08:14:42.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-12-17T07:19:52.000Z (11 months ago)
- Last Synced: 2023-12-17T08:26:16.011Z (11 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## about
Uses pixel data to store file binary data
[inspiration](https://youtu.be/_w6PCHutmb4)## example
[sample video](https://youtu.be/zjfkkXb_CIE)
```console
> certutil -hashfile 1Gb.dat MD5
MD5 hash of 1Gb.dat:
fae717cb3c1c7134ff7858246992f8b4> python encode.py 1Gb.dat
File name: 1Gb.dat
File size: 1073741824 bytes
Video Size: 1280x720 @ 60fps 7.5Mbit/s
Video duration: 389 frame(s)
Processing frames
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 389/389 [00:52<00:00, 7.40f/s]
Processing video
output/a6721a9a.mp4> python decode.py output/a6721a9a.mp4
File name: output/a6721a9a.mp4
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 389/389 [01:05<00:00, 5.91f/s]
result/1Gb.dat> certutil -hashfile result/1GB.dat MD5
MD5 hash of result/1GB.dat:
fae717cb3c1c7134ff7858246992f8b4
```## ideas
- Use audio as well to store data
- Combat yt compression?
- when decoding, statically assign memory so no need for concat## libraries
- ffmpeg
- numpy
- PIL
- tqdm