need some help on the best way to go with video uploads (uploadify and ffmpeg) |
[eluser]tim1965[/eluser]
Hi I am trying to implement video uploading on my site. I have been playing around with the uploadify example that most people have used on this board(from http://www.reloadedpc.com/code-igniter/j...niter/)for the past couple of weeks, with some success, however i have now hit a bit of a stumbling block, and need some advice. First some background, for video upload there are essentially 2 parts to the upload. First the physical upload, and secondly the conversion of the video (i am using ffmpeg).I have managed to get both of these to work together, so i can upload a video and then run ffmpeg conversion on it from my controller, by essentially running the upload.php and then calling my controller to run my upload checks and display any errors. However the problem i have is that uploadify runs the swfobject percent count to 100% only on the upload (controlled by upload.php), so when the video conversion runs in the background there is nothing to stop the user trying to upload another video. Whati want is to include the conversion as part of the percentage count so that it only gets to 100% if the ffmpeg conversion is ok or it throws an error. From looking at the uploadify example it would seem to be that all of my checks and error handling should go into the upload.php to make it work the way i want to, however i cannot get my model functions to execute and display any error messages back to the form using upload.php. So my question is, is this the correct approach for what i am trying to accomplish. If not what should i be doing. What have other people done, and can they share some snippets of code to point me in the right direction. Thanks in advance and apologies for the length of the post. |
Welcome Guest, Not a member yet? Register Sign In |