使用Gstreamer播放视频:
gst-launch-1.0 playbin uri=file:///media/test_movie.avi 命令,报错的log:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
====== AIUR: 4.1.6 build on Jul 20 2021 18:25:04. ======
Core: AVI_PARSER_03.05.28 build on Oct 10 2016 07:21:58
file: /usr/lib/imx-mm/parser/lib_avi_parser_arm11_elinux.so.3.1
------------------------
Track 00 [video_0] Enabled
Duration: 0:00:20.040000000
Language: und
Mime:
video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)4, width=(int)856, height=(int)480, framerate=(fraction)25/1
------------------------
====== IMXV4L2SINK: 4.1.6 build on Jul 20 2021 18:25:41. ======
Caught SIGSEGV
Spinning. Please run 'gdb gst-launch-1.0 1160' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
使用gst-play-1.0 file:///media/test_movie.avi 播放视频时报错log:
Press 'k' to see a list of keyboard shortcuts.
Now playing /media/test_movie.avi
Prerolling...
====== AIUR: 4.1.6 build on Jul 20 2021 18:25:04. ======
Core: AVI_PARSER_03.05.28 build on Oct 10 2016 07:21:58
file: /usr/lib/imx-mm/parser/lib_avi_parser_arm11_elinux.so.3.1
------------------------
Track 00 [video_0] Enabled
Duration: 0:00:20.040000000
Language: und
Mime:
video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)4, width=(int)856, height=(int)480, framerate=(fraction)25/1
------------------------
====== IMXV4L2SINK: 4.1.6 build on Jul 20 2021 18:25:41. ======
Segmentation fault
使用命令:gst-launch-1.0 -v imxv4l2src device=/dev/video0 ! "video/x-raw, format=(string)RGB16, width=(int)1024, height=(int)768, framerate=(fraction)30/1" ! imxv4l2sink 报错日志:====== IMXV4L2SRC: 4.1.6 build on Jul 20 2021 18:25:41. ======
====== IMXV4L2SINK: 4.1.6 build on Jul 20 2021 18:25:41. ======
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
Caught SIGSEGV
Spinning. Please run 'gdb gst-launch-1.0 1176' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
使用命令:gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw, format=(string)RGB16, width=(int)352, height=(int)288" ! v4l2sink 报错日志:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
使用 gst-launch-1.0 -v v4l2src device=/dev/video0 ! "video/x-raw, format=(string)RGB16, width=(int)352, height=(int)288" ! v4l2sink运行一会也会报错:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ov5640: actual frame rate of XGA is 22.5fps
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.8.1/libs/gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:34.060043338
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...