#!/bin/bash # Test script to check substream codec echo "Testing substream codec..." echo "RTSP URL: rtsp://admin:Squashkiwiaynsley1!@10.10.1.12:554/cam/realmonitor?channel=1&subtype=1" # Use curl to get stream info timeout 5 curl -I "rtsp://admin:Squashkiwiaynsley1%21@10.10.1.12:554/cam/realmonitor?channel=1&subtype=1" 2>&1 | head -20 echo "" echo "Note: The substream (subtype=1) on Dahua cameras is typically H264" echo "while the main stream (subtype=0) is H265"