You are not logged in.
Pages: 1
On arch 08.01
Trying to play movies at the console using
mplayer -vo fbdev >& mp.log *.avi
produced audio but no video, and in mp.log
Can't open /dev/fb0: Permission denied
Error opening/initializing the selected video_out (-vo) device.
I got the same result with fbdev2. As my permissions for /dev/fb0 seemed to be OK,
/home/g # ls -l /dev/fb0
crw-rw---- 1 root video 29, 0 Aug 19 09:04 /dev/fb0
I tried explicitly adding my uid at the end of the 'video' group in /etc/group,
video:x:91:g
which failed thus
VO: [fbdev] 720x304 => 720x304 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Playing it as root produced the same result.
Full mp.log was
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing Pirates (Roman Polanski).avi.
libavformat version 55.33.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
AVI: ODML: Building ODML index (3 superindexchunks).
VIDEO: [XVID] 720x304 24bpp 23.976 fps 2109.8 kbps (257.5 kbyte/s)
Clip info:
Software: VirtualDubModRus 1.5.10.2 (build 2540/release)
Title: Ïèðàòû / Pirates (1986)
Artist: SENATOR (BDRip 720)
Copyright: HQ-ViDEO (www.hq-video.ru)
Comments: 14.04.2009
Load subtitles in ./
Can't open /dev/fb0: Permission denied
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 55.52.102 (internal)
AUDIO: 48000 Hz, 2 ch, floatle, 224.0 kbit/7.29% (ratio: 28000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (00.0) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.0 (00.0) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.1 (00.0) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.1 (00.0) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.1 (00.0) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.1 (00.1) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.2 (00.1) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.2 (00.1) of 90954.0 (25:15:54.0) ??,?% [J
A: 0.2 (00.2) of 90954.0 (25:15:54.0) 0.3% [J
A: 0.2 (00.2) of 90954.0 (25:15:54.0) 0.3% [J
A: 0.3 (00.2) of 90954.0 (25:15:54.0) 0.3% [J
A: 0.3 (00.2) of 90954.0 (25:15:54.0) 0.3% [J
A: 0.3 (00.2) of 90954.0 (25:15:54.0) 0.3%
Last edited by porphyry5 (2014-09-28 17:58:21)
Offline
You will have to size the video. Example:
mplayer -vo fbdev2 -vf scale=640:480 YourFile.mp4
Offline
You will have to size the video. Example:
mplayer -vo fbdev2 -vf scale=640:480 YourFile.mp4
Thank you for your help, but I have also tried the scale option, both as scale=1366:768 and scale=1366:-3, which produced the same result as without scaling. As you can readily see, the essential problem is that mplayer is being refused access to /dev/fb0. Here is mp.log when using
mplayer -vo fbdev -vf scale 640:480 *.avi >& mp.log
MPlayer SVN-r37224 (C) 2000-2014 MPlayer Team
210 audio & 441 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing Rashomon.avi.
libavformat version 55.33.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [DIVX] 576x432 24bpp 23.976 fps 1002.8 kbps (122.4 kbyte/s)
Clip info:
Software: Nandub v1.0rc2
Title: Rashomon
Subject: Rashomon
Artist: Directed by Akira Kurosawa
Copyright: Offered by LabMonkey©
Comments:
Load subtitles in ./
Can't open /dev/fb0: Permission denied
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 32.0 kbit/2.27% (ratio: 4000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.1 (00.0) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.1 (00.0) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.1 (00.1) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.1 (00.1) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.1 (00.1) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.2 (00.1) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.2 (00.1) of 182358.1 (50:39:18.1) ??,?% [J
A: 0.2 (00.2) of 182358.1 (50:39:18.1) ??,?% [J
Last edited by porphyry5 (2014-08-23 16:06:15)
Offline
And "sg video -c "mplayer test.avi "' works?
Offline
And "sg video -c "mplayer test.avi "' works?
No, it did this
sg video -c "mplayer Rashomon.avi"
Password:
sg: failed to crypt password with previous salt: Invalid argument
~/Films/Rashomon $ sg video -c "mplayer Rashomon.avi"
Password:
sg: failed to crypt password with previous salt: Invalid argument
~/Films/Rashomon $
The only password on this machine is for 'root'. The two attempts are with no password and with root's password.
Offline
For me this works
mplayer -vo fbdev2 -vf scale=640:480 1.mp4
What you posted with your syntax does not.
mplayer -vo fbdev -vf scale 640:480 YourFile.avi
If I use your syntax I get.
mplayer -vo fbdev -vf scale 640:480 1.mp4 >& mp.log
........
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x7f17ca4e4ec0]using unscaled yuv420p -> bgra special converter
VO: [fbdev] 638x360 => 638x360 BGRA
Can't put VSCREENINFO: Invalid argument
In fact I can't get -vo fbdev to function at all.
Can't open /dev/fb0: Permission denied
Device nodes are not accessible to user. If I specify the node as user it fails
mplayer -vo fbdev2 /dev/fb0 -vf scale=640:480 1.mp4 >& mp.log
However if I specify node as root it plays ok.
su
Password:
# mplayer -vo fbdev2 /dev/fb0 -vf scale=640:480 1.mp4 >& mp.log
I have
ls -l /dev/fb0
crw-rw---- 1 root video 29, 0 Aug 19 08:23 /dev/fb0
I can also play a video with
sg users -c "mplayer -vo fbdev2 -vf scale 640:480 1.mp4"
Don't know what you have wrong, trying to give you some info to go on.
Offline
Adding user to video group will fix that.
Offline
su Password: # mplayer -vo fbdev2 /dev/fb0 -vf scale=640:480 1.mp4 >& mp.log
Don't know what you have wrong, trying to give you some info to go on.
I get consistently the same response from both fbdev and fbdev2, as previously reported.
Running it as root as you have above produces
/home/g/Films/Repentance1984 # mplayer -vo fbdev2 /dev/fb0 -vf scale=640:480 *.avi
...
Playing /dev/fb0.
File not found: '/dev/fb0'
Failed to open /dev/fb0.
and thereafter it proceeds as usual.
Persisting with the theory that their is something wrong with the permissions,
in /etc/udev/rules.d/10-local.rules I added
KERNEL=="fb[0-9]*", NAME="fb/%n", SYMLINK+="%k", GROUP="video"
And now I get exactly the same response under all conditions, root or user, fbdev or fbdev2,
specifying /dev/fb0 or not I get
Can't open /dev/fb0: No such file or directory
Error opening/initializing the selected video_out (-vo) device.
And, by the way, as far as I can read dmesg, fb0 does exist
[ 2.677271] Console: switching to colour frame buffer device 170x48
[ 2.682930] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
But according to ls
/home/g/Films/Repentance1984 # ls -l /dev/fb0
ls: cannot access /dev/fb0: No such file or directory
I assume this results from adding that udev rule, as prior to that I had /dev/fb0. I'll remove the udev rule and check.
No such luck, /dev/fb0 was not restored, and I seem to be digging myself deeper into this hole. At this point I think a fresh install of arch is the easiest route to take and will do so. Thank you all for your help.
Last edited by porphyry5 (2014-08-26 20:39:49)
Offline
OK I have the issue cleared up. As teckk advised one must be logged in as root and use fbdev2, e.g
mplayer -vo fbdev2 -vf scale=1366:768 film.avi
But there are further complications:
1) On my system at least arch, 09/04, it will only work on tty1. Why this should be, I have no idea.
2) Every 10 minutes or so the screen would go blank, requiring a keystroke to restore the picture. This can be avoided by running the command
# setterm --blank 0
before running the movie. Interestingly, this setterm command also will only run on tty1, on others it is rejected. According to the manual the --blank option only applies on virtual terminals.
Again, many thanks to all who responded to this thread.
Offline
Pages: 1