linux video player that scale itself and run using command line

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
LVL 1
SuperRootAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John TsioumprisSoftware & Systems EngineerCommented:
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.
0
gheistCommented:
Mplayer scales well. Are you using X11?
0
SuperRootAuthor Commented:
I do have X11 but i have my nuc boot up on cli but default
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

SuperRootAuthor 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.
0
gheistCommented:
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.
0
SuperRootAuthor 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?
0
gheistCommented:
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.
0
SuperRootAuthor 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?
0
John TsioumprisSoftware & Systems EngineerCommented:
How about for a test to use a linux distro solely for video playback like LibreElec
0
gheistCommented:
Please use X11 as non-root user?
0
SuperRootAuthor 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
0
gheistCommented:
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.
0
SuperRootAuthor Commented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SuperRootAuthor 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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.