I have compressed MP4 video using FFmpeg in a PHP environment. Videos are being compressed, but they are not playing in Firefox, showing an error:
Video can't be played because the file is corrupt
while this video is playing fine in VLC media player and also in the Chrome browser. My code of compression is as-
exec("ffmpeg -i input.mp4 -acodec mp2 output.mp4");