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. A timer thread and url fetch thread in same activity.

I am having problems with a timer that should fetch http results from
the web every 5 minutes.
I having problems with two threads - often I cannot even turn them off
or keep the timer going without upsetting the apple cart.

Should I start using wait() and notify(), a separate service or
continue trying to get them to be friends with each other in the same
activity. At present its all very badly behaved and I feel as though I
am juggling with marbles.


2. how to remove a view


How to remove a view added by addContentView method?



3. Retrieve the Starred Contacts

4. Issue tracker and errors in pages

5. IllegalStateException: Fragment not added in ActionBarTabs example

6. Fragment animation as in Honeycomb Gmail app - how to do that?

7. Does Application Error Reports support crashes in native code?