You are not logged in.

#1 2013-09-26 12:10:39

stozi
Member
Registered: 2010-03-02
Posts: 149

[Solved] mplayer cli: root ok, user "FATAL: cannot initialize video...

From the command line I can play videos as root but not as user. As user, with an identical (empty) .mplayer/config as root, '$ mplayer file' gets only audio and

...
Error opening/initializing the selected video_out (-vo) device.
...

while '# mplayer file' as root plays & produces

...
VO XOverlay need a subdriver
[VO_SDL] Using driver: fbcon.
Could not find a UTF-8 locale, some keys will not be handled.
vo: couldn't open the X11 display ()!
==============================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec family
libavcodec version 55.12.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==============================================================
...

instead.

I've tried a few -vo options. caca 'works.'

Last edited by stozi (2013-09-26 20:27:49)

Offline

#2 2013-09-26 14:11:47

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] mplayer cli: root ok, user "FATAL: cannot initialize video...

which gpu/drivers are you using?

Offline

#3 2013-09-26 14:40:10

stozi
Member
Registered: 2010-03-02
Posts: 149

Re: [Solved] mplayer cli: root ok, user "FATAL: cannot initialize video...

Radeon HD 7290, xf86-video-ati.

I noticed that since yesterday I can't even open a jpg with fbv without 'permission denied to /dev/fb0.' Added myself to video group, no change with mplayer though.

Last edited by stozi (2013-09-26 15:03:42)

Offline

#4 2013-09-26 18:55:37

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [Solved] mplayer cli: root ok, user "FATAL: cannot initialize video...

aah okay, so you're trying to watch videos in framebuffer console (i.e. not in X)? I have no experience with that, but maybe you could try -vo sdl since the output from when you used it as root seems to indicate it's using that.

did you relogin and check that your user is actually in video group(via groups command) after you added your user in it?

Offline

#5 2013-09-26 20:03:27

stozi
Member
Registered: 2010-03-02
Posts: 149

Re: [Solved] mplayer cli: root ok, user "FATAL: cannot initialize video...

Thanks, yes, I've tried all that. also -vo sdl:fbcon, and many choices from -vo help.

Edit: I found correct syntax is 'mplayer -vo sdl:driver=fbcon filename.' this gave me an error concerning a mouse, which led me to the solution of running

export SDL_NOMOUSE=1

after that, 'mplayer filename' works fine smile

This is a bit out of left field, I'll see about adding it to the mplayer wiki.

Last edited by stozi (2013-09-26 20:26:21)

Offline

Board footer

Powered by FluxBB