Re: omxplayer hangs on RPi3 after a few starts

adr <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
On Fri, 16 May 2025, Frank Wille wrote:

> Date: Fri, 16 May 2025 16:49:11 +0200
> From: Frank Wille <[email protected]>
> To: [email protected]
> Subject: omxplayer hangs on RPi3 after a few starts
> 
> Hi,
>
> I wanted to use omxplayer to show a series of videos in an endless loop on a 
> Raspberry Pi 3 (NetBSD 10.1_STABLE), but after a random number of starts 
> (from seconds up to hours) the player will eventually freeze.
>
> In this state the omxplayer.bin process is marked as "parked" and will never 
> wake up again. Is this a bug in omxplayer or in the ARM kernel's 
> multithreading? I remember having seen similar "parked" situations on PowerPC 
> pthread-tests years ago.
>
> My kernel and system is:
> [     1.000000] NetBSD 10.1_STABLE (GENERIC) #0: Thu May  8 07:23:52 CEST 
> 2025
> [     1.000000] 
> frank@nerthus:/home/frank/netbsd/10/src/objevbarm/sys/arch/evbarm/compile/GENERIC
> [     1.000000] total memory = 948 MB
> [     1.000000] avail memory = 913 MB
> [     1.000000] timecounter: Timecounters tick every 10.000 msec
> [     1.000000] Kernelized RAIDframe activated
> [     1.000000] armfdt0 (root)
> [     1.000000] simplebus0 at armfdt0: Raspberry Pi 3 Model B Rev 1.2
> [...]
>
> The player is from the latest pkgsrc:
> omxplayer-20170112nb28 Raspberry Pi video player
>
> I'm playing the videos using a simple shell script from wscons:
> while true; do
>         for f in videos/*; do
>                 /usr/pkg/bin/omxplayer -o local "$f"
>        done
> done
>
> I could try mplayer instead, but then I need to start Xorg and it is much 
> slower...
>
> Regards,
>
> -- 
> Frank Wille
>

Hi Frank. I never got omxplayer to work in a reliable way (RPI2 years, years
ago). I suggest you to try mpv in an aarch64 kernel. Use settings like these:

audio-delay=-0.3
vo=x11
profile=sw-fast

Adjust the delay or remove it if that's the case. There seems to be
something wrong with audio latency (worst with uadio) at least with
rpi4 (dma related?).

Regards,
adr
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.