DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th April 2017
sorkom sorkom is offline
Port Guard
 
Join Date: Jan 2016
Posts: 10
Default Video playback

Good hello all,

I just installed OpenBSD 6.1 on my Lenovo Ideapad 500 and can boot into cwm with no problems. I've installed Firefox and mplayer onto it and have also copied a video file over to it (an exercise video). The processor is a Core i7 with 12GB RAM and a 15.6" display. I tested it with YouTube and found no problems at all. It defaults to playing 1080 video and has no performance problems at full screen. The problem is when I try to use mplayer to play the video as it plays very slowly and has clear lag between screen output and sound. I've run fw_update and saw it installed the radeon drivers for the built-in video card.

Does anyone know how to resolve this issue? If so, how?

Thanks in advance.
Reply With Quote
  #2   (View Single Post)  
Old 13th April 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Is mpv available for OpenBSD? If so, it might be worth a try. (sort of a fork of a fork of mplayer---forkception?)
Reply With Quote
  #3   (View Single Post)  
Old 13th April 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Yes, mpv is available. It's my primary video player.
Reply With Quote
  #4   (View Single Post)  
Old 14th April 2017
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Spam Deminer
 
Join Date: Sep 2014
Posts: 283
Default

To get mpv, mplayer and VLC to work properly on my hardware I had to choose an appropriate video output method. vo = x11 in mpv.conf. For VLC, /Preferences/Video/Output/X11 video output (XCB). Experiment until you find which option works for you.
Reply With Quote
  #5   (View Single Post)  
Old 14th April 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

There's also ffplay. A fairly useless test on an old version of what was CURRENT, but is now outdated, didn't work that well with mpv, but worked better with ffplay. Tomorrow, if I have time, I'll put OpenBSD-6.1 on that laptop. However, it is a completely different model than yours, a yoga2, with Intel video, so even if it works for me, it may not work for you.
Reply With Quote
  #6   (View Single Post)  
Old 14th April 2017
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Look at this thread:
http://daemonforums.org/showthread.p...0016#post60086

If you would like to check whether yours GPU is accelerating OpenGL-based programs you could use this command:
Code:
/usr/X11R6/bin/glxinfo | grep -E -e 'direct rendering' -e  ' {4}Device' -e ' {4}Accelerated' -e '^OpenGL [v,r,v].* string'
You can also use glxgears benchmark and simultaneously look at cpu usage (top command);. Keep in mind this benchmark is too simple to decide which graphics card is better, but is enough to judge whether you have acceleration.
Code:
vblank_mode=1 /usr/X11R6/bin/glxgears  & /bin/sleep 15.4 ; pkill glxgears
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
  #7   (View Single Post)  
Old 14th April 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Hrm, thought I posted this last night, but anyway, I had the same results on a fresh install of 6.1 on a yoga2 with an Intel video card. Using mpv gave me choppy, hard to watch video, while ffplay gave me normal playback. However, another oddity was that ffplay didn't play the subtitles of an mkv video.
Reply With Quote
  #8   (View Single Post)  
Old 14th April 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The mpv and mplayer applications select from multiple "video output drivers" which use different rendering subsystems such as SDL and OpenGL. This might be why sorkom has different results using Firefox and mplayer on the same hardware -- the default renderer being used by each application may be different.
Reply With Quote
  #9   (View Single Post)  
Old 14th April 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

For me, my quick workaround is using ffplay. If I _really _ need subtitles, I'll embed them with ffmpeg.

Obligatory xkcd about workarounds

https://xkcd.com/1822/
Reply With Quote
Old 15th April 2017
sorkom sorkom is offline
Port Guard
 
Join Date: Jan 2016
Posts: 10
Default

Hello all and thanks for all your help thus far. I used the code listed above to determine that the video on my laptop is not accelerated but that my desktop is, both of which have Intel Corei7 processors. Now I need to enable acceleration. Thanks again.
Reply With Quote
Old 15th April 2017
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Whether or not OpenBSD supports your laptop GPU depends on the generation of this GPU. As far as I am concerned Skylake and Kaby Lake are not supported yet. IMHO they are will be in future, because Intel GPUs are favorable in open source operating systems (AMD isn't that bad in Gnu/Linux distros too), but we don't know when. Maybe OpenBSD Devs will update drivers in 2017, maybe in 2018, maybe later.
Anyway you can find details about your hardware in dmesg(8) (built-in base system) and lspci (third-party pciutils package).
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
Old 16th April 2017
sorkom sorkom is offline
Port Guard
 
Join Date: Jan 2016
Posts: 10
Default

Ah, maybe that's why, my desktop has accelerated graphics, because it's an older (Haswell) CPU whilst this one is a newer Skylake chip. Thanks all. Here's to hoping 6.2 fixes this.
Reply With Quote
Old 16th April 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

I also just tried on an older Thinkpad L420 and there, mpv works perfectly.
Reply With Quote
Old 16th April 2017
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Mpv can work without OpenGL acceleration if you use appropriate video output.
http://daemonforums.org/showthread.p...0016#post60086
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase
Reply With Quote
Old 16th April 2017
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Cool, I'll try that tonight.
Just to keep me from having to click when I look at this this evening, the suggestion is

Code:
mpv -vo help
Then,

Code:
mpv -vo xv myfile.mp4
UPDATE: Yup, that did the trick and made mpv's video playback run smoothly. Thanks again.

Last edited by scottro; 16th April 2017 at 09:58 PM.
Reply With Quote
Reply

Tags
lenovo, openbsd 6.1, performance, radeon, video

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with flac files playback on cmus. sepuku OpenBSD Packages and Ports 7 20th November 2011 02:28 PM
x11/xf86-video-intel and x11/xf86-video-intel29? Carpetsmoker FreeBSD Ports and Packages 2 23rd October 2011 01:23 PM
Question about mplayer and video playback Daffy OpenBSD Packages and Ports 9 21st June 2010 02:36 PM
Advice on DVD playback sought Vahagn FreeBSD General 10 14th November 2008 08:09 PM
Video For BSD Fritz_Katz FreeBSD General 11 2nd October 2008 01:33 AM


All times are GMT. The time now is 10:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick