avformat_open_input return value, error code on Na

2019-06-21 21:48发布

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 as rtmp:// or mmsh://; it returns -1052488119 when input is file name, such as /saved/tmp (I mount the file system - html5fs).


There are some questions:

  1. What means of -5 and -1052488119?
  2. 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

2条回答
爷的心禁止访问
2楼-- · 2019-06-21 22:44
狗以群分
3楼-- · 2019-06-21 22:47

There is a ffmpeg port in naclports. Maybe that would be useful for you?

查看更多
登录 后发表回答