Avatar of SuperRoot
SuperRoot
 asked on

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
LinuxShell Scripting

Avatar of undefined
Last Comment
SuperRoot

8/22/2022 - Mon
SOLUTION
John Tsioumpris

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
gheist

Mplayer scales well. Are you using X11?
SuperRoot

ASKER
I do have X11 but i have my nuc boot up on cli but default
SuperRoot

ASKER
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.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
gheist

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.
SuperRoot

ASKER
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?
SOLUTION
gheist

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SuperRoot

ASKER
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?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SuperRoot

ASKER
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
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SuperRoot

ASKER
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.