60 lines
1.7 KiB
PHP
60 lines
1.7 KiB
PHP
@extends('profilelayout')
|
|
@section('novidcontent')
|
|
<div class="page-header">
|
|
<h3>WebM Support</h3>
|
|
<p>How 2 make a webm</p>
|
|
</div>
|
|
<div class="box">
|
|
<h4>Chad <small>(not afraid of using the command line)</small></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
|
|
|
|
# If using webm.py a good line to get a high quality video would be
|
|
|
|
# (assuming you have it in your path)
|
|
webm -i virgin.mp4 -l 40 chad.webm #this will produce a vp9 webm with decent image quality
|
|
</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
|