Example-7: (Camera Audio/Video → Stream out using Ethernet ... Streaming In → Decode → Display with Audio) - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
Release Date
2023.1 English

This example requires two boards: Board-1 is used for encoding live A/V feed from camera and streaming-out (as a server) and board-2 is used for streaming-in and decoding purposes to play, as a client, the received audio/video stream.

  1. Connect two boards back to back with an Ethernet cable or make sure both the boards are connected to the same Ethernet hub.
  2. Set the client IP address and execute stream-in → Decode example on board-2.
    ifconfig eth0
    Note: Setting of IP is not required if the boards are already connected to the same LAN.
    vcu-demo-streamin-decode-display.sh -c avc --audio-type aac
    Note: This means client is receiving AVC bitstream from server, use -c hevc. If server is sending HEVC bitstream).
  3. Set server IP and run Camera → Encode → stream-out on board-1.
    ifconfig eth0 (Note: setting of ip is not required if the boards already connected to same LAN)
    vcu-demo-camera-encode-streamout.sh --audio-type aac --use-alsasrc -i "hw:1" --address