https://wiki.eprints.org/w/api.php?action=feedcontributions&user=Tomasz.neugebauer%40concordia.ca&feedformat=atomEPrints Documentation - User contributions [en-gb]2024-03-29T00:31:02ZUser contributionsMediaWiki 1.31.8https://wiki.eprints.org/w/index.php?title=Talk:EPrints_and_MySQL_8&diff=16087Talk:EPrints and MySQL 82023-08-22T20:06:27Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>This setting is giving me an error in mysql8: sql_mode = NO_AUTO_CREATE_USER <br />
I don't think this is a valid setting in either MySQL or MariaDB?<br />
<br />
In addition, I get this warning about the other settings:<br />
'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.<br />
<br />
Should we include the following in the sql_mode command/setting: STRICT_TRANS_TABLES ?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Talk:EPrints_and_MySQL_8&diff=16086Talk:EPrints and MySQL 82023-08-22T19:44:53Z<p>Tomasz.neugebauer@concordia.ca: NO_AUTO_CREATE_USER is not a valid sql_mode?</p>
<hr />
<div>This setting is giving me an error in mysql8: sql_mode = NO_AUTO_CREATE_USER <br />
I don't think this is a valid setting in either MySQL or MariaDB?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12571HTTPS-only and HSTS2017-09-27T17:47:07Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the pages in [[:Category:Authentication]] for how to setup up HTTPS on EPrints, for example:<br />
<br />
*[[How_to_use_EPrints_with_HTTPS]]<br />
*[[Setting_up_HTTPS_using_Let%27s_Encrypt]]<br />
<br />
The following is a description of how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
The following are the best practices specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request from an HTTP to a HTTPS request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source lang="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12570HTTPS-only and HSTS2017-09-27T17:46:45Z<p>Tomasz.neugebauer@concordia.ca: /* Google Best Practices for HTTPS */</p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the pages in [[:Category:Authentication]] for how to setup up HTTPS on EPrints, for example:<br />
<br />
*[[How_to_use_EPrints_with_HTTPS]]<br />
*[[Setting_up_HTTPS_using_Let%27s_Encrypt]]<br />
<br />
The following is a description of how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
The following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request from an HTTP to a HTTPS request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source lang="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12569HTTPS-only and HSTS2017-09-27T16:52:20Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the pages in [[:Category:Authentication]] for how to setup up HTTPS on EPrints, for example:<br />
<br />
*[[How_to_use_EPrints_with_HTTPS]]<br />
*[[Setting_up_HTTPS_using_Let%27s_Encrypt]]<br />
<br />
The following is a description of how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request from an HTTP to a HTTPS request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source lang="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12568HTTPS-only and HSTS2017-09-27T16:50:12Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the pages in [[:Category:Authentication]] for how to setup up HTTPS on EPrints, especially:<br />
<br />
*[[How_to_use_EPrints_with_HTTPS]]<br />
*[[Setting_up_HTTPS_using_Let%27s_Encrypt]]<br />
<br />
This page describes how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request from an HTTP to a HTTPS request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source lang="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12567HTTPS-only and HSTS2017-09-27T16:30:34Z<p>Tomasz.neugebauer@concordia.ca: /* HSTS */</p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the following page for [[How_to_use_EPrints_with_HTTPS]]. <br />
<br />
This page describes how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request from an HTTP to a HTTPS request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source lang="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12566HTTPS-only and HSTS2017-09-27T16:17:24Z<p>Tomasz.neugebauer@concordia.ca: /* Add 301 redirects to secure port from HTTP (port 80) */</p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the following page for [[How_to_use_EPrints_with_HTTPS]]. <br />
<br />
This page describes how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request to a HTTPS request and will not issue the HTTP request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source lang="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12565HTTPS-only and HSTS2017-09-27T16:17:08Z<p>Tomasz.neugebauer@concordia.ca: /* Add 301 redirects to secure port from HTTP (port 80) */</p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the following page for [[How_to_use_EPrints_with_HTTPS]]. <br />
<br />
This page describes how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request to a HTTPS request and will not issue the HTTP request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source language="xml"><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12564HTTPS-only and HSTS2017-09-27T16:16:34Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the following page for [[How_to_use_EPrints_with_HTTPS]]. <br />
<br />
This page describes how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request to a HTTPS request and will not issue the HTTP request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.<br />
<br />
=== Changes to apache conf files ===<br />
<br />
==== Add the HSTS header ====<br />
<br />
Add a new include apache-ssl CONF file to the folder /REPOID/cfg/ that has the HSTS header. The max-age variable is a time in seconds for how long the HSTS settings should be remembered by the browser. 15780000 is six months, which is a long time, you may want to set it to a shorter time while testing.<br />
<br />
Header set Strict-Transport-Security "max-age=15780000"<br />
<br />
Include this file from the core apache conf file for the secure port (443) in /etc/<br />
<br />
A new file is required because [[API:bin/generate apacheconf]] overwrites any of the conf files that were already being included.<br />
<br />
==== Add 301 redirects to secure port from HTTP (port 80) ====<br />
<br />
The generate_apacheconf would ideally have some new flags, something like “--sslonly” and “--hsts” , which would generate the correct apache config files for a repository that follows the Google best practice of HTTPS-only with HSTS, but it does not. Thus, one way to introduce the redirect is to overwrite one of the files that are generated by /bin/generate_apacheconf, /cfg/apache/REPOID.conf. This means that you will have to re-apply this redirect (by overwriting the conf file again with the redirect) if/when you need to re-run generate_apacheconf.<br />
<br />
Modify the default port 80 response of Apache to redirect to the secure port, by modifying /cfg/apache/REPOID.conf to:<br />
<br />
<source><br />
<VirtualHost *:80><br />
RedirectPermanent / https://YOUR-REPOSITORY-DOMAIN/ <br />
</VirtualHost><br />
</source></div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12563HTTPS-only and HSTS2017-09-27T15:57:02Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Authentication]]<br />
<br />
== HTTPS with EPrints ==<br />
<br />
See the following page for [[How_to_use_EPrints_with_HTTPS]]. <br />
<br />
This page describes how to configure EPrints so that all content, not just login pages, is served over HTTPS.<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS<br />
<br />
== HSTS ==<br />
<br />
To summarize how HSTS works, if a browser (Chrome, Firefix, IE) sees the HSTS header in the HTTPS response, and there are no certificate errors or mixed content warnings or anything (if it is green), then the next time a user of that browser requests the HTTP page of that site, the browser will modify the request to a HTTPS request and will not issue the HTTP request. The browser will remember that setting for as long as you specify “max-age” to be. This means that even with HSTS, it is still possible to request and receive content over HTTP. To close that down, a server redirect is necessary, so those browsers that haven’t seen the HSTS header in the past that happen to try to go to HTTP will get that initial redirect to HTTPS.<br />
<br />
== Implementing HTTPS-only with HSTS on an EPrints repository ==<br />
<br />
=== Changes to /cfg.d/10_core.pl ===<br />
<br />
Initialize the following variables to be the https URL (i.e., https://YOUR-REPOSITORY-DOMAIN) <br />
<source lang="perl"><br />
$c->{host} = "YOUR-REPOSITORY-DOMAIN"; <br />
$c->{http_url} = 'https://YOUR-REPOSITORY-DOMAIN';<br />
$c->{http_cgiurl} = 'https://YOUR-REPOSITORY-DOMAIN/cgi';<br />
$c->{base_url} = "https://$c->{host}";<br />
</source><br />
<br />
=== Changes to /cfg/lang/en/templates/default.xml, and /cfg/lang/en/static .XPAGE files ===<br />
<br />
Remove any hard coded links to HTTP<br />
If you have Google Search included as an XPAGE file, call on the Google API (and any other APIs) using HTTPS.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=HTTPS-only_and_HSTS&diff=12562HTTPS-only and HSTS2017-09-27T15:41:14Z<p>Tomasz.neugebauer@concordia.ca: Created page with "[Category:Authentication]] == Google Best Practices for HTTPS== That following are the best practice specified by Google (https://support.google.com/webmasters/answer/607354..."</p>
<hr />
<div>[Category:Authentication]]<br />
<br />
== Google Best Practices for HTTPS==<br />
<br />
That following are the best practice specified by Google (https://support.google.com/webmasters/answer/6073543?hl=en&ref_topic=6001951)<br />
<br />
* HSTS Headers on HTTPS<br />
* No “Mixed Content” warnings/errors<br />
* Links point to HTTPS locations<br />
* 301 Redirects from HTTP to HTTPS</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=How_to_use_EPrints_with_HTTPS&diff=12561How to use EPrints with HTTPS2017-09-27T15:36:22Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>{{manual}}<br />
<br />
[[Category:Authentication]]<br />
<br />
'''This guide is intended for EPrints 3.2 or later.'''<br />
<br />
<br />
'''N.B. Setting up your Apache Web server is beyond the scope of this document. Please see your operating system documentation and the Apache documentation for assistance in setting up Apache in your environment.'''<br />
<br />
<br />
== Configuration ==<br />
To start setting up your existing archive to work under HTTPS, you must first edit <tt>archives/[repoid]/cfg/cfg.d/10_core.pl</tt>. Initially it will probably look something like the following which is the basic 10_core.pl configuration file after you have run <tt>bin/epadmin create</tt> to setup your archive. Alternatively you could run <tt>bin/epadmin config_core [repoid]</tt> that will prompt you for the following information. It is suggested that you make a backup of the 10_core.pl file regardless before proceeding.<br />
<br />
$c->{host} = 'your.dnshostname.org';<br />
$c->{port} = 80;<br />
$c->{aliases} = [];<br />
$c->{securehost} = '';<br />
$c->{secureport} = 443;<br />
$c->{http_root} = undef;<br />
<br />
Update the file to define the secure host and modify ports as needed. If your Apache web server is not using the standard ports (80,443) you can adjust the 'port' and 'secureport' parameters in the config file accordingly.<br />
<br />
$c->{host} = 'your.dnshostname.org';<br />
$c->{port} = 80;<br />
$c->{aliases} = [];<br />
$c->{securehost} = 'your.dnshostname.org';<br />
$c->{secureport} = 443;<br />
$c->{http_root} = undef;<br />
<br />
Now, you need to create the directory <tt>archives/[repoid]/ssl/</tt> and then edit the file <tt>archives/[repoid]/ssl/securevhost.conf</tt>. This file should look something like:<br />
<br />
<VirtualHost *:443><br />
<br />
ServerName your.dnshostname.org:443<br />
<br />
Header always set Strict-Transport-Security "max-age=63072000;"<br />
<br />
ErrorLog logs/ssl_error_log<br />
TransferLog logs/ssl_access_log<br />
LogLevel warn<br />
<br />
SSLEngine on<br />
SSLProtocol all -SSLv2<br />
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW<br />
<br />
SSLCertificateFile cert.pem<br />
SSLCertificateKeyFile privkey.pem<br />
SSLCertificateChainFile chain.pem<br />
<br />
SetEnvIf User-Agent ".*MSIE.*" \<br />
nokeepalive ssl-unclean-shutdown \<br />
downgrade-1.0 force-response-1.0<br />
<br />
CustomLog logs/ssl_request_log \<br />
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"<br />
<br />
Include /opt/eprints3/cfg/apache_ssl/[repoid].conf<br />
<br />
PerlTransHandler +EPrints::Apache::Rewrite<br />
<br />
</VirtualHost><br />
<br />
== Generate the Apache Configuration File for HTTPS ==<br />
Run <tt>bin/generate_apacheconf</tt> to generate the secure Apache configuration files and depending upon the version of EPrints you are using, it may copy the default template <tt>archives/[repoid]/cfg/lang/en/templates/default.xml</tt> to the template used for HTTPS <tt>archives/[repoid]/cfg/lang/en/templates/secure.xml</tt>. This will also setup the repository configuration file located in the <tt>/opt/eprints3/cfg/apache_ssl/</tt> directory named [repoid].conf.<br />
<br />
<br />
== Add the Main Apache Config File to SSL Config ==<br />
Depending upon the version of EPrints you are running there are a couple files that may be involved. It is recommended to run <tt>bin/generate_apacheconf --man</tt> or view the source of <tt>bin/generate_apacheconf</tt> file to understand what file(s) need to be setup. In general you will need to place a line like either of the following inside your Apache SSL Virtual Host declaration (most likely found in <tt>/etc/httpd/conf.d/mod_ssl.conf</tt> or <tt>/etc/httpd/conf.d/ssl.conf</tt>). Make sure that these lines are placed inside the <VirtualHost> Apache directive.<br />
<br />
Include /opt/eprints3/archives/[repoid]/var/auto-secure.conf<br />
<br />
Or<br />
<br />
Include /opt/eprints3/cfg/apache_ssl.conf<br />
<br />
=== For Red Hat/Fedora/CentOS Linux ===<br />
<br />
=== For Debian/Ubuntu Linux ===<br />
<br />
<br />
== Restart Apache to pick up the changes to the Apache configuration ==<br />
Consult your operating system documentation on how to restart service processes but in general you need to run one of the following commands either as <tt>root</tt> or using <tt>sudo</tt>:<br />
# /sbin/service httpd restart<br />
<br />
# /etc/init.d/apache2 restart<br />
<br />
<br />
== Confirmation ==<br />
Open your web browser and access your repository via its URL, this should be done over HTTP. When you click to login you should notice that you will be redirected to an HTTPS connection. Note that in general most tasks that require you to login are now redirected to an HTTPS connection otherwise an HTTP request will be used. <br />
<br />
It is also possible to configure EPrints so that it uses [[HTTPS-only and HSTS]].</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12243Video documents2016-12-01T15:19:39Z<p>Tomasz.neugebauer@concordia.ca: /* Audio player Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video and Audio documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
====Video player====<br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
====Audio player====<br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render an audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12242Video documents2016-12-01T15:19:25Z<p>Tomasz.neugebauer@concordia.ca: /* Video player */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video and Audio documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
====Video player====<br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
===Audio player Integration===<br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render an audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12241Video documents2016-12-01T15:19:03Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video and Audio documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
===Video player===<br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
===Audio player Integration===<br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render an audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12240Video documents2016-12-01T15:16:26Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video and Audio documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
===Audio player Integration===<br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render an audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12236Video documents2016-11-21T20:04:48Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video and Audio documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render an audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12235Video documents2016-11-21T20:04:12Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render an audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12234Video documents2016-11-21T20:01:50Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render a audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12233Video documents2016-11-21T20:00:19Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
Similarly, video-js can be used to render audio player using video-js. Note that audio does not have an image preview, so you can use a default blank image, for example:<br />
<br />
<source lang="perl"><br />
#TN - render a audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audio_preview_image = $doc->thumbnail_url("preview");<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
my $audio_preview_image = "/images/default-audio-poster.png";<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12232Video documents2016-11-21T19:58:35Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
Similarly, video-js can be used to render audio elements, for example:<br />
<br />
<source lang="perl"><br />
#TN - render a audio player for audio documents<br />
my $type = "";<br />
my $audioDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "audio"){<br />
my $audio_preview_image = $doc->thumbnail_url("preview");<br />
my $audiomimetype_1="audio/mp4";<br />
my $audio_preview_1 = $doc->thumbnail_url("audio_mp4");<br />
my $audiomimetype_2="audio/ogg";<br />
my $audio_preview_2 = $doc->thumbnail_url("audio_ogg");<br />
<br />
if ($audio_preview_1 || $audio_preview_2){<br />
my $audioDivID = "my-audio".$doc->get_id;<br />
my $audioplayer = $session->make_element( "audio", id=>$audioDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$audio_preview_image, 'data-setup'=>"{}" );<br />
if ($audio_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$audio_preview_1, type=>$audiomimetype_1);<br />
$audioplayer->appendChild( $source_1 );<br />
}<br />
if ($audio_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$audio_preview_2, type=>$audiomimetype_2);<br />
$audioplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this audio please enable JavaScript, and consider upgrading to a web browser that supports HTML5 audio";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$audioplayer->appendChild( $nojsP );<br />
$audioDiv->appendChild($audioplayer);<br />
} <br />
}<br />
#$audioDiv now holds the audio player, and can be added to the page with appendChild($audioDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12231Video documents2016-11-16T21:13:57Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoDivID = "my-video".$doc->get_id;<br />
my $videoplayer = $session->make_element( "video", id=>$videoDivID, class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12221Video documents2016-10-15T14:55:35Z<p>Tomasz.neugebauer@concordia.ca: /* Video Players */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoplayer = $session->make_element( "video", id=>"my-video", class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12220Video documents2016-10-15T12:17:30Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/cfg/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoplayer = $session->make_element( "video", id=>"my-video", class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12219Video documents2016-10-15T02:29:43Z<p>Tomasz.neugebauer@concordia.ca: /* Video Transcoding by EPrints/FFMPEG */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Summary of video codec support on browsers: http://videojs.com/html5-video-support/<br />
By default, EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoplayer = $session->make_element( "video", id=>"my-video", class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12218Video documents2016-10-14T20:52:00Z<p>Tomasz.neugebauer@concordia.ca: /* Video Document Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" link, or embedded directly on the abstract page? Most recent version of EdShare generates a video player directly on the abstract page, rather than a popup "preview" window as in Kultur plugin. It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoplayer = $session->make_element( "video", id=>"my-video", class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12217Video documents2016-10-14T20:21:01Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video player for video documents<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
$type = $doc->get_type; <br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoplayer = $session->make_element( "video", id=>"my-video", class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
} <br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12216Video documents2016-10-14T20:05:54Z<p>Tomasz.neugebauer@concordia.ca: /* Video.js Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
... code under review...<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12215Video documents2016-10-14T19:53:12Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
===Video.js Integration===<br />
One solution is to integrate video.js with EPrints.<br />
Following these instructions: http://videojs.com/getting-started/<br />
Integration involves adding the following to the <head> of the template (globally, in /archives/ARCHIVEID/lang/LANGID/templates/default.xml)<br />
<br />
<source lang="html5"><br />
<link href="http://vjs.zencdn.net/5.11.7/video-js.css" rel="stylesheet"/><br />
<!-- If you'd like to support IE8 --><br />
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script><br />
</source><br />
<br />
and the following right before the last closing </body> tag:<br />
<br />
<source lang="html5"><br />
<script src="http://vjs.zencdn.net/5.11.7/video.js"></script><br />
</source><br />
<br />
Generating the video player can be done in eprint_render.pl, as follows:<br />
<br />
<source lang="perl"><br />
#TN - render a video.js player for video documents<br />
%files = $doc->files;<br />
my $type = "";<br />
my $videoDiv = $session->make_element( "div" );<br />
foreach my $file ( keys %files )<br />
{<br />
$type = $doc->get_type;<br />
<br />
if ($type eq "video"){<br />
my $video_preview_image = $doc->thumbnail_url("preview");<br />
my $videomimetype_1="video/mp4";<br />
my $video_preview_1 = $doc->thumbnail_url("video_mp4");<br />
my $videomimetype_2="video/ogg";<br />
my $video_preview_2 = $doc->thumbnail_url("video_ogg");<br />
<br />
if ($video_preview_1 || $video_preview_2){<br />
my $videoplayer = $session->make_element( "video", id=>"my-video", class=>"video-js", controls=>"", preload=>"auto", poster=>$video_preview_image, 'data-setup'=>"{}" );<br />
if ($video_preview_1){<br />
my $source_1 = $session->make_element ("source", src=>$video_preview_1, type=>$videomimetype_1);<br />
$videoplayer->appendChild( $source_1 );<br />
}<br />
if ($video_preview_2){<br />
my $source_2 = $session->make_element ("source", src=>$video_preview_2, type=>$videomimetype_2);<br />
$videoplayer->appendChild( $source_2 );<br />
}<br />
my $nojsP = $session->make_element ("p", class=>"vjs-no-js");<br />
my $nojstext = "To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video";<br />
$nojsP->appendChild( $session->make_text( $nojstext) );<br />
$videoplayer->appendChild( $nojsP );<br />
$videoDiv->appendChild($videoplayer);<br />
}<br />
}<br />
}<br />
#$videoDiv now holds the video player, and can be added to the page with appendChild($videoDiv)<br />
</source><br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12213Video documents2016-10-13T15:36:42Z<p>Tomasz.neugebauer@concordia.ca: /* Server Settings */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
On some servers (Ubuntu), 'libx264' needs to be installed for the H264 codec.<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12212Video documents2016-10-12T19:55:57Z<p>Tomasz.neugebauer@concordia.ca: /* Video Transcoding by EPrints/FFMPEG */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container <br />
*transcode video to mp4 container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12211Video documents2016-10-12T17:25:29Z<p>Tomasz.neugebauer@concordia.ca: /* Video Transcoding by EPrints/FFMPEG */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular video codecs/containers recommended for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos, using FFMPEG:<br />
*generate an image thumbnail <br />
*transcode video to ogg container (if not already ogg)<br />
*transcode video to mp4 container (if not already mp4)<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12210Video documents2016-10-12T17:24:18Z<p>Tomasz.neugebauer@concordia.ca: /* Video Codecs */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Transcoding by EPrints/FFMPEG==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container (if not already ogg)<br />
*transcode video to mp4 container (if not already mp4)<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12209Video documents2016-10-12T17:23:12Z<p>Tomasz.neugebauer@concordia.ca: /* Video Codecs */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container (if not already ogg)<br />
*transcode video to mp4 container (if not already mp4)<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12208Video documents2016-10-07T14:11:35Z<p>Tomasz.neugebauer@concordia.ca: /* Video Document Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player (typically with an iframe) to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12207Video documents2016-10-07T14:10:20Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
*http://bazaar.eprints.org/454/ (YouTube Importer)<br />
*http://files.eprints.org/773/ (Kultur)<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12206Video documents2016-10-07T14:08:47Z<p>Tomasz.neugebauer@concordia.ca: /* Video Document Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as an iframe embed code, document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12205Video documents2016-10-07T14:08:14Z<p>Tomasz.neugebauer@concordia.ca: /* Video Document Integration */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render? Most recent version of EdShare generates a video player directly on the abstract page, rather than a document "preview". It is also possible to embed a video player to stream content from another site, like YouTube and Vimeo.</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12204Video documents2016-10-07T14:05:31Z<p>Tomasz.neugebauer@concordia.ca: /* Video Players */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player for a document in EPrints, the Kultur plugin (http://files.eprints.org/773/) can be used to extend the preview with a video player.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12203Video documents2016-10-07T14:04:06Z<p>Tomasz.neugebauer@concordia.ca: /* Video Players */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/. However, EPrints does not embed any video player as a "preview" thumbnail or on the abstract page. To generate a video player, the Kultur plugin (http://files.eprints.org/773/) is required.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12202Video documents2016-10-07T14:00:35Z<p>Tomasz.neugebauer@concordia.ca: /* Video Codecs */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
EPrints performs the following tasks when generating "thumbnails" for videos:<br />
*generate an image thumbnail <br />
*transcode video to ogg container<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12201Video documents2016-10-07T13:58:46Z<p>Tomasz.neugebauer@concordia.ca: /* Server Settings */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/.<br />
<br />
==Server Settings==<br />
The following file should contain a path to ffmpeg and ffprobe:<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12200Video documents2016-10-05T19:11:04Z<p>Tomasz.neugebauer@concordia.ca: /* Video Players */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents. Since EPrints 3.3, there is a lightbox/flowplayer in EPrints, under /lib/static/.<br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
<br />
Are there other server settings required?<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
Should contain a path to ffmpeg and ffprobe.<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12199Video documents2016-10-04T20:07:47Z<p>Tomasz.neugebauer@concordia.ca: /* Related Pages */</p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_mime_type<br />
*https://wiki.eprints.org/w/API:bin/epadmin#redo_thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents, but currently, there is no video player as a part of EPrints. Some repositories that use the Kultur plugin (http://files.eprints.org/773/) have also integrated a video player into their repositories (for example, (https://flowplayer.org/) , but the video player is not part of the plugin. A suggestion on the list was for one potential video player that could be integrated into EPrints: http://videojs.com/ <br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
<br />
Are there other server settings required?<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
Should contain a path to ffmpeg and ffprobe.<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12198Video documents2016-10-04T17:43:12Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
*https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
*https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents, but currently, there is no video player as a part of EPrints. Some repositories that use the Kultur plugin (http://files.eprints.org/773/) have also integrated a video player into their repositories (for example, (https://flowplayer.org/) , but the video player is not part of the plugin. A suggestion on the list was for one potential video player that could be integrated into EPrints: http://videojs.com/ <br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
<br />
Are there other server settings required?<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
Should contain a path to ffmpeg and ffprobe.<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12197Video documents2016-10-04T17:41:48Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Related Pages==<br />
https://wiki.eprints.org/w/How_to_customise_thumbnails<br />
https://wiki.eprints.org/w/API:EPrints/Plugin/Convert/Thumbnails<br />
<br />
==Video Players==<br />
Depositors can upload video documents, but currently, there is no video player as a part of EPrints. Some repositories that use the Kultur plugin (http://files.eprints.org/773/) have also integrated a video player into their repositories (for example, (https://flowplayer.org/) , but the video player is not part of the plugin. A suggestion on the list was for one potential video player that could be integrated into EPrints: http://videojs.com/ <br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
<br />
Are there other server settings required?<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
Should contain a path to ffmpeg and ffprobe.<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12196Video documents2016-10-03T16:08:25Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Video Players==<br />
Depositors can upload video documents, but currently, there is no video player as a part of EPrints. Some repositories that use the Kultur plugin (http://files.eprints.org/773/) have also integrated a video player into their repositories (for example, (https://flowplayer.org/) , but the video player is not part of the plugin. A suggestion on the list was for one potential video player that could be integrated into EPrints: http://videojs.com/ <br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
<br />
Are there other server settings required?<br />
<br />
/opt/eprints3/lib/syscfg.d/executables.pl<br />
<br />
Should contain a path to ffmpeg and ffprobe.<br />
ffmpeg should be installed on the server.<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12195Video documents2016-10-03T15:18:51Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Video Players==<br />
Depositors can upload video documents, but currently, there is no video player as a part of EPrints. Some repositories that use the Kultur plugin (http://files.eprints.org/773/) have also integrated a video player into their repositories (for example, (https://flowplayer.org/) , but the video player is not part of the plugin. A suggestion on the list was for one potential video player that could be integrated into EPrints: http://videojs.com/ <br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
Are there other server settings required?<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.cahttps://wiki.eprints.org/w/index.php?title=Video_documents&diff=12194Video documents2016-10-03T15:12:59Z<p>Tomasz.neugebauer@concordia.ca: </p>
<hr />
<div>[[Category:Howto]]<br />
<br />
This page is in development and will eventually contain information about supporting Video documents in EPrints. <br />
<br />
==Video Players==<br />
Currently, there is no video player as a part of EPrints. Some repositories that use the Kultur plugin (http://files.eprints.org/773/) have also integrated a video player into their repositories (for example, (https://flowplayer.org/) , but the video player is not part of the plugin. A suggestion on the list was for one potential video player that could be integrated into EPrints: http://videojs.com/ <br />
<br />
==Server Settings==<br />
Are there required settings in Apache to allow it to stream (play/seek rather than download full video)? For example, these:<br />
# MIME types for Video<br />
AddType video/mp4 .mp4 .m4v .f4v .f4p<br />
AddType video/ogg .ogv<br />
AddType video/webm .webm<br />
AddType video/flv .flv<br />
Are there other server settings required?<br />
<br />
==Video Codecs==<br />
Are there particular codecs/containers required for the streaming/seeking to work (H264 in MP4 container)?<br />
<br />
==Video Document Integration==<br />
Should the video player be integrated as a document "preview" or as a part of the eprint_render?</div>Tomasz.neugebauer@concordia.ca