Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 <video> tag.

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:

Rotation:

 ffmpeg -i <input> -vf "transpose=1" -qscale 0 -y -acodec copy <output>

Output Log

Conversion:

 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>

Output Log

share|improve this question

migrated from stackoverflow.com Dec 13 '13 at 21:32

This question came from our site for professional and enthusiast programmers.

    
You should include the complete ffmpeg console output for each command. –  LordNeckbeard Dec 13 '13 at 22:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.