AI: Update enhanced-rtmp spec for augment code.

This commit is contained in:
winlin
2025-07-04 08:39:23 -04:00
parent cbc98dc0d9
commit a19551540f
2 changed files with 20 additions and 1 deletions

View File

@@ -72,6 +72,25 @@ code_patterns:
- pattern: "#ifdef SRS_VALGRIND"
description: "Valgrind support"
codec_handling:
enhanced_rtmp:
description: |
For HEVC and other new codecs in RTMP/FLV protocols, always use enhanced-RTMP codec fourcc instead of legacy RTMP codec IDs.
Enhanced-RTMP provides better support for modern codecs and is the preferred approach.
NOTE: This guidance applies ONLY to RTMP/FLV protocols, not to other protocols like SRT/WebRTC/WHIP/WHEP/HLS/DASH/GB28181.
hevc_codec:
- pattern: "fourcc: hvc1"
description: "Use enhanced-RTMP fourcc 'hvc1' for HEVC codec identification in RTMP/FLV"
usage: "Always use fourcc 'hvc1' for HEVC instead of legacy RTMP codecid(12)"
rationale: "Enhanced-RTMP fourcc provides better codec identification and compatibility"
general_rule:
- "Do NOT use legacy RTMP codecid(12) for HEVC"
- "Always prefer enhanced-RTMP codec fourcc for new codecs"
- "Use fourcc format for codec identification in enhanced-RTMP contexts"
- "This applies ONLY to RTMP/FLV protocols - other protocols use their own codec identification methods"
build_and_development:
build:
command: "make -j"

View File

@@ -19,7 +19,6 @@
**/*.ts
# 3rd party libraries
**/vendor/**
**/3rdparty/ffmpeg-4-fit/**
**/3rdparty/gperftools-2-fit/**
**/3rdparty/gprof/**
@@ -32,6 +31,7 @@
**/3rdparty/srt-1-fit/**
# Research files.
**/tools/**
**/research/**
# Other files.