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. Is cupcake on the UK G1 just plain unreliable?

I'm becoming concerned at the stability of the Cupcake update for the G1. Let 
me give you today's experiences

First off it looks like widgets can cause the Home screen to go ANR. Twice this 
morning I unlocked my G1 from a sleep only to be told "Activity Home (in 
process android.process.acore) is not responding. Last night I updated the 
Retro-clock widget and my main home screen contains 8 shortcuts, the Google 
search bar, the retro-clock and retro-calendar (both from the retro clock app), 
which is the only change I've made for a few days. This isn't a low memory 
problem because the settings screen is reporting 44MB of free storage on the 

So, my next step, was to get the logs off the G1 and try to install Astro File 
Manager to get the ANR traces, and, guess what, I'm now looking at a Market 
screen that says "Starting Download..." with the progress bar empty and nothing 
happening (JBQ there is no icon or message in the notification tray so I think 
you're safe :)). This is reproducible because I can cancel the download and 
restart it and the same thing happens.

This isn't customised firmware, this is the stock T-Mobile UK firmware which 
has gone out to the 100,000 G1s they've shipped.

This is what consumers are experiencing.

This is what how Android will be seen by the public.

To me, This is very worrying.


P.S. Yes, I can hear many people saying "This might just be a thing with the 
T-Mobile UK build", but at the moment that's what's on a majority of Android 
devices in the UK, and so it's what's being shown to others.

* Written an Android App? - List it at http://andappstore.com/ *

Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 


2. Dailouge box disappears after flipping the device

Please do not do it this way. Dialogs should be shown using managed dialogs.
Please consult the documentation, or see this link for an example:

Evan Charlton


3. How to prevent a webview to be reloaded when the screen orientation changes ?

4. G1 sales figures?

5. v1.1 included with v1.5 isn't identical to old v1.1?!

6. Intent to launch email inbox?

7. Android application permission discussio