我尝试播放h265视频文件,但无法播放。
IMX8QXP - 斯卡思间隙 - L 6.6.52
请您检查并提供播放h265视频示例文件的正确命令或软件包/库。
gst-launch-1.0-v filesrc location=/root/sample.h265 !h265解析!v4l2h265dec!imxvideoconvert_g2d!fpsdisplaysink video-sink=waylandsink text-overlay=false sync=false &
你好,
请查收更新内容。
root@imx8qxpc0mek:~#
root@imx8qxpc0mek:~# gst-launch-1.0 -v filesrc location=/navigation/aa_video_dump.h265 ! h265parse ! v4l2h265dec ! imxvideoconvert_g2d ! fpsdisplaysink video-sink=waylandsink text-overlay=false sync=false
将管道设置为暂停状态...
====== V4L2DEC: 1.24.7 版本,构建于 2024 年 10 月 23 日 09:43:13。======
管道正在预滚动……
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0: sync = false
重新分配延迟……
/GstPipeline:pipeline0/GstH265Parse:h265parse0.GstPad:src: caps = video/x-h265, width=(int)1280, height=(int)720, 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)byte-stream, alignment=(string)au, pixel-aspect-ratio=(fraction)1/1, profile=(string)main, tier=(string)high, level=(string)4
/GstPipeline:pipeline0/v4l2h265dec:v4l2h265dec0.GstPad:sink: caps = video/x-h265, width=(int)1280, height=(int)720, 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)byte-stream, alignment=(string)au, pixel-aspect-ratio=(fraction)1/1, profile=(string)main, tier=(string)high, level=(string)4
/GstPipeline:pipeline0/v4l2h265dec:v4l2h265dec0.GstPad:src: caps = video/x-raw, format=(string)NV12_8L128, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, framerate=(fraction)30/1
/GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:src: caps = video/x-raw, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)YUY2
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)YUY2
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)YUY2
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-raw, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)YUY2
/GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0.GstPad:sink: caps = video/x-raw, format=(string)NV12_8L128, width=(int)1280, height=(int)720, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt709, framerate=(fraction)30/1
重新分配延迟……
root@imx8qxpc0mek:~# gst-inspect-1.0 | grep -i h265
codectimestamper: h265timestamper: H.265 timestamper
rtp: rtph265depay: RTP H265 解压加载器
rtp:rtph265pay:RTP H265 有效载荷
typefindfunctions: video/x-h265: h265, x265, 265
video4linux2:v4l2h265dec:V4L2 H265解码器
videoparsersbad: h265parse: H.265 解析器
root@imx8qxpc0mek:~#
root@imx8qxpc0mek:~#
root@imx8qxpc0mek:~# gst-inspect-1.0 | grep -i v4l2
video4linux2:v4l2deviceprovider(GstDeviceProviderFactory)
video4linux2:v4l2h263dec:V4L2 H263解码器
video4linux2:v4l2h264dec:V4L2 H264解码器
video4linux2:v4l2h264enc:V4L2 H.264 编码器
video4linux2:v4l2h265dec:V4L2 H265解码器
video4linux2:v4l2mpeg2dec:V4L2 MPEG2 解码器
video4linux2:v4l2mpeg4dec:V4L2 MPEG4 解码器
video4linux2: v4l2radio: 收音机 (video4linux2) 调谐器
video4linux2:v4l2sink:视频(video4linux2)接收器
video4linux2:v4l2spkdec:V4L2 SPK解码器
video4linux2:v4l2src:视频(video4linux2)源
video4linux2:v4l2vc1dec:V4L2 VC1解码器
video4linux2:v4l2vp8dec:V4L2 VP8 解码器
video4linux2:v4l2xviddec:V4L2 XVID解码器
root@imx8qxpc0mek:~#
root@imx8qxpc0mek:~#
你好,
由于您使用的是 Scarthgap (6.6.52) 版本,问题可能出在以下方面:
图像中不存在 v4l2h265dec。
H.265 文件不是原始基本流。
VPU固件/驱动程序未加载。
BSP 使用的解码器元件与流水线中指定的解码器元件不同。
请提供以下命令的输出结果:
壳
gst-inspect-1.0 | grep -i h265
gst-inspect-1.0 | grep -i v4l2
``
并获取 gst-launch-1.0 的确切错误消息,以尝试确定是否发生了以下四种情况之一。