Friday, December 2, 2016

FFMPEG - Convert between framerates

Conversion with fixed # of frames

extract the frames as rawvideo

ffmpeg -i -f rawvideo -b 50000000 -pix_fmt yuv420p -vcodec rawvideo -s 1920x1080 -y temp.raw

recreate the video with new framerate

ffmpeg -f rawvideo -b 50000000 -pix_fmt yuv420p -r 24 -s 1920x1080 -i temp.raw -y

Conversion with fixed running length

ffmpeg -i -sameq -r 24 -y

Sunday, November 27, 2016

Increase video volume using FFMPEG

To increase the volume of the first audio track for 10dB use:

ffmpeg -i inputfile -vcodec copy -af "volume=10dB" outputfile

Wednesday, September 21, 2016

Reduce PDF size

gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=output.pdf input.pdf