I need to split a section of a video, paste a logo and also blur a video online. I know how to do these but the problem is, I don't know how to make sure that the result video is suitable for web. For example there is a mp4
video in my website which is playing via the browser, and using this code I cut a section of it:
exec("ffmpeg -i ".$source." -ss ".$start." -to ".$end." -c copy ".$newVideo);
The problem is, when the distance between $start
and $end
is more than a few minutes, the split operation is done but it is not played via browser.
What codec or library do I need to add as filter to make sure that the result video is always playing on all modern browsers?