avformat_open_input return value, error code on NaCl Module

十年热恋 提交于 2019-12-23 10:03:43

问题


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


回答1:


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




回答2:


you can find naclports at https://chromium.googlesource.com/webports/. They were moved from http://code.google.com/p/naclports/.



来源:https://stackoverflow.com/questions/17854270/avformat-open-input-return-value-error-code-on-nacl-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!