out of all the mainstream file formats, .gif is probably the most cursed

not in its design, or its functionality, but in the way everyone uses it for silent, low frame rate video clips with terrible colours and obvious dithering

if only there was another way to transmit moving pictures

i get it, gifs work on everything, but webms (or mp4s) are much smaller, support way more features, and support higher quality with much smaller file sizes

and like... what devices don't support webms?
oh yeah, the iphone
wellllll we still have mp4

genuinely curious as to why iOS' web browser doesn't support webm

and it's not like you can install chrome on your iphone, because all iOS web browsers are required to use safari's web engine

which means you just kinda... can't view webms in the browser on iOS

maybe* mozilla will succeed in pushing AV1 and we'll finally have a free and universally supported format for playing video on the internet

*this will not happen

:win_warn: Your iOS device does not support webm files. In order to view this file, please:
1. Install the freely available VLC app.
2. Click HERE to download the webm.
3. Open it with VLC.

a website that just losslessly converts videos to .gifs (or as close to lossless as possible anyway)

if you don't support the 5MiB <video> you get an 80MiB gif

Follow

the difficulty of implementing a standard for video on the web is nothing compared to document standards

there's microsoft's .docx which is a fucking mess, apple's .pages which only works with apple software (and therefore hardware), and libreoffice's (and openoffice's) .odt which is as close as we have to an open standard, but it's far from widely used

pdf files will display on pretty much anything which is all well and good until you need to edit the document

and while i'm complaining about video

we have phones with quad-core processors, six gigabytes of ram, and GPUs capable of processing a watered down version of fortnite, but we can't get video compression any better for recorded videos?

if you set your phone camera to 1080p or whatever and record for a few seconds you'll end up with a file that's tens of megabytes large. send it to your computer and literally just run "ffmpeg -i video.mp4 video-out.mp4" and the near-imperceptible compression it applies will reduce the video to a third of its size

here are two videos, the first is the one my phone produced, the second is one that's been run through ffmpeg's default options. the quality change is very minor, yet the file size has gone from 3.7 megabytes to just 1.

lynnesbian.space/res/ceres/VID
lynnesbian.space/res/ceres/VID

no it's not an invisible change in quality, but at a time when phone storage space is becoming more and more of a thing we worry about, and phones are capable of processing huge amounts of data, why don't we at least have an option to apply some light compression? i'm so sick of having to send a video to my computer and back just to get it to a non-ridiculous file size

(the reason i uploaded the videos directly and didn't just post them on masto is because it would apply its own compression)

even a quality option that changes the bitrate would be nice

@lynnesbian
I don't see a difference... Am I bad or something?

@freyja_wildes if you leave the video open on the last frame and quickly switch between tabs (ctrl-tab and ctrl-shift-tab on firefox) you can just slightly see some artifacting but you really have to be looking for it

@lynnesbian
Yes, now I see it.
I don't think it should be a factor. It's really subtle and phones are supposed to be used to make HD movies anyway. It's not digital camera

@freyja_wildes sounds like someone hasn't seen the "shot on iPhone" ads ;;;;;)))))))))))))))

@lynnesbian
I haven't. I haven't been exposed to ads for a long time (outside public space 😭 , can't escape the fuckers)

@freyja_wildes i've only ever seen them at the movies which i guess makes sense

they'll show really pretty scenery with lovely colours and such and then end it with "shot on iphone. apple" and that's it

it's certainly effective, apple's always been good with ads... usually

@lynnesbian
Damn... sure...
It's complicated. I wasn't a fan of camera on phones, but I use mine a lot. But it's *not* for quality. It's for the instantaneous things. I'm happy it's good, but we should be able to yell *enough* at some point.
If I want *really* good pictures, I buy a real digital camera. My used 7D cost me 600€, that's the price of an e-phone for a low grade semi-pro digital camera

@lynnesbian Oh sounds like a good performance, mine takes usually circa the same time than the video length for a simple reencoding.

But most of the times, I have to force a yuv420p pixel format for support, and that kills the performance.

@Ronflaix i've never had to fuck with image formats but ffmpeg can be really weird

@lynnesbian ffmpeg -i my_vid.mp4 -r <framerate> -crf 10[^1] -an[^2] -pix_fmt yuv420p[^3] out.mp4

[^1]: or whatever as long it's not 0, lossless isn't supported on phones
[^2]: optional, to remove audio codec
[^3]: sometimes I accidentally capture 440p which isn't supported everywhere

@lynnesbian And that's the magic recipe to be able to send shit on the fediverse or birdsite. On the latter there is still a fun snare : your video must have an even pixel width. Odd widths will be rejected for some reason.

@lynnesbian I should make a post on how to encode h264 for twitter/fediverse.

@lynnesbian (not really trolling, video size is also my main worry when I upload stuff here, but afaik videos and photos aren't that compressed because the toll on the CPU it does)

@lynnesbian but then, how are we gonna upsell the "plus" version phone 1 year later to people that do a lot of video?

@lynnesbian won't it better to use an open-source video format instead of mp4, like vp9 or Theora (.ogv)?

@kazord my phone outputs .mp4 when it records video so i used the same format when running ffmpeg to keep the comparison fair

@lynnesbian The problem is filming video WHILE coding it can't make excess compression without special codecs like XAVC from Sony or HEVC of Lumix, and the transcoding to further compress the video means it will be for diffusion and not editing, which can be really helpful when you need lots of data and latitude to not have a shitty compressed video at the end of your workflow. (ofc that's why pro cameras need SSDs of several TB for small amounts of rushes :blobsweats: )

@lynnesbian (I mention XAVC but Sony has a minimum of 25 or 50Mbit/s for their recording heh bleh)

@lynnesbian Add in the difference between having a standard document (for which markdown or HTML would probably work) and where page layout is vital, which is where both get funky.

(And try explaining the difference to publishers who are used to just using page layout tools...)

@lynnesbian pdf is an open standard because i can edit them in Adobe® Illustrator® Creative Cloud for only $20 a month

Sign in to participate in the conversation
Lynnestodon

@lynnesbian@fedi.lynnesbian.space's anti-chud pro-skub instance for funtimes