{"id":3944,"date":"2014-03-30T06:28:27","date_gmt":"2014-03-30T06:28:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/specify-shared-library-location-for-vlc-collection-of-common-programming-errors\/"},"modified":"2014-03-30T06:28:27","modified_gmt":"2014-03-30T06:28:27","slug":"specify-shared-library-location-for-vlc-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/specify-shared-library-location-for-vlc-collection-of-common-programming-errors\/","title":{"rendered":"Specify shared library location for VLC-Collection of common programming errors"},"content":{"rendered":"<p>I built (from source) a newer version of <code>libavcodec.so<\/code>, <code>libavformat.so<\/code>, etc. than provided by the Ubuntu repositories. (My newer versions are installed in <code>\/usr\/local\/lib<\/code>). Using <code>ldd \/usr\/bin\/vlc<\/code> to list the shared library dependencies of VLC returns a small list:<\/p>\n<pre><code>linux-vdso.so.1 =&gt;  (0x00007fff219fe000)\nlibvlc.so.5 =&gt; \/usr\/lib\/libvlc.so.5 (0x00007fb0622ca000)\nlibvlccore.so.5 =&gt; \/usr\/lib\/libvlccore.so.5 (0x00007fb061fe8000)\nlibpthread.so.0 =&gt; \/lib\/x86_64-linux-gnu\/libpthread.so.0 (0x00007fb061dca000)\nlibdl.so.2 =&gt; \/lib\/x86_64-linux-gnu\/libdl.so.2 (0x00007fb061bc6000)\nlibc.so.6 =&gt; \/lib\/x86_64-linux-gnu\/libc.so.6 (0x00007fb0617fe000)\nlibdbus-1.so.3 =&gt; \/lib\/x86_64-linux-gnu\/libdbus-1.so.3 (0x00007fb0615b8000)\nlibrt.so.1 =&gt; \/lib\/x86_64-linux-gnu\/librt.so.1 (0x00007fb0613b0000)\nlibm.so.6 =&gt; \/lib\/x86_64-linux-gnu\/libm.so.6 (0x00007fb0610ac000)\n\/lib64\/ld-linux-x86-64.so.2 (0x00007fb062512000)\n<\/code><\/pre>\n<p>Notably, <code>libavcodec.so<\/code> is absent, meaning that VLC finds the library at runtime (rather than at compile-time). Is there a way to tell VLC to point to my newer version of <code>libavcodec.so<\/code>, <code>libavformat.so<\/code> and other related libraries (all located in <code>\/usr\/local\/lib<\/code>)?<\/p>\n<p>This is because I am trying to use FFmpeg and Ubuntu provides Libav. Libav doesn&#8217;t have an MSS2 decoder but FFmpeg does. As long as VLC links to Libav, I can&#8217;t play my video files that use MSS2 with VLC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I built (from source) a newer version of libavcodec.so, libavformat.so, etc. than provided by the Ubuntu repositories. (My newer versions are installed in \/usr\/local\/lib). Using ldd \/usr\/bin\/vlc to list the shared library dependencies of VLC returns a small list: linux-vdso.so.1 =&gt; (0x00007fff219fe000) libvlc.so.5 =&gt; \/usr\/lib\/libvlc.so.5 (0x00007fb0622ca000) libvlccore.so.5 =&gt; \/usr\/lib\/libvlccore.so.5 (0x00007fb061fe8000) libpthread.so.0 =&gt; \/lib\/x86_64-linux-gnu\/libpthread.so.0 (0x00007fb061dca000) libdl.so.2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3944","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3944"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3944\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}