There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

MPV dropping frames and audio

I’ve tried searching around and stuff but I couldn’t find a working solution

Background: I am running Arch Linux on a Raspberry Pi, mainly as a media player.

When I run MPV, it seems to drop frames (1-2 per second). Visually, nothing looks wrong so I am fine with that.

The issue is that after playing for some duration, the audio will just disappear. I would then need to pause the video for a while or seek backwards for the audio to come back (sometimes it just comes back on its own when I leave it playing too). I suspect it may be due to the dropped frames or maybe it’s due to insufficient system resource.

Could someone help suggest some config changes which may help with the issue? I am totally fine with the visual dropped frames, I just want to fix the audio issue.

This is my config.


<span style="color:#323232;">input-ipc-server=/tmp/mpvsocket
</span><span style="color:#323232;">ao=pipewire
</span><span style="color:#323232;">volume=120
</span><span style="color:#323232;">demuxer-readahead-secs=3                                
</span><span style="color:#323232;">cache=yes
</span>
otl ,
@otl@lemmy.sdf.org avatar

For me, mpv writes a bunch of debugging info to stderr when playing something. Have you seen this output? Can you try running it from the command-line (if you haven’t already)?

0WN3D OP ,

ok, here you go pastebin.com/uPc5S1LU

djtech ,

Try running top and reply with the CPU usage while you are losing buffers.

Being a RPi, it might just be a performance issue.

0WN3D OP ,

Yea, it seems to be using 200% CPU. But I have vo=gpu though, so I’d thought the GPU would’ve taken some of the load.

If I am strapped for CPU resources, how do I make it so that MPV buffer or something instead of dropping the audio when this happens? Cause it is strange the even though the visuals are acceptable, it is the audio that fails before the video

djtech ,

If you want to use an OpenGL backend, see github.com/mpv-player/mpv/issues/4080

NOTE: I never used mpv, so i’m not really an expert; but please post the logs that are printed to the console when you launch mpv from the console.

0WN3D OP ,

Tried the settings on the GitHub, doesn’t seem to work, and it also made the stuttering worse


<span style="color:#323232;">opengl-pbo=yes
</span><span style="color:#323232;">opengl-early-flush=no.
</span><span style="color:#323232;">video-sync=display-resample
</span>

ok, here you go

pastebin.com/uPc5S1LU

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines