1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 10:14:37 +01:00
vichan/inc/lib/webm/README.md

52 lines
2.3 KiB
Markdown
Raw Normal View History

2014-03-20 00:04:23 +01:00
This project is an effort to enable imageboards to host small video clips. With modern video compression, it's possible to share much higher-quality videos in a few megabytes than what you can do with animated GIF files.
2013-11-09 10:11:22 +01:00
2014-03-20 00:04:23 +01:00
The software here extends [Tinyboard](http://tinyboard.org/) to display metadata and create pseudo-thumbnails for WebM video files. It is intended to work on very basic web hosting services, including any hosting service that can run Tinyboard. In particular, it does not depend on any external video conversion software such as FFmpeg or Libav. Rather, it parses the video container to extract a single frame from the video to use in place of a thumbnail. If you can run FFmpeg or Libav on your server, it's a good idea to modify this code to use those tools to create true thumbnails; in the future, an option will be added to enable this.
2013-11-09 10:11:22 +01:00
A board using this code can be found at:
http://containerchan.org/tb/demo/
Be aware that this is beta software. Please report any bugs you find.
2014-03-20 00:04:23 +01:00
Much of the code is not specific to Tinyboard, and you are welcome to use it in your own projects. See the [core](https://github.com/ccd0/containerchan/tree/core) branch for a version without material from Tinyboard.
2013-11-09 10:11:22 +01:00
2013-11-09 22:50:15 +01:00
Installation
2013-11-09 22:47:49 +01:00
------------
2013-11-09 10:11:22 +01:00
Create a directory named cc at the root of your Tinyboard installation. Upload these files into that directory.
Replace the files templates/post_thread.html and templates/post_reply.html with the files given here.
2013-11-28 09:25:52 +01:00
Move video.png to the static directory.
2013-11-09 10:11:22 +01:00
Add these lines to inc/instance-config.php:
2013-11-09 22:45:09 +01:00
2013-11-09 22:40:47 +01:00
$config['allowed_ext_files'][] = 'webm';
2013-11-28 09:25:52 +01:00
$config['file_icons']['webm'] = 'video.png';
2013-11-09 22:40:47 +01:00
$config['additional_javascript'][] = 'cc/settings.js';
$config['additional_javascript'][] = 'cc/expandvideo.js';
require_once 'cc/posthandler.php';
event_handler('post', 'postHandler');
2013-11-09 10:11:22 +01:00
And add this to stylesheets/style.css:
2013-11-09 22:45:09 +01:00
video.post-image {
display: block;
float: left;
margin: 10px 20px;
border: none;
}
2013-11-28 08:29:19 +01:00
div.post video.post-image {
2013-11-28 09:31:54 +01:00
padding: 0px;
margin: 10px 25px 5px 5px;
2013-11-28 08:29:19 +01:00
}
span.settings {
2013-11-11 01:30:14 +01:00
position: fixed;
top: 1em;
right: 1em;
}
2014-03-20 00:04:23 +01:00
License
-------
See [LICENSE.md](https://github.com/ccd0/containerchan/blob/master/LICENSE.md).