您尚未登录。

楼主 #1 2020-11-08 23:13:15

whyabc666
封禁
注册时间: 2019-12-12
已发帖子: 378
积分: 365

gstreamer 用x264enc编码的h264 VLC不能播放?再加个flvmux 变成mp4就能播放?

播放RTSP的h264也不行!

离线

楼主 #2 2020-11-08 23:23:17

whyabc666
封禁
注册时间: 2019-12-12
已发帖子: 378
积分: 365

Re: gstreamer 用x264enc编码的h264 VLC不能播放?再加个flvmux 变成mp4就能播放?

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

离线

楼主 #3 2020-11-08 23:29:02

whyabc666
封禁
注册时间: 2019-12-12
已发帖子: 378
积分: 365

Re: gstreamer 用x264enc编码的h264 VLC不能播放?再加个flvmux 变成mp4就能播放?

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)

离线

#4 2020-12-09 10:12:56

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: gstreamer 用x264enc编码的h264 VLC不能播放?再加个flvmux 变成mp4就能播放?

我这里我使用gst-launch1.0 playbin文件路径
去播放视频没发播放,
A16D160D-1A57-4356-8C6B-23C86081EF18.jpeg
而且用gstplay出现下面的问题
1D9698A2-E810-4808-BC50-1ED053CAA12F.jpeg

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn