avformat_open_input返回值,NaCl模块上的错误代码 [英] avformat_open_input return value, error code on NaCl Module
问题描述
到目前为止,我的模块链接了ffmpeg和SDL库。
它已经可以播放定向加载到内存中并将其复制到YUVOverlay缓冲区中的YUV格式视频(很简单)。
现在,我想使用ffmpeg来解码视频,但当我调用函数 avformat_open_input 时,当输入是URL字符串时,它返回 -5
例如 rtmp://
或 mmsh://
;当输入为文件名时,它返回 -1052488119
,例如 / saved / tmp
(我挂载文件系统 - html5fs)。
有一些问题:
- -5和-1052488119的意思是什么?
- 如果avformat_open_input无法打开文件,输入类型是否可以从< em 不
$ b
如果我不清楚我的问题或描述,可以告诉我。
如果你做同样的事情或有同样的问题,我们可以一起讨论。
谢谢,
Jar解决方案ffmpeg .com / p / naclports /rel =nofollow> naclports 。也许这对你有用吗?
I'm trying to port FFmpeg into my NaCl module.
So far, my module linked ffmpeg and SDL libraries.
It already can play YUV format video which is directed load into memory and copy into YUVOverlay buffer (it's very easy).
Now, I want to use ffmpeg to decode video, but when I call the function avformat_open_input it returns
-5
when input is URL string, such asrtmp://
ormmsh://
; it returns-1052488119
when input is file name, such as/saved/tmp
(I mount the file system - html5fs).
There are some questions:
- What means of -5 and -1052488119?
- If file can't open by avformat_open_input, is it possible the input type is from buffer not from file name or url string?
If I'm not clearly about my question or description, you can tell me. If you are doing the same thing or having the same problem, we can discuss together.
Thanks, Jar
解决方案There is a
ffmpeg
port in naclports. Maybe that would be useful for you?这篇关于avformat_open_input返回值,NaCl模块上的错误代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!