locked
Set video bitrate using h264 when video recording

    Question

  • Hi,

    We are using MediaCapture to capture video using h.264, then stream it to the network using proprietary protocol In a c++ winrt app.

    Since we've a QOS component, we need to change the bitrate dynamically on demand.

    We are trying to get VideoEncodingProperties, changing the bitrate property and then using SetMediaStreamPropertiesAsync resetting the properties. 

    We are getting an exception right after the call.

    We also tried to create a new property set and the result was the same.

    How can we set the bitrate at runtime without stopping the video?


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, February 20, 2013 9:17 AM

All replies

  • Hi,

    I don't think we can change it at the runtime. We should set the memory buffer size before we platy the video. The memory buffer size will be different from different bitrates. Therefore, we need to stop video first, and then change the bitrate.

    Best regards,
    Jesse


    Jesse Jiang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, February 21, 2013 5:52 AM
  • Any recommendation for supporting QOS based on dynamic bitrate?

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Sunday, February 24, 2013 8:59 AM