Skip to content

Instantly share code, notes, and snippets.

View lilithebowman's full-sized avatar
💭
🦝 picking thru ur trash

Lilithe Bowman lilithebowman

💭
🦝 picking thru ur trash
View GitHub Profile
@lilithebowman
lilithebowman / stabilize.bat
Last active May 14, 2018 17:36
Stabilize footage to a high degree (8) and accuracy (9)
@ECHO OFF
REM You must download ffmpeg to use this batch file.
REM https://ffmpeg.zeranoe.com/builds/
REM
REM You can simply click and drag a video file onto this batch file and it should start processing in place
REM A command prompt will pop up and churn for a while depending on the size
For %%A in ("%1") do (
Set Folder=%%~dpA
Set Name=%%~nxA
@lilithebowman
lilithebowman / concat.bat
Created May 17, 2018 13:58
Concatenate video files using ffmpeg
@echo off
echo Add the list of files to concatenate to files.txt with "file " in front of the name. One per line.
ffmpeg -f concat -safe 0 -i mylist.txt -c copy concatenated.mp4
pause
@lilithebowman
lilithebowman / speedup.bat
Last active May 17, 2018 23:10
Speed up video using ffmpeg
ffmpeg -i %1 -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" %1_fast.mp4
pause
@ECHO OFF
echo You must download ffmpeg to use this batch file.
echo https://ffmpeg.zeranoe.com/builds/
echo .
echo A command prompt will pop up and churn for a while depending on the size
echo .
echo Add the list of files to concatenate to mylist.txt with "file " in front of the name. One per line.
echo Example:
echo file GOPR2307.MP4
echo file GP012307.MP4
echo "You must download ffmpeg to use this shell script.
https://www.johnvansickle.com/ffmpeg/
Only this version will work because the default packages do not contain vidstab.
A terminal will pop up and churn for a while depending on the size
Add the list of files to concatenate to mylist.txt with "file " in front of the name. One per line.
Example:
file GOPR2307.MP4
file GP012307.MP4
file GP022307.MP4
@echo off
echo Usage:
echo jpg2mp4.bat 12345
echo (where 12345 is the sequence number the JPG sequence begins on)
SET num=%1
IF "%num%"=="" (SET num=0)
@echo on
ffmpeg -r 1/5 -i G%07d.JPG -start_number %num% -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
// Truncates text to a specified number of lines using height,
// Note: Only works in webkit browsers.
@mixin truncateLines($lineNum: 3, $lineHeight: 1.3, $fontSize: em(18)) {
$totalHeight: $lineNum * $lineHeight;
-webkit-box-orient: vertical;
-webkit-line-clamp: $lineNum;
display: -webkit-box;
display: block;
font-size: $fontSize;
height: auto;
@mixin underline($start, $end, $borderThickness) {
/* This linear gradient background image creates a stripe behind the area under the letter allowing the descenders of the text to go on top */
background-image: linear-gradient(180deg, $color-brand-background 0%, $color-brand-background $start, #9ecc3b $start + 1, #9ecc3b $end, $color-brand-background $end + 1);
border-bottom: $borderThickness $color-brand-primary solid;
line-height: 1.3em;
text-shadow: 1px 1px 1px $color-brand-background;
}
echo "You must download ffmpeg to use this shell script.
https://www.johnvansickle.com/ffmpeg/
Only this version will work because the default packages do not contain vidstab.
A terminal will pop up and churn for a while depending on the size
Add the list of files to concatenate to mylist.txt with "file " in front of the name. One per line.
Example:
file GOPR2307.MP4
file GP012307.MP4
file GP022307.MP4
@ECHO OFF
echo You must download ffmpeg to use this batch file.
echo https://ffmpeg.zeranoe.com/builds/
echo .
echo A command prompt will pop up and churn for a while depending on the size
echo .
echo Add the list of files to concatenate to mylist.txt with "file " in front of the name. One per line.
echo Example:
echo file GOPR2307.MP4
echo file GP012307.MP4