Friday, October 18, 2013

Tutorial: VLC with hardware acceleration on Raspberry Pi

Hello everyone!

It's no secret that the Raspberry Pi has been a huge success ever since it was launched!
It's quite handy for prototyping, teaching programming, as a mini PC and it's also very widely used as media center box for the home TV.

Talking about media I you'll agree with me that many immediately think about VLC.
VLC has been very popular as a media player supporting almost every format as also as library (libvlc) used to develop applications with audio and video capabilities!

Well mixing those two, Raspberry Pi and VLC, might seem the perfect combination to most of you right? This would result in a small little box able to play almost every format and as the raspberry has HD capabilities it seems just perfect as media box for your home TV set!
Well that's what I first thought of too but as it turned out, VLC didn't support hardware acceleration on the Raspberry Pi since the beginning! So the perfect combination wasn't possible!

Luckily enough, after a long time, patches and custom modules were released to the VLC source code just for the Raspberry.
Now the problem was to find how to use that. It wasn't much talked about as most users ended up adopting Raspbmc, a media player with hardware accelerated video decoding on the raspberry.

Still for some people, like me, it was important to get VLC running with hardware acceleration on th Raspberry! For me it was mainly for development purposes (libvlc) !

I searched for a long time on the internet but didn't find any tutorial, binary or whatever version of VLC with hardware acceleration enabled so I decided to share this tutorial for all those who don't really understand how to compile VLC from source with hardware acceleration activated.

So here we go:

NOTE: I have compiled it under Raspbian distribution!

Step 0: environment preparation - build tools installation:

    # apt-get install git libtool build-essential pkg-config autoconf

Step 1: get VLC sources from git:

    # git clone git://git.videolan.org/vlc.git
    # cd vlc
    # ./bootstrap

Step 2: configure enabling the important modules for hardware acceleration on raspberry:

    # install all these libraries needed by VLC and it's modules:

               liba52-0.7.4-dev libdirac-dev libdvdread-dev libkate-dev 
               libass-dev libbluray-dev libcddb2-dev libdca-dev
               libfaad-dev libflac-dev libmad0-dev libmodplug-dev
               libmpcdec-dev libmpeg2-4-dev libogg-dev libopencv-dev
               libpostproc-dev libshout3-dev libspeex-dev libspeexdsp-dev
               libssh2-1-dev liblua5.1-0-dev libopus-dev libschroedinger-dev 
               libsmbclient-dev libtwolame-dev libx264-dev libxcb-composite0-dev 
               libxcb-randr0-dev libxcb-xv0-dev libzvbi-dev
 
      (thanks to user gkreidl on the http://www.raspberrypi.org forums
       for listing all those :))
 
    # ./configure --enable-rpi-omxil --enable-dvbpsi
                  --enable-x264 <other_modules_you_might_need>
     (Info: the modules listed above used to configure
            the installation are the ones absolutely
            needed to enable hardware acceleration.
            You might need to enable or disable some
            others depending on your needs!) 
     (Info: I am not sure anymore If the --enable-dvbpsi
            --enable-x264 are required but it surely
            doesn't hurt :) The most important here
            is --enable-rpi-omxil)
     Update: depending on the modules you enable you most
             likely need to install third party libraries.
             configure will fail and tell you what library
             is missing. You'll have to install it and
             run configure all over again! Bring patience
             as you'll most likely have to repeat this a
             few times
 
Step 3: compile:

    # make clean
    # make
 
Step 4: how to run it with hardware acceleration enabled from command line:

    # ./vlc --vout omxil_vout <other_params_you_might_need>

     (Info: you absolutely have to use the
            param --vout omxil_vout for vlc
            to use the custom video output
            for raspberry!)

Step 6 (optional): !!! AT YOUR OWN RISK !!!
                             If you wish to playback HD content it is strongly recommended
                             to overclock your raspberry. You can download an example of a
                             config.txt file here: http://ul.to/48oyrf1z
                            You can either add the options in the overclock section in this config.txt
                            file to yours or simply replace your /boot/config.txt file with this one.
                            My tests showed the raspberry to run around +/-50°C when playing
                            back HD content.

Well guys that's it. This is the way I successfully compiled VLC with hardware acceleration enabled on Raspberry Pi! Libvlc is also working like a charm :)

Hope this helps a lot of people out as I remember seeing lots of folks asking for this.

Nice coding ;)


UPDATE:
I forgot to mention that you might have to slightly overclock your Raspberry if you want to run fullscreen 1080p completely lag-free.
I'll post my Raspberry configuration file here on monday with the adequate overclocking configurations.

UPDATE 2:
I updated the tutorial with some missing important information! I also got asked if I could upload an already compiled version so I'll try to do that tomorrow!

COMPILED VERSION FOR DOWNLOAD HERE:
I uploaded my compiled version! You can download it here if you do not wish to compile for your specific needs:
    http://intensecode.blogspot.com/2013/10/download-compiled-vlc-with-hardware.html


72 comments:

  1. great work Helder. Just want to confirm, does it support 1080p H.264 playback?

    ReplyDelete
    Replies
    1. Hello, thank you :) it does playback 1080p H.264 although it consumes a bit more CPU than the Omxplayer. I overclocked the Raspberry for it to run lag free HD. I can post my config file for the overclocking here on monday if you wish :)

      Delete
  2. Wow if this works, then it is the answer to all my Raspi prayers as the only thing I haated about Raspi was that incredibly basic OMXPlayer

    ReplyDelete
    Replies
    1. Trust me it worked for me :) If you have any issue you can always ask me for help :) Just want to mention that in order to watch 1080p you may have to slightly overclock your Raspberry. I'll add that information to the main post on monday as I don't have access to my Pi right now.

      Delete
    2. I'll try to post the compiled version tomorrow

      Delete
    3. Please :)

      http://intensecode.blogspot.com/2013/10/download-compiled-vlc-with-hardware.html

      Delete
  3. Oh My god this is much harder than I thought it would be. I have been at it for about 16 hours now and still not finished. It's like every library has another library which needs another library. I wish there was a "./configure --just-install-the-fucking-thing" flag.

    ReplyDelete
    Replies
    1. Yes you got to bring patience :) Welcome to linux compilation hell :)

      Delete
    2. Please :)

      http://intensecode.blogspot.com/2013/10/download-compiled-vlc-with-hardware.html

      Delete
    3. Nothing compared to Windows compilation hell, there is a wikipedia page dedicated to dll hell. :)

      Thanks for the tutorial very helpful!

      Delete
  4. Did you have any trouble installing package x264? I basically lost my mind trying to get the thing installed properly on Raspi as all the instructions are for Ubuntu

    ReplyDelete
  5. After a long compilation process (during make), I got an error out of nowhere. Sadly I am on putty so I can't cut and paste either.

    demux/oggseek.c: 1119:1: error: unrecognizable insn:
    (insn 266 265 267 6 (set ( subreg:SI (reg:DI 213 [p_stream_4(D)->i_keyframe_offset])0)...

    I'm starting to think it would be easier if you made a disk image via 'dd', uploaded that here, and just have people install all the other programs they had previously installed =)

    ReplyDelete
    Replies
    1. Well as I mentioned in Update 2 I'll upload a compiled version! I wanted to do it yesterday but didn't have time. I'll try to do it today

      Delete
    2. Please :)

      http://intensecode.blogspot.com/2013/10/download-compiled-vlc-with-hardware.html

      Delete
  6. Finally got it to work, a few comments in case Heldar wants to update this tutorial, or for people struggling to install this:

    1) you absolutely need gcc-4.7 as running it with gcc-4.6 (or I presume any older gcc) causes the 'unrecognizable insn' error I mentioned above. This can easily be done with `sudo apt-get install gcc-4.7`
    2) once you get through the installation, issuing the command `vlc` will not work as it is installed locally to the folder you were working on, so instead try `.vlc`

    Also, Heldar, any advice as to how and where to move these files to? Right now everything is stored in my /home/user/downloads folder as I am used to the usual configure-make-make install routine which stores the files in the correct place. Should I just drag the entire folder over to /usr/bin =P

    ReplyDelete
    Replies
    1. Thanks I'll add your suggestions to the tutorial. Didn't notice your comment before :)

      Delete
  7. I have all the dependencies that gkreidl pointed out, and I am getting the following error when I run `vlc/cvlc --vout omxil_vout` (note, I get the exact same error for both the version I built and the precompiled version I downloaded) and nothing opens, but I can still hear audio:

    main interface error: no suitable interface module
    mainlibvlc error: interface "globalhotkeys,none" initialization failed
    main video output error: video output creation failed
    main decoder error: failed to create video output

    If I run it without the ` --vout omxil_vout` flag, the movie opens and it writes the name of the movie in the bottom of the screen, and the screen dimensions are correct, and I still hear audio, but there is no video, just a black screen.

    Any idea what could be going wrong as I dont know where to begin as is. Thanks

    ReplyDelete
    Replies
    1. main interface error: no suitable interface module
      mainlibvlc error: interface "globalhotkeys,none" initialization failed

      You can ignore those.

      main video output error: video output creation failed
      main decoder error: failed to create video output

      It seems not to be finding the video output module.
      The --vout omxil_vout is mandatory! It's this parameter that tells VLC to use the custom raspberry OMXIL video output instead of the non- accelerated one!

      I have tested it again here and it works! Can you please post the complete command you're using here and the type of file.

      Delete
    2. The exact commands issued are as such (on both my version and yours):

      vlc --vout omxil_vout movie.mkv

      and `file movie.mkv` returns the following

      movie.mkv: Matroska data

      I tried it with another file of type:

      movie.mp4: ISO Media, MPEG v4 system, version 2

      And I still got the same problem

      Also, I get the two following statements, though they are not errors

      [matroska,webm @ 0xb70ba0] Estimating duration from bitrate, this may be inaccurate
      [matroska,webm @ 0xb5f09fa0] Estimating duration from bitrate, this may be inaccurate

      If I run

      vlc -v --vout omxil_vout movie.mkv

      Here is the full verbose output (note I am doing this via putty, so ignore the X11 errors for the moment, I still can not run it locally either):

      VLC media player 2.2.0-git Weatherwax (revision 2.1.0-git-1098-g5e5a9ad)
      [0x13339e8] main libvlc warning: cannot read /home/raspi/downloads/vlc/src/.libs/vlc/plugins/plugins.dat (No such file or directory)
      [0x13b7878] main interface error: no suitable interface module
      [0x13339e8] main libvlc error: interface "globalhotkeys,none" initialization failed
      [0x13b78e0] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
      [0x13b78e0] main interface error: no suitable interface module
      [0x13339e8] main libvlc error: interface "dbus,none" initialization failed
      [0x13339e8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
      [0x13b78e0] [cli] lua interface: Listening on host "*console".
      VLC media player 2.2.0-git Weatherwax
      Command Line Interface initialized. Type `help' for help.
      > [matroska,webm @ 0xb612caa0] Estimating duration from bitrate, this may be inaccurate
      [matroska,webm @ 0xb6119e40] Estimating duration from bitrate, this may be inaccurate
      [0x13b7098] main video output error: video output creation failed
      [0x13fbc28] main decoder error: failed to create video output
      [0x13fbc28] main decoder warning: can't get output picture
      [0x13fbc28] avcodec decoder warning: disabling direct rendering
      [0x13b2d28] main audio output warning: playback too late (64295): up-sampling
      [0x13b2d28] main audio output warning: timing screwed (drift: 128763 us): stopping resampling
      [0x13b2d28] main audio output warning: playback too late (143249): up-sampling
      [0x13b2d28] main audio output warning: playback way too late (185936): flushing buffers

      Delete
    3. main libvlc warning: cannot read /home/raspi/downloads/vlc/src/.libs/vlc/plugins/plugins.dat (No such file or directory)

      That's your problem right there! Somehow it can't find the modules folder thus it can't find the video output module either!

      Did you extract the entire folder in the rar archive I uploaded?

      Delete
    4. Yes I extracted the whole rar archive via `rar x archive.rar`

      Delete
  8. So that file/folder path (src/.libs/vlc/plugins/plugins.dat) does not exist in either my build or yours, both of them stop at src/.libs/

    ReplyDelete
    Replies
    1. Hi, you do know that a file/folder name that starts with a '.' is a hidden file/folder? So you maybe are browsing the folder with a file explorer and do not see the .libs folder? It is hidden but you still can browse to it by entering the path manually

      Delete
  9. I think I figured it out. During configure I have to tell vlc where to look for things like x264 (you mentioned this with ""). Problem is, I don't know where my x264 directory is. How can I find it?

    ReplyDelete
    Replies
    1. I went through the compilation process using the Helder's zip file. It is tedious but not difficult. The easiest way is to open up 2 shell windows. Running configure in one window. When configure comes back with errors, scroll through the list of error, then type the command "apt-cache search whatever_package_was_missing" then press enter. A list of packages will be displayed. Type "sudo apt-get install whatever_package_was_missing" for all the missing packages. You should be able to get configure to run successful after a few tries. Compilation process takes a few hours though...

      Delete
    2. Hi Dahn Le, there is a list of libraries in the tutorial above which you can install before running configure so you don't have to do trial and error every time :)

      Delete
  10. Hello
    Thanks for that, it perfectly works for me.
    But I don't know how to enable gui interface. I only have the video output without interface.
    Do you know how to do this ?
    Thanks

    ReplyDelete
    Replies
    1. Hi to enable GUI you have to compile it with the GUI module you wish enabled. It is one of the mentionned in the configure step :)

      Delete
    2. Hello
      Yes, sorry for that question, I didn't notice that it was necessary to enable qt module.

      But, now, I would like to know if it's possible to include the video "inside" the GUI because, for now, I only have the video playing in fullscreen, without a frame and hidding the contol GUI. I would like to play in a tiny window for example… is there another module to add in the configure step ?

      Thanks for you answers

      Delete
  11. Hello I got this error although I installed Alsa. Any idea ?
    configure: error: No package 'alsa' found. alsa-lib 1.0.24 or later required.

    ReplyDelete
    Replies
    1. You probably are missing the alsa library. You have to install it first

      Delete
    2. I have the same problem, and when i try to install alsa-lib or alsa-utils it tells me that I have the latest version already installed.
      Any Ideas?

      Delete
  12. Could you show us your configure options? I have been at this for 20 days now, and even if I manually copy all the files around it still complains that I have no codecs. I am guessing vlc doesn't know where to look for them. Also I should point out that even your compiled binary doesn't know where to look for these codecs

    ReplyDelete
  13. Hello,
    Like all rapsberry are identical, it would be possible to distribute a binary package?


    ReplyDelete
    Replies
    1. @DV8000 he did upload a compiled version, I'm pretty sure that is what you are looking for. However, it does not work on my raspi, complaining that I have no plugins installed (they are all installed)

      Delete
    2. Yes I did indeed upload a compiled binary:
      http://intensecode.blogspot.com/2013/10/download-compiled-vlc-with-hardware.html

      It does work except for pukster it seems.

      @Pukster:
      Where did you copy the vlc folder to? (exact path)
      How are you executing it? (exact command with params)

      Delete
  14. Hello, during configuration i`m have this error: alsa package not found, but i alrady have all alsa packages (base, tools, utils). Reinstalling packages don`t help. I`m try to compiling it on raspbian.
    Please can you help me with this question.

    ReplyDelete
    Replies
    1. try this and tell me if it helps:

      apt-get install libasound2-dev

      Delete
  15. Hi. Could you temme how you fixed this exception while using vlcj? I tried all the four options listed but this never went.

    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Failed to load the native library.
    The error was "JNA native support (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path (vlcjExample.jar)".
    The required native libraries are named "libvlc.so" and "libvlccore.so".
    In the text below represents the name of the directory containing "libvlc.so" and "libvlccore.so"...
    There are a number of different ways to specify where to find the native libraries:
    1. Include NativeLibrary.addSearchPath("vlc", ""); at the start of your application code.
    2. Include System.setProperty("jna.library.path", ""); at the start of your application code.
    3. Specify -Djna.library.path= on the command-line when starting your application.
    4. Add to the system search path (and reboot).

    ReplyDelete
    Replies
    1. Just the vlcj-2.4.1.jar.
      P.S. The program works fine in my linux machine

      Delete
    2. I just tried building it along with jna and the platform jars. Still no sucess

      Delete
  16. I think a better way to do that on raspbian is to do:

    apt-get source vlc
    apt-get build-dep vlc
    cd vlc-
    DEB_BUILD_OPTIONS="--enable-rpi-omxil" fakeroot debian/rules binary
    cd ..
    dpkg -i vlc-.deb

    ReplyDelete
    Replies
    1. Raspbian repository version does not support --enable-rpi-omxil after grepping for something else i stumbled upon this:

      ./config.log:configure:50325: WARNING: unrecognized options: --enable-rpi-omxil

      Delete
  17. Hey,

    it's now possible to stream via raspberrypi to PC or Mobile Devices?

    ReplyDelete
    Replies
    1. You should be able to stream with raspberry but I think you always were. This tutorial solves the video decoding and output problem only, the rest was already working before

      Delete
  18. HI, I have a big question, actually I'am looking for a solution like http://www.piwall.co.uk/

    They uses OMXPlayer for magnify the video on each RPI and the position to "tile" and create the wall. It work's well when you setup correctly like in they config page.

    The thing is, OMXPlayer has some troubles to play RTP or RTSP stream. With that you only can run some movie you have in the SD card or USB stick.

    I know VLC can handle without hassle RTP and RTSP stream and has two interestings functions.

    The first one is the filter "ZOOM" like in the piwall project "Magnify"
    The second one "WALL" in Windows it create some separate windows and you can put them into each screen but you need a lot of graphic card for 9 screens.

    I would like to know if the filter magnify run well in your binaries and if it's possible to do a config file like for OMXPlayer?

    Thank's in advance for your answer

    ReplyDelete
    Replies
    1. Hi I have never used that filter and cannot give you a decent answer. Why not try it out and share your results with us Sorry for the delayed answer. Have been very busy lately

      Delete
  19. Hi Helder,

    I take your package and I've read everything in your two pages about VLC and unfortunatly I can't run VLC

    root@(none):/vlc# ./vlc --vout omxil_vout Skyfall.mp4
    ./vlc: error while loading shared libraries: libvlc.so.5: cannot open shared object file: No such file or directory

    Can you help me? maybe I need to put the vlc folder somewhere or make some links?

    If I look for the ibvlc.so.5 with find cmd the file exist
    root@(none):/# find / -name "libvlc.so.5"
    /vlc/lib/.libs/libvlc.so.5

    I don't understand that.

    ReplyDelete
    Replies
    1. Nice you found it, I have been quite busy lately. Sorry for not answering to you

      Delete
  20. I found a solution, I put my vlc folder on the root and run this cmd

    ln -s /vlc/lib/.libs/libvlc* /usr/lib/
    ln -s /vlc/src/.libs/libvlc* /usr/lib/

    and it seems working with my video. I hope it help Pukster

    ReplyDelete
  21. Hey there. Thanks for this great guide. I am already running vlc and have only a little problem with playing fullscreen. the videofile (PAL widescreen) is sized to fit the screen (1920x1080). But I can still see the background above and below the playing video. I already tried the --fullscreen option and also --intf dummy with no success. Following messages appear on the console:

    > ./vlc --vout omxil_vout -f --intf dummy --no-osd --no-audio --repeat ~/v2.mp4

    VLC media player 2.2.0-git Weatherwax (revision 2.1.0-git-2065-gfe1ac6e)
    [00b26510] core xml reader error: XML reader not found
    [00b4a0a8] core interface error: no suitable interface module
    [00aa39d0] core libvlc error: interface "globalhotkeys,none" initialization failed
    [00b4a0a8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
    [00b4a0a8] core interface error: no suitable interface module
    [00aa39d0] core libvlc error: interface "dbus,none" initialization failed
    [00b4f2d8] dummy interface: using the dummy interface module...
    [00b9b130] core vout display error: Failed to change zoom
    [00b9b130] core vout display error: Failed to set on top

    The last two lines repeat everytime the video loops. Maybe I am missing something somewhere.

    ReplyDelete
    Replies
    1. set --width and --height params according to your screen resolution

      Delete
    2. Example:

      if your screen resolution is 1920*1080 (Full HD) set following params:
      --width=1920 --height=1080

      notice it's double dashes before the params

      Delete
  22. I followed your instruction on this page till step 3: and following error message occurred on 'make' command. I am new to Raspberry Pi. Let me know if you have any clue what is going on. Thank you.

    Error Message:
    CC codec/omxil/libomxil_vout_plugin_la-qcom.lo
    CC video_chroma/libomxil_vout_plugin_la-copy.lo
    CCLD libomxil_vout_plugin.la
    CC codec/libx264_plugin_la-x264.lo
    CCLD libx264_plugin.la
    CC demux/libflacsys_plugin_la-flac.lo
    CC demux/libflacsys_plugin_la-xiph_metadata.lo
    CCLD libflacsys_plugin.la
    CC demux/libogg_plugin_la-ogg.lo
    demux/ogg.c: In function ‘Ogg_DecodePacket’:
    demux/ogg.c:1079:2: warning: #warning Memory leak [-Wcpp]
    demux/ogg.c:1306:9: warning: call to ‘harmful_delay.constprop.2’ declared with attribute warning: use proper event handling instead of short delay [enabled by default]
    CC demux/libogg_plugin_la-oggseek.lo
    demux/oggseek.c: In function ‘Oggseek_GranuleToAbsTimestamp’:
    demux/oggseek.c:815:1: error: unrecognizable insn:
    (insn 332 331 333 6 (set (subreg:SI (reg:DI 225 [ p_stream_5(D)->i_keyframe_offset ]) 0)
    (sign_extend:SI (mem/s:QI (plus:SI (reg/v/f:SI 190 [ p_stream ])
    (const_int 1080 [0x438])) [0 p_stream_5(D)->i_keyframe_offset+0 S1 A64]))) demux/oggseek.c:790 -1
    (nil))
    demux/oggseek.c:815:1: internal compiler error: in extract_insn, at recog.c:2109
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See for instructions.
    Preprocessed source stored into /tmp/ccJfiP8x.out file, please attach this to your bugreport.
    make[4]: *** [demux/libogg_plugin_la-oggseek.lo] Error 1
    make[4]: Leaving directory `/vlc/modules'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/vlc/modules'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/vlc/modules'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/vlc'
    make: *** [all] Error 2
    root@raspberrypi:/vlc#

    (i might have accidentally submitted the same post on here, but for some reason it is not publishing on here, my apologies for that.)

    ReplyDelete
  23. Does this also enable hardware acceleration when transcoding with VLC?

    ReplyDelete
    Replies
    1. I have't used it for transcoding so I can't give you a clear answer to that one.
      Maybe you could try out and share with us.

      Delete
  24. I was able to get this working! Very nice! Thank you so much!
    One issue though.

    Implementations in vlcj do not work (I am passing --vout omxil_out). The video lags beyond recognition or freezes on first frame for any file type. vlc is fine when launched as standalone program.

    I know you are busy, but me and my local museum would be extremely grateful for any advice!

    ReplyDelete
  25. This comment has been removed by the author.

    ReplyDelete
  26. I get the error "main libvlc error: No plugins found! Check your VLC installation."
    Help?

    ReplyDelete
  27. I am trying to compile this raspi VLC for Debian wheezy armel but the omxil_vout not work. I get an error that video core cant open image.. only audio works.

    All libs are in place .
    Opens the videos without vout omxil_vout.

    The question is:

    Is possible to compile this vlc in debian wheezy armel raspi?
    I need some help !

    Thanks!

    ReplyDelete
    Replies
    1. I find the solution for armel :

      Copy all the raspi firmware (include , bin , lib, sbin ) to inside usr same folders.

      Then compile and will work.

      I post it just in case someone that not use raspbian .

      Delete
  28. Hi Helder,

    Wonderful tutorial mate. I managed to build the VLC player and it seems working fine. Only problem was that I wanted to display a rtsp stream encoded in H.264 and it fails with following.

    Your input can't be opened.
    VLC is unable to open the MRL 'rtsp://192.168.0.17:554'. Check your log for details.

    I set a log file name path but there is no log created.

    Any ideas?

    Thanks,
    Kay

    ReplyDelete
  29. Can you use it for Hardware accelerated encoding?

    ReplyDelete
  30. Downloaded the compiled rar file. Problems unpacking on RPi (unrar-free threw multiple unpacking errors). So unrar-ed it on my laptop, zipped it there and unzipped on the RPi. Comments: must be unpacked into /home/pi/vlc or the bin/vlc script doesn't work (should it figure out its directory instead of hard-coded?). Had to chmod a+x a couple of executables that didn't have execute permission (can't remember which ones: trying to run vlc will tell you). Ran bin/vlc script but it couldn't find any plugins: need to set that to modules directory, so that from /home/pi/vlc/bin directory the command is

    VLC_PLUGIN_PATH=../modules ./vlc --vout....

    Then works fine - great job!

    ReplyDelete
  31. Downloaded the vcl source from git and followed your build instructions. In addition to the list of packages required, I had to add the following: libdvbpsi-dev, libmad0-dev, libx264-dev, lua5.2-dev, libxcb-shm0-dev, libxcb-composite0-dev, libxcb-xv0-dev, libxcb-randr0-dev, libgcrypt11-dev, gettext.
    Then it got weird: no matter how I tried to run it I kept getting
    undefined symbol: libvlc_set_app_id
    For some reason only some files were copied to vlc/lib/.libs, some remained in vlc/src/.libs. I had to change the relink command in bin/vlc
    From: -Wl,-rpath -Wl,/home/pi/vlc/lib/.libs
    To: -Wl,-rpath -Wl,/home/pi/vlc/lib/.libs -Wl,-rpath -Wl,/home/pi/vlc/src/.libs
    Then it worked fine from my own compile - so now I can add whatever modules I like!

    ReplyDelete