mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 22:26:33 +00:00
fix: force sw decode for H265 — Pi5 hw decoder rejects 960x1080
This commit is contained in:
parent
8422fdce90
commit
f5a2645ffc
1 changed files with 3 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ launch_cameras() {
|
||||||
local launched=false
|
local launched=false
|
||||||
for depay_chain in \
|
for depay_chain in \
|
||||||
"rtph264depay ! h264parse ! avdec_h264" \
|
"rtph264depay ! h264parse ! avdec_h264" \
|
||||||
"rtph265depay ! h265parse ! avdec_h265" \
|
"rtph265depay ! h265parse ! avdec_h265 max-threads=4" \
|
||||||
; do
|
; do
|
||||||
echo " trying: ${depay_chain%% *}..."
|
echo " trying: ${depay_chain%% *}..."
|
||||||
timeout 5 gst-launch-1.0 \
|
timeout 5 gst-launch-1.0 \
|
||||||
|
|
@ -201,7 +201,8 @@ launch_cameras() {
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "$launched" == "false" ]]; then
|
if [[ "$launched" == "false" ]]; then
|
||||||
echo " fallback: uridecodebin"
|
echo " fallback: uridecodebin (sw decode)"
|
||||||
|
GST_PLUGIN_FEATURE_RANK=v4l2slh265dec:0,v4l2slh264dec:0 \
|
||||||
gst-launch-1.0 \
|
gst-launch-1.0 \
|
||||||
uridecodebin uri="$rtsp_uri" caps="video/x-raw" \
|
uridecodebin uri="$rtsp_uri" caps="video/x-raw" \
|
||||||
! videoconvert ! waylandsink fullscreen=true \
|
! videoconvert ! waylandsink fullscreen=true \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue