From 3d8aca8ef98c4b3fdf57262bc669e4dedeb8b384 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 30 Aug 2019 16:38:00 -0400 Subject: [PATCH] WIP: Enable display on Xilinx ZCU106 --- src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index b6ccaf4..41e5238 100644 --- a/src/main.c +++ b/src/main.c @@ -9,6 +9,12 @@ #define DEFAULT_SRT_URI "srt://:7001" #define DEFAULT_RIST_ADDRESSES "127.0.0.1:5004" +#ifdef __aarch64__ +#define DEFAULT_VIDEOSINK " queue ! videoconvert n-threads=2 ! queue max-size-bytes=0 ! kmssink bus-id=a00b0000.v_mix" +#else +#define DEFAULT_VIDEOSINK " videoconvert ! autovideosink " +#endif + static gchar *srt_uri = NULL; static gchar *rist_addresses = NULL; @@ -351,7 +357,7 @@ int main (int argc, char *argv[]) "t. ! queue ! rtpmp2tpay ! ristsink bonding-addresses=%s async=0 " "t. ! queue leaky=downstream ! srtsink uri=srt://:7002?mode=listener async=0 " "t. ! queue ! tsdemux latency=50 ! tee name=h264_t " - "h264_t. ! queue ! decodebin ! videoconvert ! autovideosink async=0 " + "h264_t. ! queue ! decodebin ! videoconvert ! " DEFAULT_VIDEOSINK " async=0 " "h264_t. ! queue ! h264parse ! video/x-h264, alignment=au ! " "hlssink2 location=%s/segment%%05d.ts playlist-location=%s/playlist.m3u8 send-keyframe-requests=0 target-duration=1 playlist-length=5 async=0 " "h264_t. ! queue ! h264parse ! rtph264pay config-interval=1 ! application/x-rtp,payload=96 ! tee name=webrtctee allow-not-linked=true ", -- GitLab