linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Bara - SKIDATA <Benjamin.Bara@skidata.com>
To: Michael Tretter <m.tretter@pengutronix.de>
Cc: "linux-arm@lists.infradead.org" <linux-arm@lists.infradead.org>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"Richard Leitner - SKIDATA" <Richard.Leitner@skidata.com>,
	"p.zabel@pengutronix.de" <p.zabel@pengutronix.de>
Subject: RE: [i.MX6][CODA] certain resolutions are not working in YUYV format
Date: Tue, 17 Dec 2019 11:52:26 +0000	[thread overview]
Message-ID: <43c38b41ad7547c6baaa56c41a05be87@skidata.com> (raw)
In-Reply-To: <20191216182101.3676c280@litschi.hi.pengutronix.de>

Hi Michael,

thanks for your fast reply.

> Did you remove all other formats except for YUV420 from the driver? 

Exactly.

> Once you did that, all resolutions are decoded correctly?

Exactly.
But it happens very often that decoding the resolutions 320x200 and 400x300 
fails completely (see log on bottom). This occurs independent from the format in use.
However, independent from that, the decoding is correct, even on videos with a height
not divisible by 16.

> What happens if you force the driver to produce NV12 as destination format?

Artefacts appear on the top of each video with a height not divisible by 16.
The amount of incorrect pixel rows varies.
For example, with 480x500 the top 23 pixel rows and with 400x270 the top 3 pixel rows 
are "wrong".
We again removed all other formats in the driver.

> The height of the working resolutions seems to be a multiple of 16, 
> which is the macroblock size. 

We can confirm that. 
We tried a couple more heights, the problem seems to be related to that.
However, the width seems to have no influence.

> Do you see the problems only with videos that are encoded by the CODA or
> also with other mpeg4 encoded videos?

We also tried videos that are encoded with libxvid with the same outcome.


For further debugging, we also disabled the VDOA (by setting disable_vdoa=1) with the unmodified driver.
The result is exactly the same as forcing the I420 with a gst filter, as previously described.
The decoded output turns out to be completely green, also for "working resolutions".

Another finding, when modifying the driver: 
When forcing NV12, the VDOA is only enabled on the two "working resolutions" (dmesg output).
When forcing YUV420, the VDOA is always disabled (dmesg output).

BR,
Benjamin


*NV12 VDOA state log, disabled ones have artefacts*
width=1024,height=576.log:  [ 3470.252753] coda 2040000.vpu: 0: Video Data Order Adapter: Enabled
width=320,height=200.log:  [ 3447.371954] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=320,height=240.log:  [ 3468.941241] coda 2040000.vpu: 0: Video Data Order Adapter: Enabled
width=400,height=270.log:  [ 3453.788067] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=400,height=300.log:  [ 3455.110895] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=480,height=250.log:  [ 3461.457987] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=480,height=270.log:  [ 3462.803341] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=480,height=500.log:  [ 3464.198940] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=640,height=200.log:  [ 3465.745334] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
width=800,height=600.log:  [ 3467.132577] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled


*disabled VDOA results to I420 format*
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/GstCapsFilter:capsfilter0.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/v4l2mpeg4enc:v4l2mpeg4enc0.GstPad:src: caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, profile=(string)simple, level=(string)5, 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/v4l2mpeg4dec:v4l2mpeg4dec0.GstPad:sink: caps = video/mpeg, mpegversion=(int)4, systemstream=(boolean)false, profile=(string)simple, level=(string)5, 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
Redistribute latency...
/GstPipeline:pipeline0/v4l2mpeg4enc:v4l2mpeg4enc0.GstPad:sink: 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/GstCapsFilter:capsfilter0.GstPad:sink: 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/v4l2mpeg4dec:v4l2mpeg4dec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)240, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)240, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:src: caps = image/jpeg, sof-marker=(int)0, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, 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/GstMultiFileSink:multifilesink0.GstPad:sink: caps = image/jpeg, sof-marker=(int)0, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...

 
*failed 320x200 decoding (this time with NV12 format)*
  [ 3446.527178] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6d.bin
  [ 3446.530688] coda 2040000.vpu: Firmware code revision: 570363
  [ 3446.530699] coda 2040000.vpu: Initialized CODA960.
  [ 3446.530704] coda 2040000.vpu: Firmware version: 3.1.1
  [ 3446.533544] coda 2040000.vpu: encoder registered as video4
  [ 3446.534523] coda 2040000.vpu: decoder registered as video5
  [ 3446.539369] coda 2040000.vpu: 0: open instance (11a120f6)
  [ 3446.539485] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3446.539494] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3446.539502] coda 2040000.vpu: 0: s_ctrl: id = 0x9909cf, name = "Video Bitrate", val = 0
  [ 3446.539509] coda 2040000.vpu: 0: s_ctrl: id = 0x9909cb, name = "Video GOP Size", val = 16
  [ 3446.539515] coda 2040000.vpu: 0: s_ctrl: id = 0x990a5e, name = "H264 I-Frame QP Value", val = 25
  [ 3446.539521] coda 2040000.vpu: 0: s_ctrl: id = 0x990a5f, name = "H264 P-Frame QP Value", val = 25
  [ 3446.539526] coda 2040000.vpu: 0: s_ctrl: id = 0x990a62, name = "H264 Maximum QP Value", val = 51
  [ 3446.539533] coda 2040000.vpu: 0: s_ctrl: id = 0x990a68, name = "H264 Loop Filter Alpha Offset", val = 0
  [ 3446.539538] coda 2040000.vpu: 0: s_ctrl: id = 0x990a69, name = "H264 Loop Filter Beta Offset", val = 0
  [ 3446.539545] coda 2040000.vpu: 0: s_ctrl: id = 0x990a6a, name = "H264 Loop Filter Mode", val = 0 ("Enabled")
  [ 3446.539551] coda 2040000.vpu: 0: s_ctrl: id = 0x990a7f, name = "H264 Constrained Intra Pred", val = 0
  [ 3446.539556] coda 2040000.vpu: 0: s_ctrl: id = 0x990a80, name = "H264 Chroma QP Index Offset", val = 0
  [ 3446.539563] coda 2040000.vpu: 0: s_ctrl: id = 0x990a6b, name = "H264 Profile", val = 0 ("Baseline")
  [ 3446.539569] coda 2040000.vpu: 0: s_ctrl: id = 0x990a67, name = "H264 Level", val = 11 ("4")
  [ 3446.539575] coda 2040000.vpu: 0: s_ctrl: id = 0x990a90, name = "MPEG4 I-Frame QP Value", val = 2
  [ 3446.539581] coda 2040000.vpu: 0: s_ctrl: id = 0x990a91, name = "MPEG4 P-Frame QP Value", val = 2
  [ 3446.539587] coda 2040000.vpu: 0: s_ctrl: id = 0x990a96, name = "MPEG4 Profile", val = 0 ("Simple")
  [ 3446.539593] coda 2040000.vpu: 0: s_ctrl: id = 0x990a95, name = "MPEG4 Level", val = 7 ("5")
  [ 3446.539599] coda 2040000.vpu: 0: s_ctrl: id = 0x9909dd, name = "Slice Partitioning Method", val = 0 ("Single")
  [ 3446.539605] coda 2040000.vpu: 0: s_ctrl: id = 0x9909dc, name = "Number of MBs in a Slice", val = 1
  [ 3446.539611] coda 2040000.vpu: 0: s_ctrl: id = 0x9909db, name = "Maximum Bytes in a Slice", val = 500
  [ 3446.539617] coda 2040000.vpu: 0: s_ctrl: id = 0x9909d8, name = "Sequence Header Mode", val = 1 ("Joined With 1st Frame")
  [ 3446.539623] coda 2040000.vpu: 0: s_ctrl: id = 0x9909d6, name = "Number of Intra Refresh MBs", val = 0
  [ 3446.539629] coda 2040000.vpu: 0: s_ctrl: id = 0x9909e1, name = "Initial Delay for VBV Control", val = 0
  [ 3446.539635] coda 2040000.vpu: 0: s_ctrl: id = 0x9909de, name = "VBV Buffer Size", val = 0
  [ 3446.540164] coda 2040000.vpu: 0: release instance (11a120f6)
  [ 3446.549095] coda 2040000.vpu: 0: open instance (11a120f6)
  [ 3446.549210] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3446.549226] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3446.549832] coda 2040000.vpu: 0: release instance (11a120f6)
  [ 3447.149581] coda 2040000.vpu: 0: open instance (11a120f6)
  [ 3447.149690] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3447.149699] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3447.149706] coda 2040000.vpu: 0: s_ctrl: id = 0x9909cf, name = "Video Bitrate", val = 0
  [ 3447.149713] coda 2040000.vpu: 0: s_ctrl: id = 0x9909cb, name = "Video GOP Size", val = 16
  [ 3447.149720] coda 2040000.vpu: 0: s_ctrl: id = 0x990a5e, name = "H264 I-Frame QP Value", val = 25
  [ 3447.149726] coda 2040000.vpu: 0: s_ctrl: id = 0x990a5f, name = "H264 P-Frame QP Value", val = 25
  [ 3447.149731] coda 2040000.vpu: 0: s_ctrl: id = 0x990a62, name = "H264 Maximum QP Value", val = 51
  [ 3447.149737] coda 2040000.vpu: 0: s_ctrl: id = 0x990a68, name = "H264 Loop Filter Alpha Offset", val = 0
  [ 3447.149743] coda 2040000.vpu: 0: s_ctrl: id = 0x990a69, name = "H264 Loop Filter Beta Offset", val = 0
  [ 3447.149750] coda 2040000.vpu: 0: s_ctrl: id = 0x990a6a, name = "H264 Loop Filter Mode", val = 0 ("Enabled")
  [ 3447.149756] coda 2040000.vpu: 0: s_ctrl: id = 0x990a7f, name = "H264 Constrained Intra Pred", val = 0
  [ 3447.149761] coda 2040000.vpu: 0: s_ctrl: id = 0x990a80, name = "H264 Chroma QP Index Offset", val = 0
  [ 3447.149768] coda 2040000.vpu: 0: s_ctrl: id = 0x990a6b, name = "H264 Profile", val = 0 ("Baseline")
  [ 3447.149774] coda 2040000.vpu: 0: s_ctrl: id = 0x990a67, name = "H264 Level", val = 11 ("4")
  [ 3447.149780] coda 2040000.vpu: 0: s_ctrl: id = 0x990a90, name = "MPEG4 I-Frame QP Value", val = 2
  [ 3447.149785] coda 2040000.vpu: 0: s_ctrl: id = 0x990a91, name = "MPEG4 P-Frame QP Value", val = 2
  [ 3447.149791] coda 2040000.vpu: 0: s_ctrl: id = 0x990a96, name = "MPEG4 Profile", val = 0 ("Simple")
  [ 3447.149797] coda 2040000.vpu: 0: s_ctrl: id = 0x990a95, name = "MPEG4 Level", val = 7 ("5")
  [ 3447.149804] coda 2040000.vpu: 0: s_ctrl: id = 0x9909dd, name = "Slice Partitioning Method", val = 0 ("Single")
  [ 3447.149809] coda 2040000.vpu: 0: s_ctrl: id = 0x9909dc, name = "Number of MBs in a Slice", val = 1
  [ 3447.149815] coda 2040000.vpu: 0: s_ctrl: id = 0x9909db, name = "Maximum Bytes in a Slice", val = 500
  [ 3447.149821] coda 2040000.vpu: 0: s_ctrl: id = 0x9909d8, name = "Sequence Header Mode", val = 1 ("Joined With 1st Frame")
  [ 3447.149827] coda 2040000.vpu: 0: s_ctrl: id = 0x9909d6, name = "Number of Intra Refresh MBs", val = 0
  [ 3447.149833] coda 2040000.vpu: 0: s_ctrl: id = 0x9909e1, name = "Initial Delay for VBV Control", val = 0
  [ 3447.149839] coda 2040000.vpu: 0: s_ctrl: id = 0x9909de, name = "VBV Buffer Size", val = 0
  [ 3447.155934] coda 2040000.vpu: 0: release instance (11a120f6)
  [ 3447.156186] coda 2040000.vpu: 0: open instance (11a120f6)
  [ 3447.156254] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3447.156263] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3447.157910] coda 2040000.vpu: 0: release instance (11a120f6)
  [ 3447.309740] coda 2040000.vpu: 0: open instance (205d8a8f)
  [ 3447.309848] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3447.309856] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3447.309863] coda 2040000.vpu: 0: s_ctrl: id = 0x9909cf, name = "Video Bitrate", val = 0
  [ 3447.309870] coda 2040000.vpu: 0: s_ctrl: id = 0x9909cb, name = "Video GOP Size", val = 16
  [ 3447.309876] coda 2040000.vpu: 0: s_ctrl: id = 0x990a5e, name = "H264 I-Frame QP Value", val = 25
  [ 3447.309882] coda 2040000.vpu: 0: s_ctrl: id = 0x990a5f, name = "H264 P-Frame QP Value", val = 25
  [ 3447.309887] coda 2040000.vpu: 0: s_ctrl: id = 0x990a62, name = "H264 Maximum QP Value", val = 51
  [ 3447.309893] coda 2040000.vpu: 0: s_ctrl: id = 0x990a68, name = "H264 Loop Filter Alpha Offset", val = 0
  [ 3447.309899] coda 2040000.vpu: 0: s_ctrl: id = 0x990a69, name = "H264 Loop Filter Beta Offset", val = 0
  [ 3447.309906] coda 2040000.vpu: 0: s_ctrl: id = 0x990a6a, name = "H264 Loop Filter Mode", val = 0 ("Enabled")
  [ 3447.309912] coda 2040000.vpu: 0: s_ctrl: id = 0x990a7f, name = "H264 Constrained Intra Pred", val = 0
  [ 3447.309917] coda 2040000.vpu: 0: s_ctrl: id = 0x990a80, name = "H264 Chroma QP Index Offset", val = 0
  [ 3447.309924] coda 2040000.vpu: 0: s_ctrl: id = 0x990a6b, name = "H264 Profile", val = 0 ("Baseline")
  [ 3447.309930] coda 2040000.vpu: 0: s_ctrl: id = 0x990a67, name = "H264 Level", val = 11 ("4")
  [ 3447.309936] coda 2040000.vpu: 0: s_ctrl: id = 0x990a90, name = "MPEG4 I-Frame QP Value", val = 2
  [ 3447.309941] coda 2040000.vpu: 0: s_ctrl: id = 0x990a91, name = "MPEG4 P-Frame QP Value", val = 2
  [ 3447.309947] coda 2040000.vpu: 0: s_ctrl: id = 0x990a96, name = "MPEG4 Profile", val = 0 ("Simple")
  [ 3447.309953] coda 2040000.vpu: 0: s_ctrl: id = 0x990a95, name = "MPEG4 Level", val = 7 ("5")
  [ 3447.309959] coda 2040000.vpu: 0: s_ctrl: id = 0x9909dd, name = "Slice Partitioning Method", val = 0 ("Single")
  [ 3447.309965] coda 2040000.vpu: 0: s_ctrl: id = 0x9909dc, name = "Number of MBs in a Slice", val = 1
  [ 3447.309970] coda 2040000.vpu: 0: s_ctrl: id = 0x9909db, name = "Maximum Bytes in a Slice", val = 500
  [ 3447.309977] coda 2040000.vpu: 0: s_ctrl: id = 0x9909d8, name = "Sequence Header Mode", val = 1 ("Joined With 1st Frame")
  [ 3447.309983] coda 2040000.vpu: 0: s_ctrl: id = 0x9909d6, name = "Number of Intra Refresh MBs", val = 0
  [ 3447.309989] coda 2040000.vpu: 0: s_ctrl: id = 0x9909e1, name = "Initial Delay for VBV Control", val = 0
  [ 3447.309994] coda 2040000.vpu: 0: s_ctrl: id = 0x9909de, name = "VBV Buffer Size", val = 0
  [ 3447.315188] coda 2040000.vpu: 0: release instance (205d8a8f)
  [ 3447.316311] coda 2040000.vpu: 0: open instance (11a120f6)
  [ 3447.316387] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3447.316396] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3447.316917] coda 2040000.vpu: 0: release instance (11a120f6)
  [ 3447.329495] coda 2040000.vpu: 0: open instance (11a120f6)
  [ 3447.329565] coda 2040000.vpu: 0: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3447.329573] coda 2040000.vpu: 0: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3447.330165] coda 2040000.vpu: 1: open instance (c8a897db)
  [ 3447.330252] coda 2040000.vpu: 1: s_ctrl: id = 0x980914, name = "Horizontal Flip", val = 0
  [ 3447.330260] coda 2040000.vpu: 1: s_ctrl: id = 0x980915, name = "Vertical Flip", val = 0
  [ 3447.330267] coda 2040000.vpu: 1: s_ctrl: id = 0x9909cf, name = "Video Bitrate", val = 0
  [ 3447.330274] coda 2040000.vpu: 1: s_ctrl: id = 0x9909cb, name = "Video GOP Size", val = 16
  [ 3447.330280] coda 2040000.vpu: 1: s_ctrl: id = 0x990a5e, name = "H264 I-Frame QP Value", val = 25
  [ 3447.330286] coda 2040000.vpu: 1: s_ctrl: id = 0x990a5f, name = "H264 P-Frame QP Value", val = 25
  [ 3447.330292] coda 2040000.vpu: 1: s_ctrl: id = 0x990a62, name = "H264 Maximum QP Value", val = 51
  [ 3447.330298] coda 2040000.vpu: 1: s_ctrl: id = 0x990a68, name = "H264 Loop Filter Alpha Offset", val = 0
  [ 3447.330303] coda 2040000.vpu: 1: s_ctrl: id = 0x990a69, name = "H264 Loop Filter Beta Offset", val = 0
  [ 3447.330310] coda 2040000.vpu: 1: s_ctrl: id = 0x990a6a, name = "H264 Loop Filter Mode", val = 0 ("Enabled")
  [ 3447.330316] coda 2040000.vpu: 1: s_ctrl: id = 0x990a7f, name = "H264 Constrained Intra Pred", val = 0
  [ 3447.330322] coda 2040000.vpu: 1: s_ctrl: id = 0x990a80, name = "H264 Chroma QP Index Offset", val = 0
  [ 3447.330328] coda 2040000.vpu: 1: s_ctrl: id = 0x990a6b, name = "H264 Profile", val = 0 ("Baseline")
  [ 3447.330334] coda 2040000.vpu: 1: s_ctrl: id = 0x990a67, name = "H264 Level", val = 11 ("4")
  [ 3447.330340] coda 2040000.vpu: 1: s_ctrl: id = 0x990a90, name = "MPEG4 I-Frame QP Value", val = 2
  [ 3447.330346] coda 2040000.vpu: 1: s_ctrl: id = 0x990a91, name = "MPEG4 P-Frame QP Value", val = 2
  [ 3447.330352] coda 2040000.vpu: 1: s_ctrl: id = 0x990a96, name = "MPEG4 Profile", val = 0 ("Simple")
  [ 3447.330358] coda 2040000.vpu: 1: s_ctrl: id = 0x990a95, name = "MPEG4 Level", val = 7 ("5")
  [ 3447.330364] coda 2040000.vpu: 1: s_ctrl: id = 0x9909dd, name = "Slice Partitioning Method", val = 0 ("Single")
  [ 3447.330370] coda 2040000.vpu: 1: s_ctrl: id = 0x9909dc, name = "Number of MBs in a Slice", val = 1
  [ 3447.330375] coda 2040000.vpu: 1: s_ctrl: id = 0x9909db, name = "Maximum Bytes in a Slice", val = 500
  [ 3447.330382] coda 2040000.vpu: 1: s_ctrl: id = 0x9909d8, name = "Sequence Header Mode", val = 1 ("Joined With 1st Frame")
  [ 3447.330387] coda 2040000.vpu: 1: s_ctrl: id = 0x9909d6, name = "Number of Intra Refresh MBs", val = 0
  [ 3447.330393] coda 2040000.vpu: 1: s_ctrl: id = 0x9909e1, name = "Initial Delay for VBV Control", val = 0
  [ 3447.330399] coda 2040000.vpu: 1: s_ctrl: id = 0x9909de, name = "VBV Buffer Size", val = 0
  [ 3447.338565] coda 2040000.vpu: 0: Setting vid-out format, wxh: 320x200, fmt: MPG4 L
  [ 3447.338581] coda 2040000.vpu: 0: Setting vid-cap format, wxh: 320x200, fmt: NV12 T
  [ 3447.340112] coda 2040000.vpu: 1: Setting vid-cap format, wxh: 320x200, fmt: MPG4 L
  [ 3447.341558] coda 2040000.vpu: 1: Setting vid-out format, wxh: 320x200, fmt: YU12 L
  [ 3447.343192] coda 2040000.vpu: 1: get 2 buffer(s) of size 96000 each.
  [ 3447.355307] coda 2040000.vpu: 1: get 4 buffer(s) of size 131072 each.
  [ 3447.359470] coda 2040000.vpu: 1: start streaming vid-cap
  [ 3447.360096] coda 2040000.vpu: 1: start streaming vid-out
  [ 3447.364167] coda 2040000.vpu: 1: start encoding 320x200 YU12->MPG4 @ 30/1 Hz
  [ 3447.364649] coda 2040000.vpu: 1: job ready
  [ 3447.364683] coda 2040000.vpu: 1: parameter change: intra Qp 25
  [ 3447.364689] coda 2040000.vpu: 1: parameter change: bitrate 0 kbit/s
  [ 3447.364694] coda 2040000.vpu: 1: parameter change: frame rate 30/1 Hz
  [ 3447.364699] coda 2040000.vpu: 1: parameter change: intra refresh MBs 0
  [ 3447.366167] coda 2040000.vpu: 1: frame size = 8970
  [ 3447.366185] coda 2040000.vpu: 1: job finished: encoded I frame (0)
  [ 3447.367206] coda 2040000.vpu: 0: get 2 buffer(s) of size 131072 each.
  [ 3447.370479] coda 2040000.vpu: 1: job ready
  [ 3447.370833] coda 2040000.vpu: 0: start streaming vid-out
  [ 3447.371921] coda 2040000.vpu: 1: frame size = 6048
  [ 3447.371934] coda 2040000.vpu: 1: job finished: encoded P frame (1)
  [ 3447.371954] coda 2040000.vpu: 0: Video Data Order Adapter: Disabled
  [ 3447.372105] coda 2040000.vpu: CODA_COMMAND_SEQ_INIT failed, error code = 0x4
  [ 3447.380404] coda 2040000.vpu: 1: job ready
  [ 3447.381651] coda 2040000.vpu: 0: Setting vid-cap format, wxh: 320x200, fmt: NV12 T
  [ 3447.383805] coda 2040000.vpu: 0: get 3 buffer(s) of size 96000 each.
  [ 3447.384828] coda 2040000.vpu: 1: frame size = 5957
  [ 3447.384853] coda 2040000.vpu: 1: job finished: encoded P frame (2)
  [ 3447.387027] coda 2040000.vpu: 1: job ready
  [ 3447.388486] coda 2040000.vpu: 0: start streaming vid-cap
  [ 3447.388493] coda 2040000.vpu: 1: frame size = 6027
  [ 3447.388507] coda 2040000.vpu: 1: job finished: encoded P frame (3)
  [ 3447.389010] coda 2040000.vpu: 0: not ready: need 2 buffers available (queue:1 + bitstream:0)
  [ 3447.389839] coda 2040000.vpu: 0: job ready
  [ 3447.391311] coda 2040000.vpu: 1: job ready
  [ 3447.400762] coda 2040000.vpu: errors in 254 macroblocks
  [ 3447.405999] coda 2040000.vpu: decoded frame index out of range: 0
  [ 3447.412254] coda 2040000.vpu: 0: job finished: no frame decoded (0) or returned (-1)
  [ 3447.412269] coda 2040000.vpu: 0: job ready
  [ 3447.413677] coda 2040000.vpu: 1: frame size = 6016
  [ 3447.416004] coda 2040000.vpu: 1: job finished: encoded P frame (4)
  [ 3447.416015] coda 2040000.vpu: 1: job ready
  [ 3448.486249] coda 2040000.vpu: CODA PIC_RUN timeout
  [ 3448.491089] coda 2040000.vpu: 0: not ready: on hold for more buffers.
  [ 3448.492545] coda 2040000.vpu: 1: frame size = 6143
  [ 3448.496929] coda 2040000.vpu: 0: job ready
  [ 3448.497205] coda 2040000.vpu: 1: job finished: encoded ? frame (0)
  [ 3448.497225] coda 2040000.vpu: 1: job ready
  [ 3449.526215] coda 2040000.vpu: CODA PIC_RUN timeout
  [ 3449.531052] coda 2040000.vpu: 0: not ready: on hold for more buffers.
  [ 3449.532503] coda 2040000.vpu: 1: frame size = 5996
  [ 3449.533163] coda 2040000.vpu: 0: job ready
  [ 3449.533391] coda 2040000.vpu: 1: job finished: encoded ? frame (0)
  [ 3449.533408] coda 2040000.vpu: 1: job ready
  [ 3450.566215] coda 2040000.vpu: CODA PIC_RUN timeout
  [ 3450.571062] coda 2040000.vpu: 0: not ready: on hold for more buffers.
  [ 3450.572531] coda 2040000.vpu: 1: frame size = 6141
  [ 3450.573251] coda 2040000.vpu: 0: job ready
  [ 3450.573488] coda 2040000.vpu: 1: job finished: encoded ? frame (0)
  [ 3450.573504] coda 2040000.vpu: 1: job ready
  [ 3451.606228] coda 2040000.vpu: CODA PIC_RUN timeout
  [ 3451.611071] coda 2040000.vpu: 0: not ready: on hold for more buffers.
  [ 3451.612525] coda 2040000.vpu: 1: frame size = 6039
  [ 3451.613005] coda 2040000.vpu: 1: job finished: encoded P frame (8)
  [ 3451.613027] coda 2040000.vpu: 1: job ready
  [ 3451.613354] coda 2040000.vpu: 0: job ready
  [ 3451.615012] coda 2040000.vpu: 1: frame size = 6137
  [ 3451.615779] coda 2040000.vpu: 1: job finished: encoded ? frame (0)
  [ 3451.617103] coda 2040000.vpu: 0: marking last meta
  [ 3451.617117] coda 2040000.vpu: 0: all remaining buffers queued
  [ 3452.646240] coda 2040000.vpu: CODA PIC_RUN timeout
  [ 3452.651332] coda 2040000.vpu: 0: not ready: on hold for more buffers.
  [ 3452.659515] coda 2040000.vpu: 0: stop streaming vid-out
  [ 3452.659623] coda 2040000.vpu: 0: coda_seq_end_work: sent command 'SEQ_END' to coda
  [ 3452.660617] coda 2040000.vpu: 0: stop streaming vid-cap
  [ 3452.661567] coda 2040000.vpu: 1: stop streaming vid-out
  [ 3452.661642] coda 2040000.vpu: 1: coda_seq_end_work: sent command 'SEQ_END' to coda
  [ 3452.662671] coda 2040000.vpu: 1: stop streaming vid-cap
  [ 3452.665111] coda 2040000.vpu: 0: release instance (11a120f6)
  [ 3452.665563] coda 2040000.vpu: 1: release instance (c8a897db)


  reply	other threads:[~2019-12-17 11:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-13 12:02 [i.MX6][CODA] certain resolutions are not working in YUYV format Benjamin Bara - SKIDATA
2019-12-16 17:21 ` Michael Tretter
2019-12-17 11:52   ` Benjamin Bara - SKIDATA [this message]
2020-02-11  8:01     ` Benjamin Bara - SKIDATA
2020-02-26 16:22       ` Michael Tretter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43c38b41ad7547c6baaa56c41a05be87@skidata.com \
    --to=benjamin.bara@skidata.com \
    --cc=Richard.Leitner@skidata.com \
    --cc=linux-arm@lists.infradead.org \
    --cc=linux-media@vger.kernel.org \
    --cc=m.tretter@pengutronix.de \
    --cc=p.zabel@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).