i want to create a video from a image i used following code
shell_exec("avconv -f image2 -r 50 testimage.jpg output.mpg");
But when i trying to playing output video it shows stream contains no data
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The avconv manual says
There is a
-s WxHin that line which is missing from your code. Maybe that is the cause.-s WxHis used to specify the size of the video, W – width and H – height. Here is a list of formats supportedOn increasing the playback time, again the manual says