We help IT Professionals succeed at work.

linux video player that scale itself and run using command line

SuperRoot
SuperRoot asked
on
666 Views
Last Modified: 2017-04-03
I used mplayer, vlc, totem, and mpv but none worked the way I want to. All of them doesn't auto scale on the size of the screen and doesn't even do full screen even though their manual says so. It shows the video in the middle of the screen and that's it... Kind of annnoying...

Do you know any other video player that can run full screen, autoscale to whatever the size of the screen, can automatically detect the sound output, and can run via CLI? I don't anything else that can run on ubuntu...

here's a good example of commands I used to run vlc,mpv, and mplayer that didn't work

/usr/bin/mpv -fs video.mp4
/usr/bin/mplayer -vo fbdev2 -fs video.mp4
/usr/bin/vlc -fs video.mp4
Comment
Watch Question

John TsioumprisIT Supervisor
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Top Expert 2015

Commented:
Mplayer scales well. Are you using X11?

Author

Commented:
I do have X11 but i have my nuc boot up on cli but default

Author

Commented:
This is the command I used to play my video:

 /usr/bin/mplayer -vo fbdev2,x11 -xy 1280 -fs -zoom -ao alsa video.mp4

There's not even a sound on the video which I find really really weird.
Top Expert 2015

Commented:
NUC is not an operating system. Please configure your Operating System to start X11 and all video acceleration in your video card will start working. e.g. fbdev does not support any hardware video playback acceleration.

Author

Commented:
umm I know nuc is not an OS.  :) Its an intel hardware. On my description above, I mentioned that I'm using ubuntu and I'm hoping to find a better tool for playing video.

This is what I did so far and I see i

export DISPLAY=:0
startx&
vlc -f --play-and-exit --no-embedded-video video.mp4

It showed up the video now but on a smaller scale on the upper left hand side of the screen. I still dont have any audio though. Is there any options in vlc that I'm missing?
Top Expert 2015
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I reinstall the ubuntu with gnome desktop and use vlc instead of mplayer. Problem now is that when I run it, the video starts on the terminal window where it should show on the tv. This is the command I ran:

/usr/bin/mplayer -vo fbdev2,x11 -ao alsa -dr -fs −nolirc -noconsolecontrols video.mp4 <--Nothing showed up

This is the error I get:

root@nuc01:/home/nucuser# vlc -f --play-and-exit --no-embedded-video -Idummy video.mp4
VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[00000000023798f8] pulse audio output error: PulseAudio server connection failure: Connection refused
[00000000023fef38] core interface error: no suitable interface module
[000000000227e148] core libvlc error: interface "globalhotkeys,none" initialization failed
[00000000023feda8] dbus interface error: Failed to connect to the D-Bus session daemon: Failed to connect to socket /tmp/dbus-33Xi1t3QfG: Connection refused
[00000000023feda8] core interface error: no suitable interface module
[000000000227e148] core libvlc error: interface "dbus,none" initialization failed
[00000000023fef38] dummy interface: using the dummy interface module...
[00007fd4f0001268] xcb vout display error: window not available
[00007fd4f0001268] xcb vout display error: window not available
[00007fd4f0001268] xcb vout display error: window not available
[00007fd4f0001268] xcb vout display error: window not available
commandline read: vlc
commandline read: -f
commandline read: --play-and-exit
commandline read: --no-embedded-video
commandline read: -Idummy
commandline read: video.mp4

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-24 12:33) 
(*) Direct/Memcpy: Using libc memcpy()
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Lid Switch (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Sleep Button (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Power Button (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Video Bus (4) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Wireless Keyboard/Mouse (5) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Wireless Keyboard/Mouse (6) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: ITE8713 CIR transceiver (7) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HDA Intel PCH Mic (8) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HDA Intel PCH Headphone Front (9) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HDA Intel PCH Front Headphone S (10) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: HDA Intel PCH HDMI/DP,pcm=3 (11) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse (1) 1.0 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse (2) 1.0 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Surface: Allocated 1920x1080 32 bit RGB32 buffer (index 0) at offset 0 and pitch 7680.
[00007fd4f0001268] directfb vout display error: Cannot create primary surface
[00007fd4f0001268] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)

Open in new window


Any thoughts?
John TsioumprisIT Supervisor
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Top Expert 2015
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Yeap tried it as ubuntu user and still same problem. I even rebuild the nuc to centos 7, ubuntu 14, and ubuntu 16 and all have same result. This intel hardware is such a pain to work with
Top Expert 2015
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
There's no actual solution. The problem exists on the HDMI capability on NUC and Ubuntu. Looks like a driver but I already installed the driver. I'm still not sure why this is not autoscaling.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions