k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Having trouble watching videos in VLC?

Tue Sep 18, 2018 3:48 pm

Having trouble watching videos in VLC?

So was I, so I braved it, & installed Kodi, it has a weird interface, but it works, I can now watch videos on my desktop RPi3B setup. :D

If you follow suit, be aware that it starts up at full volume, needs altering pronto. ;)

User avatar
topguy
Posts: 5177
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Having trouble watching videos in VLC?

Tue Sep 18, 2018 6:10 pm

Yes, VLC dont use HW decoding of video so if has mediocre performance, there are 100+ threads about it on the forum.

That is why we have omxplayer:
https://www.raspberrypi.org/documentati ... /README.md ( this page should go I think.. too brief )
https://www.raspberrypi.org/documentati ... xplayer.md

Not bashing Kodi here, its just a bit of overkill if you just want to watch some video.

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Tue Sep 18, 2018 6:34 pm

I had noticed mention of this OMXplayer, but I thought it must be something special, as in special purpose software. :roll: :o

So, but those links, it is something similar to mplayer/mpv, which I looked for but didn't find. ;)

I shall give it a try out for future reference, or maybe as my replacement, as I'm not very keen on the interface of Kodi. :D

Thanks for taking the time to post. 8-)

DirkS
Posts: 9691
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Having trouble watching videos in VLC?

Tue Sep 18, 2018 6:37 pm

k-pi wrote:
Tue Sep 18, 2018 6:34 pm
I shall install it, & give it a try out for future reference, or maybe as my replacement, as I'm not very keen on the interface of Kodi. :D
You don't need to install Kodi to use omxplayer.
You can use it from the command line. And there's also @gkreidl's omxplayergui

User avatar
topguy
Posts: 5177
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Having trouble watching videos in VLC?

Tue Sep 18, 2018 7:07 pm

k-pi wrote:
Tue Sep 18, 2018 6:34 pm
I had noticed mention of this OMXplayer, but I thought it must be something special, as in special purpose software. :roll: :o

So, but those links, it is something similar to mplayer/mpv, which I looked for but didn't find. ;)
"Special" as in the official optimized mediaplayer from the people that make the Pi ;-)

Its basically a commanline tool just like "mplayer" and "mpv". ( Which both are also installable with a simple "apt-get install" btw. but they have the same problem as VLC. )
As someone above posted, you can find gui for OMXplayer too.

fruitoftheloom
Posts: 18482
Joined: Tue Mar 25, 2014 12:40 pm

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 7:51 am

topguy wrote:
Tue Sep 18, 2018 7:07 pm
k-pi wrote:
Tue Sep 18, 2018 6:34 pm
I had noticed mention of this OMXplayer, but I thought it must be something special, as in special purpose software. :roll: :o

So, but those links, it is something similar to mplayer/mpv, which I looked for but didn't find. ;)
"Special" as in the official optimized mediaplayer from the people that make the Pi ;-)

Its basically a commanline tool just like "mplayer" and "mpv". ( Which both are also installable with a simple "apt-get install" btw. but they have the same problem as VLC. )
As someone above posted, you can find gui for OMXplayer too.

omxplayerGUI see:

https://www.raspberrypi.org/forums/view ... hp?t=40860
adieu

My other Computer is an Asus CS10 ChromeBit

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 8:45 am

So - I gave it a go last night - I had to kill it by switching off mains power! :shock:

It wouldn't respond to the keyboard commands - & I really hate pulling power on a computer.

So what went wrong?

P.S. Again, started out at full volume, beware of that, don't wear headphones. 8-)

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 8:56 am

From using omxplayer at the command line, the help screen showed I should use ./omxplayer -p -o hdmi test.mkv
But having ./ at the front was obviously wrong, as it wouldn't start, so I went with omxplayer -p -o hdmi my.mp4
This started playing OK, but didn't respond to the keyboard.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 21312
Joined: Sat Jul 30, 2011 7:41 pm

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 9:02 am

Here are the official docs for omxplayer

https://www.raspberrypi.org/documentati ... xplayer.md
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 9:07 am

Thanks jamesh - I already have it bookmarked. ;)

(I think starting a program with volume at 100% is bad practice though.)

Code: Select all

--vol n                 set initial volume in millibels 
What's a millibel?

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 9:19 am

Hmm, so what this thread has shown so far, is that VLC, mplayer, & mpv are all 'broken' as regards to playing videos, (their main purpose). :lol:

This is a sad situation. :mrgreen:

fruitoftheloom
Posts: 18482
Joined: Tue Mar 25, 2014 12:40 pm

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 9:22 am

k-pi wrote:
Wed Sep 19, 2018 9:19 am
Hmm, so what this thread has shown so far, is that VLC, mplayer, & mpv are all 'broken' as regards to playing videos, (their main purpose). :lol:

This is a sad situation. :mrgreen:

They are not broken, they have not been compiled with Hardware Acceleration.

Semantics :roll:
adieu

My other Computer is an Asus CS10 ChromeBit

User avatar
topguy
Posts: 5177
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 9:38 am

k-pi wrote:
Wed Sep 19, 2018 8:56 am
From using omxplayer at the command line, the help screen showed I should use ./omxplayer -p -o hdmi test.mkv
But having ./ at the front was obviously wrong, as it wouldn't start, so I went with omxplayer -p -o hdmi my.mp4
This started playing OK, but didn't respond to the keyboard.
- "./" is for when you have a program/script in current directory you want to use.

- What is special about your keyboard ? Are you doing this over SSH or not ?

- Most medialplayers I have used over the last 15 years start with 100% volume, turn down your amplifier/screen instead.

LTolledo
Posts: 914
Joined: Sat Mar 17, 2018 7:29 am

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 9:53 am

Have not used VLC due to its known problems.

Tried omxplayer from time to time when I want to watch and browse at the same time.
Keyboard controls for omxplayer work on my setup.

And yes... I set the amp volume first before playing any playable media on omxplayer.....

If there is already a compiled version of VLC (for raspbian) in the repository then that is the time I'll try it again...
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 10:32 am

topguy wrote:
Wed Sep 19, 2018 9:38 am
- What is special about your keyboard ?
I know ./ is for when you run from your directory, but that's what it said! :D

Keyboard is a standard USB, nothing at all unusual about it, omxplayer just didn't respond to it! :o

P.S. Re sound level, my distro is & was set at 20%, this program just took over my sound card at full volume! :x

User avatar
topguy
Posts: 5177
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 10:48 am

k-pi wrote:
Wed Sep 19, 2018 10:32 am
P.S. Re sound level, my distro is & was set at 20%, this program just took over my sound card at full volume! :x
You did use the "-p" audio passtrough option after all, which means send digital sound directly to the HDMI without any modification.

k-pi
Posts: 678
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Having trouble watching videos in VLC?

Wed Sep 19, 2018 3:12 pm

That being the case, it wasn't clear from their sample command that it would bypass the system it was running on. :shock:

Could do with clearer info.

(Just in case you think I'm a newbie, I'm not, I've been using Linux & BSD since 1999.)

Return to “Raspbian”