JS Ext

Monday, December 24, 2012

Converting old videos, Part 2

In a previous post, I talked about converting 8MM video to AVI files burned onto a CD.  Many people talk about how CDs and DVDs degrade and eventually lose data.  This Christmas, I decided to copy all the AVI files off of the CDs.  Luckily, none of the files got corrupted.  I was able to convert all 22 files to MP4 files encoded in H264.  I used Ffmpeg, which used x264.  I encoded at 500kbps.  Given the 320x240 resolution and the 15 fps, I could have probably gone lower in the bps, but disk space isn't much of an issue anymore.  I converted the video from 3.8gb on 7 CDs to 2.3gb on a single Micro SD card.  Below is the command I ran to convert.  This is derived from research a buddy of mine did to get MP4 files that work on older iPhones.


/usr/bin/ffmpeg -loglevel warning -i "./1958 January to Summer.avi" -threads 2 -r 15 -vb 500k -vcodec libx264  -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71  -maxrate 10M -bufsize 10M  -rc_eq "blurCplx^(1-qComp)" -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -pass 1 -y "./1958 January to Summer.mp4"
/usr/bin/ffmpeg -loglevel warning -i "./1958 January to Summer.avi" -threads 2 -r 15 -vb 500k -vcodec libx264  -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71  -maxrate 10M -bufsize 10M  -rc_eq "blurCplx^(1-qComp)" -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -pass 2 -y "./1958 January to Summer.mp4"

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.