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 15th June 2010
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Default Question about mplayer and video playback

Hello to all. I'm new to your community and found your forum very helpful while I was configurating the OS.

First things first. I managed to install OpenBSD 4.7 to my laptop and the whole setup of my system was very easy with the man pages (got openbox working, network is up, etc.).

For one week now I even do all stuff from the terminal, which I begin to find more easy than navigating through file managers. No more clicks and windows for me.

Now to the point: I installed mplayer and I have some questions. I can't find any info about the .conf file. The only thing I found was on man pages and it was the only thing I didn't find helpful. Am I supposed to create it from scratch? Also I noticed that every video I play, somehow "stucks" every 5-10 seconds for a moment (although I think that this will be solved with the configuration of the .conf file). Why is this happenning?


My video card is intel x3100 and I'm on OpenBSD 4.7 x64 (due to dual core).

edit: I think I have to raise shmem segments or something like that... where's that now? (and I thought the video player would be the easiest part... lol)

Last edited by Daffy; 15th June 2010 at 12:30 PM.
Reply With Quote
  #2   (View Single Post)  
Old 15th June 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

mplayer is a third party program. You'll find documentation and additional information at the mplayer website: http://www.mplayerhq.hu

If you have specific questions about the OpenBSD implementation of mplayer, such as how sndio(4) can be used with it, we might be able to help.

As for "hesitation" every few seconds -- it may be the video or audio output choice you are using. I have also seen stuttering on an Intel Atom, single core, when using Hyperthread and the GENERIC.MP kernel. Using GENERIC (bsd.sp) instead cleared that up for me.
Reply With Quote
  #3   (View Single Post)  
Old 18th June 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Most instances of sttuering I've seen with mplayer are due to the vo selected, or using it over a slow connection. Slow CPUs also occur.

the conf file is pretty much as stated in the "CONFIGURATION FILES" section of the manual. It's basically a set of option=value pairs with # comments, where the 'option' part is the same as -option, or sth like that.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 20th June 2010
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Default

Thank you both for your posts. They helped me to search.

The last few days I keep reading more about OpenBSD and I'm getting into it. I solved some problems but others occured.

Now for instance, I'm trying to configure sysctl and I keep getting the following error:

Code:
# sysctl -w machdep.userldt=1
sysctl: second level name userldt in machdep.userldt is invalid
Even with security level at 0 (I even tried at -1!), I keep getting the same error.

p.s. if I must open a new topic, please send me a pm to modify this message and open a new topic.
Reply With Quote
  #5   (View Single Post)  
Old 20th June 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Daffy View Post
p.s. if I must open a new topic, please send me a pm to modify this message and open a new topic.
In general, we ask that threads stay on one central subject. Meandering threads can be hard to follow, & they can make searching difficult.

However, the following is straight-forward:
Quote:
...I'm trying to configure sysctl and I keep getting the following error:

Code:
# sysctl -w machdep.userldt=1
sysctl: second level name userldt in machdep.userldt is invalid
If you look at the manpage for sysctl(8), there is no -w switch.
Reply With Quote
  #6   (View Single Post)  
Old 20th June 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Actually ocicat, the -w flag wasn't always implicit as it is now.. traditionally the argument was needed to indicate "write".

It's still supported by the program, but it's a no-op now.. as mentioned in the source, it's retained for compatibility.

I confirmed that it works here on OpenBSD 4.7/i386, the problem is possibly related to the user using OpenBSD/amd64, where machdep.userldt is indeed invalid and unnecessary.
Reply With Quote
  #7   (View Single Post)  
Old 20th June 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Here is my mplayer configuration file, it's something I've been tweaking forever.. but.. it mostly works for the things I watch.

You might want to customize it to fit your requirements, most options have command-line equivalents.

Code:
# Write your default config options here!
vo=xv
double=yes
framedrop=yes
hardframedrop=no
# Post processing? can be buggy, but, can improve things in some cases.
#vf=pp
#autoq=80
# Use the native sndio API.
ao=sndio
# Volume normalization.
af=volnorm
# Auto-synchronization, fiddle with this if you have issues, 20 is a good value.
autosync=0
# Disable OSD/subtitles.
noautosub=yes
osdlevel=0
# Use an 8M cache, small but enough.
cache=8192
# If you use it, uncomment this line.
#stop-xscreensaver=yes
# Change if your primary device is different.
dvd-device=/dev/rcd0c
cdda:device=/dev/rcd0c
cdrom-device=/dev/rcd0c
# Reduced program verbosity.. but it breaks mplayerplug-in.
msglevel:all=0
Reply With Quote
  #8   (View Single Post)  
Old 21st June 2010
Pjoter's Avatar
Pjoter Pjoter is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

Hello,

may we know your computer specification BSDfan666?

Thx.

Piotr
Reply With Quote
  #9   (View Single Post)  
Old 21st June 2010
Daffy Daffy is offline
Fdisk Soldier
 
Join Date: Jun 2010
Posts: 73
Default

Quote:
Originally Posted by BSDfan666 View Post
I confirmed that it works here on OpenBSD 4.7/i386, the problem is possibly related to the user using OpenBSD/amd64, where machdep.userldt is indeed invalid and unnecessary.
Thank you! May I ask why? I couldn't find any info on that.

Quote:
Originally Posted by BSDfan666 View Post
Here is my mplayer configuration file, it's something I've been tweaking forever.. but.. it mostly works for the things I watch.

You might want to customize it to fit your requirements, most options have command-line equivalents.

Code:
# Write your default config options here!
vo=xv
double=yes
framedrop=yes
hardframedrop=no
# Post processing? can be buggy, but, can improve things in some cases.
#vf=pp
#autoq=80
# Use the native sndio API.
ao=sndio
# Volume normalization.
af=volnorm
# Auto-synchronization, fiddle with this if you have issues, 20 is a good value.
autosync=0
# Disable OSD/subtitles.
noautosub=yes
osdlevel=0
# Use an 8M cache, small but enough.
cache=8192
# If you use it, uncomment this line.
#stop-xscreensaver=yes
# Change if your primary device is different.
dvd-device=/dev/rcd0c
cdda:device=/dev/rcd0c
cdrom-device=/dev/rcd0c
# Reduced program verbosity.. but it breaks mplayerplug-in.
msglevel:all=0
I used and modified your options and thank you! Finally, it works like a charm...
Reply With Quote
Old 21st June 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Thank you! May I ask why? I couldn't find any info on that.
The LDT doesn't exist in the amd64 architecture. See http://en.wikipedia.org/wiki/Local_Descriptor_Table
Reply With Quote
Reply

Tags
amd64, mplayer, openbsd 4.7, 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
Advice on DVD playback sought Vahagn FreeBSD General 10 14th November 2008 08:09 PM
mplayer do not show subtitle mfaridi OpenBSD Packages and Ports 3 12th November 2008 05:41 AM
mplayer-1.0rc2p2-sdl.tgz and mplayer-1.0rc2p2.tgz bsdnewbie999 OpenBSD General 1 21st June 2008 06:34 AM
mplayer volume cannot increase. bsdnewbie999 OpenBSD General 3 19th June 2008 03:16 PM
MPlayer skins for solaris whispersGhost Solaris 7 12th June 2008 11:06 PM


All times are GMT. The time now is 11:47 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