Gstreamer colorimetry

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Gstreamer colorimetry

跳至解决方案
5,561 次查看
quenreyn
Contributor III

Hi,

I am novice in the use of gstreamer. I want to record the video from a composite camera, but first of all I want to test my pipeline (which produce an error) with videotestsrc.

Here is my command (with gst-launch-1.0 version 1.14.1):

$ gst-launch-1.0 -v videotestsrc ! v4l2h264enc ! filesink location=pal_capture.mkv

which produce the following error:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)240, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1


/GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video/x-h264, stream-for
mat=(string)byte-stream, alignment=(string)au, profile=(string)baseline, level=(string)4, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1,interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono


/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)baseline, level=(string)4, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono


ERROR: from element /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0: Device '/dev/video8' does not support bt601 colorimetry


Additional debug info:
../../../gst-plugins-good-1.14.1/sys/v4l2/gstv4l2object.c(3792): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0:
Device wants bt709 colorimetry


ERROR: pipeline doesn't want to preroll.


Setting pipeline to NULL ...
Freeing pipeline ...

As the error said, my source (?) does not look like to handle 'bt601 colorimetry'. I tried to change the colorimetry parameter, but without success. Besides, I don't know what /dev/video8 is ?

Thanks in advance,

Quentin.

标签 (4)
标记 (2)
0 项奖励
回复
1 解答
4,719 次查看
quenreyn
Contributor III

I found out how to change the colorimetry of the source :

gst-launch-1.0 -v videotestsrc ! video/x-raw,colorimetry=bt709 ! v4l2h264enc ! filesink location=/home/root/pal_capture.mkv

and the record from 'videotestsrc' worked !

在原帖中查看解决方案

0 项奖励
回复
1 回复
4,720 次查看
quenreyn
Contributor III

I found out how to change the colorimetry of the source :

gst-launch-1.0 -v videotestsrc ! video/x-raw,colorimetry=bt709 ! v4l2h264enc ! filesink location=/home/root/pal_capture.mkv

and the record from 'videotestsrc' worked !

0 项奖励
回复