A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
ST:=(HHV(H,26)+LLV(L,26))/2; | |
TL:=(HHV(H,9)+LLV(L,9))/2; | |
DL:=Ref(C, 26); | |
1Span:=Ref((ST+TL)/2,-26); | |
2Span:=Ref((HHV(H,52)+LLV(L,52))/2,-26); | |
ST; | |
TL; | |
DL; | |
1Span; |
for (var element of document.querySelectorAll("html body div img video".split(" "))) { | |
window.getComputedStyle(element, null) | |
.getPropertyValue("filter") | |
.startsWith("grayscale") && | |
element.style.setProperty("filter", "none", "important") | |
} |
#!/bin/bash | |
#This script will compile and install a static ffmpeg build with support for nvenc un ubuntu. | |
#See the prefix path and compile options if edits are needed to suit your needs. | |
#install required things from apt | |
installLibs(){ | |
echo "Installing prerequisites" | |
sudo apt-get update | |
sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \ |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
If you've built ffmpeg as instructed here on Linux and the ffmpeg binary is in your path, you can do fast HEVC encodes as shown below, using NVIDIA's NPP's libraries to vastly speed up the process.
Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with:
ffmpeg -i <inputfile> -pass 1 \
-filter:v hwupload_cuda,scale_npp=w=1920:h=1080:format=nv12:interp_algo=lanczos,hwdownload,format=nv12 \
-c:v hevc_nvenc -profile main -preset slow -rc vbr_2pass \