[ home / overboard ] [ date ] [ soy / qa / raid / incel ] [ int / pol ] [ a / biz / fit / mtv / r9k / sude / tech / v / x ] [ q / news / chive / rules / pass / bans / status ] [ booru / wiki ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: chud.png 📥︎ (5.24 MB, 1172x1172) ImgOps

 â„–45004[Quote]

ffmpeg -i chud.png -pix_fmt rgb24 -f rawvideo - | mpv -

 â„–45005[Quote]

File: file2png.c.txt 📥︎ (3.58 KB)

>>45004 (OP)
source code:

 â„–45006[Quote]

>>45004 (OP)
OYYYYY DOCTOOOOOOOOOOOOOOOOOOOS ITS EMBEDDED DAISYS DESTRUCTION OYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

 â„–45009[Quote]

>>45006
there is no dd or cp embedded into this, you'd have to check /bin/cp and /bin/dd for that on UNIX.
Also, if you are embedding mpeg4 videos, make sure to have -movflags faststart
tl;dr:
ffmpeg -i input.mp4 -c:a copy -c:v copy -movflags faststart output.mp4
Otherwise, most media players won't play nice with streamed stdin, and you'd have to write it to a file first, because not having faststart requires random reads for headers that are slapped at the end of the file rather than sequential ones.
Why are they at the end of the file and not in the header where they belong? Don't ask me, mpeg4 is retarded.

 â„–45046[Quote]

>>45045
I wrote it in 5 minutes because I saw some retard who saved a greyscale image as RGB JPEG, with JPEG artifacts everywhere.
Instead of wasting that space, I wanted to use the chroma channel for storing additional data, just because I could.
I ended up using the alpha channel instead of luminance for displaying an image, because reasons.

 â„–45047[Quote]

>>45046
btw you can embed ANY binary data in it, plaintext too. You just need to stop piping it into mpv if you aren't embedding media.



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ date ] [ soy / qa / raid / incel ] [ int / pol ] [ a / biz / fit / mtv / r9k / sude / tech / v / x ] [ q / news / chive / rules / pass / bans / status ] [ booru / wiki ]