Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Moving to Gitlab

Ray Foss rayfoss

💭
Moving to Gitlab
View GitHub Profile
@rayfoss
rayfoss / ffmpegchapters-explicit.sh
Last active Aug 18, 2017 — forked from dcondrey/ffmpegchapters-explicit.sh
Use ffmpeg to split file by chapters. Python version and bash version
View ffmpegchapters-explicit.sh
#!/bin/bash
# m4v and mp4 video, Chapter Marker splitter
# May be particularly good with final cut DVD chapter markers
# This standard seems to be popular in MP3's... cant find the official spec
# Chapter #0:0: start 0.000000, end 1290.013333
# Metadata:
# title : 3.4 - Rigging and Replacement
# http://linuxcommand.org/lc3_man_pages/readh.html
View github-labels.txt
// finds the "99 Open issues" part of the github lables page.
/[ Edit Delete ]*?[0-9|,]* open issues? ?/
@rayfoss
rayfoss / Windows10forLinux.md
Last active Feb 3, 2016
Windows 10 for Linux Users Configuration guide
View Windows10forLinux.md
@rayfoss
rayfoss / Fedora-23-Nvidia-Workstation-Notes.md
Last active Mar 30, 2016 — forked from anonymous/Fedora-23-Nvidia-Workstation-Notes.md
January 2015 Fedora 23 Workstation Configuration Notes
View Fedora-23-Nvidia-Workstation-Notes.md
@rayfoss
rayfoss / gist:908303fd7482751eb60e
Last active Nov 30, 2015
Clean up windows 10 garbage
View gist:908303fd7482751eb60e
// uninstall all windows 8 apps, including one drive
Get-AppxPackage -AllUsers | Remove-AppxPackage
// Todo: Group policies for
// Turn off Windows Defender
// Remove OneDrive from file explorer
@rayfoss
rayfoss / gdoceverything.bat
Last active Aug 29, 2015
Google Office Editing For Docs, Sheets and Slides windows file extension association script
View gdoceverything.bat
Assoc .docx=cdocfile
Ftype cdocfile="C:\Program Files (x86)\Google\Chrome\Chrome.exe" %1
Work in progress, verify that path and copy for all other office files.
@rayfoss
rayfoss / webreadyx264.sh
Last active Sep 23, 2015 — forked from anonymous/webreadyx264.sh
Simplest lossy web ready x.264 ffmpeg command
View webreadyx264.sh
#!/bin/bash
# strict 2 is required to use the built in aac codec
# Fast start may not be needed when using the built in aac, but it is for h264
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 -movflags faststart output.mp4
# Better Quality, medium compression
ffmpeg -i input.avi -vcodec h264 -preset veryslow -crf 18 -acodec aac -strict -2 -b:a 240k -movflags faststart helvet.mp4
# Doing lossy X to lossy x264/aac right, crf 18 - 1 to account for compression artifacts
ffmpeg.exe -i input.avi -vcodec h264 -crf 17 -preset veryslow -acodec aac -strict -2 -b:a 240k -movflags faststart output.mp4
You can’t perform that action at this time.