I have compressed mp4 video using ffmpeg in php environment. Videos are being compressed but these are not playing in firefox showing error:
Video can't be played because the file is corrupt
while this video is playing fine in VLC media player also in chrome browser. My code of comression is as-
exec("ffmpeg -i input.mp4 -acodec mp2 output.mp4");