linux video player that scale itself and run using command line

SuperRoot
SuperRoot used Ask the Experts™
on
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

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
John TsioumprisSoftware & Systems Engineer
Commented:
Strange because i know for a fact that mpv does full screen nicely...i watched recently a clip in 720p scaled nicely to 1680x1050...probably something with VGA/monitor detection.
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
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

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:
Why dont you run 'tasksel' and install ful-fledged desktop environment for full video support (xfce and lxde are the smallest ones)
And see all your commands working?
Then set up autologin and put your video wall commands in a session startup?

Some media player may depend on window manager to set full screen window and on video driver scaling video to that window.
I can confirm all your commands do proper fullscreen on much older hardware inside X11.

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 TsioumprisSoftware & Systems Engineer
Commented:
How about for a test to use a linux distro solely for video playback like LibreElec
Top Expert 2015
Commented:
Please use X11 as non-root user?

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:
Same result? Does it access fbdev under x11?
Intel sort of programs X11 driver themselves, and it should work always and well.

can you try loding kodi (formerly known as xbmc), which is fully featured HTPC software?
http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux
It runs in a X11 session and is very smart about video accelerations and driver bugs, i.e. plays any video possible without any special parameters.
Found out the problem is with nuc supportability it has Linux OS. I was getting a lot of errors with hdmi and pulse audio when I run vlc player from cli. The driver got installed but it looks like it's for different nuc hardware. Here http://www.intel.com/content/www/us/en/support/boards-and-kits/intel-nuc-boards/000005628.html

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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial