Skip to content

Instantly share code, notes, and snippets.

View msurguy's full-sized avatar

Maksim Surguy msurguy

View GitHub Profile
@msurguy
msurguy / PowerShellProfile.ps1
Created March 18, 2023 06:23
FFMPEG commands for stitching Blender videos
function stitch($inputPrefix, $outputFile, $crf = 18) {
if (-not $inputPrefix) {
Write-Error "Input prefix must be specified."
return
}
$cmd = "ffmpeg -r 30 -i ${inputPrefix}%04d.png -c:v libx264 -crf $crf -pix_fmt yuv420p -f mp4 $outputFile.mp4"
Invoke-Expression $cmd
}
#!/bin/sh
# ------------------------------------------------------------------------------
# Uses FFmpeg to create an H.264 encoded MPEG-4 movie at 30 fps from
# an image sequence; filesize/quality can be tuned with the second parameter.
#
# ------------------------------------------------------------------------------
# Usage:
# > sh makemovie.sh imageFolder 20
# - imageFolder is a folder containing the images
# - 20 is an optional constant rate factor value,
@msurguy
msurguy / SVG Save.json
Created January 31, 2022 05:56
SVG Save
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"metainfo": {
"author": "",
"description": "",
"keywords": "",
"license": "CC-BY-SA"
},
@msurguy
msurguy / NodeTree
Created May 24, 2021 16:40
Sverchok.0.6.0.0 (0ab145c) | Blender.2.92.0 | NodeTree | 2021.05.24 | 09:40 | license: CC BY-SA
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Frame info": {
"bl_idname": "SvFrameInfoNodeMK2",
"color": [
0.0,
0.5,
@msurguy
msurguy / SVG Save.json
Last active April 4, 2021 22:43
Sverchok SVG Document Export Preset
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"File Path": {
"bl_idname": "SvFilePathNode",
"custom_socket_props": {},
"height": 100.0,
"hide": false,
{
"export_version": "0.10",
"framed_nodes": {},
"groups": {},
"nodes": {
"Box": {
"bl_idname": "SvBoxNodeMk2",
"color": [
0.0,
0.5,
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/><style data-href="/styles.494db61b6ee6b0adfe5f.css">.comments-module--comments--23mG5{padding:91.125px}.comments-module--comments--23mG5 h1{text-transform:uppercase;font-family:sans-serif;font-size:12px}.comments-module--comment--29KbI{font-size:18px;line-height:1.5em;margin-bottom:136.6875px;display:block}.comments-module--comment--29KbI p{max-width:540px}.comments-module--comment--29KbI h1,.comments-module--comment--29KbI h2,.comments-module--comment--29KbI h3,.comments-module--comment--29KbI pre{font-size:18px}.comments-module--header--3yRmu{display:block;text-transform:uppercase;font-family:sans-serif;font-size:12px}.comments-module--user--1iX8T{font-weight:700;color:#000}body,html{margin:0;padding:0;width:100%;height:100%}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:1em}.index-module--page--3hrmN{padding-bottom:91.12
@msurguy
msurguy / README.md
Last active January 8, 2020 19:25
Make QR Code for Chrome URL

An Apple Script for quickly generating qr code for the URL of the front-most Chrome window.

Instructions:

  1. Install qrcode Node package globally by
npm install -g qrcode
  1. Download qrcode.scpt provided here
  2. Make the script into an app by opening qrcode.scpt in Script Editor, then File &gt; Export &gt; File Format : Application and save it to your Applications.
@msurguy
msurguy / ffmpeg.md
Created November 4, 2019 06:32 — forked from dvlden/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@msurguy
msurguy / actions.yml
Created September 25, 2019 23:00
Github actions
// Slack action:
https://github.com/Ilshidur/action-slack
args = "tag v*"
tags:
- v1 # Push events to v1 tag
- v1.0 # Push events to v1.0 tag