ffmpeg stuff

just code i’ve used in the past

 

#2 pass:

ffmpeg -i INPUT -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b BIT_RATE -threads 0 OUTPUT.mp4
ffmpeg -i INPUT -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre slow -b BIT_RATE -threads 0 OUTPUT.mp4

 

 

#!/bin/bash

#now we transcode the concatenated video to .mp4 and .ogg
nice ffmpeg -i $1 -vcodec libx264 -acodec libfaac -vb 900k -ab 128k -ar 44100 -ac 2 -s $2x$3 -y $5.mp4 &> $5.mp4.log 2>&1
nice ffmpeg2theora $1 -V 900 -A 128k -c 2 -x $2 -y $3 -o $5.ogg &> $5.ogg.log 2>&1

#and we grab a screenshot from the middle of the video
nice ffmpeg -i $1 -ss $4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s $2x$3 -y $5.jpg &> $5.jpg.log 2>&1

ffmpeg -i INPUT -acodec libfaac -ac 2 -ar 44100 -ab 128k -s 320×240 -vcodec libx264 -b 300k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 300k -maxrate 300k -bufsize 300k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin 15 -qmax 51 -qdiff 4 -level 30 -aspect 320:240 OUTPUT.mp4

ffmpeg -y -i INPUT -vcodec libx264 -acodec libfaac -ab 128k -ac 2 -b 640 -threads 4 -flags +loop -cmp +chroma -partitions 0 -me epzs -subq 1 -trellis 0 -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 OUPUT

ffmpeg -threads 4 -i INPUT -r 29.97 -vcodec libx264 -s 480×272 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -crf 24 -bt 256k -refs 1 -coder 0 -me umh -me_range 16 -subq 5 -partitions +parti4x4+parti8x8+partp8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ab 128k -ar 48000 -ac 2 OUTPUT

AtomicParsley OUTPUT -iPod-uuid 1200 -overWrite

mencoder INPUT -o output.mp4 -vf dsize=480:320:0,scale=-8:-8,harddup -oac faac -faacopts mpeg=4:object=2:raw:br=128 -of lavf -lavfopts format=mp4:bitrate= -ovc x264 -x264encopts nocabac:level_idc=30:bitrate=3000:bframes=0

Leave a Reply

Your email address will not be published. Required fields are marked *