Community
cancel
Showing results for 
Search instead for 
Did you mean: 
subbu_s_
Beginner
72 Views

Decoder Error Stream was supposed to be SC prefixed, but actually contains a single NAL.

Implementing the Video Encoding on Intel Device -Video on Asus Zenfone C ZC451CG.

Recorded a Video from camera From the same Phone and used MediaExtractor to get the media format

MediaFormat inputFormat= extractor.getTrackFormat( trackIndex );

decoder.configure( inputFormat, mOutputSurface.getSurface(), null, 0 );
 decoder.start();

 

02-19 19:21:40.948   186  4611 W MixVBP  : Stream was supposed to be SC prefixed, but actually contains a single NAL.

02-19 19:21:40.948   186  4611 W MixVBP  : Invalid PPS detected

02-19 19:21:40.948   186  4611 E MixVBP  : Slice Header parsing error.

02-19 19:21:40.948   186  4611 W MixVBP  : failed to parse the syntax: 12!

02-19 19:21:40.948   186  4611 W OMXVideoDecoder: Decoder returns DECODE_NO_CONFIG.

Seems that Decoder is not able to parse the sps & pps header am printing these headers in the Original Video they are Fine ,am supplying the same format to the MediaCodec.Detailed Log for the same is Provided Below.

Is there anyparamater missing to the codec??

 

 

02-19 19:21:40.918   186  4609 D componentbase: OMX.Intel.VideoDecoder.AVC:video_decoder.avc: transition from OMX_StateLoaded to OMX_StateIdle completed

02-19 19:21:40.928   186  4609 D componentbase: OMX.Intel.VideoDecoder.AVC:video_decoder.avc: transition from OMX_StateIdle to OMX_StateExecuting completed

02-19 19:21:40.928   186  4611 I OMXVideoDecoder: Buffer has OMX_BUFFERFLAG_CODECCONFIG flag.

02-19 19:21:40.928   186  4611 I MixVBP  : SPS header is parsed.

02-19 19:21:40.928   186  4611 W VideoDecoder: Can't start VA as either SPS or PPS is still not available.

02-19 19:21:40.928   186  4611 I OMXVideoDecoder: Buffer has OMX_BUFFERFLAG_CODECCONFIG flag.

02-19 19:21:40.928   186  4611 I MixVBP  : PPS header is parsed.

02-19 19:21:40.928   186  4611 I VideoDecoder: maxDPBSize = 5, num_ref_frame = 1

02-19 19:21:40.928   186  4611 I VideoDecoder: updateFormatInfo: current size: 1920 x 1080, new size: 1920 x 1088

02-19 19:21:40.928   186  4611 I VideoDecoder: Cropping: left = 0, top = 0, right = 0, bottom = 8

02-19 19:21:40.928   186  4611 I VideoDecoder: actualBufferNeeded =17

02-19 19:21:40.928   186  4611 I libva   : VA-API version 0.34.0

02-19 19:21:40.928   186  4611 I libva   : va_getDriverName() returns 0

02-19 19:21:40.928   186  4611 I libva   : Trying to open /system/lib/pvr_drv_video.so

02-19 19:21:40.928   186  4611 I libva   : Found init function __vaDriverInit_0_32

02-19 19:21:40.928   186  4611 D pvr_drv_video: hw_get_module returned

02-19 19:21:40.928   186  4611 I libva   : va_openDriver() returns 0

02-19 19:21:40.938  2680  4002 D dalvikvm: GC_FOR_ALLOC freed 5920K, 31% free 13202K/19012K, paused 76ms, total 76ms

02-19 19:21:40.948   186  4611 I VideoDecoder: updateFormatInfo: current size: 1920 x 1088, new size: 1920 x 1088

02-19 19:21:40.948   186  4611 I VideoDecoder: Cropping: left = 0, top = 0, right = 0, bottom = 8

02-19 19:21:40.948   186  4611 I VideoDecoder: actualBufferNeeded =17

02-19 19:21:40.948   186  4611 I VideoDecoder: No slice available for decoding.

02-19 19:21:40.948   186  4611 W MixVBP  : Stream was supposed to be SC prefixed, but actually contains a single NAL.

02-19 19:21:40.948   186  4611 W MixVBP  : Invalid PPS detected

02-19 19:21:40.948   186  4611 E MixVBP  : Slice Header parsing error.

02-19 19:21:40.948   186  4611 W MixVBP  : failed to parse the syntax: 12!

02-19 19:21:40.948   186  4611 W OMXVideoDecoder: Decoder returns DECODE_NO_CONFIG.

02-19 19:21:40.948  2680  4002 I dalvikvm-heap: Grow heap (frag case) to 16.958MB for 4147216-byte allocation

02-19 19:21:40.968  2680  2680 D dalvikvm: GC_FOR_ALLOC freed 10K, 26% free 17242K/23064K, paused 23ms, total 23ms

02-19 19:21:40.988   186  4590 E module  : found opened module libOMXVideoDecoderAVC.so with name

02-19 19:21:40.988   186  4590 I componentbase: OMX.Intel.VideoDecoder.AVC: set working role video_decoder.avc:

02-19 19:21:40.988   186  4590 I wrs-omxil-core: get handle of component OMX.Intel.VideoDecoder.AVC successfully

02-19 19:21:40.988   186  4590 I componentbase: OMX.Intel.VideoDecoder.AVC: set working role video_decoder.avc:

02-19 19:21:40.988   186  4590 E OMXVideoDecoder: No more enumeration.

02-19 19:21:40.988   186  4590 E OMXVideoDecoder: No more enumeration.

02-19 19:21:40.988   186  4590 E OMXComponentCodecBase: ComponentSetParameter: No handler for index 2130706442

02-19 19:21:40.988   186  4590 E OMXNodeInstance: OMX_SetParameter() failed for StoreMetaDataInBuffers: 0x8000101a

02-19 19:21:40.988   186  4590 I VideoDecoder: Deleting decoder for video/h264

02-19 19:21:40.988   186  4611 W MixVBP  : unknown header 0 is parsed.

02-19 19:21:40.988   186  4611 W OMXVideoDecoder: Decoder returns DECODE_NO_CONFIG.

02-19 19:21:40.988   186  4590 I wrs-omxil-core: free handle of component OMX.Intel.VideoDecoder.AVC successfully

02-19 19:21:40.988   186  4590 I SoftOMXPlugin: Created OMXPlugin : OMX.google.h264.decoder

02-19 19:21:40.988   186  4590 I OMXCodec: [OMX.google.h264.decoder] AVC profile = 66 (Baseline), level = 41

02-19 19:21:40.988   186  4590 I OMXCodec: [OMX.google.h264.decoder] video dimensions are 320 x 240

02-19 19:21:40.988   186  4590 I OMXCodec: [OMX.google.h264.decoder] Crop rect is 320 x 240 @ (0, 0)

02-19 19:21:41.008   186  4611 W MixVBP  : Invalid PPS detected

02-19 19:21:41.008   186  4611 E MixVBP  : Slice Header parsing error.

02-19 19:21:41.008   186  4611 W MixVBP  : failed to parse the syntax: 12!

02-19 19:21:41.008   186  4611 W OMXVideoDecoder: Decoder returns DECODE_NO_CONFIG.

 

 

0 Kudos
2 Replies
subbu_s_
Beginner
72 Views

 

private void debugCsd0Csd1(MediaFormat format)
    {
        if (format.containsKey("csd-0")) {
               ByteBuffer header_sps = format.getByteBuffer("csd-0");
               byte[] bt = new byte[header_sps.capacity()];
               header_sps.get(bt);
               String s = "csd-0: ";
               for (byte b : bt) {
                s += "0x" + Integer.toHexString(b) + " ";
               }
               if(DEBUG_ON)
               Log.d(TAG, s);
            }
            if (format.containsKey("csd-1")) {
               ByteBuffer header_pps = format.getByteBuffer("csd-1");
               byte[] bt = new byte[header_pps.capacity()];
               header_pps.get(bt);
               String s = "csd-1: ";
               for (byte b : bt) {
                s += "0x" + Integer.toHexString(b) + " ";
               }
               if(DEBUG_ON)
               Log.d(TAG, s);
            }
    }

Printing csd Values from the Format

02-20 16:02:24.777: D/VideoResampler(24537): csd-0: 0x0 0x0 0x0 0x1 0x67 0x42 0x40 0x29 0xffffffa6 0xffffff80 0x78 0x2 0x27 0xffffffe5 0x40 
02-20 16:02:24.777: D/VideoResampler(24537): csd-1: 0x0 0x0 0x0 0x1 0x28 0xffffffce 0x3c 0xffffff80 

72 Views

Hi Subbu, 

Can you please let me know which product are you using implement video encoding on Intel device (Asus Zenfone C ZC451CG)? Please share device OS details? Let me know if you are using Media For Mobile or its samples?

Thanks,

 

Reply