播放RTSP的h264也不行!
离线
gst-launch-1.0 -v v4l2src ! 'video/x-raw, width=640, height=480, framerate=30/1' ! queue ! videoconvert ! x264enc ! filesink location=/home/abc/usbwf.h264
gst-launch-1.0 playbin uri=file:///home/abc/usbwf.h264 xxx
gst-launch-1.0 -v v4l2src ! 'video/x-raw, width=640, height=480, framerate=30/1' ! queue ! videoconvert ! x264enc ! h264parse ! flvmux ! filesink location=/home/abc/testwf.mp4
gst-launch-1.0 playbin uri=file:///home/abc/testwf.mp4 okok
离线
gst-launch-1.0 filesrc location=/home/abc/testwf.mp4 ! flvdemux ! h264parse ! avdec_h264 ! ximagesink
root@abc-ThinkPad-X200:/home/abc# gst-launch-1.0 filesrc location=/home/abc/testwf.mp4 ! flvdemux ! avdec_h264 ! ximagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFlvDemux:flvdemux0: Internal data stream error.
Additional debug info:
gstflvdemux.c(2599): gst_flv_demux_loop (): /GstPipeline:pipeline0/GstFlvDemux:flvdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
gst-launch-1.0 playbin uri=file:///home/abc/stream_chn0.h264 okok
gst-launch-1.0 filesrc location=/home/abc/stream_chn0.h264 ! h264parse ! avdec_h264 ! ximagesink
root@abc-ThinkPad-X200:/home/abc# gst-launch-1.0 filesrc location=/home/abc/stream_chn0.h264 ! h264parse ! avdec_h264 ! ximagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0: GStreamer encountered a general stream error.
Additional debug info:
gstbaseparse.c(3243): gst_base_parse_loop (): /GstPipeline:pipeline0/GstH264Parse:h264parse0:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
最近编辑记录 whyabc666 (2020-11-08 23:46:04)
离线
我这里我使用gst-launch1.0 playbin文件路径
去播放视频没发播放,
而且用gstplay出现下面的问题
离线