sourab-sharma / TouchToRecord

Touch android camera surface view to record video using FFmpeg Recorder
297 stars 104 forks source link

save a recording in portrait mode has a rotation problem #11

Closed scheriff closed 8 years ago

scheriff commented 9 years ago

I am trying to record a video in portrait mode with the front camera. I have removed screenOrientation="landscape" from FFmpegRecorderActivity in manifest.xml and removed margins from camera layout.

Preview and recording is working but the resulting file is falsely rotated. Front camera footage is rotated 90 degrees clockwise, back camera footage is rotated 90 degrees counterclockwise. I couldn't find the reason for this. Any suggestions?

sourab-sharma commented 8 years ago

Please see updated code.