Archived from the Transloadit support forum. Originally posted on November 8, 2012; details may be outdated, see our docs for current behavior. Original thread
I am sending an avi video through my template and it is working successfully, however, the resulting mp4 file is upside down. Do you have any idea why this might be? Thanks.
Thanks for your response. The assembly ID is REDACTED.
Also, in the mean time I ran that same video through handbrake to see what it would do and it does produces an upside down video as well. Not sure why.
Just as a hunch, could it be that your input file contains metadata instructing processing tools to rotate the file following a n orientation?
For instance if somebody passes us a file that has metadata saying 90 CCW, we rotate the file 90 degrees counter clockwise. It’s our job to then strip that metadata, so that any following processor won’t rotate it another go.
Maybe the your file was processed by some tool that did the rotation, so it looks good now, but left the a CCW in there, so that we do one to many rotates.
Like I said, just a hunch, but since I cannot locate the assembly id right now, thought I’d already share.
Sorry Kevin. I gave you the template ID, not the assembly ID. I just did an upload again and got a new assembly ID. It is REDACTED.
This is for a client of mine who is creating the videos on Windows and exporting as AVI. I was trying to simplify things by letting your servers do the re-encoding to make the file available as an iPad compatible video which is what the video displays on when it is consumed. So, I need to be able to give him some sort of solution where he can export the video in a format that won’t get flipped upside down.
Not at a console where I can check the assembly right now, but I’m thinking you should be able to set rotate to false if you want to avoid any ‘automagic’ rotation by us. That will probably fix your client’s problem.
More info here https://transloadit.com/docs/video-encode
Let me know if you want me to debug this over the weekend.
Have yourself a nice one regardless
Very sorry for taking such a long time to get back to you.
But it seems like we’re running into a bug here.
A fix is underway, I’ll let you know as soon as it hits production.
Thanks for the update. So, did you test it with the video I attached in the first post of this discussion? Because, when I run it now, it still gets flipped upside down even though I have rotate : false. Any other suggestions? Here is the assembly ID of one where I have rotate set to false: REDACTED
You know far more about video encoding/transcoding/etc. than I do, but one thing I find interesting about this issue is that handbrake does the exact same thing where it flips this particular video. I have no idea why, but what I’ve told my client who created this video is that he will just need to encode it using a different format. He didn’t really balk at that and was willing to go along with it.
Anyhow, my point is that if I’m the only one having the issue, you may not want to worry about it too much as we’ve come up with a workaround which is to tell our client to encode using different settings. I was able to use MPEG Streamclip and it correctly re-encoded the video for him.