pinkfish / flutter_rtmppublisher

Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.
BSD 3-Clause "New" or "Revised" License
95 stars 121 forks source link

Android have wrong orientation output #8

Closed adorufus closed 4 years ago

adorufus commented 4 years ago

hi, i have wrong orientation issue on android side. i have recorded on portrait position and the output result is landscape. can you help me how to fix this?

adminant commented 4 years ago

I have the same problem, rtmp stream comes as landscape though original position is portrait

adorufus commented 4 years ago

@adminant hi, if you know how to fix this please let me know

adminant commented 4 years ago

@adorufus Sorry, I don't know, I hope @pinkfish will fix this issue. @pinkfish , could you help us?

pinkfish commented 4 years ago

It is do with the how the media encoder is encoding things. I had it around the other orientation to start with and it fails in the capture part. Right now it is putting in a hint on the encoder for the rotation which should be working, although I also noticed it wasn't.

On Thu, 28 May 2020 at 05:17, adminant notifications@github.com wrote:

@adorufus https://github.com/adorufus Sorry, I don't know, I hope @pinkfish https://github.com/pinkfish will fix this issue. @pinkfish https://github.com/pinkfish , could you help us?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pinkfish/flutter_rtmppublisher/issues/8#issuecomment-635302586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATOMMM6YJEUHMFMJQTYWIDRTZI53ANCNFSM4NG4OKAA .

pinkfish commented 4 years ago

Just checking in a fix, or a workaround anyway. If you useOpenGL in the arguments when creating the stream it will make an opengl surface and this will rotate the output to be portait mode.

pinkfish commented 4 years ago

The 0.2.0 version should fix this (is you use opengl anyway).

adorufus commented 4 years ago

@pinkfish sorry, but the playback view is so small (squared), can you help?

adorufus commented 4 years ago

and when i start the video streaming. i got error message that says "cannot use a surface that wasn't configured". i hope you can help me @pinkfish