Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

videocodec vp8

Discussion in 'Unity Render Streaming' started by gushenjie, Jul 7, 2021.

  1. gushenjie

    gushenjie

    Joined:
    Jul 7, 2021
    Posts:
    4
    upload_2021-7-7_11-24-6.png

    Is there a way to adjust the video encoding format? I am currently using VP8. I want to switch to H264. At present, my 1000W model runs locally only for about 10 frames. Is there a way to maintain a high frame rate output on the basis of good performance?
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    803
    You need to enable the hardware encoder to use H.264 codec.
    H.264 software encoder is not contained by our product.
     
  3. gushenjie

    gushenjie

    Joined:
    Jul 7, 2021
    Posts:
    4
    Where can I open the H.264 codec, in the code? Or is it in the configuration?
     
  4. three10

    three10

    Joined:
    Jan 3, 2014
    Posts:
    23
    Hi! You probably have found it already. It can be set in the inspector on the RenderStreaming script. If Hardware Encoder Support is enabled and can be used (see https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new) than h264 codec is used, otherwise VP8 is used. But image quality is often worse when using h264.
    Relevant information about codecs/video streaming can be found in the docs of the WebRTC package, not so much in the Render Streaming. So it can be easily overlooked: https://docs.unity3d.com/Packages/com.unity.webrtc@2.4/manual/videostreaming.html
     

    Attached Files:

  5. gushenjie

    gushenjie

    Joined:
    Jul 7, 2021
    Posts:
    4
    Yes, I have found it. But I found that there is not much difference between VP8 and VP9. The 500W model has only about 15 frames. The graphics card used by my computer is NVIDA GEFORCE GTX1060.

    upload_2021-7-9_16-29-51.png upload_2021-7-9_16-30-19.png