Video Stream geometry - iOS

Discussion in 'Web Call Server 5' started by Jan Lipmann, May 9, 2017.

  1. Jan Lipmann

    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() = configuration.streamName

    options.display = view

    let constraints = FPWCSApi2MediaConstraints()

    let vc = FPWCSApi2VideoConstraints()

    vc.bitrate = 2500

    vc.maxWidth = 720

    vc.maxHeight = 1280

    vc.maxFrameRate = 30 = vc

    let ac = FPWCSApi2AudioConstraints()

    ac.bitrate = 2500

    ac.useStereo = true

    ac.useFEC = true = ac

    options.constraints = constraints
  2. Max

    Max Administrator Staff Member

    What if you just play video from default WebRTC player?
    Is this stretched?

    As an option you can update to the latest available build and enable H.264 as priority codec.
    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/
    If you doubt, please send us log WCS_HOME/server_stdout.log to, we will check if transcoding is enabled.
  3. Max

    Max Administrator Staff Member

    As I can see it is not stretched in my test
    iOS Streamer and player
    Web player
    So it seems you have a kind of transcoding upwards to Facebook.
    Please share your WCS_HOME/conf/ config

Share This Page