conformance issue between encoded bit-stream and reconstruction yuv
By test my case on Android/ARM platform: CiscoVT2people_320x192_12fps.yuv @ 320 x 192 @ 12Hz @ 240 kbps, using SM_SLICE_AUTO (4 cores). The bit-stream conformance do NOT pass. Seems the issue comes from the 1st IDR prediction/reconstruction. Could you fix that?
test cfgs attached!!
Thanks!
"File attach" functionality can not work. so paste as below: --------------------welsenc.cfg------------------------
Cisco Scalable H.264/AVC Extension Encoder Configuration File
============================== GENERAL ==============================
UsageType 0 #0: camera video 1:screen content SourceWidth 320 #input video width SourceHeight 192 #input video height InputFile /sdcard/wels-seq/CiscoVT2people_320x192_12fps.yuv # Input file OutputFile /sdcard/wels-seq/test.264 # Bitstream file MaxFrameRate 12 # Maximum frame rate [Hz] FramesToBeEncoded -1 # Number of frames (at input frame rate)
TemporalLayerNum 1 # temporal layer number(1--4) IntraPeriod 24 # Intra Period ( multipler of GoP size or -1) EnableSpsPpsIDAddition 0
EnableFrameCropping 1 # enable frame cropping flag
MaxNalSize 0 # Unit:Byte, Maximum Nal size
============================== LOOP FILTER ==============================
LoopFilterDisableIDC 0 # Loop filter idc (0: on, 1: off, #2: on except for slice boundaries, #3: two stage. slice boundries on in second stage #4: Luma on but Chroma off (w.r.t. idc=0) #5: Luma on except on slice boundaries, but Chroma off in enh. layer (w.r.t. idc=2) #6: Luma on in two stage. slice boundries on in second stage, but Chroma off (w.r.t. idc=3) LoopFilterAlphaC0Offset 0 # AlphaOffset(-6..+6): valid range LoopFilterBetaOffset 0 # BetaOffset (-6..+6): valid range
============================== SOFTWARE IMPLEMENTATION ==============================
MultipleThreadIdc 0 # 0: auto(dynamic imp. internal encoder); 1: multiple threads imp. disabled; > 1: count number of threads;
============================== RATE CONTROL ==============================
RCMode 1 # 0: quality mode; 1: bitrate mode; 2: bitrate limited mode; -1: rc off mode TargetBitrate 240 # Unit: kbps, controled by EnableRC also MaxOverallBitrate 540 # Unit: kbps, max bitrate overall EnableFrameSkip 1 #Enable Frame Skip
============================== DENOISE CONTROL ==============================
EnableDenoise 0 # Enable Denoise (1: enable, 0: disable)
============================== SCENE CHANGE DETECTION CONTROL =======================
EnableSceneChangeDetection 0 # Enable Scene Change Detection (1: enable, 0: disable)
============================== BACKGROUND DETECTION CONTROL ==============================
EnableBackgroundDetection 0 # BGD control(1: enable, 0: disable)
============================== ADAPTIVE QUANTIZATION CONTROL =======================
EnableAdaptiveQuantization 0 # Enable Adaptive Quantization (1: enable, 0: disable)
============================== LONG TERM REFERENCE CONTROL ==============================
EnableLongTermReference 0 # Enable Long Term Reference (1: enable, 0: disable) LongTermReferenceNumber 2 # long term reference number (1-4):screen content (1-2):camera video LtrMarkPeriod 30 # Long Term Reference Marking Period
============================== LAYER DEFINITION ==============================
PrefixNALAddingCtrl 0 # Control flag of adding prefix unit (0: off, 1: on) # It shall always be on in SVC contexts (i.e. when there are CGS/MGS/spatial enhancement layers) # Can be disabled when no inter spatial layer prediction in case of its value as 0 NumLayers 1 # Number of layers //LayerCfg layer0.cfg # Layer 0 configuration file //LayerCfg layer1.cfg # Layer 1 configuration file LayerCfg /sdcard/wels-seq/layer2.cfg # Layer 2 configuration file
--------------------------------------------end-of-welsenc.cfg-----------------------------------------------
-------------------------------------------layer2.cfg---------------------------------------------------
Layer Configuration File
============================== INPUT / OUTPUT ==============================
FrameWidth 320 # Input frame width FrameHeight 192 # Input frame height FrameRateOut 12 # Output frame rate [Hz] ReconFile /sdcard/wels-seq/rec_layer2.yuv # Reconstructed file
============================== CODING ==============================
ProfileIdc 66 # value of profile_idc (or 0 for auto detection)
InitialQP 26 # Quantization parameters for base quality layer
================================ RATE CONTROL ===============================
SpatialBitrate 240 # Unit: kbps, controled by DisableRC also MaxSpatialBitrate 540 # Unit: kbps, max bitrate for current layer
============================== MultiSlice Slice Argument ==============================
for S/M Slice(s) mode settings
SliceMode 5 # 0: sigle slice mode; >0: multiple slices mode, see below; SliceSize 0 SliceNum 1 # multiple slices number specified
----------------------------end-of-layer2.cfg-----------------------------------
I was just using JM v15.1 for decoding this bit-stream. Some wrong with JM 15.1 decoder?
Hi, thank you for submitting, we are to double-check the case you raised.
Hi, I tried these configuration on ios/android/Windows, but I did not find mismatch. Note that it seems that the dumping of reconstruction files cannot be outputted until we enable the macro of ENABLE_FRAME_DUMP in codes. This is a function we are to fix. The Android device I used to test is MOTO-X.
sijchen, What is decoder when you were testing? I was just enabled the macro ENABLE_FRAME_DUMP in as_common.h and JM 15.1 I was used to test decoding. And using wels decoding, it is matched.
I used JM 18 (FRExt) decoder, ver 18.5. Do you mean it is matched now or it still does not match? Thanks.
Yes, it is matched. Seems I have choiced wrong YUV comparison method yet. Thanks for your figuration, sijchen.