Friday, September 28, 2012

Asus Transformer TF101 clockworkmod recovery

ROM Manager won't boot into recovery on my TF101, so to boot into Clockworkmod Recovery, hold power and volume down buttons. The internal storage (/sdcard) wouldn't mount with RM version 6, so I used ROM Manager version First, backup with Titanium Backup and backup ROM... ensuring both backups are on the removable SD card.

Saturday, August 11, 2012

Extract Image From Video Using FFMPEG

ffmpeg -i video.flv -an -s 320×240 -ss 00:00:02 -r 1 -y %d.jpg

-s 320×240 specifies the frame size of the output (Default is the size of the original video.)

-ss 00:00:02 Seek to given time position in seconds.

Thursday, February 2, 2012

Change FourCC setting in Linux Using Mencoder

Sometimes an AVI video file will not play on my PS3, resulting in a "data type not supported" error message. I finally figured out the problem this time. It wasn't audio codec, and it wasn't the weird fps it had; It was a FourCC setting that was incompatible. I tried using cfourcc to do this, but it did not result in playable AVI files. So, I tried mencoder and it worked fine, all without remuxing.

mencoder <input-file> -oac copy -ovc copy -ffourcc XVID -o <output-file>

-oac stands for "output audio codec"
-ovc stands for "output video codec"
-ffourcc is for forcing the changing of the fourcc setting. The non-playable files had a FourCC setting of FMP4. I changed it to XVID, which made them playable.
-o is for output file


mencoder The.Big.Show.S01E03.avi -oac copy -ovc copy -ffourcc XVID -o The.Big.Show.S01E03-XVID.avi