I want to compress video file while uploading the video. I installed the ffmpeg for this and , I am using the below code.
Code for video stream compression:-
shell_exec($ffmpeg -i test.mp4 -s 320x240 new.mp4);
Video getting compressed. But this takes too much time to compress and I always getting "Maximum execution time of 30 seconds exceeded"
, error for this.
Please help me to sort out this. I don't want to change my maximum execution time. Is there is any mistake in the above code please help me to rectify it or suggest me another method or code...