Skip to content

Instantly share code, notes, and snippets.

View NicolasReibnitz's full-sized avatar

Nicolas Reibnitz NicolasReibnitz

View GitHub Profile
@NicolasReibnitz
NicolasReibnitz / TransmitOpenTerminal.txt
Created July 20, 2021 16:07 — forked from johnfmorton/TransmitOpenTerminal.txt
Use Transmit 5 to open in iTerm (instead of Terminal.app) as mentioned here https://library.panic.com/transmit5/open-in-terminal/
on openTerminal(location, remoteHost, serverPort)
tell application "System Events"
-- some versions might identify as "iTerm2" instead of "iTerm"
set isRunning to (exists (processes where name is "iTerm")) or (exists (processes where name is "iTerm2"))
end tell
tell application "iTerm"
activate
set targetTab to ""

FFmpeg

remove audio from video file

ffmpeg -i example.mp4 -c copy -an example_no_audio.mp4

extract audio track from video file without re-encoding

ffmpeg -i input.mp4 -vn -acodec copy audio_track.aac
@NicolasReibnitz
NicolasReibnitz / mobile.video.encoding.md
Created June 6, 2020 06:43 — forked from pinge/mobile.video.encoding.md
Video and audio encoding for playback in Android and iOS devices

Video and audio encoding for playback in Android and iOS devices

This document aims to provide an easy way encode video optimized for playback in mobile devices that use the Android or the iOS operating systems.

libx264 is used for (single or two-pass) video encoding and libfdk_aac for audio encoding.

ffmpeg, libx264 and libfdk_aac settings are optimized for playback quality and compatibility on Android and iOS. There is extensive documentation and references for each of the settings used and contributions are very welcome :)