« on: July 10, 2013, 07:16:44 PM »
This topic has been moved to Lighting.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
The flat lens eliminates optical aberrations such as the “fish-eye” effect that results from conventional wide-angle lenses. Astigmatism and coma aberrations also do not occur with the flat lens, so the resulting image or signal is completely accurate and does not require any complex corrective techniques.
for FILE in IMG*.JPG ; do convert $FILE -background black -gravity center -extent 5184x2916 -resize 4096x2304 C4$FILE ; done
for FILE in IMG*.JPG ; doReturns the name of one file at a time that match "IMG*.JPG" (like IMG_4786.JPG), and feeds it into convert.
convert $FILEConvert command, and the variable representing the input file name.
-background black -gravity centerIf the image will be padded, this sets what color the background will be, and how the image will be justified.
-extent 5184x2916This will either crop, or pad the image to the correct aspect ratio before it's resized. Think of it as changing the canvas size in Gimp (or Photoshop). My original image size is 5184x3456, to get that to the desired aspect ratio of 16:9, I can either pad (letterbox) it by setting the extent to 6144x3456. Or crop it by setting the extent to 5184x2916.
-resize 4096x2304Resizes the image to the desired size for the movie. Since we got the image in 16:9 format with extent, you can pick any 16:9 format. i.e. 1920x1080 (1080p), or 4096x2304 (4K that Youtube uses).
C4$FILEThis is the output file name, which I'm taking the variable for the input file name ($FILE), and adding "C4" to the beginning (like C4IMG_4786.JPG).
; doneTells it to go back to the beginning of the line, and grab the next file name.
mencoder "mf://C4IMG*.JPG" -mf fps=30000/1001 -o 4Ktest.avi -ovc lavc -lavcopts vcodec=mjpeg
mencoder "mf://C4IMG*.JPG"Tells mencoder to use all files that match "C4IMG*.JPG" (like C4IMG_4786.JPG) to create the video.
-mf fps=30000/1001Sets the output frames per second. You can use integer values like 10, 24, 25, 30; or fractions for the exact fps values like 30000/1001 for 29.97fps.
-o 4Ktest.aviSet the output filename.
-ovc lavc -lavcopts vcodec=mjpegSet the output video codec to mjpeg.
|Small | Large|