{"id":1029,"date":"2010-08-07T06:20:22","date_gmt":"2010-08-07T10:20:22","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1029"},"modified":"2013-03-20T08:43:16","modified_gmt":"2013-03-20T12:43:16","slug":"ffmpeg-error-while-loading-shared-libraries-libavdevice-so-52-cannot-open-shared-object-file","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/ffmpeg-error-while-loading-shared-libraries-libavdevice-so-52-cannot-open-shared-object-file","title":{"rendered":"ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file"},"content":{"rendered":"<p>The &#8220;loading shared libraries&#8221; error message is received when ffmpeg is not able to locate the file libavdevice.so.52.This happens when either the file is missing from the server OR ffmpeg is not looking at the path the file is in.<\/p>\n<p>The ffmpeg command outputs the following error:<\/p>\n<blockquote>\n<pre># ffmpeg\r\n ffmpeg: error while loading shared libraries: libavdevice.so.52:\r\n cannot open shared object file: No such file or directory<\/pre>\n<\/blockquote>\n<p><strong>Solution:<\/strong><br \/>\nSearch the file libavdevice.so.52 on the server using the &#8216;find&#8217; command<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># find \/ -name libavdevice.so.52<\/span><\/pre>\n<\/blockquote>\n<p>The output will display the complete path to the file for example, \/usr\/local\/lib\/libavdevice.so.52 and you need to add the directory path\u00a0&#8220;\/usr\/local\/lib&#8221; in the &#8216;ld.so.conf&#8217; file.<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># vi \/etc\/ld.so.conf<\/span><\/pre>\n<\/blockquote>\n<p>and add the following at the bottom of the file<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">\/usr\/local\/lib<\/span><\/pre>\n<\/blockquote>\n<p>Save the file and for the new changes to take effect, execute<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># ldconfig<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;loading shared libraries&#8221; error message is received when ffmpeg is not able to locate the file libavdevice.so.52.This happens when either the file is missing from the server OR ffmpeg is not looking at the path the file is in.<br \/>\nThe ffmpeg command outputs the following error:<\/p>\n<p># ffmpeg<br \/>\n ffmpeg: error while loading shared libraries: libavdevice.so.52:<br \/>\n cannot open shared object file: No such file or directory<\/p>\n<p>Solution:<br \/>\nSearch the file libavdevice.so.52 on the server using the &#8216;find&#8217; command<\/p>\n<p># find \/ -name libavdevice.so.52<\/p>\n<p>The output will display the complete path to the file for [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1019,1016,1020,1018,1021,1022,1017],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1029"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1029"}],"version-history":[{"count":6,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1029\/revisions"}],"predecessor-version":[{"id":2227,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1029\/revisions\/2227"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}