I'm working on a website that allows uploading of generic video types, converts them to MP4s (H.264), then plays them using the HTML 5
I would really like to give the option to rotate videos, but when I run the rotation, the output files will not play in Firefox ("Video cannot be played because the file is corrupt"). Windows also does not automatically generate a thumbnail based on its content, like for other MP4s. The files do play fine in VLC and in Chrome, but I will need them to work in Firefox as well.
I've tried joining the conversion and rotation into a single FFMPEG call, and I've also tried rotating before converting and vice-versa, but I still have the same problem.
Here are what my calls look like:
ffmpeg -i <input> -vf "transpose=1" -qscale 0 -y -acodec copy <output>
ffmpeg -i <input> -vcodec libx264 -vsync 1 -bt 50k -acodec libvo_aacenc -crf <quality> -s <width>x<height> -ar 44100 -ab 160 -ac 2 -y <output>