Hi skumar_rao,
Thanks for quick response...
I actually was getting some other error which was on the same line so i thought of it being error because of it.
aneways, thanks for help... it was just my mistake.
By the way,
I tried following code.
Code:
TUncompressedVideoFormat lUncompressedVideoFormat;
// TSize lInputPictureSize(640,480);
// TSize lInputPictureSize(352,288);
TSize lInputPictureSize(176,144);
lUncompressedVideoFormat.iDataFormat = EYuvRawData;
TYuvFormat lYuvFormat;
TYuvCoefficients lCoef = EYuvRange1;
TYuvSamplingPattern lPattern = EYuv420Chroma3;
TYuvDataLayout lDataLayout = EYuvDataPlanar;
lYuvFormat.iCoefficients = lCoef;
lYuvFormat.iPattern = lPattern;
lYuvFormat.iDataLayout = lDataLayout;
lYuvFormat.iRgb2YuvMatrix = NULL;
lYuvFormat.iYuv2RgbMatrix = NULL;
lYuvFormat.iAspectRatioNum = 1;
lYuvFormat.iAspectRatioDenom = 1;
lUncompressedVideoFormat.iYuvFormat = lYuvFormat;
TRAPD(err2,iRecord->SetInputFormatL(iEncoderId,lUncompressedVideoFormat,lInputPictureSize););
LOG(_L("Set input formate err = %d "),err2);
if(err2 != KErrNone) break;
But I am getting continuosly err -5 .
and hence I am not able to initialize my H.264 encoder.
I had set
TBuf8<60> lMime(_L8("video/H264; profile-level-id=42900B"));
TBuf8<60> lMime(_L8("video/H264; profile-level-id=42800A"));
TBuf8<60> lMime(_L8("video/H264"));
one by one for trial to find out proper encoder but in not even single case,
I got any success.
Can anyone please help me?
-Thanks,
Digish