问题
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:
- 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
回答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