{"id":256169,"date":"2023-03-01T23:40:38","date_gmt":"2023-03-01T15:40:38","guid":{"rendered":"https:\/\/blog.zhenglei.net\/?p=256169"},"modified":"2023-03-01T23:40:38","modified_gmt":"2023-03-01T15:40:38","slug":"videojs-of-piwigo","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=256169","title":{"rendered":"videojs of piwigo"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>Install:<\/strong><\/p>\n\n\n\n<p>Suppose that the piwigo have been installed at the dir of <\/p>\n\n\n\n<p>PIWIGO_DIR=\/opt\/local\/data\/www\/gallery,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O piwigo-videojs.zip https:\/\/github.com\/xbgmsharp\/piwigo-videojs\/archive\/master.zip\n\nunzip piwigo-videojs.zip\n\nsudo mv    piwigo-videojs-master ${PIWIGO_DIR}\/piwigo-videojs\nsudo chown ${PHP_USER}  -R       ${PIWIGO_DIR}\/piwigo-videojs\nsudo chgrp ${PHP_GROUP} -R       ${PIWIGO_DIR}\/piwigo-videojs<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Customize bin path<\/strong><\/p>\n\n\n\n<p>Suppose that ffmpeg,mediainfo,exiftool,ffprobe have been installed at \/opt\/local\/bin\/<\/p>\n\n\n\n<p>Add the following line into the file of  ${PIWIGO_DIR}\/include\/config_default.inc.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$conf&#091;'vjs_mediainfo_dir']='\/opt\/local\/bin\/';\n$conf&#091;'vjs_exiftool_dir']='\/opt\/local\/bin\/';\n$conf&#091;'vjs_ffprobe_dir']='\/opt\/local\/bin\/';\n$conf&#091;'ffmpeg_dir']='\/opt\/local\/bin\/';<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Update media info of your video<\/strong><\/p>\n\n\n\n<p>Go to the admin page of your gallery, <\/p>\n\n\n\n<p>Select the album with video ,<\/p>\n\n\n\n<p>Edit the album,<\/p>\n\n\n\n<p>Manager the image of the album<\/p>\n\n\n\n<p>Select video file<\/p>\n\n\n\n<p>Launch the videos batch operation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install: Suppose that the piwigo have be &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=256169\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-256169","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256169"}],"version-history":[{"count":1,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256169\/revisions"}],"predecessor-version":[{"id":256170,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/256169\/revisions\/256170"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}