Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
340 views
in Technique[技术] by (71.8m points)

video-streaming - 为什么此GStreamer管道可用于filesink但不能用于ximagesink / autovideosink?(Why does this GStreamer pipeline work with filesink but not with ximagesink/autovideosink?)

On my Ubuntu system, I can run this pipeline:

(在我的Ubuntu系统上,我可以运行以下管道:)

gst-launch-1.0 videotestsrc ! autovideosink

And view the test pattern at 30fps.

(并以30fps的速度查看测试图案。)

I can also launch this pipeline:

(我也可以启动以下管道:)

gst-launch-1.0 -e -v rtspsrc 'location=...' ! decodebin ! avenc_mpeg4 ! mp4mux ! filesink location=test.mp4

...and can use gst-play-1.0 to view the test.mp4 file without a problem.

(...并且可以使用gst-play-1.0来毫无问题地查看test.mp4文件。)

But these two pipelines don't open a view window, but also give no errors with DEBUG turned up all the way:

(但是,这两个管道不会打开视图窗口,而且不会因DEBUG一直打开而产生任何错误:)

gst-launch-1.0 -e -v rtspsrc 'location=...' ! decodebin ! ximagesink

gst-launch-1.0 -e -v rtspsrc 'location=...' ! decodebin ! autovideosink

Works fine on my mac, but no window on Ubuntu.

(在我的Mac上工作正常,但在Ubuntu上没有窗口。)

Weirder: even with -v, there is no output of the pad negotiation for autovideosink.

(怪异的:即使使用-v,也没有自动视频接收器的填充协商输出。)

Also nothing at all with GST_DEBUG=autovideosink:6 ... ?!?

(使用GST_DEBUG = autovideosink:6也没有任何帮助吗?)

I've never seen gstreamer go silent.

(我从未见过gstreamer保持沉默。)

Advice?

(忠告?)

  ask by PeterT translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Sounds like two issues to me.

(对我来说听起来像两个问题。)

Why there is no output is unclear to me.

(为什么没有输出我不清楚。)

Perhaps a typo?

(也许是错字?)

As for the pipelines, you most likely want to use videoconvert or autovideoconvert before your video sink.

(至于管道,您很可能希望在videoconvert autovideoconvert之前使用videoconvertautovideoconvert 。)

If your graphics driver doesn't support the color space output by the decoder it needs to convert it to a format that satisfies the sink.

(如果您的图形驱动程序不支持解码器输出的色彩空间,则需要将其转换为满足接收器格式。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...