Commands tagged imovie (2)

  • Transcodes mpg2 files, that cannot be read by iMovie to m4v files. Show Sample Output

    /opt/homebrew-cask/Caskroom/vlc/2.1.0/ --sout-avcodec-strict=-2 -I dummy $video :sout="#transcode{vcodec=h264,vb=1024,acodec=mpga,ab=256,scale=1,channels=2,audio-sync}:std{access=file,mux=mp4,dst=${video}.m4v}" vlc://quit
    brainstorm · 2014-03-08 13:53:13 0
  • After updating to the latest ffmpeg with homebrew

    ffmpeg -i $video -c:v prores -profile:v 2 -c:a copy ${video}.mov
    brainstorm · 2014-03-10 16:24:34 2

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Check These Out

Print a horizontal line
Replace the underscore with any other character. e.g. + or - or =


Find all dot files and directories

ls not pattern
Hides some entries from listing.

Monitor cpu in realtime.

Update twitter via curl

BASH one-liner to get the current week number
Not as cool as the python example, but it still works.

list files recursively by size

find builtin in bash v4+
This command will give you the same list of files as "find /etc/ -name '*killall' | xargs ls -l". In a simpler format just do 'ls /etc/**/file'. It uses shell globbing, so it will also work with other commands, like "cp /etc/**/sshd sshd_backup".

Add all unversioned files to svn
No need for grep, let awk do the match. This will not behave properly if the filenames contains whitespace, which is awk's default field separator.

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: