Page 14 of 17

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Wed Dec 14, 2016 6:28 pm
by gkreidl
It seems that the dependency issues have been fixed.
Run the apt-get install command again and report back if there are any problems left.

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Sat Jan 14, 2017 3:29 pm
by sassabetudo
I want play dts audio with vlc installed in raspberry pi 3.

My raspberry pi 3 is connected to sony receiver (hdmi port).

When I play vlc, receiver does not turn on dts led.

How do I adjust vlc audio settings for receiver show on dts led?

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Sun Jan 22, 2017 10:18 pm
by willy_pinguino
I've read only a part of this discussion then forgive me if I ask something that some other user had ask before...

in a play list loop, made in vlc, there is the same freeze time than in omx player when go from one vid to the other, playing a folder of vids?

I cannot try it just now, here I got only a RPi 1, and I cannot compile VLC on it...

if not, someone can suggest me an other way to skip the freezing time from a video to another? I need to build a paler machine, but the time of charging (freezing time) make RPi unusable for it :(((

thanks in advance for every answer :)

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Mon Jan 23, 2017 5:18 am
by gkreidl
willy_pinguino wrote:I've read only a part of this discussion then forgive me if I ask something that some other user had ask before...

in a play list loop, made in vlc, there is the same freeze time than in omx player when go from one vid to the other, playing a folder of vids?

I cannot try it just now, here I got only a RPi 1, and I cannot compile VLC on it...

if not, someone can suggest me an other way to skip the freezing time from a video to another? I need to build a paler machine, but the time of charging (freezing time) make RPi unusable for it :(((

thanks in advance for every answer :)
All video players need a certain amount of time to analyze a video file, set up some buffer etc. This highly depends on the container format of the video. Large avi files are much slower to start than MKV files, for example.
omxplayer can only play one file and has to be started again for the next video, which produces some overhead. VLC doesn't have this overhead once it is started. So when playing an m3u playlists with videos using VLC the pause between videos is definitely smaller than running the same playlist with omxplayerGUI (which starts a new omxplayer binary for each video).

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Mon Jan 23, 2017 9:43 am
by willy_pinguino
Thanks for the answer...

I've used omxd to cut a little the wait but still there is a latency from the end of a video and the start of the next one, now I'm willing to test it with vlc.

by the way, in your experience is easy/possible to use shell comands to controll vlc? from remote too via ssh?
I need controll it from a script and remotely but without the http interface

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Mon Jan 23, 2017 10:36 am
by gkreidl
willy_pinguino wrote:Thanks for the answer...

I've used omxd to cut a little the wait but still there is a latency from the end of a video and the start of the next one, now I'm willing to test it with vlc.

by the way, in your experience is easy/possible to use shell comands to controll vlc? from remote too via ssh?
I need controll it from a script and remotely but without the http interface
Yes. you can use cvlc with matching command line options or "vlc --interface=dummy ..." (or similar).

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Sat Feb 11, 2017 6:41 am
by cjan
since my vlc broken, have to recompile again.
this time update firmware userland to kernel-4.4.48-v7+ #962 and vlc-2.2.git it tag 2.2.5, and enable-mmal.
now, with mmal_vout can play dvb-t TV-SD full scareen perfect, TV-HD only one picture(clear) & audio(good).

ps. that is on Pi2, someone may test on Pi3?

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Sat Feb 11, 2017 7:38 am
by gkreidl
cjan wrote:since my vlc broken, have to recompile again.
this time update firmware userland to kernel-4.4.48-v7+ #962 and vlc-2.2.git it tag 2.2.5, and enable-mmal.
now, with mmal_vout can play dvb-t TV-SD full scareen perfect, TV-HD only one picture(clear) & audio(good).

ps. that is on Pi2, someone may test on Pi3?
All versions I compiled with mmal crashed sooner or later. VLC (2.2.4) compiled as described in the OP works like a charm on both RPi2 and 3, including full HD.

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Mon Feb 27, 2017 1:05 pm
by mruano
When I get to this step, I get this error:

[email protected]:~/vlc-2.2.4 $ make -j3
make: *** No targets specified and no makefile found. Stop.

I have a RP3

Thanks in advance for any advice.

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Mon Feb 27, 2017 3:39 pm
by gkreidl
mruano wrote:When I get to this step, I get this error:

[email protected]:~/vlc-2.2.4 $ make -j3
make: *** No targets specified and no makefile found. Stop.

I have a RP3

Thanks in advance for any advice.
Did you run "./bootstrap" successfully?

Did you run './configure' (with all the flags and options as in the OP) successfully?

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Mon Feb 27, 2017 8:10 pm
by mruano
Yes, I did

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 12:33 am
by gkreidl
mruano wrote:Yes, I did
And you are sure you are still in the same directory? The Makefile is produced by the configure script.

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 5:40 am
by mruano
I am not aware of having changed directory, in which directory am I supposed to be in?

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 6:35 am
by gkreidl
mruano wrote:I am not aware of having changed directory, in which directory am I supposed to be in?
Inise the vlc-2.2.4 directory.

Why don't you simply run configure again?

Code: Select all

CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -I/opt/vc/include/GLES2 -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4" CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/mmal -I/opt/vc/include/interface/vchiq_arm -I/opt/vc/include/IL -mfloat-abi=hard -I/opt/vc/include/GLES2 -mcpu=cortex-a7 -mfpu=neon-vfpv4" LDFLAGS="-L/opt/vc/lib" ./configure --prefix=/usr --enable-omxil --enable-omxil-vout --enable-rpi-omxil --disable-mmal-codec --disable-mmal-vout --enable-gles2 --enable-gles1

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 12:00 pm
by mruano
Thanks for the prompt response.

Am I supposed to be in the vlc-2.2.2 directory to re-run configure?

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 12:12 pm
by gkreidl
mruano wrote:Thanks for the prompt response.

Am I supposed to be in the vlc-2.2.2 directory to re-run configure?
Yes, everything has to be run from inside this directory. It should be version 2.2.4 by now (fixed the typo above).

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 2:57 pm
by mruano
Thanks again

I noticed my vlc-2.2.4 directory is still under the downloads directory (where it was extracted. Would that be causing problems?

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue Feb 28, 2017 3:16 pm
by gkreidl
mruano wrote:Thanks again

I noticed my vlc-2.2.4 directory is still under the downloads directory (where it was extracted. Would that be causing problems?
No, as long as you cd into this directory to run all the commands (bootstrap, configure, make).

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Wed Mar 01, 2017 1:22 am
by mruano
It worked!!

Thank you so much!

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Fri May 12, 2017 7:59 pm
by richardcgiroux
Has anyone successfully compiled VLC lately?

I've tried a few instruction sets but no luck. I can eventually get it to compile but it doesn't work as expected. (ie. no HW acceleration)

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Fri May 12, 2017 9:15 pm
by gkreidl
richardcgiroux wrote:Has anyone successfully compiled VLC lately?

I've tried a few instruction sets but no luck. I can eventually get it to compile but it doesn't work as expected. (ie. no HW acceleration)
Which "few instruction sets"?
We are still on Jessie and the way described in the OP should work (I've compiled it at least a dozen times).

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue May 16, 2017 12:41 am
by Bryanrc
gkreidl wrote:
cjan wrote:since my vlc broken, have to recompile again.
this time update firmware userland to kernel-4.4.48-v7+ #962 and vlc-2.2.git it tag 2.2.5, and enable-mmal.
now, with mmal_vout can play dvb-t TV-SD full scareen perfect, TV-HD only one picture(clear) & audio(good).

ps. that is on Pi2, someone may test on Pi3?
All versions I compiled with mmal crashed sooner or later. VLC (2.2.4) compiled as described in the OP works like a charm on both RPi2 and 3, including full HD.
Is their a way I could get a copy of your work. I cannot get it to work for me. I trued to install VLC but I am doing something wrong and I am getting flustered. Please

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue May 16, 2017 7:04 am
by gkreidl
Bryanrc wrote:
Is their a way I could get a copy of your work. I cannot get it to work for me. I trued to install VLC but I am doing something wrong and I am getting flustered. Please
No, it's too large.
If you follow the OP step by step, it should work. If you run into problems, post a clear description of the problem and I might be able to help. "I am doing something wrong" is not a useful description.

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Tue May 16, 2017 11:48 pm
by richardcgiroux
I went back to the OP and followed the instructions. I get this error: "libavutil version 55 and later are not supported"

I modified the configure.ac file as per instruction here:

https://github.com/gobolinux/Recipes/bl ... _3.0.patch

The ./bootstrap and CFLAGS=... command work but "make -j3" fails to compile. Lots of errors about "recipe for all target failed"

Re: Tutorial: Compile VLC with HW acceleration - Jessie, RPi

Posted: Wed May 17, 2017 3:44 am
by gkreidl
richardcgiroux wrote:I went back to the OP and followed the instructions. I get this error: "libavutil version 55 and later are not supported"

I modified the configure.ac file as per instruction here:

https://github.com/gobolinux/Recipes/bl ... _3.0.patch

The ./bootstrap and CFLAGS=... command work but "make -j3" fails to compile. Lots of errors about "recipe for all target failed"
Current libavutil is 54. Did you update to stretch?