Video Stream geometry - iOS

Jan Lipmann

New Member
Hello Flashphoner team :)

We are using flashphoner ios sdk in our new application.
All works fine, but video on facebook seems to be little stretched vertically.
Is there a way to adjust video resolution somehow using sdk?
Second question: is render view have some affect on size of streaming video?
Thanks and have a good day :)

These are our settings:

let options = FPWCSApi2StreamOptions()

options.name = configuration.streamName

options.display = view

let constraints = FPWCSApi2MediaConstraints()

let vc = FPWCSApi2VideoConstraints()

vc.bitrate = 2500

vc.maxWidth = 720

vc.maxHeight = 1280

vc.maxFrameRate = 30

constraints.video = vc

let ac = FPWCSApi2AudioConstraints()

ac.bitrate = 2500

ac.useStereo = true

ac.useFEC = true

constraints.audio = ac

options.constraints = constraints
 

Max

Administrator
Staff member
Hello
What if you just play video from default WebRTC player?
https://wcs5-eu.flashphoner.com/demo2/player
Is this stretched?

As an option you can update to the latest available build and enable H.264 as priority codec.
Code:
codecs=opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,h264,vp8,flv,mpv
In flashphoner.properties
So if you set 1280x720 and if you don't have server-side transcoding (both iOS app and server's codecs are H.264), then picture size should not be changed and should be passed to Facebook / RTMP as is.

To be sure that transcoding is disabled, you can enable stdout log in WCS_HOME/bin/setenv.sh
Code:
-Dnode.enable_stdout=true
If you doubt, please send us log WCS_HOME/server_stdout.log to logs@flashphoner.com, we will check if transcoding is enabled.
 

Max

Administrator
Staff member
As I can see it is not stretched in my test
iOS Streamer and player
IMG_0413.PNG

Web player
webrtc-play.png

So it seems you have a kind of transcoding upwards to Facebook.
Please share your WCS_HOME/conf/flashphoner.properties config
 
Top