Skip to content

Instantly share code, notes, and snippets.

View 2b3pro's full-sized avatar

Ian Shen 2b3pro

View GitHub Profile
@2b3pro
2b3pro / getTinyurl.txt
Last active April 18, 2020 00:45
TextExpander AppleScript to get TinyUrl
set the ClipURL to (the clipboard as string)
ignoring case
set curlCMD to "curl --stderr /dev/null \"http://tinyurl.com/api-create.php?url=" & ClipURL & "\""
set tinyURL to (do shell script curlCMD)
return tinyURL
end ignoring
@2b3pro
2b3pro / ffmpeg_merge_videos_in_folder.md
Last active May 12, 2021 21:48
[Automator] Quick Action to Concatenate Videos in a Folder for YT-ready Upload

Q: How do I combine individual video clips into one movie file for upload to YouTube using ffmpeg?

The following assumes you have ffmpeg installed on your Mac. If you need to install it, please use Homebrew.

The settings for encoding for YouTube with ffmpeg can be found here and here.

There is no error checking here. It assumes that there are videos in the folder, and that they have mp4 extensions.


Keybase proof

I hereby claim:

  • I am 2b3pro on github.
  • I am ianshen (https://keybase.io/ianshen) on keybase.
  • I have a public key ASBGXS9wWgstUMxPeGcWjmuH0W7fe1E0D3MpTRiwXFIx1Qo

To claim this, I am signing this object: