-
2022-04-18 11:05:28
My PAIntBrush mac版一款多层处理的绘图软件。利用丰富的工具和画笔来绘制你所需的图像,并保存到你的Mac中。My PAIntBrush mac版是一款独特的,能够回放整个绘画过程的绘画工具。软件功能强大,仿手绘效果逼真,笔刷工具也非常的丰富。
更多相关内容 -
Paintbrush.app.zip
2019-08-10 10:21:15官网下载很慢,这里下载很快呦。下载后不用右键解压,直接双击打开就安装了,按照提示走吧。 软件功能设计和windows的画图非常相似,略少一些,可以新建自定义大小的画布。 -
Paintbrush for mac(绘图工具)
2021-04-17 15:15:29Paintbrush Mac版是Mac平台上的一款简单的绘图工具。Paintbrush Mac版为用户在Mac平台上的提供了一种快速制作简单图像的方法。...Paintbrush for mac版下载完成后,双击.pkg文件根据安装器提示进行安装即可Paintbrush Mac版是Mac平台上的一款简单的绘图工具。Paintbrush Mac版为用户在Mac平台上的提供了一种快速制作简单图像的方法。Paintbrush for mac可以打开并保存到大多数主要的图像格式,包括BMP、PNG、JPEG、TIFF和GIF。对于支持alpha通道(当前PNGs和gif)的图像格式,完全支持。有喜欢的朋友欢迎下载体验!
Paintbrush for mac版安装教程
Paintbrush for mac版下载完成后,双击.pkg文件根据安装器提示进行安装即可。Paintbrush for mac版软件特色
1、输入画笔。画笔可以打开并保存到大多数主要图像格式,包括BMP,PNG,JPEG,TIFF和GIF。对于支持Alpha通道(目前为PNG和GIF)的图像格式,可以完全支持透明度。您还可以粘贴从许多常见Mac应用程序(包括Microsoft Office和Apple iWork)复制的图像。
2、新功能
更新和简化的新UI
选择工具的透明选择和行进蚂蚁
一个完全重写的文本工具,用于精确定位插入
四种全新工具:喷枪,圆角矩形,吸管和缩放
图像大小调整,画布调整大小和裁剪
无数错误修复和速度改进
3、基本需求
画笔不是要取代Adobe Photoshop或其他高端图像编辑器。相反,它旨在满足基本,流线型和Mac原生图像编辑器的需求。无论您是需要快速裁剪照片,为图像添加一些文字,还是只是玩得开心,Paintbrush都能满足您的需求。通过简单直观的UI,Paintbrush将让您立刻发现内在的梵高。只需选择一个工具,选择颜色即可!
Paintbrush for mac版更新日志
将文本添加到任何画布时,在Big Sur上崩溃 -
1click Paintbrush-crx插件
2021-03-17 06:11:422.单击扩展程序图标(安装后)。 3.随意画画。 4.另存为图像,PDF,复制或共享您创建的图像。 有关更多说明,请访问网站:https://1ce.org权限说明:无附加权限! 我们不会将此权限用于其他任何用途。 数据使用情况... -
NeuralArt-Website:NeuralArt一个实现神经风格转换的网站:artist_palette::paintbrush:
2021-05-27 22:39:18NeuralArt网站 :artist_palette: :paintbrush: NeuralArt一个实现神经样式转换的网站 神经风格转移 神经样式转换是一种优化技术,可拍摄两个图像 内容图像。 样式参考图像(例如,著名画家的艺术品)并将其融合在... -
ayu::artist_palette::paintbrush:现代崇高文字主题
2021-02-23 07:21:40请安装它并重新启动Sublime,以获得更好的体验。 自定义UI字体 从版本5.0.0等宽字体选项已删除。 但是仍然可以在主题的用户界面中使用您喜欢的字体,只需遵循以下简单步骤即可: 通过cmd / ctrl + shift + p拉出... -
Vue Pug触控笔Vue + Pug +触控笔样板:green_heart::dog_face::paintbrush:-Vue.js开发
2021-05-27 22:35:54Vue + Pug + Stylus Vue样板关于此堆栈的信息可以在这里找到组件结构:├──config.json├──index.vue├──script.js├──style.styl├──template.pug└─ ─test.spec.js安装纱线Dev yarn dev测试纱线测试 -
Mac技巧之苹果电脑Mac OS X系统上,类似Windows画图板的软件paintbrush(For Mac 10.5 or higher)
2009-12-01 01:43:01安装后,右键的打开方式菜单里会有用paintbrush打开这一项。 此外,图片缩放、限制大小(精确到1像素)、另存转换格式等Windows微软画图的功能paintbrush自然都有---到菜单栏找吧,缩放和裁剪选项挨着,选中也都弹出... -
Mac技巧之苹果电脑Mac OS X系统上,类似Windows画图板的软件paintbrush_For Tiger
2009-12-01 01:45:09安装后,右键的打开方式菜单里会有用paintbrush打开这一项。 此外,图片缩放、限制大小(精确到1像素)、另存转换格式等Windows微软画图的功能paintbrush自然都有---到菜单栏找吧,缩放和裁剪选项挨着,选中也都弹出... -
图片工具GraphicsMagick的下载安装配置使用
2021-09-13 10:32:51- Digital Imaging and Communications in Medicine image See http://medical.nema.org/ for information on DICOM. DCR S r-- Kodak Photo RAW DCX S rw+ ZSoft IBM PC multi-page Paintbrush DNG...转自:图片工具GraphicsMagick的下载安装配置使用,更优阅读体验:http://www.kongzid.com/
目录
4.4 更改当前目录下*.jpg的尺寸大小,并保存于目录.thumb里面
1、概述
GraphicsMagick是一个短小精悍的图片处理工具和库集合。用来处理图像的读取、写入和操作,支持超过88中图像格式,包括重要的DPX、GIF、JPEG、JPEG-2000、PNG、PDF、PNM、PhotoCD、SVG和TIFF。GraphicsMagick 是从 ImageMagick 5.5.2分支出来的。
- 对于Java开发者来说,常用的图片处理工具有3个,JDK自带的图片处理库,ImageMagick,GraphicsMagick。JDK自带的图片处理库,虽稳定简单,性能却比较差;ImageMagick是目前最流行的图片处理工具,它的功能非常丰富;GraphicsMagick的功能略逊于ImageMagick,但是它的效率更强悍,但大多数情况下,GM的功能已经足够使用了。
功能特色:
- (1)使用OpenMP进行多线程图片处理,增强了通过扩展CPU提高处理能力。
- (2)支持大图片的处理,并且已经做过GB级别的图像处理实验。
- (3)能够动态的生成图片,特别适用于互联网的应用。
支持格式:
- 超过88种图像格式,包括重要的DPX、GIF、JPEG、JPEG-2000、PNG、PDF、PNM和TIFF。
支持平台:
- Linux、Mac、Windows。
使用方式:
- GaphicsMagick支持命令行的模式,同时也支持JAVA、C、C++、Perl、PHP、Tcl、 Ruby等的调用。
2、下载
2.1 进入官网地址
打开浏览器,输入官方地址http://www.graphicsmagick.org/,或百度搜索GraphicsMagick,点击官网链接进入(一般在搜索结果的第一条)。点击首页的Current Release后面的dowload release下载链接进入files页面。
或者点击首页上方的Download进入下载页面,翻到页面最下方的Download Sites,点击SourceForge file download链接进入files页面。
第1种方式:
第2种方式:
2.2 进入版本列表页面
点击上一步骤的"dowload release"链接之后会进入到如下图所示的界面,我们点击"graphicsmagick"进入版本列表页面。
2.3 选择合适的版本,进入下载页面
在版本列表页面,点击自己需要的版本号进入下载页面,这里我选择的是1.3.35版本。
2.4 下载安装包
在版本下载页面可以看到有不同类型的安装包可供我们下载,这里我选择GraphicsMagick-1.3.35.tar.gz进行下载,你也可以根据你的需要下载你想要下载的安装包。
- 下载列表上方的绿色按钮是windows版本的下载链接。
3、安装
在下载windows版本时,可以看到文件名中有Q16的字样,关于版本中的Q8,Q16的说明如下:
- Q8表示: 8-bits per pixel quantum
- Q16表示:16-bits per pixel quantum
现在数码相机照的相片,每一种颜色就是8位深,所以建议选Q8。而使用16-bit per pixel quantums在处理图片时比8-bit慢15%至50%,并须要更多的内存。
windows下载安装包后直接安装即可,linux安装步骤如下:
3.1 解压
linux安装包复制到自己指定的目录,执行解压缩命令。
tar -zxvf GraphicsMagick-1.3.35.tar.gz
3.2 编译安装
cd GraphicsMagick-1.3.35 bash ./configure --prefix=~/.local --enable-shared=true make make install
3.3 验证是否安装成功
- widows下,打开dos窗口,输入gm version,输出如下提示说明安装成功。
- linux下,输入gm version,输出如下提示说明安装成功。
[root@70-37-fw2 GraphicsMagick-1.3.35]# gm version GraphicsMagick 1.3.35 2020-02-23 Q8 http://www.GraphicsMagick.org/ Copyright (C) 2002-2020 GraphicsMagick Group. Additional copyrights and licenses apply to this software. See http://www.GraphicsMagick.org/www/Copyright.html for details. Feature Support: Native Thread Safe yes Large Files (> 32 bit) yes Large Memory (> 32 bit) yes BZIP no DPS no FlashPix no FreeType yes Ghostscript (Library) no JBIG no JPEG-2000 no JPEG yes Little CMS no Loadable Modules no Solaris mtmalloc no Google perftools tcmalloc no OpenMP yes (201107 "3.1") PNG yes TIFF yes TRIO no Solaris umem no WebP no WMF no X11 no XML no ZLIB yes Host type: x86_64-pc-linux-gnu Configured using the command: ./configure '--enable-shared' Final Build Parameters: CC = gcc -std=gnu99 CFLAGS = -fopenmp -g -O2 -Wall -pthread CPPFLAGS = -I/usr/include/freetype2 CXX = g++ CXXFLAGS = -pthread LDFLAGS = LIBS = -ltiff -lfreetype -ljpeg -lpng15 -lz -lm -lpthread
3.4 设置环境变量
- 使用vi或vim打开配置文件,vim /etc/profile 在最后添加如下配置
- 安装yum命令,centos 系统输入命令:yum -y install vim* 。ubuntu 系统输入命令:sudo apt-get install vim-gtk 。
export GMAGICK_HOME=/home/local/GraphicsMagick-1.3.25 export PATH=$GMAGICK_HOME/bin:$PATH LD_LIBRARY_PATH=$GMAGICK_HOME/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH
- 生效配置,使用如下命令
source /etc/profile
- 重启服务器,使用gm convert -list formats命令查看支持的图片转换格式,如下,可以看到支持JPEG,JPG,PNG,GIF等多种图片格式转换。
[root@70-37-fw2 GraphicsMagick-1.3.35]# gm convert -list formats Format L Mode Description -------------------------------------------------------------------------------- 3FR S r-- Hasselblad Photo RAW 8BIM P rw- Photoshop resource format 8BIMTEXT P rw- Photoshop resource text format 8BIMWTEXT P rw- Photoshop resource wide text format APP1 P rw- Raw application information APP1JPEG P rw- Raw JPEG binary data ART S rw- PFS: 1st Publisher ARW S r-- Sony Alpha DSLR RAW AVS U rw+ AVS X image B S rw+ Raw blue samples BIGTIFF P rw+ Tagged Image File Format (64-bit offsets) BMP P rw- Microsoft Windows bitmap image BMP2 P -w- Microsoft Windows bitmap image v2 BMP3 P -w- Microsoft Windows bitmap image v3 BRF S -w- BRF ASCII Braille format C S rw+ Raw cyan samples CACHE U --- Magick Persistent Cache image format CALS S rw- Continuous Acquisition and Life-cycle Support Type 1 image Specified in MIL-R-28002 and MIL-PRF-28002 CAPTION P r-- Image caption CIN S rw- Cineon Image File CMYK S rw+ Raw cyan, magenta, yellow, and black samples CMYKA S rw+ Raw cyan, magenta, yellow, black, and opacity samples CR2 S r-- Canon Photo RAW CRW S r-- Canon Photo RAW CUR S r-- Microsoft Cursor Icon CUT S r-- DR Halo DCM S r-- Digital Imaging and Communications in Medicine image See http://medical.nema.org/ for information on DICOM. DCR S r-- Kodak Photo RAW DCX S rw+ ZSoft IBM PC multi-page Paintbrush DNG S r-- Adobe Digital Negative DPX P rw- SMPTE 268M-2003 (DPX 2.0) See http://www.smtpe.org/ for information on DPX. EPDF P rw- Encapsulated Portable Document Format EPI P rw- Adobe Encapsulated PostScript Interchange format EPS P rw- Adobe Encapsulated PostScript EPS2 P -w- Adobe Level II Encapsulated PostScript EPS3 P -w+ Adobe Level III Encapsulated PostScript EPSF P rw- Adobe Encapsulated PostScript EPSI P rw- Adobe Encapsulated PostScript Interchange format EPT P rw- Adobe Encapsulated PostScript with MS-DOS TIFF preview EPT2 P rw- Adobe Level II Encapsulated PostScript with MS-DOS TIFF preview EPT3 P rw- Adobe Level III Encapsulated PostScript with MS-DOS TIFF preview ERF S r-- Epson RAW Format EXIF P rw- Exif digital camera binary data FAX P rw+ Group 3 FAX (Not TIFF Group3 FAX!) FITS S rw- Flexible Image Transport System FRACTAL S r-- Plasma fractal image G S rw+ Raw green samples GIF P rw+ CompuServe graphics interchange format (version 89a) GIF87 P rw- CompuServe graphics interchange format (version 87a) GRADIENT P r-- Gradual passing from one shade to another GRAY S rw+ Raw gray samples GRAYA S rw+ Raw gray samples + alpha HISTOGRAM P -w- Histogram of the image HRZ S r-- HRZ: Slow scan TV HTML S -w- Hypertext Markup Language and a client-side image map ICB S rw+ Truevision Targa image ICC P rw- ICC Color Profile ICM P rw- ICC Color Profile ICO S r-- Microsoft Icon ICON S r-- Microsoft Icon IDENTITY P r-- Hald CLUT identity image IMAGE P r-- GraphicsMagick Embedded Image INFO S -w+ Image descriptive information and statistics IPTC P rw- IPTC Newsphoto IPTCTEXT P rw- IPTC Newsphoto text format IPTCWTEXT P rw- IPTC Newsphoto text format ISOBRL S -w- ISO/TR 11548-1 format ISOBRL6 S -w- ISO/TR 11548-1 format 6dot JNG S rw- JPEG Network Graphics (libpng 1.5.13, zlib 1.2.7) See http://www.libpng.org/pub/mng/ for information on JNG. JNX S r-- JNX: Garmin tile storage format JPEG P rw- Joint Photographic Experts Group JFIF format (IJG JPEG 62) JPG P rw- Joint Photographic Experts Group JFIF format (IJG JPEG 62) K S rw+ Raw black samples K25 S r-- Kodak Photo RAW KDC S r-- Kodak Photo RAW LABEL P r-- Image label M S rw+ Raw magenta samples M2V S -w+ MPEG Video Stream MAC S r-- Mac Paint MAP U rw- Colormap intensities and indices MAT S rw+ MATLAB Level 4.0-7.0 image formats MATTE S -w+ MATTE raw opacity format MEF S r-- Mamiya Photo RAW MIFF P rw+ Magick Image File Format (GraphicsMagick 1.3.35, Zlib 1.2.7) MNG S rw+ Multiple-image Network Graphics (libpng 1.5.13, zlib 1.2.7) See http://www.libpng.org/pub/mng/ for information on MNG. MONO S rw- Bi-level bitmap in least-significant-byte first order MPC U rw+ Magick Persistent Cache image format MPEG S -w+ MPEG Video Stream MPG S -w+ MPEG Video Stream MRW S r-- Minolta Photo RAW MTV U rw+ MTV Raytracing image format MVG S rw- Magick Vector Graphics NEF S r-- Nikon Electronic Format NULL P rw- Constant image of uniform color O S rw+ Raw opacity samples ORF S r-- Olympus Photo RAW OTB S rw- On-the-air bitmap P7 S rw+ Xv thumbnail format PAL S rw- 16bit/pixel interleaved YUV PALM U r-- Palm pixmap PAM P rw+ Portable Arbitrary Map format PBM P rw+ Portable bitmap format (black/white) PCD S rw- Photo CD PCDS S rw- Photo CD PCL S -w+ Page Control Language PCT S rw- Apple Macintosh QuickDraw/PICT PCX S rw- ZSoft IBM PC Paintbrush PDB U rw+ Palm Database ImageViewer Format PDF P rw+ Portable Document Format PEF S r-- Pentax Electronic File PFA P r-- Postscript Type 1 font (ASCII) (FreeType 2.8.0) PFB P r-- Postscript Type 1 font (binary) (FreeType 2.8.0) PGM P rw+ Portable graymap format (gray scale) PICON S rw- Personal Icon PICT S rw- Apple Macintosh QuickDraw/PICT PIX S r-- Alias/Wavefront RLE image format PLASMA S r-- Plasma fractal image PNG P rw- Portable Network Graphics (libpng 1.5.13, zlib 1.2.7) See http://www.libpng.org/ for information on PNG.. PNG00 P rw- PNG that inherits type and depth from original (libpng 1.5.13, zlib 1.2.7) PNG24 P rw- 24-bit RGB PNG, opaque only (libpng 1.5.13, zlib 1.2.7) PNG32 P rw- 32-bit RGBA PNG, semitransparency OK (libpng 1.5.13, zlib 1.2.7) PNG48 P rw- opaque or binary transparent 48-bit RGB (libpng 1.5.13, zlib 1.2.7) PNG64 P rw- opaque or transparent 64-bit RGBA (libpng 1.5.13, zlib 1.2.7) PNG8 P rw- 8-bit indexed PNG, binary transparency only (libpng 1.5.13, zlib 1.2.7) PNM P rw+ Portable anymap PPM P rw+ Portable pixmap format (color) PREVIEW S -w- Show a preview an image enhancement, effect, or f/x PS P rw+ Adobe PostScript PS2 P -w+ Adobe Level II PostScript PS3 P -w+ Adobe Level III PostScript PTIF S rw+ Pyramid encoded TIFF PWP U r-- Seattle Film Works R S rw+ Raw red samples RAF S r-- Fuji Photo RAW RAS S rw+ SUN Rasterfile RGB S rw+ Raw red, green, and blue samples RGBA S rw+ Raw red, green, blue, and matte samples RLA U r-- Alias/Wavefront image RLE U r-- Utah Run length encoded image SCT U r-- Scitex HandShake SFW U r-- Seattle Film Works SGI S rw- Irix RGB image SHTML S -w- Hypertext Markup Language and a client-side image map SR2 S r-- Sony Photo RAW SRF S r-- Sony Photo RAW STEGANO S r-- Steganographic image SUN S rw+ SUN Rasterfile SVG S --- Scalable Vector Graphics SVGZ S --- Scalable Vector Graphics (ZIP compressed) TEXT S rw+ ASCII Text TGA S rw+ Truevision Targa image TIFF P rw+ Tagged Image File Format (LIBTIFF, Version 4.0.3) TILE P r-- Tile image with a texture Use the syntax "-size WIDTHxHEIGHT TILE:imagename" to tile the specified tile image over a canvas image of size WIDTHxHEIGHT. TIM S r-- PSX TIM TOPOL S r-- TOPOL X Image TTF P r-- TrueType font (FreeType 2.8.0) TXT S rw+ ASCII Text UBRL S -w- Unicode Text format UBRL6 S -w- Unicode Text format 6dot UIL U -w- X-Motif UIL table UYVY S rw- 16bit/pixel interleaved YUV VDA S rw+ Truevision Targa image VICAR S rw- VICAR rasterfile format VID S rw+ Visual Image Directory VIFF S rw+ Khoros Visualization image VST S rw+ Truevision Targa image WBMP S rw- Wireless Bitmap (level 0) image WPG U r-- Word Perfect Graphics X3F S r-- Foveon X3 (Sigma/Polaroid) RAW XBM S rw- X Windows system bitmap (black/white) XC P r-- Constant image uniform color XCF S r-- GIMP image XMP P rw- Adobe XML metadata XPM S rw- X Windows system pixmap (color) XV S rw+ Khoros Visualization image Y S rw+ Raw yellow samples YUV S rw- CCIR 601 4:1:1 or 4:2:2 (8-bit only) Meaning of 'L': P=Primary, S=Stable, U=Unstable
- 可以使用如下命令裁剪图片,
gm convert -resize 100x80^ -gravity Center -crop 100x80+0+0 sample.jpg thumb.jpg
命令说明:gravity 表示中心坐标,可选值为 Center , NorthWest(左上), NorthEast(右上), SouthWest(左下), SouthEast(右下) ,由Center参数即由中心开始向两边裁剪,+指定x轴向y轴向的偏移量。sample.jpg为要裁剪的图片且必须存在,thumb.jpg/png为裁剪后生成的新图片,可以拷贝生成的文件到本地后查看,能正常显示,则说明所有安装均正常。
4、常用操作命令
ImageMagick、GraphicsMagick的命令概览,以下说明的是使用命令行的方式。
[ convert | identify | mogrify | composite | montage | compare | display | animate | import | conjure ]
- convert:转换图像格式和大小,模糊,裁剪,驱除污点,抖动,临近,图片上画图片,加入新图片,生成缩略图等。
- identify:描述一个或较多图像文件的格式和特性。
- mogrify:按规定尺寸转换一个图像,模糊,裁剪,抖动等。Mogrify改写最初的图像文件然后写到一个不同的图像文件。
- composite:根据一个图片或多个图片组合生成图片。
- montage:创建一些分开的要素图像。在含有要素图像任意的装饰图片,如边框、结构、图片名称等。
- compare:在算术上和视觉上评估不同的图片***其它的改造图片。
- display:如果你拥有一个X server的系统,它可以按次序的显示图片
- animate:利用X server显示动画图片
- import:在X server或任何可见的窗口上输出图片文件。 你可以捕获单一窗口,整个的荧屏或任何荧屏的矩形部分。
- conjure:解释执行 MSL (Magick Scripting Language) 写的脚本。
4.1 查看图片信息
# 显示图像文件详细信息 gm identify input.jpg # 识别图片(高级),可以打印出很多信息 gm identify -verbose input.jpg
4.2 生成缩略图
# 原始图片是input.jpg,尺寸:160x120 # 等比缩图 (缺点:产生白边) gm convert input.jpg -thumbnail 100x100 output.jpg --生成的图片大小是:100x75 # 只缩小不放大 gm convert input.jpg -resize “500x500>” output_1.jpg 加了>,表示只有当图片的宽与高,大于给定的宽与高时,才进行“缩小”操作。 生成的图片大小是:160x120,未进行操作 如果不加>,会导致图片被等比放大。 # 非等比缩图,按给定的参数缩图(缺点:长宽比会变化) gm convert input.jpg -thumbnail “100x100!” output_2.jpg --生成的图片大小是:100x100 # 裁剪后保证等比缩图 (缺点:裁剪了图片的一部分) gm convert input.jpg -thumbnail “100x100^” -gravity center -extent 100x100 output_3.jpg -- 生成的图片大小是:100x100,还保证了比例。不过图片经过了裁剪,剪了图片左右两边才达到1:1 # 填充后保证等比缩图 (缺点:要填充颜色,和第一种方法基本一样) gm convert input.jpg -thumbnail “100x100” -background gray -gravity center -extent 100x100 output_4.jpg -- 生成的图片大小是:100x100,还保证了比例,同时没有对图片进行任何裁剪,缺失的部分按指定颜色进行填充。 # 裁剪、填充相结合 (缺点:最差的方法) gm convert input.jpg -thumbnail "10000@ -background gray -gravity center -extent 100x100 output_5.jpg -- 生成的图片大小是:100x100,这次保证了大小和比例,其中的10000就是100x100的乘积,同时在填充和裁剪之间做了一个平衡。 # 位深度32 转为24, IE6,7,8不支持显示“位深度32”的图片,但IE9、火狐、谷歌浏览器就可以显示。 使用GM,把“位深度32”的图片转换为“位深度24”的图片 输入图片zzz.jpg就是“位深度32”的图片,输出图片 zzz_out.jpg就是“位深度24”的图片 gm convert -resize 100x100 -colorspace RGB zzz.jpg zzz_out.jpg -- 转完后,图片的颜色会有轻微变化。
4.3 添加水印
gm composite -geometry 100x100% -gravity SouthEast logo.png input.jpg output.jpg
4.4 更改当前目录下*.jpg的尺寸大小,并保存于目录.thumb里面
gm mogrify -output-directory .thumbs -resize 320x200 *.jpg
4.5 将三幅图像和并为一副图像
gm montage -mode concatenate -tile 3x1 image1.ppm image2.ppm image3.ppm concatenated.miff
4.6 显示图像
gm display ‘vid:*.jpg’
4.7 格式转换
gm convert a.bmp a.jpg gm convert a.bmp a.pdf(转换为pdf)
4.8 调整图像dpi和大小
gm convert -density 288 -geometry 25% image.gif image.gif (缩小为原先的1/4,并且dpi为288) gm convert -resize 640x480 image.gif image.gif (转换为640x480的图像)
4.9 在图像上添加文字
gm convert -font Arial -fill blue -pointsize 18 -draw “text 10,10 ‘your text here’” test.tif test.png
4.10 从gif文件中抽取第一帧
gm convert “Image.gif[0]” first.gif
4.11 建立gif图像
gm convert -delay 20 frame*.gif animation.gif gm convert -loop 50 frame*.gif animation.gif (让动画循环50次) gm convert -delay 20 frame1.gif -delay 10 frame2.gif -delay 5 frame3.gif animation.gif (对每一帧手动指定延时)
4.12 截屏
gm import a.jpg 用鼠标点击所要截取的窗口,或者选择截屏区域,保存为a.jpg gm import -frame a.jpg 保留窗口的边框
5、获取不到“gm”执行文件
执行命令或代码时,提示cannot run program "gm": error=2, No such file or directory这样的错误时,有两种解决方案:
5.1 代码中设置gm路径
ConvertCmd convert = new ConvertCmd(true); convert.setSearchPath("/home/local/GraphicsMagick-1.3.25/bin");
5.2 将gm拷贝到/usr/bin目录下(推荐做法)
cp /home/local/GraphicsMagick-1.3.25/bin/gm /usr/bin/
-
docsify-cli:ify docsify CLI工具-一个神奇的文档生成器
2021-05-02 16:02:11:paintbrush: docsify cli-一个神奇的文档生成器。 通过金赞助商 截屏 通过实时重载在localhost上运行服务器。 安装 通过npm或yarn全局安装docsify-cli 。 npm i docsify-cli -g # yarn global add docsify-cli ... -
Trimage:用于优化PNG和JPG文件的跨平台工具
2021-05-06 13:19:22:paintbrush: -通过从您的网站中提取设计令牌来启动您的设计系统 :spiral_notepad: 一个智能但简单的自动保存本 Trimage图像压缩器 用于优化PNG和JPG文件的跨平台工具。 Trimage是一个跨平台的GUI和命令行界面,... -
sass-workshop:仓库基础基地@ Valtech:love-you_gesture_medium_skin_tone:
2021-04-03 08:32:45萨斯·沃克肖普(Sass Wokrshop) :paintbrush: @valtech实习生性骚扰研讨会的教学指南。 要求 :brain: 要继续讲习班,您需要了解html,语义和基本CSS。 工具:工具: :pushpin: 我们将不在研讨会中使用任何打包... -
SwirledAPI:我用来发展Discord.js技能的简单机器人
2021-04-17 09:24:35SwirledAPI 我用来开发Discord.js技能的简单Discord Bot。 您也可以将其用作自己的不和谐机器人 ... :paintbrush: 客制化 {optional}前缀(默认为s?)-转到SwirledAPI\SwirledAPI\events\guild\messag -
React组件以使用 SVG 绘制
2021-06-08 15:23:52使用 SVG 作为画布的 React 手绘矢量绘图工具:paintbrush: 概述功能支持桌面和移动。 接受来自鼠标、触摸板和图形输入板的输入。 要求 需要 React 16.4 依赖于 Immer 和 pepjs 想在使用之前测试 React Sketch Canvas... -
take77_port
2021-03-20 07:36:19未安装插件,非常适合高级用户。 :straight_ruler: ESLint —可插拔JavaScript linter :sparkling_heart:更漂亮-固执己见的代码格式化程序 :dog_face:沙哑-轻松使用git钩子 :page_facing_up: Commitizen-常规... -
IEEE-INSAT-Student-Branch-Website
2021-03-05 04:25:35未安装插件,非常适合高级用户。 :straight_ruler: ESLint —可插拔JavaScript linter :sparkling_heart: 更漂亮-固执己见的代码格式化程序 :dog_face: 沙哑-轻松使用git钩子 :page_facing_up: Commitizen-常规... -
Swalt:在几行代码中显示惊人的甜蜜警报
2021-05-04 01:04:45:laptop: 安装 $ npm install swalt :open_book: 用法 import swalt from 'swalt' ; swalt ( "Hello world!" ) ; :paintbrush: 范本 普通 swalt ( "Hello world!" ) ; 黑暗模式 swalt ( "Hello World" , { mode... -
Socket.io-whiteboard::artist_palette:使用socket.ioHTML5画布实时绘制
2021-02-05 01:47:40:paintbrush: 这是什么? 这是我用于草图猜测多人游戏JavaScript代码的简化版本我正在尝试我曾经工作。 请记住,这是我仍在开发中,因为我正在尝试各种方法来构建它。 不过,对于类似项目而言,这可能是一个不错的... -
FFmpeg再学习 -- Linux 安装说明
2017-05-22 15:02:19ffmpeg 之前项目有用到过,最近在做使用 ffmpeg 将 jpeg 转成 mp4,正好借此机会将安装过程说明一下。参看:关于ffmpeg的安装详细步骤和说明Windows下安装方法我就不讲了,可以参看上面的文章。现在我讲讲在 Ubuntu ...参看:ffmpeg 入门
ffmpeg 之前项目有用到过,最近在做使用 ffmpeg 将 jpeg 转成 mp4,正好借此机会将安装过程说明一下。
Windows下安装方法,可以参看上面的文章。
下载:Download FFmpeg for Windows 该页面里也有相关的 External Libraries 链接
解压后即可使用:
ffmpeg -i C:\ffmpeg\test.avi -b:v 640k c:\ffmpeg\output.ts现在我讲讲在 Ubuntu 下的安装。
首先需要安装几个必要的解码器:
更多可部分:
接下来开始讲ffmpeg的安装
1、首先下载
下载:ffmpeg 官网下载 下载的版本为 ffmpeg-3.3.1.tar
2、解压
将软件拷贝到指定位置,解压。tar -xvf ffmpeg-3.3.1.tar
3、配置
可以使用 ./configure --help 看看哪些功能是我们需要打开关闭的# ./configure --help Usage: configure [options] Options: [defaults in brackets after descriptions] Help options: --help print this message --quiet Suppress showing informative output --list-decoders show all available decoders --list-encoders show all available encoders --list-hwaccels show all available hardware accelerators --list-demuxers show all available demuxers --list-muxers show all available muxers --list-parsers show all available parsers --list-protocols show all available protocols --list-bsfs show all available bitstream filters --list-indevs show all available input devices --list-outdevs show all available output devices --list-filters show all available filters Standard options: --logfile=FILE log tests and output to FILE [config.log] --disable-logging do not log configure debug information --fatal-warnings fail if any configure warning is generated --prefix=PREFIX install in PREFIX [/usr/local] --bindir=DIR install binaries in DIR [PREFIX/bin] --datadir=DIR install data files in DIR [PREFIX/share/ffmpeg] --docdir=DIR install documentation in DIR [PREFIX/share/doc/ffmpeg] --libdir=DIR install libs in DIR [PREFIX/lib] --shlibdir=DIR install shared libs in DIR [LIBDIR] --incdir=DIR install includes in DIR [PREFIX/include] --mandir=DIR install man page in DIR [PREFIX/share/man] --pkgconfigdir=DIR install pkg-config files in DIR [LIBDIR/pkgconfig] --enable-rpath use rpath to allow installing libraries in paths not part of the dynamic linker search path use rpath when linking programs (USE WITH CARE) --install-name-dir=DIR Darwin directory name for installed targets Licensing options: --enable-gpl allow use of GPL code, the resulting libs and binaries will be under GPL [no] --enable-version3 upgrade (L)GPL to version 3 [no] --enable-nonfree allow use of nonfree code, the resulting libs and binaries will be unredistributable [no] Configuration options: --disable-static do not build static libraries [no] --enable-shared build shared libraries [no] --enable-small optimize for size instead of speed --disable-runtime-cpudetect disable detecting CPU capabilities at runtime (smaller binary) --enable-gray enable full grayscale support (slower color) --disable-swscale-alpha disable alpha channel support in swscale --disable-all disable building components, libraries and programs --enable-raise-major increase major version numbers in sonames [no] Program options: --disable-programs do not build command line programs --disable-ffmpeg disable ffmpeg build --disable-ffplay disable ffplay build --disable-ffprobe disable ffprobe build --disable-ffserver disable ffserver build Documentation options: --disable-doc do not build documentation --disable-htmlpages do not build HTML documentation pages --disable-manpages do not build man documentation pages --disable-podpages do not build POD documentation pages --disable-txtpages do not build text documentation pages Component options: --disable-avdevice disable libavdevice build --disable-avcodec disable libavcodec build --disable-avformat disable libavformat build --disable-swresample disable libswresample build --disable-swscale disable libswscale build --disable-postproc disable libpostproc build --disable-avfilter disable libavfilter build --enable-avresample enable libavresample build [no] --disable-pthreads disable pthreads [autodetect] --disable-w32threads disable Win32 threads [autodetect] --disable-os2threads disable OS/2 threads [autodetect] --disable-network disable network support [no] --disable-dct disable DCT code --disable-dwt disable DWT code --disable-error-resilience disable error resilience code --disable-lsp disable LSP code --disable-lzo disable LZO decoder code --disable-mdct disable MDCT code --disable-rdft disable RDFT code --disable-fft disable FFT code --disable-faan disable floating point AAN (I)DCT code --disable-pixelutils disable pixel utils in libavutil Individual component options: --disable-everything disable all components listed below --disable-encoder=NAME disable encoder NAME --enable-encoder=NAME enable encoder NAME --disable-encoders disable all encoders --disable-decoder=NAME disable decoder NAME --enable-decoder=NAME enable decoder NAME --disable-decoders disable all decoders --disable-hwaccel=NAME disable hwaccel NAME --enable-hwaccel=NAME enable hwaccel NAME --disable-hwaccels disable all hwaccels --disable-muxer=NAME disable muxer NAME --enable-muxer=NAME enable muxer NAME --disable-muxers disable all muxers --disable-demuxer=NAME disable demuxer NAME --enable-demuxer=NAME enable demuxer NAME --disable-demuxers disable all demuxers --enable-parser=NAME enable parser NAME --disable-parser=NAME disable parser NAME --disable-parsers disable all parsers --enable-bsf=NAME enable bitstream filter NAME --disable-bsf=NAME disable bitstream filter NAME --disable-bsfs disable all bitstream filters --enable-protocol=NAME enable protocol NAME --disable-protocol=NAME disable protocol NAME --disable-protocols disable all protocols --enable-indev=NAME enable input device NAME --disable-indev=NAME disable input device NAME --disable-indevs disable input devices --enable-outdev=NAME enable output device NAME --disable-outdev=NAME disable output device NAME --disable-outdevs disable output devices --disable-devices disable all devices --enable-filter=NAME enable filter NAME --disable-filter=NAME disable filter NAME --disable-filters disable all filters External library support: Using any of the following switches will allow FFmpeg to link to the corresponding external library. All the components depending on that library will become enabled, if all their other dependencies are met and they are not explicitly disabled. E.g. --enable-libwavpack will enable linking to libwavpack and allow the libwavpack encoder to be built, unless it is specifically disabled with --disable-encoder=libwavpack. Note that only the system libraries are auto-detected. All the other external libraries must be explicitly enabled. Also note that the following help text describes the purpose of the libraries themselves, not all their features will necessarily be usable by FFmpeg. --enable-avisynth enable reading of AviSynth script files [no] --disable-bzlib disable bzlib [autodetect] --enable-chromaprint enable audio fingerprinting with chromaprint [no] --enable-frei0r enable frei0r video filtering [no] --enable-gcrypt enable gcrypt, needed for rtmp(t)e support if openssl, librtmp or gmp is not used [no] --enable-gmp enable gmp, needed for rtmp(t)e support if openssl or librtmp is not used [no] --enable-gnutls enable gnutls, needed for https support if openssl is not used [no] --disable-iconv disable iconv [autodetect] --enable-jni enable JNI support [no] --enable-ladspa enable LADSPA audio filtering [no] --enable-libass enable libass subtitles rendering, needed for subtitles and ass filter [no] --enable-libbluray enable BluRay reading using libbluray [no] --enable-libbs2b enable bs2b DSP library [no] --enable-libcaca enable textual display using libcaca [no] --enable-libcelt enable CELT decoding via libcelt [no] --enable-libcdio enable audio CD grabbing with libcdio [no] --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 and libraw1394 [no] --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no] --enable-libflite enable flite (voice synthesis) support via libflite [no] --enable-libfontconfig enable libfontconfig, useful for drawtext filter [no] --enable-libfreetype enable libfreetype, needed for drawtext filter [no] --enable-libfribidi enable libfribidi, improves drawtext filter [no] --enable-libgme enable Game Music Emu via libgme [no] --enable-libgsm enable GSM de/encoding via libgsm [no] --enable-libiec61883 enable iec61883 via libiec61883 [no] --enable-libilbc enable iLBC de/encoding via libilbc [no] --enable-libkvazaar enable HEVC encoding via libkvazaar [no] --enable-libmodplug enable ModPlug via libmodplug [no] --enable-libmp3lame enable MP3 encoding via libmp3lame [no] --enable-libnut enable NUT (de)muxing via libnut, native (de)muxer exists [no] --enable-libopencore-amrnb enable AMR-NB de/encoding via libopencore-amrnb [no] --enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no] --enable-libopencv enable video filtering via libopencv [no] --enable-libopenh264 enable H.264 encoding via OpenH264 [no] --enable-libopenjpeg enable JPEG 2000 de/encoding via OpenJPEG [no] --enable-libopenmpt enable decoding tracked files via libopenmpt [no] --enable-libopus enable Opus de/encoding via libopus [no] --enable-libpulse enable Pulseaudio input via libpulse [no] --enable-librubberband enable rubberband needed for rubberband filter [no] --enable-librtmp enable RTMP[E] support via librtmp [no] --enable-libschroedinger enable Dirac de/encoding via libschroedinger [no] --enable-libshine enable fixed-point MP3 encoding via libshine [no] --enable-libsmbclient enable Samba protocol via libsmbclient [no] --enable-libsnappy enable Snappy compression, needed for hap encoding [no] --enable-libsoxr enable Include libsoxr resampling [no] --enable-libspeex enable Speex de/encoding via libspeex [no] --enable-libssh enable SFTP protocol via libssh [no] --enable-libtesseract enable Tesseract, needed for ocr filter [no] --enable-libtheora enable Theora encoding via libtheora [no] --enable-libtwolame enable MP2 encoding via libtwolame [no] --enable-libv4l2 enable libv4l2/v4l-utils [no] --enable-libvidstab enable video stabilization using vid.stab [no] --enable-libvo-amrwbenc enable AMR-WB encoding via libvo-amrwbenc [no] --enable-libvorbis enable Vorbis en/decoding via libvorbis, native implementation exists [no] --enable-libvpx enable VP8 and VP9 de/encoding via libvpx [no] --enable-libwavpack enable wavpack encoding via libwavpack [no] --enable-libwebp enable WebP encoding via libwebp [no] --enable-libx264 enable H.264 encoding via x264 [no] --enable-libx265 enable HEVC encoding via x265 [no] --enable-libxavs enable AVS encoding via xavs [no] --enable-libxcb enable X11 grabbing using XCB [autodetect] --enable-libxcb-shm enable X11 grabbing shm communication [autodetect] --enable-libxcb-xfixes enable X11 grabbing mouse rendering [autodetect] --enable-libxcb-shape enable X11 grabbing shape rendering [autodetect] --enable-libxvid enable Xvid encoding via xvidcore, native MPEG-4/Xvid encoder exists [no] --enable-libzimg enable z.lib, needed for zscale filter [no] --enable-libzmq enable message passing via libzmq [no] --enable-libzvbi enable teletext support via libzvbi [no] --disable-lzma disable lzma [autodetect] --enable-decklink enable Blackmagic DeckLink I/O support [no] --enable-mediacodec enable Android MediaCodec support [no] --enable-netcdf enable NetCDF, needed for sofalizer filter [no] --enable-openal enable OpenAL 1.1 capture support [no] --enable-opencl enable OpenCL code --enable-opengl enable OpenGL rendering [no] --enable-openssl enable openssl, needed for https support if gnutls is not used [no] --disable-schannel disable SChannel SSP, needed for TLS support on Windows if openssl and gnutls are not used [autodetect] --disable-sdl2 disable sdl2 [autodetect] --disable-securetransport disable Secure Transport, needed for TLS support on OSX if openssl and gnutls are not used [autodetect] --disable-xlib disable xlib [autodetect] --disable-zlib disable zlib [autodetect] The following libraries provide various hardware acceleration features: --disable-audiotoolbox disable Apple AudioToolbox code [autodetect] --disable-cuda disable dynamically linked Nvidia CUDA code [autodetect] --disable-cuvid disable Nvidia CUVID support [autodetect] --disable-d3d11va disable Microsoft Direct3D 11 video acceleration code [autodetect] --disable-dxva2 disable Microsoft DirectX 9 video acceleration code [autodetect] --enable-libmfx enable Intel MediaSDK (AKA Quick Sync Video) code via libmfx [no] --enable-libnpp enable Nvidia Performance Primitives-based code [no] --enable-mmal enable Broadcom Multi-Media Abstraction Layer (Raspberry Pi) via MMAL [no] --disable-nvenc disable Nvidia video encoding code [autodetect] --enable-omx enable OpenMAX IL code [no] --enable-omx-rpi enable OpenMAX IL code for Raspberry Pi [no] --disable-vaapi disable Video Acceleration API (mainly Unix/Intel) code [autodetect] --disable-vda disable Apple Video Decode Acceleration code [autodetect] --disable-vdpau disable Nvidia Video Decode and Presentation API for Unix code [autodetect] --disable-videotoolbox disable VideoToolbox code [autodetect] Toolchain options: --arch=ARCH select architecture [] --cpu=CPU select the minimum required CPU (affects instruction selection, may crash on older CPUs) --cross-prefix=PREFIX use PREFIX for compilation tools [] --progs-suffix=SUFFIX program name suffix [] --enable-cross-compile assume a cross-compiler is used --sysroot=PATH root of cross-build tree --sysinclude=PATH location of cross-build system headers --target-os=OS compiler targets OS [] --target-exec=CMD command to run executables on target --target-path=DIR path to view of build directory on target --target-samples=DIR path to samples directory on target --tempprefix=PATH force fixed dir/prefix instead of mktemp for checks --toolchain=NAME set tool defaults according to NAME --nm=NM use nm tool NM [nm -g] --ar=AR use archive tool AR [ar] --as=AS use assembler AS [] --ln_s=LN_S use symbolic link tool LN_S [ln -s -f] --strip=STRIP use strip tool STRIP [strip] --windres=WINDRES use windows resource compiler WINDRES [windres] --yasmexe=EXE use yasm-compatible assembler EXE [yasm] --cc=CC use C compiler CC [gcc] --cxx=CXX use C compiler CXX [g++] --objcc=OCC use ObjC compiler OCC [gcc] --dep-cc=DEPCC use dependency generator DEPCC [gcc] --ld=LD use linker LD [] --pkg-config=PKGCONFIG use pkg-config tool PKGCONFIG [pkg-config] --pkg-config-flags=FLAGS pass additional flags to pkgconf [] --ranlib=RANLIB use ranlib RANLIB [ranlib] --doxygen=DOXYGEN use DOXYGEN to generate API doc [doxygen] --host-cc=HOSTCC use host C compiler HOSTCC --host-cflags=HCFLAGS use HCFLAGS when compiling for host --host-cppflags=HCPPFLAGS use HCPPFLAGS when compiling for host --host-ld=HOSTLD use host linker HOSTLD --host-ldflags=HLDFLAGS use HLDFLAGS when linking for host --host-libs=HLIBS use libs HLIBS when linking for host --host-os=OS compiler host OS [] --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [] --extra-cxxflags=ECFLAGS add ECFLAGS to CXXFLAGS [] --extra-objcflags=FLAGS add FLAGS to OBJCFLAGS [] --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [] --extra-ldexeflags=ELDFLAGS add ELDFLAGS to LDEXEFLAGS [] --extra-ldlibflags=ELDFLAGS add ELDFLAGS to LDLIBFLAGS [] --extra-libs=ELIBS add ELIBS [] --extra-version=STRING version string suffix [] --optflags=OPTFLAGS override optimization-related compiler flags --build-suffix=SUFFIX library name suffix [] --enable-pic build position-independent code --enable-thumb compile for Thumb instruction set --enable-lto use link-time optimization --env="ENV=override" override the environment variables Advanced options (experts only): --malloc-prefix=PREFIX prefix malloc and related names with PREFIX --custom-allocator=NAME use a supported custom allocator --disable-symver disable symbol versioning --enable-hardcoded-tables use hardcoded tables instead of runtime generation --disable-safe-bitstream-reader disable buffer boundary checking in bitreaders (faster, but may crash) --sws-max-filter-size=N the max filter size swscale uses [256] Optimization options (experts only): --disable-asm disable all assembly optimizations --disable-altivec disable AltiVec optimizations --disable-vsx disable VSX optimizations --disable-power8 disable POWER8 optimizations --disable-amd3dnow disable 3DNow! optimizations --disable-amd3dnowext disable 3DNow! extended optimizations --disable-mmx disable MMX optimizations --disable-mmxext disable MMXEXT optimizations --disable-sse disable SSE optimizations --disable-sse2 disable SSE2 optimizations --disable-sse3 disable SSE3 optimizations --disable-ssse3 disable SSSE3 optimizations --disable-sse4 disable SSE4 optimizations --disable-sse42 disable SSE4.2 optimizations --disable-avx disable AVX optimizations --disable-xop disable XOP optimizations --disable-fma3 disable FMA3 optimizations --disable-fma4 disable FMA4 optimizations --disable-avx2 disable AVX2 optimizations --disable-aesni disable AESNI optimizations --disable-armv5te disable armv5te optimizations --disable-armv6 disable armv6 optimizations --disable-armv6t2 disable armv6t2 optimizations --disable-vfp disable VFP optimizations --disable-neon disable NEON optimizations --disable-inline-asm disable use of inline assembly --disable-yasm disable use of nasm/yasm assembly --disable-mipsdsp disable MIPS DSP ASE R1 optimizations --disable-mipsdspr2 disable MIPS DSP ASE R2 optimizations --disable-msa disable MSA optimizations --disable-mipsfpu disable floating point MIPS optimizations --disable-mmi disable Loongson SIMD optimizations --disable-fast-unaligned consider unaligned accesses slow Developer options (useful when working on FFmpeg itself): --disable-debug disable debugging symbols --enable-debug=LEVEL set the debug level [] --disable-optimizations disable compiler optimizations --enable-extra-warnings enable more compiler warnings --disable-stripping disable stripping of executables and shared libraries --assert-level=level 0(default), 1 or 2, amount of assertion testing, 2 causes a slowdown at runtime. --enable-memory-poisoning fill heap uninitialized allocated space with arbitrary data --valgrind=VALGRIND run "make fate" tests through valgrind to detect memory leaks and errors, using the specified valgrind binary. Cannot be combined with --target-exec --enable-ftrapv Trap arithmetic overflows --samples=PATH location of test samples for FATE, if not set use $FATE_SAMPLES at make invocation time. --enable-neon-clobber-test check NEON registers for clobbering (should be used only for debugging purposes) --enable-xmm-clobber-test check XMM registers for clobbering (Win64-only; should be used only for debugging purposes) --enable-random randomly enable/disable components --disable-random --enable-random=LIST randomly enable/disable specific components or --disable-random=LIST component groups. LIST is a comma-separated list of NAME[:PROB] entries where NAME is a component (group) and PROB the probability associated with NAME (default 0.5). --random-seed=VALUE seed value for --enable/disable-random --disable-valgrind-backtrace do not print a backtrace under Valgrind (only applies to --disable-optimizations builds) NOTE: Object files are built at the place where configure is launched.
基本选项介绍
以下为配置 ffmpeg 的基本选项,其含义如下:
--cache-file=FILE
configure 会在你的系统上测试存在的特性(或者 bug!)。 为了加速随后进行的配置,测试的结果会存储在一个 cache file 里。 当 configure 到每个子树里都有 configure 脚本的复杂的源码树时, 一个很好的 cache file 的存在会有很大帮助。
--help
输出帮助信息。 即使是有经验的用户也偶尔需要使用使用--help 选项, 因为一个复杂的项目会包含附加的选项。 例如, GCC 包里的 configure 脚本就包含了允许你控制是否生成和在 GCC 中使用 GNU 汇编器的选项。
--no-create
configure 中的一个主要函数会制作输出文件。 此选项阻止 configure 生成这个文件。你可以认为这是一种演习(dry run), 尽管缓存(cache)仍然被改写了。
--quiet
--silent
当 configure 进行他的测试时, 会输出简要的信息来告诉用户正在作什么。 这样做是因为 configure 可能会比较慢, 没有这种输出的话用户将会被扔在一旁疑惑正在发生什么。 使用这两个选项中的任何一个都会把你扔到一旁。 (译注: 这两句话比较有意思, 原文是这样的: If there was no such output, the user would be left wondering what is happening. By using this option, you too can be left wondering!)
--version
打印用来产生'configure'脚本的 Autoconf 的版本号。
--prefix=PEWFIX
--prefix 是最常用的选项。 制作出的 Makefile 会查看随此选项传递的参数, 当一个包在安装时可以彻底的重新安置他的结构独立部分。 举一个例子, 当安装一个包, 例如说 Emacs, 下面的命令将会使 Emacs Lisp file 被安装到"/opt/gnu/share":
$ ./configure --prefix=/opt/gnu
--exec-prefix=EPREFIX
与--prefix 选项类似,但是他是用来设置结构倚赖的文件的安装位置。编译好的 emacs二进制文件就是这样一个问件。 如果没有设置这个选项的话, 默认使用的选项值将被设为和--prefix 选项值一样。
--bindir=DIR
指定二进制文件的安装位置。 这里的二进制文件定义为可以被用户直接执行的程序。
--sbindir=DIR
指定超级二进制文件的安装位置。 这是一些通常只能由超级用户执行的程序。
--libexecdir=DIR
指定可执行支持文件的安装位置。 与二进制文件相反, 这些文件从来不直接由用户执行, 但是可以被上面提到的二进制文件所执行。
--datadir=DIR
指定通用数据文件的安装位置。
--sysconfdir=DIR
指定在单个机器上使用的只读数据的安装位置。
--sharedstatedir=DIR
指定可以在多个机器上共享的可写数据的安装位置。
--localstatedir=DIR
指定只能单机使用的可写数据的安装位置。
--libdir=DIR
指定库文件的安装位置。
--includedir=DIR
指定 C 头文件的安装位置。 其他语言如 C++的头文件也可以使用此选项。
--oldincludedir=DIR
指定为除 GCC 外编译器安装的 C 头文件的安装位置。
--infodir=DIR
指定 Info 格式文档的安装位置。 Info 是被 GNU 工程所使用的文档格式。
--mandir=DIR
指定手册页的安装位置。
--srcdir=DIR
这个选项对安装没有作用。 他会告诉 configure 源码的位置。 一般来说不用指定此选项, 因为 configure 脚本一般和源码文件在同一个目录下。
--program-prefix=PREFIX
指定将被加到所安装程序的名字上的前缀。例如,使用--program-prefix=g 来 configure一个名为 tar 的程序将会使安装的程序被命名为 gtar。 当和其他的安装选项一起使用时,这个选项只有当他被 Makefile.in 文件使用时才会工作。
--program-suffix=SUFFIX
指定将被加到所安装程序的名字上的后缀。
--program-transform-name=PROGRAM
这里的 PROGRAM 是一个 sed 脚本。 当一个程序被安装时, 他的名字将经过 sed -e
PROGRAM 来产生安装的名字。
--build=BUILD
指定软件包安装的系统平台。 如果没有指定, 默认值将是--host 选项的值。
--host=HOST
指定软件运行的系统平台。 如果没有指定, 将会运行 config.guess 来检测。
--target=GARGET'
指定软件面向(target to)的系统平台。 这主要在程序语言工具如编译器和汇编器上下文中起作用。 如果没有指定, 默认将使用--host 选项的值。
--disable-FEATURE
一些软件包可以选择这个选项来提供为大型选项的编译时配置, 例如使用 Kerberos认证系统或者一个实验性的编译器最优配置。 如果默认是提供这些特性, 可以使用
--disable-FEATURE 来禁用它, 这里 FEATURE 是特性的名字。 例如:
$ ./configure --disable-gui
-enable-FEATURE[=ARG]
相反的, 一些软件包可能提供了一些默认被禁止的特性, 可以使用--enable-FEATURE来起用它。 这里 FEATURE 是特性的名字。 一个特性可能会接受一个可选的参数。 例如:
$ ./configure --enable-buffers=128
--enable-FEATURE=no 与上面提到的--disable-FEATURE 是同义的。
--with-PACKAGE[=ARG]
在自由软件社区里, 有使用已有软件包和库的优秀传统。 当用 configure 来配置一个源码树时, 可以提供其他已经安装的软件包的信息。 例如, 倚赖于 Tcl 和 Tk 的 BLT 器件工具包。 要配置 BLT, 可能需要给 configure 提供一些关于我们把 Tcl 和 Tk 装的何处的信息:
$ ./configure --with-tcl=/usr/local --with-tk=/usr/local
--with-PACKAGE=no 与下面将提到的--without-PACKAGE 是同义的。
--without-PACKAGE
有时候你可能不想让你的软件包与系统已有的软件包交互。 例如, 你可能不想让你的新编译器使用 GNU ld。 通过使用这个选项可以做到这一点:
$ ./configure --without-gnu-ld
--x-includes=DIR
这个选项是--with-PACKAGE 选项的一个特例。 在 Autoconf 最初被开发出来时, 流行使用 configure 来作为 Imake 的一个变通方法来制作运行于 X 的软件。 --x-includes 选项提供了向 configure 脚本指明包含 X11 头文件的目录的方法。
--x-libraries=DIR
类似的, --x-libraries 选项提供了向 configure 脚本指明包含 X11 库的目录的方法
进入 ffmpeg-3.3.1 并配置
会提示如上的错误,说明 yasm/nasm not found or too old.# cd ffmpeg-3.3.1 # ./configure --enable-shared --prefix=/usr/local/ffmpeg --enable-gpl --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib yasm/nasm not found or too old. Use --disable-yasm for a crippled build. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solve the problem.
安装 yasm:# apt-get install yasm
或者按照提示直接在配置上添加 --disable-yasm重新执行:
为什么会是上面的配置, 参看:ffmpeg再学习 -- 将 jpeg 转成 mp4./configure --enable-shared --prefix=/usr/local/ffmpeg --enable-gpl --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-libmp3lame --disable-yasm
4、编译
先执行,时间有点长,需要等几分钟:
然后执行:# make
# make install
5、检查是否安装成功
查看 ffmpeg 版本:
出现如上错误,原因是 libavdevice.so 找不到# /usr/local/ffmpeg/bin/ffmpeg --version /usr/local/ffmpeg/bin/ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory
修改文件 /etc/ld.so.conf 内容增加 /usr/local/ffmpeg/lib/
使之生效:vi /etc/ld.so.conf 在最后添加: /usr/local/ffmpeg/lib/
# ldconfig
重新查看 ffmpeg 版本:
配置环境变量 PATH:# /usr/local/ffmpeg/bin/ffmpeg -version ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --prefix=/usr/local/ffmpeg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100
一次性的:export PATH=/usr/local/ffmpeg/bin/:$PATH
永久性的:
则可以在任何目录都可以查看 ffmpeg 版本:# gedit /etc/profile 在最后添加: export PATH=/usr/local/ffmpeg/bin/:$PATH 立即生效执行: source /etc/profile
# ffmpeg -version ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --prefix=/usr/local/ffmpeg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100
6、查看 help
执行:
# ffmpeg -help ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --prefix=/usr/local/ffmpeg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter See man ffmpeg for detailed description of the options. Print help / information / capabilities: -L show license -h topic show help -? topic show help -help topic show help --help topic show help -version show version -buildconf show build configuration -formats show available formats -muxers show available muxers -demuxers show available demuxers -devices show available devices -codecs show available codecs -decoders show available decoders -encoders show available encoders -bsfs show available bit stream filters -protocols show available protocols -filters show available filters -pix_fmts show available pixel formats -layouts show standard channel layouts -sample_fmts show available audio sample formats -colors show available color names -sources device list sources of the input device -sinks device list sinks of the output device -hwaccels show available HW acceleration methods Global options (affect whole program instead of just one file: -loglevel loglevel set logging level -v loglevel set logging level -report generate a report -max_alloc bytes set maximum size of a single allocated block -y overwrite output files -n never overwrite output files -ignore_unknown Ignore unknown stream types -filter_threads number of non-complex filter threads -filter_complex_threads number of threads for -filter_complex -stats print progress report during encoding -max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error maximum error rate -bits_per_raw_sample number set the number of bits per raw sample -vol volume change audio volume (256=normal) Per-file main options: -f fmt force format -c codec codec name -codec codec codec name -pre preset preset name -map_metadata outfile[,metadata]:infile[,metadata] set metadata information of outfile from infile -t duration record or transcode "duration" seconds of audio/video -to time_stop record or transcode stop time -fs limit_size set the limit file size in bytes -ss time_off set the start time offset -sseof time_off set the start time offset relative to EOF -seek_timestamp enable/disable seeking by timestamp with -ss -timestamp time set the recording timestamp ('now' to set the current time) -metadata string=string add metadata -program title=string:st=number... add program with specified streams -target type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-") -apad audio pad -frames number set the number of frames to output -filter filter_graph set stream filtergraph -filter_script filename read stream filtergraph description from a file -reinit_filter reinit filtergraph on input parameter changes -discard discard -disposition disposition Video options: -vframes number set the number of video frames to output -r rate set frame rate (Hz value, fraction or abbreviation) -s size set frame size (WxH or abbreviation) -aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777) -bits_per_raw_sample number set the number of bits per raw sample -vn disable video -vcodec codec force video codec ('copy' to copy stream) -timecode hh:mm:ss[:;.]ff set initial TimeCode value. -pass n select the pass number (1 to 3) -vf filter_graph set video filters -ab bitrate audio bitrate (please use -b:a) -b bitrate video bitrate (please use -b:v) -dn disable data Audio options: -aframes number set the number of audio frames to output -aq quality set audio quality (codec-specific) -ar rate set audio sampling rate (in Hz) -ac channels set number of audio channels -an disable audio -acodec codec force audio codec ('copy' to copy stream) -vol volume change audio volume (256=normal) -af filter_graph set audio filters Subtitle options: -s size set frame size (WxH or abbreviation) -sn disable subtitle -scodec codec force subtitle codec ('copy' to copy stream) -stag fourcc/tag force subtitle tag/fourcc -fix_sub_duration fix subtitles duration -canvas_size size set canvas size (WxH or abbreviation) -spre preset set the subtitle options to the indicated preset
7、查看支持的编码格式
# ffmpeg -codecs ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --prefix=/usr/local/ffmpeg --enable-gpl --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-libmp3lame --disable-yasm libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Codecs: D..... = Decoding supported .E.... = Encoding supported ..V... = Video codec ..A... = Audio codec ..S... = Subtitle codec ...I.. = Intra frame-only codec ....L. = Lossy compression .....S = Lossless compression ------- D.VI.. 012v Uncompressed 4:2:2 10-bit D.V.L. 4xm 4X Movie D.VI.S 8bps QuickTime 8BPS video .EVIL. a64_multi Multicolor charset for Commodore 64 (encoders: a64multi ) .EVIL. a64_multi5 Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 ) D.V..S aasc Autodesk RLE D.VIL. aic Apple Intermediate Codec DEVI.S alias_pix Alias/Wavefront PIX image DEVIL. amv AMV Video D.V.L. anm Deluxe Paint Animation D.V.L. ansi ASCII/ANSI art DEV..S apng APNG (Animated Portable Network Graphics) image DEVIL. asv1 ASUS V1 DEVIL. asv2 ASUS V2 D.VIL. aura Auravision AURA D.VIL. aura2 Auravision Aura 2 ..V.L. av1 Alliance for Open Media AV1 D.V... avrn Avid AVI Codec DEVI.. avrp Avid 1:1 10-bit RGB Packer D.V.L. avs AVS (Audio Video Standard) video DEVI.. avui Avid Meridien Uncompressed DEVI.. ayuv Uncompressed packed MS 4:4:4:4 D.V.L. bethsoftvid Bethesda VID video D.V.L. bfi Brute Force & Ignorance D.V.L. binkvideo Bink video D.VI.. bintext Binary text DEVI.S bmp BMP (Windows and OS/2 bitmap) D.V..S bmv_video Discworld II BMV video D.VI.S brender_pix BRender PIX image D.V.L. c93 Interplay C93 D.V.L. cavs Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile) D.V.L. cdgraphics CD Graphics video D.VIL. cdxl Commodore CDXL video D.V.L. cfhd Cineform HD DEV.L. cinepak Cinepak D.V.L. clearvideo Iterated Systems ClearVideo DEVIL. cljr Cirrus Logic AccuPak D.VI.S cllc Canopus Lossless Codec D.V.L. cmv Electronic Arts CMV video (decoders: eacmv ) D.V... cpia CPiA video format D.V..S cscd CamStudio (decoders: camstudio ) D.VIL. cyuv Creative YUV (CYUV) ..V.LS daala Daala D.VILS dds DirectDraw Surface image decoder D.V.L. dfa Chronomaster DFA DEV.LS dirac Dirac (encoders: vc2 ) DEVIL. dnxhd VC3/DNxHD DEVI.S dpx DPX (Digital Picture Exchange) image D.V.L. dsicinvideo Delphine Software International CIN video DEVIL. dvvideo DV (Digital Video) D.V..S dxa Feeble Files/ScummVM DXA D.VI.S dxtory Dxtory D.VIL. dxv Resolume DXV D.V.L. escape124 Escape 124 D.V.L. escape130 Escape 130 D.VILS exr OpenEXR image DEV..S ffv1 FFmpeg video codec #1 DEVI.S ffvhuff Huffyuv FFmpeg variant D.V.L. fic Mirillis FIC DEV..S flashsv Flash Screen Video v1 DEV.L. flashsv2 Flash Screen Video v2 D.V..S flic Autodesk Animator Flic video DEV.L. flv1 FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (decoders: flv ) (encoders: flv ) D.V..S fmvc FM Screen Capture Codec D.VI.S fraps Fraps D.VI.S frwu Forward Uncompressed D.V.L. g2m Go2Meeting DEV..S gif GIF (Graphics Interchange Format) DEV.L. h261 H.261 DEV.L. h263 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2 D.V.L. h263i Intel H.263 DEV.L. h263p H.263+ / H.263-1998 / H.263 version 2 DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_cuvid ) (encoders: libx264 libx264rgb h264_nvenc nvenc nvenc_h264 ) D.VIL. hap Vidvox Hap DEV.L. hevc H.265 / HEVC (High Efficiency Video Coding) (decoders: hevc hevc_cuvid ) (encoders: nvenc_hevc hevc_nvenc ) D.V.L. hnm4video HNM 4 video D.VIL. hq_hqa Canopus HQ/HQA D.VIL. hqx Canopus HQX DEVI.S huffyuv HuffYUV D.V.L. idcin id Quake II CIN video (decoders: idcinvideo ) D.VI.. idf iCEDraw text D.V.L. iff_ilbm IFF ACBM/ANIM/DEEP/ILBM/PBM/RGB8/RGBN (decoders: iff ) D.V.L. indeo2 Intel Indeo 2 D.V.L. indeo3 Intel Indeo 3 D.V.L. indeo4 Intel Indeo Video Interactive 4 D.V.L. indeo5 Intel Indeo Video Interactive 5 D.V.L. interplayvideo Interplay MVE video DEVILS jpeg2000 JPEG 2000 DEVILS jpegls JPEG-LS D.VIL. jv Bitmap Brothers JV video D.V.L. kgv1 Kega Game Video D.V.L. kmvc Karl Morton's video codec D.VI.S lagarith Lagarith lossless .EVI.S ljpeg Lossless JPEG D.VI.S loco LOCO D.VI.S m101 Matrox Uncompressed SD D.V.L. mad Electronic Arts Madcow Video (decoders: eamad ) D.VI.S magicyuv MagicYUV video D.VIL. mdec Sony PlayStation MDEC (Motion DECoder) D.V.L. mimic Mimic DEVIL. mjpeg Motion JPEG (decoders: mjpeg mjpeg_cuvid ) D.VIL. mjpegb Apple MJPEG-B D.V.L. mmvideo American Laser Games MM Video D.V.L. motionpixels Motion Pixels video DEV.L. mpeg1video MPEG-1 video (decoders: mpeg1video mpeg1_cuvid ) DEV.L. mpeg2video MPEG-2 video (decoders: mpeg2video mpegvideo mpeg2_cuvid ) DEV.L. mpeg4 MPEG-4 part 2 (decoders: mpeg4 mpeg4_cuvid ) ..V.L. mpegvideo_xvmc MPEG-1/2 video XvMC (X-Video Motion Compensation) D.V.L. msa1 MS ATC Screen D.V.L. msmpeg4v1 MPEG-4 part 2 Microsoft variant version 1 DEV.L. msmpeg4v2 MPEG-4 part 2 Microsoft variant version 2 DEV.L. msmpeg4v3 MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4 ) (encoders: msmpeg4 ) D.V..S msrle Microsoft RLE D.V.L. mss1 MS Screen 1 D.VIL. mss2 MS Windows Media Video V9 Screen DEV.L. msvideo1 Microsoft Video 1 D.VI.S mszh LCL (LossLess Codec Library) MSZH D.V.L. mts2 MS Expression Encoder Screen D.VIL. mvc1 Silicon Graphics Motion Video Compressor 1 D.VIL. mvc2 Silicon Graphics Motion Video Compressor 2 D.V.L. mxpeg Mobotix MxPEG video D.V.L. nuv NuppelVideo/RTJPEG D.V.L. paf_video Amazing Studio Packed Animation File Video DEVI.S pam PAM (Portable AnyMap) image DEVI.S pbm PBM (Portable BitMap) image DEVI.S pcx PC Paintbrush PCX image DEVI.S pgm PGM (Portable GrayMap) image DEVI.S pgmyuv PGMYUV (Portable GrayMap YUV) image D.VIL. pictor Pictor/PC Paint D.VIL. pixlet Apple Pixlet DEV..S png PNG (Portable Network Graphics) image DEVI.S ppm PPM (Portable PixelMap) image DEVIL. prores Apple ProRes (iCodec Pro) (decoders: prores prores_lgpl ) (encoders: prores prores_aw prores_ks ) D.VI.S psd Photoshop PSD file D.VIL. ptx V.Flash PTX image D.VI.S qdraw Apple QuickDraw D.V.L. qpeg Q-team QPEG DEV..S qtrle QuickTime Animation (RLE) video DEVI.S r10k AJA Kona 10-bit RGB Codec DEVI.S r210 Uncompressed RGB 10-bit DEVI.S rawvideo raw video D.VIL. rl2 RL2 video DEV.L. roq id RoQ video (decoders: roqvideo ) (encoders: roqvideo ) D.V.L. rpza QuickTime video (RPZA) D.V..S rscc innoHeim/Rsupport Screen Capture Codec DEV.L. rv10 RealVideo 1.0 DEV.L. rv20 RealVideo 2.0 D.V.L. rv30 RealVideo 3.0 D.V.L. rv40 RealVideo 4.0 D.V.L. sanm LucasArts SANM/SMUSH video D.V.LS scpr ScreenPressor D.V..S screenpresso Screenpresso DEVI.S sgi SGI image D.VI.S sgirle SGI RLE 8-bit D.VI.S sheervideo BitJazz SheerVideo D.V.L. smackvideo Smacker video (decoders: smackvid ) D.V.L. smc QuickTime Graphics (SMC) D.V... smvjpeg Sigmatel Motion Video DEV.LS snow Snow D.VIL. sp5x Sunplus JPEG (SP5X) D.VIL. speedhq NewTek SpeedHQ DEVI.S sunrast Sun Rasterfile image DEV.L. svq1 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1 D.V.L. svq3 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3 DEVI.S targa Truevision Targa image D.VI.. targa_y216 Pinnacle TARGA CineWave YUV16 D.V.L. tdsc TDSC D.V.L. tgq Electronic Arts TGQ video (decoders: eatgq ) D.V.L. tgv Electronic Arts TGV video (decoders: eatgv ) D.V.L. theora Theora D.VIL. thp Nintendo Gamecube THP video D.V.L. tiertexseqvideo Tiertex Limited SEQ video DEVI.S tiff TIFF image D.VIL. tmv 8088flex TMV D.V.L. tqi Electronic Arts TQI video (decoders: eatqi ) D.V.L. truemotion1 Duck TrueMotion 1.0 D.V.L. truemotion2 Duck TrueMotion 2.0 D.V.L. truemotion2rt Duck TrueMotion 2.0 Real Time D.V..S tscc TechSmith Screen Capture Codec (decoders: camtasia ) D.V.L. tscc2 TechSmith Screen Codec 2 D.VIL. txd Renderware TXD (TeXture Dictionary) image D.V.L. ulti IBM UltiMotion (decoders: ultimotion ) DEVI.S utvideo Ut Video DEVI.S v210 Uncompressed 4:2:2 10-bit D.VI.S v210x Uncompressed 4:2:2 10-bit DEVI.. v308 Uncompressed packed 4:4:4 DEVI.. v408 Uncompressed packed QT 4:4:4:4 DEVI.S v410 Uncompressed 4:4:4 10-bit D.V.L. vb Beam Software VB D.VI.S vble VBLE Lossless Codec D.V.L. vc1 SMPTE VC-1 (decoders: vc1 vc1_cuvid ) D.V.L. vc1image Windows Media Video 9 Image v2 D.VIL. vcr1 ATI VCR1 D.VIL. vixl Miro VideoXL (decoders: xl ) D.V.L. vmdvideo Sierra VMD video D.V..S vmnc VMware Screen Codec / VMware Video D.V.L. vp3 On2 VP3 D.V.L. vp5 On2 VP5 D.V.L. vp6 On2 VP6 D.V.L. vp6a On2 VP6 (Flash version, with alpha channel) D.V.L. vp6f On2 VP6 (Flash version) D.V.L. vp7 On2 VP7 D.V.L. vp8 On2 VP8 (decoders: vp8 vp8_cuvid ) D.V.L. vp9 Google VP9 (decoders: vp9 vp9_cuvid ) D.VILS webp WebP DEV.L. wmv1 Windows Media Video 7 DEV.L. wmv2 Windows Media Video 8 D.V.L. wmv3 Windows Media Video 9 D.V.L. wmv3image Windows Media Video 9 Image D.VIL. wnv1 Winnov WNV1 .EV..S wrapped_avframe AVFrame to AVPacket passthrough D.V.L. ws_vqa Westwood Studios VQA (Vector Quantized Animation) video (decoders: vqavideo ) D.V.L. xan_wc3 Wing Commander III / Xan D.V.L. xan_wc4 Wing Commander IV / Xxan D.VI.. xbin eXtended BINary text DEVI.S xbm XBM (X BitMap) image DEVIL. xface X-face image D.VI.S xpm XPM (X PixMap) image DEVI.S xwd XWD (X Window Dump) image DEVI.. y41p Uncompressed YUV 4:1:1 12-bit D.VI.S ylc YUY2 Lossless Codec D.V.L. yop Psygnosis YOP Video DEVI.. yuv4 Uncompressed packed 4:2:0 D.V..S zerocodec ZeroCodec Lossless Video DEVI.S zlib LCL (LossLess Codec Library) ZLIB DEV..S zmbv Zip Motion Blocks Video ..A.L. 4gv 4GV (Fourth Generation Vocoder) D.A.L. 8svx_exp 8SVX exponential D.A.L. 8svx_fib 8SVX fibonacci DEA.L. aac AAC (Advanced Audio Coding) (decoders: aac aac_fixed ) D.A.L. aac_latm AAC LATM (Advanced Audio Coding LATM syntax) DEA.L. ac3 ATSC A/52A (AC-3) (decoders: ac3 ac3_fixed ) (encoders: ac3 ac3_fixed ) D.A.L. adpcm_4xm ADPCM 4X Movie DEA.L. adpcm_adx SEGA CRI ADX ADPCM D.A.L. adpcm_afc ADPCM Nintendo Gamecube AFC D.A.L. adpcm_aica ADPCM Yamaha AICA D.A.L. adpcm_ct ADPCM Creative Technology D.A.L. adpcm_dtk ADPCM Nintendo Gamecube DTK D.A.L. adpcm_ea ADPCM Electronic Arts D.A.L. adpcm_ea_maxis_xa ADPCM Electronic Arts Maxis CDROM XA D.A.L. adpcm_ea_r1 ADPCM Electronic Arts R1 D.A.L. adpcm_ea_r2 ADPCM Electronic Arts R2 D.A.L. adpcm_ea_r3 ADPCM Electronic Arts R3 D.A.L. adpcm_ea_xas ADPCM Electronic Arts XAS DEA.L. adpcm_g722 G.722 ADPCM (decoders: g722 ) (encoders: g722 ) DEA.L. adpcm_g726 G.726 ADPCM (decoders: g726 ) (encoders: g726 ) D.A.L. adpcm_g726le G.726 ADPCM little-endian (decoders: g726le ) D.A.L. adpcm_ima_amv ADPCM IMA AMV D.A.L. adpcm_ima_apc ADPCM IMA CRYO APC D.A.L. adpcm_ima_dat4 ADPCM IMA Eurocom DAT4 D.A.L. adpcm_ima_dk3 ADPCM IMA Duck DK3 D.A.L. adpcm_ima_dk4 ADPCM IMA Duck DK4 D.A.L. adpcm_ima_ea_eacs ADPCM IMA Electronic Arts EACS D.A.L. adpcm_ima_ea_sead ADPCM IMA Electronic Arts SEAD D.A.L. adpcm_ima_iss ADPCM IMA Funcom ISS D.A.L. adpcm_ima_oki ADPCM IMA Dialogic OKI DEA.L. adpcm_ima_qt ADPCM IMA QuickTime D.A.L. adpcm_ima_rad ADPCM IMA Radical D.A.L. adpcm_ima_smjpeg ADPCM IMA Loki SDL MJPEG DEA.L. adpcm_ima_wav ADPCM IMA WAV D.A.L. adpcm_ima_ws ADPCM IMA Westwood DEA.L. adpcm_ms ADPCM Microsoft D.A.L. adpcm_mtaf ADPCM MTAF D.A.L. adpcm_psx ADPCM Playstation D.A.L. adpcm_sbpro_2 ADPCM Sound Blaster Pro 2-bit D.A.L. adpcm_sbpro_3 ADPCM Sound Blaster Pro 2.6-bit D.A.L. adpcm_sbpro_4 ADPCM Sound Blaster Pro 4-bit DEA.L. adpcm_swf ADPCM Shockwave Flash D.A.L. adpcm_thp ADPCM Nintendo THP D.A.L. adpcm_thp_le ADPCM Nintendo THP (Little-Endian) D.A.L. adpcm_vima LucasArts VIMA audio D.A.L. adpcm_xa ADPCM CDROM XA DEA.L. adpcm_yamaha ADPCM Yamaha DEA..S alac ALAC (Apple Lossless Audio Codec) D.A.L. amr_nb AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb ) D.A.L. amr_wb AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb ) D.A..S ape Monkey's Audio D.A.L. atrac1 ATRAC1 (Adaptive TRansform Acoustic Coding) D.A.L. atrac3 ATRAC3 (Adaptive TRansform Acoustic Coding 3) D.A..S atrac3al ATRAC3 AL (Adaptive TRansform Acoustic Coding 3 Advanced Lossless) D.A.L. atrac3p ATRAC3+ (Adaptive TRansform Acoustic Coding 3+) (decoders: atrac3plus ) D.A..S atrac3pal ATRAC3+ AL (Adaptive TRansform Acoustic Coding 3+ Advanced Lossless) (decoders: atrac3plusal ) D.A.L. avc On2 Audio for Video Codec (decoders: on2avc ) D.A.L. binkaudio_dct Bink Audio (DCT) D.A.L. binkaudio_rdft Bink Audio (RDFT) D.A.L. bmv_audio Discworld II BMV audio ..A.L. celt Constrained Energy Lapped Transform (CELT) DEA.L. comfortnoise RFC 3389 Comfort Noise D.A.L. cook Cook / Cooker / Gecko (RealAudio G2) D.A.L. dsd_lsbf DSD (Direct Stream Digital), least significant bit first D.A.L. dsd_lsbf_planar DSD (Direct Stream Digital), least significant bit first, planar D.A.L. dsd_msbf DSD (Direct Stream Digital), most significant bit first D.A.L. dsd_msbf_planar DSD (Direct Stream Digital), most significant bit first, planar D.A.L. dsicinaudio Delphine Software International CIN audio D.A.L. dss_sp Digital Speech Standard - Standard Play mode (DSS SP) D.A..S dst DST (Direct Stream Transfer) DEA.LS dts DCA (DTS Coherent Acoustics) (decoders: dca ) (encoders: dca ) D.A.L. dvaudio DV audio DEA.L. eac3 ATSC A/52B (AC-3, E-AC-3) D.A.L. evrc EVRC (Enhanced Variable Rate Codec) DEA..S flac FLAC (Free Lossless Audio Codec) DEA.L. g723_1 G.723.1 D.A.L. g729 G.729 D.A.L. gsm GSM D.A.L. gsm_ms GSM Microsoft variant D.A.L. iac IAC (Indeo Audio Coder) ..A.L. ilbc iLBC (Internet Low Bitrate Codec) D.A.L. imc IMC (Intel Music Coder) D.A.L. interplay_dpcm DPCM Interplay D.A.L. interplayacm Interplay ACM D.A.L. mace3 MACE (Macintosh Audio Compression/Expansion) 3:1 D.A.L. mace6 MACE (Macintosh Audio Compression/Expansion) 6:1 D.A.L. metasound Voxware MetaSound DEA..S mlp MLP (Meridian Lossless Packing) D.A.L. mp1 MP1 (MPEG audio layer 1) (decoders: mp1 mp1float ) DEA.L. mp2 MP2 (MPEG audio layer 2) (decoders: mp2 mp2float ) (encoders: mp2 mp2fixed ) DEA.L. mp3 MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) (encoders: libmp3lame ) D.A.L. mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat ) D.A.L. mp3on4 MP3onMP4 (decoders: mp3on4 mp3on4float ) D.A..S mp4als MPEG-4 Audio Lossless Coding (ALS) (decoders: als ) D.A.L. musepack7 Musepack SV7 (decoders: mpc7 ) D.A.L. musepack8 Musepack SV8 (decoders: mpc8 ) DEA.L. nellymoser Nellymoser Asao DEA.L. opus Opus (Opus Interactive Audio Codec) D.A.L. paf_audio Amazing Studio Packed Animation File Audio DEA.L. pcm_alaw PCM A-law / G.711 A-law D.A..S pcm_bluray PCM signed 16|20|24-bit big-endian for Blu-ray media D.A..S pcm_dvd PCM signed 20|24-bit big-endian D.A..S pcm_f16le PCM 16.8 floating point little-endian D.A..S pcm_f24le PCM 24.0 floating point little-endian DEA..S pcm_f32be PCM 32-bit floating point big-endian DEA..S pcm_f32le PCM 32-bit floating point little-endian DEA..S pcm_f64be PCM 64-bit floating point big-endian DEA..S pcm_f64le PCM 64-bit floating point little-endian D.A..S pcm_lxf PCM signed 20-bit little-endian planar DEA.L. pcm_mulaw PCM mu-law / G.711 mu-law DEA..S pcm_s16be PCM signed 16-bit big-endian DEA..S pcm_s16be_planar PCM signed 16-bit big-endian planar DEA..S pcm_s16le PCM signed 16-bit little-endian DEA..S pcm_s16le_planar PCM signed 16-bit little-endian planar DEA..S pcm_s24be PCM signed 24-bit big-endian DEA..S pcm_s24daud PCM D-Cinema audio signed 24-bit DEA..S pcm_s24le PCM signed 24-bit little-endian DEA..S pcm_s24le_planar PCM signed 24-bit little-endian planar DEA..S pcm_s32be PCM signed 32-bit big-endian DEA..S pcm_s32le PCM signed 32-bit little-endian DEA..S pcm_s32le_planar PCM signed 32-bit little-endian planar DEA..S pcm_s64be PCM signed 64-bit big-endian DEA..S pcm_s64le PCM signed 64-bit little-endian DEA..S pcm_s8 PCM signed 8-bit DEA..S pcm_s8_planar PCM signed 8-bit planar DEA..S pcm_u16be PCM unsigned 16-bit big-endian DEA..S pcm_u16le PCM unsigned 16-bit little-endian DEA..S pcm_u24be PCM unsigned 24-bit big-endian DEA..S pcm_u24le PCM unsigned 24-bit little-endian DEA..S pcm_u32be PCM unsigned 32-bit big-endian DEA..S pcm_u32le PCM unsigned 32-bit little-endian DEA..S pcm_u8 PCM unsigned 8-bit D.A.L. pcm_zork PCM Zork D.A.L. qcelp QCELP / PureVoice D.A.L. qdm2 QDesign Music Codec 2 D.A.L. qdmc QDesign Music DEA.L. ra_144 RealAudio 1.0 (14.4K) (decoders: real_144 ) (encoders: real_144 ) D.A.L. ra_288 RealAudio 2.0 (28.8K) (decoders: real_288 ) D.A..S ralf RealAudio Lossless DEA.L. roq_dpcm DPCM id RoQ DEA..S s302m SMPTE 302M D.A.L. sdx2_dpcm DPCM Squareroot-Delta-Exact D.A..S shorten Shorten D.A.L. sipr RealAudio SIPR / ACELP.NET D.A.L. smackaudio Smacker audio (decoders: smackaud ) ..A.L. smv SMV (Selectable Mode Vocoder) D.A.L. sol_dpcm DPCM Sol DEA... sonic Sonic .EA... sonicls Sonic lossless ..A.L. speex Speex D.A..S tak TAK (Tom's lossless Audio Kompressor) DEA..S truehd TrueHD D.A.L. truespeech DSP Group TrueSpeech DEA..S tta TTA (True Audio) D.A.L. twinvq VQF TwinVQ D.A.L. vmdaudio Sierra VMD audio DEA.L. vorbis Vorbis ..A.L. voxware Voxware RT29 Metasound D.A... wavesynth Wave synthesis pseudo-codec DEA.LS wavpack WavPack D.A.L. westwood_snd1 Westwood Audio (SND1) (decoders: ws_snd1 ) D.A..S wmalossless Windows Media Audio Lossless D.A.L. wmapro Windows Media Audio 9 Professional DEA.L. wmav1 Windows Media Audio 1 DEA.L. wmav2 Windows Media Audio 2 D.A.L. wmavoice Windows Media Audio Voice D.A.L. xan_dpcm DPCM Xan D.A.L. xma1 Xbox Media Audio 1 D.A.L. xma2 Xbox Media Audio 2 ..D... bin_data binary data ..D... dvd_nav_packet DVD Nav packet ..D... klv SMPTE 336M Key-Length-Value (KLV) metadata ..D... otf OpenType font ..D... scte_35 SCTE 35 Message Queue ..D... timed_id3 timed ID3 metadata ..D... ttf TrueType font DES... ass ASS (Advanced SSA) subtitle (decoders: ssa ass ) (encoders: ssa ass ) DES... dvb_subtitle DVB subtitles (decoders: dvbsub ) (encoders: dvbsub ) ..S... dvb_teletext DVB teletext DES... dvd_subtitle DVD subtitles (decoders: dvdsub ) (encoders: dvdsub ) D.S... eia_608 EIA-608 closed captions (decoders: cc_dec ) D.S... hdmv_pgs_subtitle HDMV Presentation Graphic Stream subtitles (decoders: pgssub ) ..S... hdmv_text_subtitle HDMV Text subtitle D.S... jacosub JACOsub subtitle D.S... microdvd MicroDVD subtitle DES... mov_text MOV text D.S... mpl2 MPL2 subtitle D.S... pjs PJS (Phoenix Japanimation Society) subtitle D.S... realtext RealText subtitle D.S... sami SAMI subtitle ..S... srt SubRip subtitle with embedded timing ..S... ssa SSA (SubStation Alpha) subtitle D.S... stl Spruce subtitle format DES... subrip SubRip subtitle (decoders: srt subrip ) (encoders: srt subrip ) D.S... subviewer SubViewer subtitle D.S... subviewer1 SubViewer v1 subtitle DES... text raw UTF-8 text D.S... vplayer VPlayer subtitle DES... webvtt WebVTT subtitle DES... xsub XSUB
8、常用命令
参看:FFmpeg实用命令参看:ffmpeg 常用命令参看:FFmpeg功能命令集合9、测试执行转码
生成 output.ts 文件:
使用 VLC 播放,看看我拍摄的美图:# ffmpeg -i IMG_3888.mp4 -b:v 640k output.ts
-
文档压缩工具 PowerArchiver 19.00.59 + x64 中文多语免费版.zip
2021-06-03 13:04:22– 支持内建浏灠TXT, RTF, GIF, PNG, BMP, ICO, TIFF, GFI, SGI, EMF, WMF, PPM, Adobe Photoshop, Autodesk, Truevision, ZSoft Paintbrush, Kodak Photo-CD, JASC PaintShop Pro, Dr. Halo等文件格式。 – 相当多... -
AddonPackPlus:AddonPack +是一个不和谐主题,基于NYRI4的“舒适”和来自Powercord社区的一小段片段,同时...
2021-04-08 01:09:23:inbox_tray: 安装 力量与活力 git clone https://github.com/NYRI4/Comfy-git-clone 更好的和谐 去 将文件保存到主题文件夹 :paintbrush: 客制化 进入主题文件夹> Comfy>支持 对于BetterDiscord: comfy.theme.... -
Blufy:一个简单的可定制Discord主题
2021-03-08 06:50:35:inbox_tray: 安装 力量与活力 git clone https://github.com/bestzinha/Blufy 更好的和谐 去 将文件保存到主题文件夹 :paintbrush: 客制化 进入主题文件夹> Blufy>支持 对于BetterDiscord: blufy.theme.css ... -
舒适:简单的可自定义Discord主题
2021-02-19 07:08:52:inbox_tray: 安装 力量与活力 git clone https://github.com/NYRI4/Comfy 更好的和谐 去 将文件保存到主题文件夹 :paintbrush: 客制化 对于BetterDiscord: comfy.theme.css 对于Powercord / Vizality: _custom... -
Mac技巧之苹果电脑Mac OS X系统上,类似Windows画图板的软件paintbrush介绍与下载
2012-05-26 18:25:05from:http://www.mac52ipod.cn/post/paintbrush-Mac-OS-X-Windows-HuaTu.php PC用户可能经常用Windows自带的画图板做简单的图片处理,苹果电脑Mac OS X系统的预览只能简单添加些注释什么的;iPhoto重在图片管理和... -
ipad iphone开发_如何在iPhone或iPad上安装自定义字体
2020-10-08 12:53:22When you’re in a document in the Pages app, tap on the “Paintbrush” icon. 当您在“页面”应用程序中的文档中时,点击“画笔”图标。 Tap on the “Font” option. 点击“字体”选项。 Scroll up on this ... -
Linux_Ubuntu 8.10下安装配置友基数位板,Ubuntu默认已经带了Wacom的驱动 - phpStudy
2021-05-17 22:50:45Ubuntu 8.10下安装配置友基数位板Ubuntu默认已经带了Wacom的驱动,但不是每个人都用得起大厂的产品。如果你与我一样囊中带涩地用着并喜爱着友基这个广州石牌出品的土品牌,请看此文。Step 1 编译驱动–下载 ... -
收藏!从十篇顶会论文解读计算机视觉的未来之路!
2019-08-13 18:34:00顶会阅读记录