我可以使用Xuggler将视频/音频编码为字节数组吗? [英] Can I use Xuggler to encode video/audio to a byte array?

查看:172
本文介绍了我可以使用Xuggler将视频/音频编码为字节数组吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎所有方法都需要文件或网址。我看到一些与OutputStream一起使用的方法,但我还没有设法使用其中一种方法打开IContainer;我总是得到一个无效的返回值。

It seems all methods expect either files or urls. I see some methods that work with OutputStream, but I haven't managed to open an IContainer using one of those methods; I always get an invalid return value.

推荐答案

创建自己的IURLProtocolHandler接口并传递给IContainer.open(...)打开你想要的任何类型的媒体类型。

Create your own IURLProtocolHandler interface and pass to IContainer.open(...) to open any type of media type you want.

这篇关于我可以使用Xuggler将视频/音频编码为字节数组吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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