ssjal Posted March 11, 2009 Share Posted March 11, 2009 hi, i am working on video sharing project. i tested php video toolkit code. the video is converted into flv format. but i want to have some kind of error handling mechanism which would help to check and display error code due to incorrect video upload or any other reason. so i wanted to know how can error handling applied in case of ffmpeg. also need a good reference link to (ffmpeg) video conversion implementation in linux. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/148944-ffmpeg-video-conversion/ Share on other sites More sharing options...
JonnoTheDev Posted March 11, 2009 Share Posted March 11, 2009 Are you referring to the file upload part? You mean if a user attempts to upload a file of an unsupported format? ffmpeg doesn't do error handling as it is a command line application. You need to make sure that you do not use it with garbage files. Your file upload should only accept certain file types i.e .mov, .mpeg, etc Quote Link to comment https://forums.phpfreaks.com/topic/148944-ffmpeg-video-conversion/#findComment-782085 Share on other sites More sharing options...
ssjal Posted March 11, 2009 Author Share Posted March 11, 2009 Thanks for your reply yes, i am talking of file conversion using ffmpeg. i need to implement error handling during video conversion which will help to display some message/error code at the time of unsuccessfull video conversion. Is there any other alternative for video conversion (linux platform) besides ffmpeg which provides video conversion + error handling + watermarking? i tried Sothink Video Encoder Engine for Adobe Flash (Linux Version) but it does not perform watermaking on video. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/148944-ffmpeg-video-conversion/#findComment-782195 Share on other sites More sharing options...
JonnoTheDev Posted March 11, 2009 Share Posted March 11, 2009 There is a php api for ffmpeg rather than using the CLI http://ffmpeg-php.sourceforge.net/ To see errors if you are using ffmpeg as a CLI operation I guess you would have to store the output from the command line Quote Link to comment https://forums.phpfreaks.com/topic/148944-ffmpeg-video-conversion/#findComment-782210 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.