openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

[svc] base layer video is green when the resolution of all layers is the same

Open jjjjjaaaaa opened this issue 12 years ago • 10 comments

Hi all, When I test the SVC and set up 2 layers with different SpatialBitrate, same output resolution as input, the base layer video from encoded svc will be all green. I am not sure that it is setting issue or openh264 issue.

jjjjjaaaaa avatar Apr 09 '14 03:04 jjjjjaaaaa

do you mean the decoded base layer video from svc .264 stream will be all green?

lyao2 avatar Apr 25 '14 08:04 lyao2

Yes, if the resolution of 2 layer is the same.

jjjjjaaaaa avatar Apr 25 '14 09:04 jjjjjaaaaa

which decoder do you used? the openH264 decoder seems not support multi-layer streams. you can prefer to JSVM software.

lyao2 avatar Apr 25 '14 09:04 lyao2

I write a parser to remove the SVC part to a normal H.264, then it will be all black by using FFMpeg or other players.

jjjjjaaaaa avatar Apr 25 '14 09:04 jjjjjaaaaa

I am not sure about your parser. I suggest to use JSVM SVC to AVC Bit-stream Rewriter which i found works well on the openH264 svc stream.

lyao2 avatar Apr 28 '14 07:04 lyao2

  1. The parser I wrote just removes NAL : Prefix NAL Unit, SubsetSPS Slice and Slice Layer Extension.
  2. In my opinion, there is quality scalable, then the AVC decoder can decode those NAL it knows, therefore the green output is NG.
  3. I use the AvcRewriterStatic (JSVM SVC to AVC Bit-stream Rewriter) and found that it re-encode the SVC to AVC. That is not what I want.

jjjjjaaaaa avatar Apr 29 '14 09:04 jjjjjaaaaa

Hi, can you send me the sample bitstream (before and after your parser) to me ? [email protected]

dongzha avatar Apr 29 '14 09:04 dongzha

openh264 encoder does not support CGS in SVC, it can only support 2xwidth/height spatial layers as spatial enhancement layers.

sijchen avatar Apr 29 '14 09:04 sijchen

Hi sijchen, Thank you for your reply. Will openh264 encoder support CGS in SVC in the future ?

jjjjjaaaaa avatar Apr 29 '14 09:04 jjjjjaaaaa

There is no plan for supporting CGS in the future yet.

I actually did not expect that the bit stream produced by the CGS setting will be recognizable to JSVM, but seemingly it can be.

sijchen avatar Apr 29 '14 10:04 sijchen