H264 video encoder test

by Ricardo Martinez » Mon, 24 Nov 2008 22:34:29 GMT

Sponsored Links
Do you know how H264 video encoding can be tested using test_pvauthorengine

I see that there is an pvavcencnode but there aren't any test cases defined.

To test H264 encoder I modified YUV_Input_VOnly_Mp4Test test case in order
to use KH264EncMimeType instead of KMp4EncMimeType but the test doesn't
finish, I get :

[1]   Bus error               ./test_pvauthorengine -video
put.yuv -output /test/output/qcifH264PV.mp4 -videoconfigfile
CIF.txt -logall -test 19 19



H264 video encoder test

by Dave Sparks » Tue, 25 Nov 2008 18:02:03 GMT

 We don't use the PV test framework, so I can't give you any guidance
on it. Packet Video should be monitoring the site and may be able to
provide some help.


Sponsored Links

H264 video encoder test

by rktb » Mon, 01 Dec 2008 14:41:54 GMT

 I am able to reproduce this. I can see the problem and also have a
fix. Will submit a patch soon.


H264 video encoder test

by Ricardo Martinez » Mon, 01 Dec 2008 17:28:05 GMT


Do you have a fix that I could apply until the patch is available?



H264 video encoder test

by rktb » Tue, 02 Dec 2008 17:32:21 GMT

 This is a quick fix. I am still not sure whether the same patch will
be applied or not. But, here it is ..

File: external/opencore/codecs_v2/video/avc_h264_old/enc/src/
Function: void AVCMotionEstimation(AVCEncObject *encvid)

 mv_uint32 = ((mot_mb_16x16->y) << 16) | ((mot_mb_16x16->x) &
 for (k = 0; k < 32; k += 2)
     ptr_mv = (void*)(&currMB->mvL0[k]);
     *((uint32*)ptr_mv) = mv_uint32;


 for (k = 0;k < 32; k+=2)
     currMB->mvL0[k] = mot_mb_16x16->x & 0xFFFF;
     currMB->mvL0[k+1] = mot_mb_16x16->y;


H264 video encoder test

by rktb » Tue, 02 Dec 2008 17:44:46 GMT

 Just to add a comment, the problem that was originally reported, "Bus
error", indicates a data-alignment problem. Here, mvL0 was assumed to
be 32-bit aligned...which is not necessary the case.


H264 video encoder test

by Ricardo Martinez » Tue, 02 Dec 2008 21:15:58 GMT

 Thanks for your response,
I tried your fix and I'm able to run the custom test that I created, but the
output looks distorted.

I'm porting a HW accelerated H264 codec into PV, so far I'm able get an
output using test_pvauthorengine but I'm not able to play that output. Do
you know if the composer node expects the h264 data to be delivered in some
specific format? I suspect this error is because my codec does not support
NAL format but I'm still not sure.



H264 video encoder test

by rktb » Thu, 04 Dec 2008 14:33:49 GMT

 I am very confused.

Whose encoder are you using?
Whose decoder are you using?


H264 video encoder test

by Ricardo Martinez » Thu, 04 Dec 2008 15:19:35 GMT

 'm analyzing PVMFAvcEncNode which uses the software codec that comes in
opencore\codecs_v2\video\avc_h264\enc. Fist I couldn't run any test because
of the "Bus error" message, then I applied the fix that you shared and I was
able to run the test but the output looks distorted; the players I'm using
are desktop applications: mplayer and VLC media player.

Also I'd like to know how PVMFAvcEncNode produces data. Are they NAL units
or is there some meta data that composer node might use?

Apologize for the confusion;


On Thu, Dec 4, 2008 at 8:33 AM, rktb <[EMAIL PROTECTED]> wrote:


H264 video encoder test

by brian1...@gmail.com » Thu, 11 Dec 2008 10:12:39 GMT

 i rktb,

How is the fix going right now? I also tried the quick fix you shared
and got distorted output too.
Is there any progress to the fix?


On 12 119 "Ricardo Martinez" <[EMAIL PROTECTED]> wrote:

H264 video encoder test

by rktb » Wed, 17 Dec 2008 04:03:28 GMT

 he actual fix has been implemented and tested. This will come in as
part of the OpenCORE update that is going to happen pretty soon. Stay


On Dec 11, 3:11 pm, "brian1...@gmail.com" <brian1...@gmail.com> wrote:

H264 video encoder test

by Brian 1143 » Wed, 17 Dec 2008 07:49:05 GMT

 hat a good news!! Ravi!
Looking forward to it...

On 127 123 rktb <yend...@pv.com> wrote:

Other Threads

1. zip files in resources

> i need to place a zip file in my resources (it is about 400k). i

The APK file *is* a ZIP file, so if your goal is merely compression,
perhaps consider not storing it as a ZIP in the APK, but just store the
original data in the APK.

Mark Murphy (a Commons Guy)
Android App Developer Books: http://commonsware.com/books.html


2. View with both text and progress bar

I need to pass a view with both TEXT and a PROGRESS icon.  can this be
done with a single view.???

Here I can pass only single view , so looking for a view which can
have both TEXT and PROGRESS ICON.


3. Make some part of an image transparent: Cut a hole to see the background image

4. Fullscreen IME problem

5. Mapview deprecated

6. mapview and list of images

7. Nice Opportunities for mobile application developers