The mind boggles. I know you said that tongue-in-cheek, and that would be an incredibly cool project, but i feel that unless we put this to rest now someone might actually take you seriously.
A huge amount of work has gone into making FFMPEG and x264 as fast as they are today. Not only would you lose performance (and integer types) going from C -> JavaScript, but you also lose all the assembly, handwritten for tens of different architectures (including SIMD like SSE). I would expect at least a 100x slowdown.
For your users' sake, please don't do this ;_;
Well, we have already have JavaScript Linux[1] ... lets just compile FFMPEG for that, and use it within the users browser.
Re:I want to solve the uploads problem
by JonnieCache on Sunday October 16, 2011 @07:39PM
(#3118668)
Yes, in case it wasn't clear, Fabrice Bellard is the author of both FFMPEG and jslinux, and my comment was referring to his outrageous productivity/ability. As great as V8 may be, it isn't a great target for an ffmpeg port.
Still, I wouldn't put it past him.
Re:I want to solve the uploads problem
by DarkShikari on Monday October 17, 2011 @02:41AM
(#3119432)
An optional Java plugin with JNI might work, though it'd result in a client-side security prompt.
I think doing video encoding on the client side to save a bit of bandwidth would be a huge win.
FFMPEG...maybe not. But there is certainly room for something cross platform that works for upload videos quickly.
We're not porting ffmpeg to JS, but my startup is working feverishly on the "I made this video and now I have to upload the whole damn thing.. ugh!" problem. Stay tuned.
In the meantime, try out this Firefox Extension: http://firefogg.org/
Shouldn't be long now.