Le 16 juin 2016 4:06 PM, "JPM" <[hidden email]> a écrit :
> I am trying to convert a bayer frame to RGB frame with this pipeline but an
> error appears :
> C:\Windows\System32>gst-launch-1.0 -v filesrc location=E:/bayersample.bayer
> blocksize=307200 !
> video/x-bayer,format=bggr,width=640,height=480,framerate=1/1 ! bayer2rgb !
> filesink location=E:/bayersample.rgb
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter
> caps do not completely specify the output format
On Do, 2016-06-16 at 22:29 -0700, JPM wrote:
> Hi Nicolas,
> I am using a naked file (raw bayer data without any headers) with all
> to 0x00 in order to test the pipeline.
> Maybe this is the problem. Have I to convert it to a standard file
> like TIFF, BMP ?.
You need a parser element like videoparse for bayer, which would then
chunk the data into one frame per buffer. Or alternatively on filesrc
you would set the block size property to exactly the size of one frame
and additionally provide the correct caps, but that's less clean.
On Fr, 2016-06-17 at 03:12 -0700, JPM wrote:
> Hi Sebastian,
> I already use the block size property in filesrc --> filesrc
> location=E:/bayersample.bayer blocksize=307200
> Anyway I have tested videoparse and there is not error but the sink
> file size is 0 bytes. The pipeline is :
This should fail negotiation as videoparse has no bayer support, as
said in the previous mail.
So problem seems to be rather that a) there is no "bayerparse" element
and b) the caps transformation in bayer2rgb is incomplete or you don't
provide enough caps yourself.