Convert MPEG4 movie to Quicktime (qtrle) movieįfmpeg -i output_mpeg4.avi -f mov -vcodec qtrle output.mov.Note: For mencoder the file should not be too large.X264 and XVID codecs create smaller and qualitative better files than MPEG4 codec, where has X264 creates smaller files than XVID.Mencoder mf://*.png -mf fps=5 -o /dev/null -ovc x264 -x264encopts pass=1:turbo:bitrate=1600:bframes=1:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 Create AVI file with X264 codec (use 2 pass mode: pass=1 will analyze the frames, pass=2 will create the movie).Mencoder mf://*.png -mf fps=5 -ovc xvid -xvidencopts fixed_quant=4 -o output_xvid.avi Mencoder mf://*.png -mf fps=5 -ovc lavc -o output_mpeg4.avi Mencoder mf://*.jpg -mf fps=5 -ovc lavc -o output_mpeg4.avi Create AVI movie file with MPEG4 codec (fps = frames per second):.Mogrify -format png -depth 8 -quality 100 *.jpgĬreate movies with mencoder (see also man mencoder) Convert jpg tp png files and keep the quality.Mogrify -format png -depth 8 -alpha off -density 600 -resample 150 *.eps Note: mencoder needs png with 8bit color depth, use option -depth 8 Mencoder takes jpg or png files as imput. Animated gif file created from a series of png or gif files ( see also man convert):Ĭonvert -delay 30 -loop 0 *.png animated.gifĬonvert -delay 30 -loop 0 *.gif animated.gif.mencoder: Encoding from multiple input image files: :.Alternatively open the file with LibreOffice.Convert xls (Excel) files to csv (comma-separated values) files:.Tar xfv file.tar | zip file.zip xfvz | zip file.zip MS Excel and MS Word files The following commands "convert" these files to zip files Windows users may not be able to open tar or tar.gz files.Pstoedit -pta matlab_plot.pdf matlab_plot.emf If you first convert it into a pdf file it will be ok. With the above command the boundary box will be still broken (too large). The crucial option is -pta, which fixes the ugly looking font when you directly import the eps file into openofffice ( -pta sets correct inter-letter spacing). Pstoedit -pta matlab_plot.eps matlab_plot.emf emf is still a vector based format and can be imported by openoffice. Instead of png you can convert to matlab_plot.jpg.Choose a higher number than 100 to get a higher resolution of the image.Afterwards convert the pdf file into a png or jpg fileĬonvert -density 100 matlab_plot.pdf matlab_plot.png Convert Matlab eps file in a pixel graphic like png, jpg: First convert the eps file into a pdf file.Pdfnup -nup 2x2 file.pdf # 4 pages on one page Pdfnup -nup 2x1 file.pdf # 2 pages side by side Pdftops input.pdf - | psselect -p22-36 | ps2pdf - output_p22-p36.pdf Pdfjoin file1.pdf file2.pdf # alternative Pdfunite file1.pdf file2.pdf file-new.pdf Open the PDF File with an application and save it in a different format.Pdfimages -j file.pdf image # write images if possible as JPEG files Convert a PDF file to images (one image per page)Ĭonvert page 2 ( -f 2) to page 5 ( -l 5) with a resoltion of 300 dpi ( -r 300) to five PPM image files.Note: pdf2ps does also convert PDF to PS, but normally the result is worse. The resulting NETCDF file will be mygribfile.nc Convert a transparent eps (in cmyk) to a png fileĬonvert -colorspace rgb file.eps file.png.Gs -r300 -dNOPAUSE -dUseCropBox -dBATCH -sDEVICE=jpeg -sOutputFile=file.jpg file.ps # r300 = resolution of 300 dpi Gs -r300 -dNOPAUSE -dUseCropBox -dBATCH -sDEVICE=pngalpha -sOutputFile=file.png file.ps # r300 = resolution of 300 dpi Ps2pdf -sPAPERSIZE=a4 -dOptimize=true -dEmbedAllFonts=true file.ps Just try out which tool produces the best results in your case. There is normally more than one way to convert files. The command convert can convert between several formats and has a lot of options, see man convertĬonvert -resize 50% file.jpg file_small.jpgĬonvert -resize 200x200 file.jpg file_small.jpg # ratio will be keptĬonvert -resize 1024x768! file.jpg file_desktop.jpg # ! = force the new sizeĬonvert between Windows/Mac and Linux text filesĬonvert text files between different character encodings Convert text files between different character encodings.Convert between Windows/Mac and Linux text files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |