57 lines
1.5 KiB
PHP
Executable File
57 lines
1.5 KiB
PHP
Executable File
@extends('profilelayout')
|
|
@section('content')
|
|
<div class="page-header">
|
|
<h3>WebM Support</h3>
|
|
<p>How 2 make a webm</p>
|
|
</div>
|
|
|
|
<div class="box">
|
|
<h4>Chad</h4>
|
|
<img src="/images/gigachad.png" style="float:left;width:150px;" alt="gigachad">
|
|
<pre><code>#The based white man way
|
|
|
|
ffmpeg -i virgin.mp4 chad.webm #single file, very simple
|
|
|
|
#You can add this to your .bashrc
|
|
|
|
function mkwebmbatch() {
|
|
for i in *.$1;
|
|
do name=`basename "$i" .$1`
|
|
echo "$name"
|
|
ffmpeg -i "$i" -c:v libvpx -c:a libvorbis -auto-alt-ref 0 -crf 5 "$PWD/${name}.webm"
|
|
done
|
|
}
|
|
|
|
function mkwebm() {
|
|
filename=$(basename -- "$1")
|
|
extension="${filename##*.}"
|
|
filename="${filename%.*}"
|
|
name=`basename "$filename" .$extension`
|
|
echo "$name"
|
|
ffmpeg -i "$1" -c:v libvpx -c:a libvorbis -auto-alt-ref 0 -crf 5 "$HOME/Videos/converts/$name.webm"
|
|
}
|
|
|
|
function stillvid() {
|
|
#stillvid image.jpg music.mp3 $3.<webm>
|
|
ffmpeg -i "$1" -i "$2" -c:a libvorbis -auto-alt-ref 0 -c:v libvpx $3.webm
|
|
}
|
|
|
|
#Notable mentions
|
|
|
|
* https://github.com/ekisu/mpv-webm
|
|
|
|
* https://github.com/Kagami/webm.py
|
|
</code></pre>
|
|
</div>
|
|
<h1 style="text-align:center;">VS</h1>
|
|
<div class="box">
|
|
<h4>Virgin</h4>
|
|
<img src="/images/virgin.png" style="float:left;width:150px;" alt="gigachad">
|
|
<ul>
|
|
<li><a href="https://github.com/Kagami/boram">Boram by Kagami</a></li>
|
|
<li><a href="https://gitgud.io/nixx/WebMConverter">WebMConverter by nixx!</a></li>
|
|
</ul>
|
|
</div>
|
|
@endsection
|
|
|