Sunday, February 14, 2010

Florida: Jams and Meetups and Camps! Oh My!

We had a great LoCo team meeting Tuesday night. We usually do.

The Ubuntu Global Jam is approaching, and in Florida organization is underway. It looks like we may be able to hit my previously stated goal of having 5 Jams here in Florida.  So far we have definite plans in Gainesville and Orlando, and we have team members who have stepped up to start organizing in Miami/Ft. Lauderdale and Tampa.  Nothing to confirm on the last two yet, but we're making headway.  We also have team members who have already started pre-planning for Lucid Release Parties!

With DrupalCamp, FOWA, BarCamp Orlando, and BarCamp Miami coming up, in addition to our regular meetups and public service, its going to be a busy couple of months!

We'll be out there advocating, installing, supporting, and learning!

Wednesday, February 3, 2010

ffmpeg commands

Found this nice summary of ffmpeg commands on catswhocode.com:
http://www.catswhocode.com/blog/19-ffmpeg-commands-for-all-needs

Getting info from a video file
ffmpeg -i video.avi
Turn X images to a video sequence
ffmpeg -f image2 -i image%d.jpg video.mpg

This command will transform all the images from the current
directory (named image1.jpg, image2.jpg, etc.) to a video file named
video.mpg.
Turn a video to X images
ffmpeg -i video.mpg image%d.jpg

This command will generate the files named image1.jpg, image2.jpg, รข€¦

The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.
Encode a video sequence for the iPpod/iPhone
ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4

Explanations:
  • Source : source_video.avi
  • Audio codec : aac
  • Audio bitrate : 128kb/s
  • Video codec : mpeg4
  • Video bitrate : 1200kb/s
  • Video size : 320px par 180px
  • Generated video : final_video.mp4
Encode video for the PSP
ffmpeg -i source_video.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac final_video.mp4

Explanations:
  • Source : source_video.avi
  • Audio codec : aac
  • Audio bitrate : 32kb/s
  • Video codec : xvid
  • Video bitrate : 1200kb/s
  • Video size : 320px par 180px
  • Generated video : final_video.mp4
Extracting sound from a video, and save it as Mp3
ffmpeg -i source_video.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3

Explanations :
  • Source video : source_video.avi
  • Audio bitrate : 192kb/s
  • output format : mp3
  • Generated sound : sound.mp3
Convert a wav file to Mp3
ffmpeg -i son_origine.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 son_final.mp3
Convert .avi video to .mp3
ffmpeg -i video_origine.avi video_finale.mpg
Convert .mpg to .avi
ffmpeg -i video_origine.mpg video_finale.avi
Convert .avi to animated gif(uncompressed)
ffmpeg -i video_origine.avi gif_anime.gif
Mix a video with a sound file
ffmpeg -i son.wav -i video_origine.avi video_finale.mpg
Convert .avi to .flv
ffmpeg -i video_origine.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
Convert .avi to dv
ffmpeg -i video_origine.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 video_finale.dv

Or:
ffmpeg -i video_origine.avi -target pal-dv video_finale.dv


Convert .avi to mpeg for dvd players

ffmpeg -i source_video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

Explanations:
  • target pal-dvd : Output format
  • ps 2000000000 maximum size for the output file, in bits (here, 2 Gb)
  • aspect 16:9 : Widescreen
Compress .avi to divx
ffmpeg -i video_origine.avi -s 320x240 -vcodec msmpeg4v2 video_finale.avi
Compress Ogg Theora to Mpeg dvd
ffmpeg -i film_sortie_cinelerra.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 film_termine.mpg
Compress .avi to SVCD mpeg2
NTSC format:
ffmpeg -i video_origine.avi -target ntsc-svcd video_finale.mpg

PAL format:
ffmpeg -i video_origine.avi -target pal-svcd video_finale.mpg
Compress .avi to VCD mpeg2
NTSC format:
ffmpeg -i video_origine.avi -target ntsc-vcd video_finale.mpg

PAL format:
ffmpeg -i video_origine.avi -target pal-vcd video_finale.mpg


Multi-pass encoding with ffmpeg


ffmpeg -i fichierentree -pass 2 -passlogfile ffmpeg2pass fichiersortie-2

Tuesday, February 2, 2010

Congrats Huats! || Back in the Ubu-Groove

Due to work and a new baby I've been largely AFC (away from community) for the past 7 months or so. I've been minimally involved in community events, bug triaging, qa testing, etc, but nothing significant to speak of. Things are settling down now, and I can't wait to get back into the ring! Some of my goals over the next few months: 5 events across Florida for the Global Jam, Pump Up Ubuntu-US, get more involved with server QA, and (finally) get started on becoming a MOTU Ubuntu Developer.


In more exciting developments, I want to send hearty congratulations to Christophe Sauthier (Huats)! A few days back he became the father of a gorgeous baby boy.  Wish you and your family all the best my friend!

Thursday, December 10, 2009

Saturday, August 8, 2009

*sigh* mono noise

I didnt use to hate mono, but every time Jo Shields talks i edge closer in that direction.  Insulting people while chiding them for insulting people is inane. Hiding the insult behind sarcasm isn't very creative or particularly intelligent.

I respect your contributions to Debian and Ubuntu. You're already making your case by contributing to a better user experience. How about you take your own advice and quit contributing to the noise?

And FWIW, there is already a quite popular Ubuntu-based distro that is mono free. Its called Kubuntu.

Wednesday, July 22, 2009

Ubuntu Podcast #31

Nick!Josh & Nick, or is that Nick & Josh?, rolled out Ubuntu Podcast #31 the other day.  I'm really digging the use of the <video> tag in modern browsers.  As more and more shows start to use it, hopefully the pressure on legacy browser makers to support open video will increase.

Nice job, as usual, guys!  And dig the hair!!!!

Tuesday, June 9, 2009

mmm... flash memes

I dont know whether to be happy or sad: