I just needed a way to shrink a bunch of videos 640×480 video to 320×240 using command line, and found transcode command line video editing tool on Linux.

transcode -F mpeg4 -y ffmpeg -Z 320×240 -E 44100,16 -i video.mpg -o video-small.mpg

Update: here’s an article on it on Linux Journal.


Tomato on Buffalo WHR-HP-54

Just got my Buffalo WHR-HP-54 from Newegg yesterday, and today… I flashed it with Tomato firmware. I also found it to be much better and more intuitively designed than OpenWRT.

Here are the steps:

  1. Open a terminal keep this command ready (DO NOT PRESS ENTER). Note that is the default IP of the Buffalo router:

    tftp -v -m binary -c put tomato-firmware.trx

  2. In another terminal ping the router:


  3. Then unplug the router.
  4. Wait 5 secs and plugin the router again and wait for ping to resume.
  5. Then immediately (within say 3 pings) pressed enter on the above tftp command.
  6. The pinging will stop and the tftp command will finish in less than 1 second. The router will reset itself, and it will reboot. This will take about 1-2 minutes. So do not disturb the router for at least 2 minutes.
  7. Then in browser goto

That’s it! you should be able to see the Tomato screen.