ffmpeg reminders
extract mp3 out of m4v video
ffmpeg -i video.m4v -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio.mp3
clipping mp3 (from :07 to :30)
ffmpeg -ss 00:00:07.00 -t 30 -i audio.mp3 -acodec copy audio-new.mp3
extract mp3 out of m4v video
ffmpeg -i video.m4v -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio.mp3
clipping mp3 (from :07 to :30)
ffmpeg -ss 00:00:07.00 -t 30 -i audio.mp3 -acodec copy audio-new.mp3
For the past three months I’ve been working in Pune, India. It’s been challenging and rewarding work. India has become very dear to me. Will surely come back. Heading back to London for now.
Giving iTerm2 a try. Happy so far, though I missed having the option key as meta. Here’s how to change:
More of a mental note… I had used xxd in the past to hexdump to a header file. Can be handy to compile files into binaries:
xxd -i somefile.ext
gives you something like this:
unsigned char somefile_ext[] = {
0×73, 0×6b, 0×79, 0×70, 0×65, 0×20, 0×6d, 0×65, 0×20, 0×61, 0×74, 0×20,
0×61, 0×6c, 0×76, 0×61, 0×72, 0×6f, 0×2e, 0×72, 0×61, [...]
Lots of Photo Smuggler users have been requesting fb page support. Spent some time adding this feature recently. Haven’t tested it throughly, but seems to work so far.
While playing around with ImageMagick (imagick and rmagick), wrote a little facebook app. P-tiles generates a profile pic mosaic, using your friends’ pics as tiles. Magic toolbox donated magic zoom, which gave it a nice touch.
P-tiles is hosted on a linode vps. Had been meaning to try them out. So far, so good. Had been a slicehost [...]
I recently started to keep track of places worthy of going to in London. Shops, restaurants, coffee shops, parks, etc. I wanted to share these with others and hopefully get suggestions from different people.
Given that most people I know that may contribute are on Facebook, I wrote a FB app to compile a list of [...]
Nice surprise to see 100 photo smuggler users. Have received some great feedback. Thanks! Seems people are actually using the app!
more of a reminder, than anything… converting m4a to mp3 on mac:
faad -o – sample.m4a | lame – sample.mp3
Control+Shift+Eject to automatically start the screensaver.
This is particularly useful at work if you would like to lock your screen while away from your desk.