Skip to content

Instantly share code, notes, and snippets.

@mosbth
Created July 15, 2012 11:20
Show Gist options
  • Save mosbth/3116326 to your computer and use it in GitHub Desktop.
Save mosbth/3116326 to your computer and use it in GitHub Desktop.
Addons to installing freebsd
alias la ls -a
alias ll ls -l
alias lla ls -la
install manpages
// Failed
cd /usr/ports/graphics/php5-gd && make install clean
// FFMGPEG
http://ffmpeg.org/ffmpeg.html
cd /usr/ports/multimedia/ffmpeg; make install clean;
convert from wmv to mp4
ffmpeg -i [your_video.wmv] -r 20 -ar 44100 -ab 196 -b 300k -aspect 4:3 -s 320x240 -croptop 0 -cropbottom 0 -cropleft 0 -cropright 0 [your_video.mp4]
-r 20 is the framerate [frames/second]
-ar 44100 is the audio rate [samples/second]
-ab 196 is audio 196 kbit/s
-b 300k is the video bitrate of 300 kbit/s
-aspect 4:3 is the desired aspect ratio
-s 320x240 will scale to E8 screen resolution
ffmpeg -i myfile.avi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment