Firefly开源社区

打印 上一主题 下一主题

[Linux] Ubuntu 系統下 Gstreamer H.264 硬體解碼 hang 住

17

积分

0

威望

0

贡献

技术小白

积分
17

Ubuntu 系統下 Gstreamer H.264 硬體解碼 hang 住

发表于 2023-11-21 15:09:49      浏览:758 | 回复:0        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 官方提供的固件
  • 固件文件名称: rk3588_linux_release_20230114_v1.0.6c
  • 固件下载地址: 百度網盤
  • Log日志: avdec_h264_rkmpp.log
问题描述及复现步骤:
在 Ubuntu 系統下使用 Gstreamer 調用 plug-in : avdec_h264_rkmpp 進行 H.264 硬體解碼會 hang 住不動
  1. gst-launch-1.0 -vvv \
  2. filesrc location="/home/firefly/1k30p.h264" \
  3. ! h264parse ! avdec_h264_rkmpp debug-mv=true ! videoconvert \
  4. ! fpsdisplaysink video-sink="kmssink plane-id=94" \
  5. text-overlay=false sync=false
复制代码

同樣以  plug-in : avdec_h264 進行軟解 mp4H264 raw data 可以正常運行顯示, cmd 如下 :

  1. gst-launch-1.0 -vvv \
  2. filesrc location="/home/firefly/1k30p.h264" \
  3. ! h264parse ! avdec_h264 ! videoconvert \
  4. ! fpsdisplaysink video-sink="kmssink plane-id=94" \
  5. text-overlay=false sync=false

  6. gst-launch-1.0 -vvv \
  7. filesrc location="/home/firefly/1k30p.mp4" ! qtdemux \
  8. ! h264parse ! avdec_h264 ! videoconvert \
  9. ! fpsdisplaysink video-sink="kmssink plane-id=94" \
  10. text-overlay=false sync=false
复制代码

使用 avdec_h264_rkmpp 後 hang 住的 log 如下 :
  1. firefly@firefly:~$ gst-launch-1.0 -vvv \
  2. > filesrc location="/home/firefly/1k30p.h264" \
  3. > ! h264parse ! avdec_h264_rkmpp debug-mv=true ! videoconvert \
  4. > ! fpsdisplaysink video-sink="kmssink plane-id=94" \
  5. > text-overlay=false sync=false
  6. Setting pipeline to PAUSED ...
  7. Pipeline is PREROLLING ...
  8. /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstKMSSink:kmssink0: display-width = 1920
  9. /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstKMSSink:kmssink0: display-height = 1080
  10. /GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstKMSSink:kmssink0: sync = false
  11. /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, pixel-aspect-ratio=(fraction)1/1, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)4, codec_data=(buffer)01640028ffe1001b67640028acd940780227e5c044000003000400000300f03c60c65801000668ebe3cb22c0
  12. Redistribute latency...
  13. /GstPipeline:pipeline0/avdec_h264_rkmpp:avdec_h264_rkmpp0.GstPad:sink: caps = video/x-h264, pixel-aspect-ratio=(fraction)1/1, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)4, codec_data=(buffer)01640028ffe1001b67640028acd940780227e5c044000003000400000300f03c60c65801000668ebe3cb22c0
复制代码

想請教各位大佬 是我在 gstreamer 組成上有遺漏什麼造成 cmd hang 住?


avdec_h264_rkmpp.log

1.53 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表