<div dir="ltr">Most of the Android devices I've used will include rotation metadata in the file as part of the MP4 stream metadata. From ffprobe:<div><br></div><div><div> >ffprobe ~/Downloads/pogo-original.mp4</div>
<div>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/dave/Downloads/pogo-original.mp4':</div><div> Metadata:</div><div> major_brand : isom</div><div> minor_version : 0</div><div> compatible_brands: isom3gp4</div>
<div> creation_time : 2014-01-01 21:32:03</div><div> Duration: 00:00:55.17, start: 0.000000, bitrate: 527 kb/s</div><div> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 501 kb/s, 30.01 fps, 30 tbr, 90k tbn, 180k tbc</div>
<div> Metadata:</div><div><b> rotate : 90 <-- ROTATION</b></div><div> creation_time : 2014-01-01 21:32:03</div><div> handler_name : VideoHandle</div><div> ...</div></div><div><br></div>
<div>When playing back via playbin, this rotation field isn't applied. Not terribly surprising, since it doesn't appear to be a very standardized way to describe rotation, even if it is very common on Android devices.</div>
<div><br></div><div>Any suggestions for how to get gstreamer to play this file with the correct orientation?</div><div><br></div><div>Thanks as always.</div><div><br></div><div>Dave</div></div>