<p>Is it possible to create a FFMPEG like library in Go ? Do any of you know any video processing libraries written in Go ?</p>
<hr/>**评论:**<br/><br/>Xeoncross: <pre><p>Yes, but no one has (or will?) do it.</p>
<p>FFMPEG is a large library and the best you can expect is someone who will figure out how to statically bind the lib for Go binaries. I'm hoping for this some day.</p>
<p>Right now most people use FFMPEG in Go with dynamic binding.</p></pre>aboukirev: <pre><p>FFMPEG is enormous. Reading sources to understand its internals is very difficult. And it's in C. There are a lot of "magic" workarounds and nuances. It would be easier to build a specialized subset than rewrite FFMPEG.</p>
<p>What exactly do you need? </p></pre>razor_XI: <pre><p>I need to create a gif from a video. I know there is a gifencoder in go but I need frames of the video for which I need to use ffmpeg. </p></pre>mdempsky: <pre><p>ffmpeg has a GIF encoder. You can just transcode from video to GIF entirely within ffmpeg.</p>
<p>Alternatively, have ffmpeg output <a href="https://www.ffmpeg.org/ffmpeg-formats.html#rawvideo" rel="nofollow">rawvideo</a> and then process the frames within Go.</p></pre>aboukirev: <pre><p>If you do not need to support just about any video codec look for specialized decoding libraries and respective bindings. Also, if you are converting video files on disk, you should be able to just launch FFMPEG sub-process with parameters from a Go application.</p></pre>mdempsky: <pre><p>I think you'd be better off finding a way to reuse ffmpeg from Go. For example, use cgo or SWIG to call directly into ffmpeg binaries, or have a helper process to stream media data to/from for processing.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
0 回复
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传