5

I'm trying to do something similare to VideoStream

They include ffmpeg with nacl and include it in a chrome app

I've beeen working on it, but I can't have the naclportlist ffmpeg working on my project !

The reasons are those

  • nacl doesn't work with main() and command line, and ffmpeg requires it
  • glibc, the only way to compile it, expect a main() ! Impossible to remove it (maybe with ppapi ?)

So my question is simple, how can I communicate with ffmpeg and chrome ? if VideoStream can do it, why can't I ?

Thanks a lot for yours answers !

alexino2
  • 101
  • 10
  • there is a concept of "libavcodec" which is basically *you* manually using the underlying libraries FFmpeg does. HTH – rogerdpack Oct 19 '15 at 16:37
  • Thanks for your answer, But is there any way to include the ffmpeg.c with the lib ? or do you I have to rewrite all the ffmpeg.c functions ? – alexino2 Oct 20 '15 at 13:47
  • you might be able to rename its main method and call it manually, I've wondered the same thing myself before, honestly... – rogerdpack Oct 20 '15 at 16:03
  • I've just managed something with, But I'm having some issues with the "lrint" and 'lrintf' function : Do you know with what I can replace it ? – alexino2 Oct 21 '15 at 00:05
  • I'm looking into something similar and found out there is a version of ffmpeg that's bundled into chromium. Could be some hints there. https://chromium.googlesource.com/chromium/third_party/ffmpeg/+/HEAD/chromium – ndmweb Apr 07 '16 at 17:14
  • I managed to compile webports with nacl now I am confused, what to do?! I am building a screen recorder using ffmpeg and nacl – Mohammad Abu Musa Jun 30 '16 at 00:39

0 Answers0