[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: pica.png (698 KB, 1274x796)
698 KB PNG
I have an idea for how to transfer audio in a video file without an explicit audio stream.

There is a method for converting .wav audio files to .png images and back.
https://github.com/directmusic/wav2png
https://direct.wtf/wav2png/
It works quickly, with some quality loss, but it still works and maintains time synchronization with the video.

The tasks are as follows:
1. How to transfer a video file along with a .png file?
copy /b "video-noaudio.mp4" + "image-png.zip" "video.mp4"
If you open such a video file in an archiver, you can extract the .png.
2. Decode the .png to .wav.
3. And run it all simultaneously in the browser.
4. PROFIT!

So, we need to create a browser plugin.
Get to work.
>>
File: input2-20260501211619.mp4 (3.44 MB, 624x834)
3.44 MB MP4
>>108732183
>>
>>108732183
>Get to work.
Use AI to vibe code it
>>
>>108732183
No.
What you want is reserve a band at top or bottom of your image and slap the frequency graph of the audio for this frame.
Yeah, it will be compressed, and yeah, it will move along the video.
But you both keep the sync and reduce the step needed.
And if you really want to go the image route, then, again, go with frequency, and slap the image at the end (or beginning) of the video.
>>
>anons reinventing SSTV
>>
You really going to keep spamming this shitty thing? Really?
>>
>>108732203
fpbp
>>
File: 1742589896899990.jpg (11 KB, 296x288)
11 KB JPG
>>108732183
Why would you bother with the png if you're zipping it anyway? Just zip the wab.
>>
File: input31.webm (2.74 MB, 624x834)
2.74 MB WEBM
>>108732183
>>
File: file.png (906 KB, 843x942)
906 KB PNG
>>108732183
>>
File: 1777689872256710----.webm (2.74 MB, 624x834)
2.74 MB WEBM
>>108732183
>>
>>108732183
How are you even getting quality loss bro.
You just have to encode the .png as a .wav file with pcm8 and then decode it back.
You can send any binary file in a .flac form that way.
You just need to rawvideo input and output and pipe it as a pcm8 into the flac/wav format and decode it back.

Okay that's backend-less.
You need to figure out how to use a different PCM format in JS if it even is possible.
One of the problems is you export the .wav as float32array, PCM8/PCM16 will operate on INT8\16/UINT8\16.
And if you can encode just a single channel, though you will be the one defining how the interleave is done.
Is it even possible in the JS api to set .wav as PCM8 or do you just provide it with a ByteArray and it detects the format?
>>
>>108732516
>What you want is reserve a band at top or bottom of your image and slap the frequency graph of the audio for this frame.
if you want to retain legible audio after compression it will bloat the video size. you don't just need to store the audio band, you need to keep the entire frame at a higher bitrate to retain all features with the same spatial+temporal frequency resolution because your codec doesn't know you only care about the top few pixels.
>>
>>108734938
>>108734884
>>108732203
qrd?
>>
>>108732183
>copy /b "video-noaudio.mp4" + "image-png.zip" "video.mp4"
windows
>>
>>108732183
>what is 4chan sounds
>>
File: Clipboard01.png (13 KB, 553x264)
13 KB PNG
>>108732203
doesn't work with 7z for this file
also I remember 4chan removes embeds, especially easy ones like you are suggesting
>>
>>108736325
Yes, data is removed from MP4 and WebM files when sending messages. These formats contain metadata about the length and size of the video stream, and everything unnecessary is removed. I even tried inserting data into the middle of the file.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.