MEncoder的基础用法--由多个图片文件转换到视频文件
来源:互联网 发布:wifi万能钥匙软件下载 编辑:程序博客网 时间:2024/06/06 11:45
官方站点:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-images.html
中文描述:
http://www.mplayerhq.hu/DOCS/HTML/zh_CN/mencoder.html
Encoding from multiple input image files (JPEG, PNG, TGA, etc.)
MEncoder is capable of creating movies from one or more JPEG, PNG, TGA, or other image files. With simple framecopy it can create MJPEG (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
Explanation of the process:
MEncoder decodes the input image(s) with
libjpeg
(when decoding PNGs, it will uselibpng
).MEncoder then feeds the decoded image to the chosen video compressor (DivX4, Xvid, FFmpeg msmpeg4, etc.).
Examples. The explanation of the -mf option is in the man page.
Creating an MPEG-4 file from all the JPEG files in the current directory:
mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc / -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
Creating an MPEG-4 file from some JPEG files in the current directory:
mencoder mf://frame001.jpg,frame002.jpg
-mf w=800:h=600:fps=25:type=jpg / -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -ooutput.avi
Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current directory contains the list of files to use as source, one per line):
mencoder mf://@list.txt
-mf w=800:h=600:fps=25:type=jpg / -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -ooutput.avi
You can mix different types of images, regardless of the method you use t — individual filenames, wildcard or file with list — provided of course they have the same dimensions. So you can e.g. take title frame from PNG file, and then put a slideshow of your JPEG photos.
Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current directory:
mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o output.avi
Creating an uncompressed file from all the PNG files in the current directory:
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o output.avi
Note
Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format.
Creating a Motion PNG (MPNG) file from all the PNG files in the current directory:
mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o output.avi
Creating a Motion TGA (MTGA) file from all the TGA files in the current directory:
mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o output.avi
- MEncoder的基础用法--由多个图片文件转换到视频文件
- MEncoder的基础用法——6.9. 将DVD子标题提取到VOBsub文件
- 视频文件转换为flv的完整解决方案(ffmpeg、mencoder)
- 视频文件转换为flv的完整解决方案(ffmpeg、mencoder)
- MEncoder的基础用法—6.8. 从多个输入图像文件进行编码(JPEG, PNG, TGA等)
- MEncoder的基础用法—6.2. 选择输入文件或设备
- MEncoder的基础用法—6.5. 编码为MPEG格式
- MEncoder的基础用法—6.6. 改变电影大小
- MEncoder的基础用法—6.7. 媒体流复制
- MEncoder的基础用法—6.10. 保持视频画面比例
- 使用mencoder转换佳能数码相机录像文件的最佳参数
- 将视频文件的每帧转换为帧图片
- mencoder用法
- linux平台下构建mencoder的视频转换到FLV的环境
- FLV视频文件的转换
- 视频文件的格式转换
- MEncoder的基础用法—6.1. 选择编解码器及容器格式
- MEncoder的基础用法—6.3. 编码为双通道MPEG-4 ("DivX")
- #pragma CODE_SEG NON_BANKED之中断讲解
- .NET 代码生成工具介绍——1. CodeSmith
- 《Linux内核修炼之道》精华分享与讨论(19)——不稳定的内核API
- 用指针变量来处理昨天的问题
- Applet上传插件,Applet上传控件,图片压缩上传,大文件上传,进度条上传 version:1.5
- MEncoder的基础用法--由多个图片文件转换到视频文件
- eproll技术和非阻塞的读写规则
- winform下的treeview选取被选中的节点(递归实现)
- 还不能成功,暂还不知道为什么会这样错的。
- HTTP请求方式
- HTTP请求流程
- 今晚试验了好久,略有小成,可是还是不够理想。。没把数据库中的具体内容显示出来,只有那个表头。
- 关于头文件 2410Init.s的详细注释分析
- vc简单加密字符串