720p -> H.264 (x264) video + AAC 128kbps audio:
ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 128k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 1M output.mp4
720p -> H.264 (x264) video + AAC 128kbps audio:
ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 128k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 1M output.mp4
# By Tristan H. - https://github.com/trisweb | |
# Requirements: Bash, Spark - https://github.com/holman/spark, git bash extensions | |
# Admittedly a bit disorganized, but still works great. | |
LTGREEN="\[\033[40;1;32m\]" | |
LTBLUE="\[\033[40;1;34m\]" | |
CLEAR="\[\033[0m\]" | |
GRAY2="\[\033[40;1;30m\]" | |
LIGHT_GRAY="\[\033[40;1;33m\]" |
Stacktrace: | |
at (wrapper managed-to-native) RogueAmoeba.AirTunes.Server.Rtp.Audio.ALACWrapper/NativeMethods.decode_frame (byte[],uint,intptr,uint&) <0xffffffff> | |
at RogueAmoeba.AirTunes.Server.Rtp.Audio.ALACWrapper.DecodeFrame (byte[],uint&) <0x000af> | |
at RogueAmoeba.AirTunes.Server.Rtp.Audio.Decoder.DecodeData (byte[]) <0x0003b> | |
at RogueAmoeba.AirTunes.Server.Rtp.Audio.RtpAudioPacket.DecodedAudioData (byte[],byte[]) <0x0002f> | |
at RogueAmoeba.AirTunes.Server.Rtp.Audio.RtpAudioPacketPlayer.AddPacket (RogueAmoeba.AirTunes.Server.Rtp.Audio.RtpAudioPacket) <0x00027> | |
at RogueAmoeba.AirTunes.Server.Rtp.Audio.RtpAudioConnection.HandlePacket (RogueAmoeba.AirTunes.Server.Rtp.RtpHeader,byte[]) <0x001a3> | |
at RogueAmoeba.AirTunes.Server.Rtp.RtpConnection.HandlePacket (byte[]) <0x001c9> | |
at RogueAmoeba.AirTunes.Server.UdpConnection.RunThread () <0x000f0> |
#!/usr/bin/env ruby | |
# Requirements: | |
# - A PulseAudio server running at the host in TO below. | |
# - SoundFlower installed | |
# - ESound installed (on mac, brew install esound) | |
# Select SoundFlower (2ch) as both Input AND Output devices, then run "streamit start" | |
# otherwise you don't have to worry about anything; it's a daemon, will run in the background, | |
# once you're finished just kill esd or run "streamit stop" |
#!/usr/bin/env ruby | |
# Ctrl-C | |
Signal.trap 'INT' do | |
puts "Exiting!" | |
exit(0) | |
end | |
puts "Starting Airfoil Speakers..." | |
while 1 |
May 21, 2012 Mirrored from http://www.standalone-sysadmin.com/blog/2012/05/engineeringinfrastructures/
I’ve been lucky enough to have the chance to fly a lot over the past year or so. Working with Stephen Foskett and the rest of the Tech Field Day crew means that I’ve been to California almost every month. That’s a lot of flying.
One of the things that I’ve noticed on my flights is that they don’t want you to smoke. You actually used to be able to smoke on planes, which seems weird now that you can’t even smoke outide.
I’m not a smoker, so it doesn’t bother me. (As an adorable aside, when I was five years old, I literally glued hand-made no-smoking signs to the walls of my grandparents’ house. They were less than amused.) But the occasional legacy arm-rest with an ashtray harkens back to days of yore when every Joe Cool enjoyed the wonders of aviation while kicking back on a flight as smooth as a Laramie cigarette. He probably got a full meal as part of his ticket
require 'formula' | |
class Postgresql < Formula | |
homepage 'http://www.postgresql.org/' | |
url 'http://ftp.postgresql.org/pub/source/v9.2.0beta2/postgresql-9.2beta2.tar.bz2' | |
md5 'f23eca70a6de56de73f0005a571c71b0' | |
depends_on 'readline' | |
depends_on 'libxml2' if MacOS.leopard? # Leopard libxml is too old | |
depends_on 'ossp-uuid' |
<!DOCTYPE html> | |
<html ng-app="MyApp"> | |
<!-- Made by Tristan Harward. BSD Licensed (because Berkeley > MIT) --> | |
<!-- | |
Copyright (c) 2014, Tristan S. Harward | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: |
I hereby claim:
To claim this, I am signing this object:
# SublimeText auto-open project in current directory if it exists and argument is . or blank. | |
function project_aware_subl { | |
project_file=$(ls *.sublime-project 2>/dev/null | head -n 1) | |
if [[ ( ! -z "$project_file" ) && ( "${*}" == "." || -z "${*}") ]] | |
then | |
command subl "$project_file" | |
else | |
command subl ${*} | |
fi | |
} |