When i try to see a video with VLC the CPU goes 100%

New to Debian (Or Linux in general)? Ask your questions here!

Re: When i try to see a video with VLC the CPU goes 100%

Postby Udaba » 2019-04-11 14:51

GarryRicketson wrote:Use code boxes, and show exactly how you wrote and entered the comman, like this:
Code: Select all
garry% vlc big_buck_bunny.mp4
VLC media player 2.2.8 Weatherwax (revision 2.2.7-14-g3cc1d8cba9)
[000011f1b74f4e50] core xml reader error: XML reader not found
[000011f18e069450] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000011f1aa945350] qt4 interface error: Unable to load extensions module
[000011f1af63c650] xcb vout display error: shared memory server-side error: X11 error 10
 

Show the exact output, including any error messages.
Like this: (again)
Code: Select all
garry% vlc "video file name"
VLC media player 2.2.8 Weatherwax (revision 2.2.7-14-g3cc1d8cba9)
[000014b086f57e50] core xml reader error: XML reader not found
[000014b0f786f050] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000014b0d8a34250] qt4 interface error: Unable to load extensions module
[000014b0c5a06750] filesystem access error: cannot open file /home/garry/Videos/Videos/video file name (No such file or directory)
[000014b168d3d550] core input error: open of `file:///home/garry/Videos/Videos/video%20file%20name' failed

Or
Code: Select all
File reading failed:
VLC could not open the file "/home/garry/Videos/Videos/video file name" (No such file or directory).
Your input can't be opened:
VLC is unable to open the MRL 'file:///home/garry/Videos/Videos/video%20file%20name'. Check the log for details.

When i launch it through VLC command i get : Your input cant be opened . VLC is unable to open the MRL FILE :myfile:

I find it hard to believe the filename is "myfile", if you don't use the filename, and have it typed correctly , the command will not work correctly.... use code boxes, and show some real output, please


it wasnt a copy+paste ... i enter the file name correctly , one time with .mp4 at the end , one time without the .mp4 at the end , had the same error .
Udaba
 
Posts: 18
Joined: 2019-03-18 00:35

Re: When i try to see a video with VLC the CPU goes 100%

Postby Wheelerof4te » 2019-04-11 15:13

If you are on GTK based desktop environment (GNOME, Xfce, MATE, Cinnamon), just install gnome-mpv and use that instead of VLC. It uses mpv backend and has more refined GUI than standard mpv program.

We can go around in circles trying to solve the problem, but people sometimes don't have enough time nor patience to do that.
Wheelerof4te
 
Posts: 1423
Joined: 2015-08-30 20:14

Re: When i try to see a video with VLC the CPU goes 100%

Postby Udaba » 2019-04-11 15:21

Wheelerof4te wrote:If you are on GTK based desktop environment (GNOME, Xfce, MATE, Cinnamon), just install gnome-mpv and use that instead of VLC. It uses mpv backend and has more refined GUI than standard mpv program.

We can go around in circles trying to solve the problem, but people sometimes don't have enough time nor patience to do that.

ok im gonna update you when i got home. really thank you .
Udaba
 
Posts: 18
Joined: 2019-03-18 00:35

Re: When i try to see a video with VLC the CPU goes 100%

Postby stevepusser » 2019-04-11 23:42

Your terminal has to be in the same directory as the video file. If you just open a terminal from the menu, it opens in your home folder by default, and the video file isn't there. You can drag and drop the video file from the file manager into the terminal, and it will put the whole path to the file in, so it will work. (unless you have some lame-o desktop that doesn't support that)

You can also get va-api acceleration working on mpv, this is what I have in the .config/mpv/mpv.conf file in my home folder:

Code: Select all
profile=pseudo-gui
input-ipc-server=/tmp/mpvsocket
hwdec=auto-copy



Though the third line is the magic one. The hardware acceleration works with SMPlayer using the mpv backend, but not with gnome-mpv for some reason.

I also have the latest versions of mpv and SMPlayer for Stretch and Jessie in my OBS repo: viewtopic.php?f=6&t=127574
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11319
Joined: 2009-10-06 05:53

Re: When i try to see a video with VLC the CPU goes 100%

Postby Udaba » 2019-04-12 05:54

well i tried gnome-mpv , its doing ok . the cpu is working on 15-20% but still with mpv i dont have all the options i have on vlc . is there any way to fix the vlc please?
Udaba
 
Posts: 18
Joined: 2019-03-18 00:35

Re: When i try to see a video with VLC the CPU goes 100%

Postby None1975 » 2019-04-12 12:22

Udaba wrote:is there any way to fix the vlc please?

VLC has been and will always be like a bag full of bugs. I recommend you try and use Smplayer.
OS: Debian 10.1 Buster / WM: fvwm
Debian Wiki | DontBreakDebian, My config files in github
User avatar
None1975
 
Posts: 956
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: When i try to see a video with VLC the CPU goes 100%

Postby stevepusser » 2019-04-12 17:09

Udaba wrote:well i tried gnome-mpv , its doing ok . the cpu is working on 15-20% but still with mpv i dont have all the options i have on vlc . is there any way to fix the vlc please?


I've tried to explain how to you, but you haven't tried it yet. Please read the part about va-api acceleration for VLC and mpv. I can play even 4K videos on my laptop with 1% extra CPU use (though it's quite a powerful CPU anyway, I also have it working on a less powerful Skylake i5-6200u system).

SMPlayer does have many more features than the rather plain gnome-mpv. I also have a player in my repo called mpc-qt, which uses mpv's libmpv1 engine for playback, and also has many bells and whistles. But if you ignore me again, go pound sand.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11319
Joined: 2009-10-06 05:53

Re: When i try to see a video with VLC the CPU goes 100%

Postby Udaba » 2019-04-13 13:14

well guys thanks for your aid ... i changed this : opengl for embedded systems 2 video output and it fixed it
Udaba
 
Posts: 18
Joined: 2019-03-18 00:35

Re: When i try to see a video with VLC the CPU goes 100%

Postby stevepusser » 2019-04-13 18:32

Oh, so you have one of those quirky BayTrail tablet-like devices? Nice of you to tell us from the start what you were using...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11319
Joined: 2009-10-06 05:53

Re: When i try to see a video with VLC the CPU goes 100%

Postby sickpig » 2019-04-13 21:22

mark it as solved to help others stumbling upon this thread
User avatar
sickpig
 
Posts: 320
Joined: 2019-01-23 10:34

Previous

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable