LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   MPlayer fails playing movies. Not properly installed? (https://www.linuxquestions.org/questions/debian-26/mplayer-fails-playing-movies-not-properly-installed-4175630963/)

stf92 06-01-2018 08:55 AM

MPlayer fails playing movies. Not properly installed?
 
Hi: I have just installed mplayer with the command
Code:

apt-get install mplayer
Then I tested it with a movie I have in the hard disk. However,
Code:

root@debian:/sd# mplayer Logan\'s\ Run.mp4

MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Logan's Run.mp4.
libavformat version 57.56.101 (external)
Mismatching header version 57.56.100
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7006400]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  770x360  24bpp  23.980 fps  696.5 kbps (85.0 kbyte/s)
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.64.101 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 title: Logan's Run - https://archive.org/details/LogansRunMovie
 encoder: Lavf55.45.100
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 128.2 kbit/4.54% (ratio: 16027->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 2.14:1 - prescaling to correct movie aspect.
VO: [xv] 770x360 => 772x360 Planar YV12
A:  0.1 V:  0.0 A-V:  0.116 ct:  0.000  0/  0 ??% ??% ??,?% 0 0


Exiting... (End of file)
root@debian:/sd#

Possible cause?

snowday 06-01-2018 08:59 AM

Can you try as a non-root user?

stf92 06-01-2018 09:33 AM

Unbelievable! As a regular user it plays fine! Thanks a lot. And why this restriction?

jlinkels 06-01-2018 03:17 PM

root does not have the correct terminal assigned. It cannot start a GUI application.

jlinkels

stf92 06-01-2018 06:48 PM

However I can start X as root if I like. I just type 'startx'. That seems to me kind of an artificial restriction imposed by the developers.

jlinkels 06-01-2018 11:12 PM

No it's not. StartX is executed by root, but that is the X server. Your DE runs with your credentials. When you log in, you get a graphical terminal assigned. Root does not. It is fairly easy to set an environment variable in your root shell to get a graphical terminal assigned.

jlinkels

AwesomeMachine 06-04-2018 09:05 AM

You can startx as root, but you can't log in to the gui as root.


All times are GMT -5. The time now is 01:48 PM.