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.

  • mkwt@lemmy.world
    link
    fedilink
    arrow-up
    24
    ·
    edit-2
    11 hours ago

    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
      link
      fedilink
      arrow-up
      11
      ·
      11 hours 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…

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        5 hours ago

        Now that you mention it, i have a few anime around with lower-res & scanlines but better quality fansub and sound than the later original release.

  • TwilightKiddy
    link
    fedilink
    English
    arrow-up
    36
    ·
    21 hours ago

    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.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        1
        ·
        19 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?

        • pauljhenry@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          5 hours ago

          In writing it, they probably tested it on a file with this issue and debugged it. Error-handling. From then on, it probably has a unit test to ensure they can always work on that particular case.

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            4 hours ago

            I’m guessing quite a few encoders were doing it like this (or just 1 faulty encoder that was being used by too many people), for them to add this feature.