debojitacharya
Posts: 4
Joined: Sun Aug 30, 2015 12:53 pm

VLC player for Raspberry PI 2

Sat Sep 19, 2015 1:54 pm

I am using Raspberry Pi 2 B+ Model and I want to use VLC player to run videos but it can't run videos properly because it gets stuck on first frame in GUI mode.

I am also trying to stream webcam video with it but it can't display the stream.


Please tell me how do I get this problem resolved and is there any alternate application to do this?

johndavies
Posts: 205
Joined: Fri Dec 20, 2013 1:00 pm

Re: VLC PLAYER FOR RASPBERRY PI 2

Sat Sep 19, 2015 2:52 pm

I am surprised no one has answered this yet since the solution is so simple. Why do you not use omxplayer? It is part of the software downloaded when you set up the Pi. It has hardware acceleration; VLC does not have any easily available form of hardware acceleration as far as I know. You use the LXTerminal and type in omxplayer /path to the videofile/name of videofile. If there are any spaces between parts of the path, you have to put inverted commas at the start and end of the part e.g.
omxplayer /media/usb/Downloads/"Kew On A Plate"/"01 Spring.mp4". The last two parts of the path have spaces and so need inverted commas at the beginning and the end. The first three parts do not have spaces and so do not need inverted commas. These first three parts tell omxplayer where the video file is stored. The fourth part is the directory containing the videofile and the fifth part is the actual videofile. You can find the full path very quickly by finding the videofile you want to play, right clicking on it and choosing the copy path option. The you paste it into the LXTerminal aftyer typing "omxplayer" and leaving a space. If you choose to have Minimal Kiosk Browser as your main browser you only have to click on the videofile and choose to load it with omxplayergui. This will load files which have spaces. You should notice that many videofiles have full stops or the underscore character instead of spaces

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13100
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: VLC player for Raspberry PI 2

Sat Sep 19, 2015 3:50 pm

generic VLC cannot use the PI's GPU to decode video's, and using the CPU is far too slow.
There is a specific Raspberry PI build of VGC that does use the PI's GPU accelerated video decoders.

p.s. Had do delete two duplicates of this post, please do not post a question twice!

debojitacharya
Posts: 4
Joined: Sun Aug 30, 2015 12:53 pm

Re: VLC player for Raspberry PI 2

Sun Sep 20, 2015 7:19 am

I have used omxplayer but this player doesn't stream webcam and it's only a command line utility.

I was only able to open my webcam using the omxplayer but the color was not normal but how do I stream it like VLC?

I want Raspberry Pi to stream the USB webcam as well as to display it's output through the HDMI output of Raspberry Pi.

Plz help me to resolve this problem.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13100
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: VLC player for Raspberry PI 2

Sun Sep 20, 2015 2:33 pm

I already did, use the PI specific re-compiled and modified VLC.

NPlayer
Posts: 8
Joined: Thu Nov 27, 2014 10:37 am

Re: VLC player for Raspberry PI 2

Thu Dec 17, 2015 10:21 am

mahjongg wrote:I already did, use the PI specific re-compiled and modified VLC.
Hi! Where is this "specific re-compiled and modified VLC"?

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: VLC player for Raspberry PI 2

Thu Dec 17, 2015 10:30 am

NPlayer wrote:
mahjongg wrote:I already did, use the PI specific re-compiled and modified VLC.
Hi! Where is this "specific re-compiled and modified VLC"?
There are issues with Compiling a Hardware Accelerated VLC, this is the end of the long post:

viewtopic.php?f=66&t=59814&start=200#p848293

It may be prudent to seek out another solution for whatever you want to achieve....
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: VLC player for Raspberry PI 2

Thu Dec 17, 2015 10:35 am

NPlayer wrote:
mahjongg wrote:I already did, use the PI specific re-compiled and modified VLC.
Hi! Where is this "specific re-compiled and modified VLC"?
Aye, there's the rub!
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

NPlayer
Posts: 8
Joined: Thu Nov 27, 2014 10:37 am

Re: VLC player for Raspberry PI 2

Thu Dec 17, 2015 10:37 am

Yeah, I know, just that the response from mahjongg was son confident on vlc working with VLC and HW accel that wanted to know where he got the files.

I want to stream video files from a computer to two raspberry pi connected each one to an hdmi monitor. I want to do it via LAN. I tried the actual version of VLC, but with a RPi 2 runs with problems due to not using hw acceleration. Do you know some way to achieve what I want? Any help would be really appreciated :D

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: VLC player for Raspberry PI 2

Thu Dec 17, 2015 12:33 pm

NPlayer wrote:Yeah, I know, just that the response from mahjongg was son confident on vlc working with VLC and HW accel that wanted to know where he got the files.

I want to stream video files from a computer to two raspberry pi connected each one to an hdmi monitor. I want to do it via LAN. I tried the actual version of VLC, but with a RPi 2 runs with problems due to not using hw acceleration. Do you know some way to achieve what I want? Any help would be really appreciated :D
Use omxplayer. There are also some GUIs available if you do not want to use the command line version.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

QuietZone
Posts: 89
Joined: Sat Dec 05, 2015 7:13 pm

Re: VLC player for Raspberry PI 2

Thu Dec 17, 2015 10:04 pm

Use omxplayer.
is certainly the correct answer in the "is" world.

But not in the "ought" world.
"If you haven't got anything nice to say about anybody come sit next to me." — Alice Roosevelt Longworth

willembuitendyk
Posts: 12
Joined: Thu Jun 25, 2015 2:52 am

Re: VLC player for Raspberry PI 2

Fri Dec 18, 2015 4:55 am

Funny I thought VLC had HW acceleration as of Jessie. I just loaded Jessie this morning and tried streaming an RTSP and it worked marvellously . It would freeze before on Wheezy but now its only suffering a small lag. How would one check if it has HW acceleration built in?

Ok - forget what I said. I see that the CPU usage is quite high. However, it still plays smoother than it did in wheezy.

NPlayer
Posts: 8
Joined: Thu Nov 27, 2014 10:37 am

Re: VLC player for Raspberry PI 2

Fri Dec 18, 2015 8:57 am

willembuitendyk wrote:Funny I thought VLC had HW acceleration as of Jessie. I just loaded Jessie this morning and tried streaming an RTSP and it worked marvellously . It would freeze before on Wheezy but now its only suffering a small lag. How would one check if it has HW acceleration built in?

Ok - forget what I said. I see that the CPU usage is quite high. However, it still plays smoother than it did in wheezy.
I tried an UPD stream of a .mp4 file from a computer with VLC. How can I do the same but with a RTSP stream? It could improve the quality up to my needs.

willembuitendyk
Posts: 12
Joined: Thu Jun 25, 2015 2:52 am

Re: VLC player for Raspberry PI 2

Fri Dec 18, 2015 11:30 pm

I tried an UPD stream of a .mp4 file from a computer with VLC. How can I do the same but with a RTSP stream? It could improve the quality up to my needs.
I'm streaming from a dedicated ip camera. It sounds like you are trying to connect to another PC with VLC streaming out. I haven't tried this but imagine its possible. For the ip camera my command is just: vlc rtsp://ipaddress

Return to “Beginners”