+chromium-extensions
Hi Daniel,
None of FFmpeg's encoding functionality is accessible through extensions, or Chrome for that matter. Even in Chrome, we only allow a white-listed set of function calls. The white-list only includes select decoding and helper functions required for the HTML5 <video> and <audio> tags; the full lists can be seen in the *.sigs files here:
Even those would be inaccessible through an extension though. For working with media your options are the <video>, <audio>, and WebAudio APIs.
I've added the chromium-extensions group to the email, perhaps someone here has some ideas for you.
Hope this helps,
- dale
On Sun, May 13, 2012 at 10:52 AM, D.C. T.
<d3n...@googlemail.com> wrote:
Dear Mr. Curtis,
I am sorry for bothering you, but I would like to know if you can point me in the right direction. I am interested in authoring an extension for chrome, and would like to know if I can somehow get access to the functions at /trunk/deps/third_party/ffmpeg from within the extension. specifically, i am interested in doing something like exec() in php:
var file=document.getElementById('video').files[0];
file.ffmpeg(" -i "+file+" -b 1000k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 25 -s 320x180 "+file+".webm");
I know it is more complex than the above pseudocode, but any suggestions (or linked discussion) you can give/forward me would be most generous.
Thanks in advance,
Daniel Caleb Thompson