Chromium browser real-time video on Jetson Nano

We are developing a browser based application that streams real-time video up/down (two-way). We are struggling to get consistent 720p30fps WebRTC (H264) streaming quality. Looking for suggestions on ways to improve stability of the browser media.

  1. Would tweaking tcp/udp parameters on sysctl.conf help improve performance? Everything is default now using Jetson Nano JetPack 4.3 Operating System

  2. Are there any specific chrome switches that will help improve H264 video encode/decode performance? Chromium launch switch in use currently:
    chromium-browser --alsa-output-device="hw:CARD=Audio" --alsa-input-device="plughw:CARD=Audio" --disable-restore-session-state --window-position=0,0 --start-maximized --window-size=1920,1080 --ignore-gpu-blacklist --start-fullscreen --kiosk --noerrdialogs --disable-translate --no-first-run --user-agent="Mozilla/5.0 (X11; CrOS x86_64 12105.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" --enable-gpu-rasterization --enable-native-gpu-memory-buffers --disable-gpu-compositing --disable-gpu-vsync --ignore-gpu-blacklist --enable-one-copy-rasterizer --enable-checker-imaging --enable-quic --site-per-process --enable-tcp-fastopen --disable-features=MaterialDesignBookmarks --enable-fast-unload --enable-experimental-canvas-features --enable-scroll-prediction --disable-user-media-security

  3. Should we consider using other browsers besides Chromium?

  4. Would CSI camera have better results compared to USB camera?

… any other pointers on how to improve stability and performnce here?

Hi,
Hardware acceleration is not enabled in chromium browser. You may run sudo jetson_clocks to get max CPU performance.

We have a package to enable hardware encoding in WebRTC:
https://developer.nvidia.com/embedded/L4T/r32_Release_v4.2/t210ref_release_aarch64/WebRTC_R32.4.2_aarch64.tbz2
Please download and try. And please note there is a known limitation listed in development guide.

1 Like

Hi, Please refer link https://www.linuxuprising.com/2018/08/how-to-enable-hardware-accelerated.html
Can you please suggest if this patch for video decode acceleration is good to use ? Are there any plans to enable Hardware acceleration of chromium browser ? Apart from video decode, what else has to be hardware accelerated in chromium browser ?

1 Like