Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import java.util.EnumSet; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.parsers.ParserConfigurationException; | |
import org.json.JSONArray; |
;;; This script by Paul Biggar, available at https://gist.github.com/pbiggar/6323088a31d689c61a24 | |
;;; | |
;;; This converts Evernote files into plaintext (not really markdown), so you can move your stuff out of evernote into a markdown editor. | |
;;; | |
;;; First, export your Evernotes, using File -> export notes. Export them into "My Notes.enex". | |
;;; copy this file into the same direcory as "My Notes.enex". | |
;;; | |
;;; To run this file, you'll need some dependencies, but they should only take a moment to install. | |
;;; leinigen: On OSX, use "brew install leiningen". | |
;;; lein-exec: From the terminal, run `mkdir ~/.lein; echo '{:user {:plugins [[lein-exec "0.3.5"]]}}' > ~/.lein/profiles.clj |
#!/usr/bin/bash | |
# Convert *.gif into *.mp4, skip if already exists. | |
outdir="." | |
for path in *.gif; do | |
out="${outdir}/${path/.gif/}.mp4" | |
[[ -f "$out" ]] && continue | |
ffmpeg -f gif -i "${path}" "${out}" | |
done |
alias untar='tar -zxvf' | |
alias untarxz='tar -xJf' | |
alias pbcopy='xclip -selection clipboard' # OSX compatibility | |
alias pbpaste='xclip -selection clipboard -o' # OSX compatibility | |
alias orphans='sudo pacman -Rs $(pacman -Qdtq)' # removes orphan packages from Archlinux |
yum install gcc gcc-g++ make git | |
cd /opt | |
git clone git://github.com/cjdelisle/cjdns.git | |
cd cjdns | |
./do | |
./cjdroute --genconf > /etc/cjdroute.conf | |
curl https://gist.github.com/ryansb/5422219/raw/4f8c788ce6d608e6e9539238ec8b39b6e13e4de2/cjdns > /etc/init.d/cjdns |