the x264 av1 file plays only audio on vlc but works with flaws on mpv: on mpv I get audio and video, but every 5 to 6 seconds it’s like instead of getting 24 fps I get 22, the user noticing the missing frames.

Is this a hardware issue? software?

debian 12.11, vlc 3.0.21 flatpak, mpv 0.40.0 flatpak

what do I do?

  • utopiah@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 day ago

    Check using e.g. top for your CPU (nvidia-smi or amd-smi for your GPU) or System Monitor on KDE if any of your resource is being maxed out. If so then most likely you found the culprit.

    Regarding what the actual codec is being used you can use ffprobe but anyway what matters if resource bottleneck and thus if you can have hardware acceleration for it.

    It’s probably worth investigating so that you don’t keep on getting video files too big for your computer to handle. I imagine it’s something very high resolution with very recent compression. If so, look for something less demanding, e.g. x265 720p and if that’s still leading to performance hiccups the older x264 720p or even 480p.

    It’s rare that the media player itself, e.g. VLC or mpv, actually is the bottleneck.

  • cmnybo@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    32
    ·
    3 days ago

    Is it x264 or AV1? They are two completely different codecs. If it’s AV1, you may not have hardware acceleration since it’s fairly new. It takes a lot of power to software decode AV1 and you will get dropped frames if the CPU can’t keep up.

    • Spaz@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      3 days ago

      This right here is your issue, OP. Most likely is AV1 and cant decode it fast enough.

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 days ago

    If it’s AV1, you need both the hardware that can decode it, and the right libraries for it. x264 is not the same as AV1. AV1 requires lots of processing power, that’s why you see the slow down. But with the right gfx card (and libs), it can decode it fine. What’s your gfx card model exactly?