Finally, a media player almost on par with Mac OS X's performance for PPC OpenBSD. If you have a 1.42GHZ G4 or better this will work very well for up to 360p x264 MP4 files.
Make sure you have the OpenBSD 6.6 or 6.7 ports in /usr/ports, download the attached patches for either 6.6 or 6.7 and run
When playing back a file, set the screen resolution to 640x480 (AltiVec optimized swscale is unscaled)
then use these parameters in your command
To return the screen resolution (replace example 1360x768 with your resolution)
My Xorg.conf looks like this
My sysctl.conf looks like this
Make sure you have the OpenBSD 6.6 or 6.7 ports in /usr/ports, download the attached patches for either 6.6 or 6.7 and run
Code:
#Next 2 commands attempt to install dependencies as binaries for faster build.
pkg_add mplayer
pkg_delete ffmpeg mplayer
#6.6
patch /usr/ports/graphics/ffmpeg/Makefile obsd66_ffmpeg_altivec_makefile_patch.txt
patch /usr/ports/x11/mplayer/Makefile obsd66_mplayer_altivec_makefile_patch.txt
#6.7
patch /usr/ports/graphics/ffmpeg/Makefile obsd67_ffmpeg_altivec_makefile_patch.txt
patch /usr/ports/x11/mplayer/Makefile obsd67_mplayer_altivec_makefile_patch.txt
cd /usr/ports/graphics/ffmpeg
export FLAVOR=“altivec”
make install
cd /usr/ports/x11/mplayer
export FLAVOR=“altivec”
make install
When playing back a file, set the screen resolution to 640x480 (AltiVec optimized swscale is unscaled)
Code:
xrandr -s 640x480
then use these parameters in your command
Code:
mplayer -vo x11 -ao sndio -fs
Code:
xrandr -s 1360x768
My Xorg.conf looks like this
Code:
Section "OutputClass"
Identifier "Radeon"
MatchDriver "radeon"
Driver "radeon"
EndSection
Section “Device”
Identifier “devname”
Driver “radeon”
Option “MigrationHeuristic” “greedy”
Option “ColorTiling” “on”
EndSection
Section “Monitor”
Identifier “Monitor0”
ModelName “TV”
EndSection
Section “Screen”
Identifier “Screen0”
Device “radeon”
Monitor “Monitor0”
SubSection “Display”
ViewPort 0 0
Modes “1360x768”
EndSubSection
EndSection
My sysctl.conf looks like this
Code:
machdep.allowaperture=2
Attachments
Last edited: