(C#)如何将.avi部分转换为.gif文件? [英] (C#) How to I convert a .avi part into a .gif file?

查看:204
本文介绍了(C#)如何将.avi部分转换为.gif文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我想知道如何减少.avi文件并从中制作.gif文件。



我想创建一个Proram,你可以用来从Intro中扯掉更改插曲的插曲。这对(像辛普森一家或美国爸爸)这样的系列有用(或多或少)



谢谢。



此致:

Jonas

解决方案

尝试使用控制台命令输入的FFMPEG二进制可执行文件,并从视频文件中获取gif图像你有更高级的选择,如帧的时间间隔等...

 ffmpeg -i video.avi -t 5 out.gif 


检查这些:

AviFile库的简单C#包装器 [ ^ ]

NGif,用于.NET的动画GIF编码器 [ ^ ]

https://dotnetpuzzle.wordpress.com/2012/05/09/animated-gif-image-with-c/ [ ^ ]



你可以找到使它运作所需的一切。


Hi
I'd like to know how I can cut down a .avi file and make a .gif file out of it.

I want to create a Proram you can use to ripoff episode-changing gags from the Intro. This is (more or less) useful for Series like The Simpsons or American Dad

Thanks.

Sincerely:
Jonas

解决方案

Try FFMPEG binary executable to which you can feed in console commands and get the gif image from a video file and you have more advanced options like time interval of frame etc...

ffmpeg -i video.avi -t 5 out.gif


Check these:
A Simple C# Wrapper for the AviFile Library[^]
NGif, Animated GIF Encoder for .NET[^]
https://dotnetpuzzle.wordpress.com/2012/05/09/animated-gif-image-with-c/[^]

You can find there much everything you need to make it working.


这篇关于(C#)如何将.avi部分转换为.gif文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆