On Mon, Mar 25, 2019 at 06:05:58PM +0200, Mihai Popescu wrote:
Hello,
I am trying to find some hardware for an OpenBSD multimedia computer.
I plan to attach it on a HDMI TV and play youtube on it, 1080p@30fps
or more. No 4K involved.
My thinking is to go for an AMD A8-6500 processor, but I am not sure
if this is enough.Right now I am using and AMD Athlon II X2 B26 which
drops some frames on youtube 1080p. I've read that ffmpeg, mpv and
chromium do not use GPU in any way for decoding in OpenBSD.
I could not afford to go for performance hardware like Intel Core
I7-4770, so if you please could you make some suggestion about what
you run as a minimum requirements? Am I on the right track thinking
that more powerful CPUs will speed up decoding?
Your AMD Athlon II X2 should play 1080p @30 fps on YouTube with no
dropped frames. I know because I have a slightly slower X2 processor,
the green edition at 2800MHz. I suspect the dropped frames are caused
by your browser disabling some acceleration for your video card. Do you
use the integrated graphics of your motherboard? I do and that gave me
similar issues.
But it's possible to force-enable the acceleration in Firefox, with
little issues (freezes sometimes for a few seconds with 6.4 and even got
a couple of X.org crashes over the last months, hoping for a better
outcome with the updated drivers in 6.5, as 6.3 was smooth). On
Chromium-based browsers I don't think there's a way to force enable 3D
acceleration for these old chipsets. There's a flag that used to work,
but not any more.
An alternative is to play YouTube videos with mpv using the GL output,
which should be the default (not x11, not xv). That works out of the
box for my setup. As a general rule for these old chipsets, the
decoding is not GPU-accelerated, it's the screen rendering that needs
the acceleration. In Linux I had the option for accelerated H264
decoding too in mplayer/mpv (with VDPAU?), but I still preferred
software decoding, as it gives more flexibility (eg. for deinterlacing).
On a related note, try this in the MPV config file to prevent sound
skips when listening to radio: ao=sndio. For 5.1 videos you might also
want: audio-channels=downmix. FFMPEG's ffplay is an alternative to try,
for radio listening I use: ffplay -loglevel quiet -autoexit -nodisp.