this post was submitted on 26 Nov 2026
67 points (100.0% liked)

Programmer Humor

34305 readers
1551 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 

MPV doesn't seem to suffer from post traumatic stress, so it's making something up at the speed of 23.976024 frames per second.

top 10 comments
sorted by: hot top controversial new old
[–] mkwt@lemmy.world 7 points 2 hours ago* (last edited 1 hour ago) (1 children)

23.976 FPS is a standard that was sometimes used to display movies on NTSC (analog North American) televisions.

NTSC was set up for nearly 60 fields per second, so that the 60 Hz North American electricity could be used for timing. Because it was interlaced fields, that made the frame rate around 30 FPS.

Original black and white TV ran at exactly 30 fps, but to add color, they needed to make room for a 315/88 MHz chroma signal. To make room in the spectrum, the black and white luma signal had to be shifted slightly. This was done by reducing the line scan rate from 15,750 to 15,734 lines per second. So the final frame rate ended up as 315 / 88 * 2 / 455 / 525 MHz, which is 29.97 fps.

Movies on film have been shot at 24 fps, and projected at the same rate in theaters for the entire history of television. But if you take a 24 fps film, you can alternately show one frame for 3 TV fields (a TV field is one half an interlaced frame), and then the next frame for 2 fields, and end up at this 23.976 fps average rate. There were machines that did this with 35 mm film and a TV camera.

[–] brucethemoose@lemmy.world 5 points 1 hour ago

Yes.

Hence the suffering of anime re-encoders for the rest of time, especially when producers got “creative” with how they used those interlacing machines…

[–] TwilightKiddy@scribe.disroot.org 25 points 11 hours ago (1 children)

For anyone wondering, the message is about Presentation TimeStamps, you attach those to media (in this case video frames) to tell whatever reads it when said media should be displayed.

No PTS means MPV had to just assume that video frames are encoded sequentially and make up some plausable times to show the frames. It probably took the duration of the video and divided that by the number of frames in the video stream, getting the former either from the metadata in the container or the duration of one of the audio streams.

[–] akunohana@piefed.blahaj.zone 7 points 11 hours ago (1 children)

Sic. Who tf comes up with this shit. (Praising.)

[–] ulterno@programming.dev 5 points 9 hours ago

If I were reading a video file and saw that happen, I might think, "yeah divide duration by total frame count for now, and complain to the publisher later", but really who put the time to debug the issue (probably reading out the manifest to stderr (and making a conversion script to make it human readable and usable) and manually going through it) and after finding out the problem, actually coding in the option for mpv to detect this itself and then checking the conditions for when "something" cane be made up and then making those things up in the corresponding way?

[–] who@feddit.org 7 points 11 hours ago (1 children)
[–] akunohana@piefed.blahaj.zone 4 points 11 hours ago (1 children)

Is that the deductible or the fine for when mpv is found out to have committed fraud?

[–] who@feddit.org 4 points 11 hours ago (1 children)

Why are you using mpv for medical care?

[–] akunohana@piefed.blahaj.zone 4 points 11 hours ago (1 children)

Because my primary healthcare provider has given me the finger one too many times. At least mpv has man pages.

[–] who@feddit.org 1 points 11 hours ago

United States, then? Oh, gosh. I didn't know it had come to that.