LaiFengiOS / LFLiveKit

LaiFeng IOS Live Kit,H264 and AAC Hard coding,support GPUImage Beauty, rtmp transmission,weak network lost frame,Dynamic switching rate
MIT License
4.39k stars 1.11k forks source link

Cannot stream in landscape.. #318

Open rinfosho opened 5 years ago

rinfosho commented 5 years ago

I have set the settings to portrait only in deployment info, but not when i set the outputImageOrientation to .LandscapeLeft, when the phone is in portrait, the video on the iphone screen is rotated 90 degrees clockwise, however the data that is sent to the stream is portrait. WHen i rotate my phone landscape left, the data that is sent to the rtmp stream is also in landscape which is what I want however, the video on my phone is rotated 90 degrees clockwise. how do i fix this error? I want my iphone to display wahtever is being sent to the RTMP server..

qwaserdxc commented 4 years ago

@rinfosho Hello Have you been able to solve this problem? I used Accelerate and vImage (vImage_Buffer) to rotate pixelBuffer, but a extension app has too little RAM for such operations.

As far as I know, you need to set the video orientation parameter so that the RTMP service player itself rotates the video in the right direction. You have no information about this?

bwwhitt commented 4 years ago

Was there any resolution to this? having the same problem