Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

avformat_open_input return value, error code on NaCl Module

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

like image 629
Jar Avatar asked Jul 25 '13 09:07

Jar


1 Answers

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

like image 159
Eli Bendersky Avatar answered Sep 17 '22 02:09

Eli Bendersky