What do you mean by "prints"?

You won't see console output in your shell because they are running in
a different process. If you use PVLOGGER, there is some special mojo
you have to apply first - search for "turn on OpenCore logging" in the
android-framework list.

The Android method of logging is:

#undef LOG_TAG
#define LOG_TAG "MyModuleName"
#include <utils/Log.h>

and then something like this where you want output:

LOGD("This is debug output, x = %d", x);

On Jan 19, 3:25 am, getandroid <sampath...@gmail.com> wrote:
> Hi All,
>
>    I'm trying to put some prints in Opencore(like mp3/aac compnent,
> master core etc). When I try to play any MP4(MPEG4 + MP3 or MPEG4 +
> AAC) file from video player, I dont get any of the prints which i've
> put. Same issue when i use Music player for playing MP3/AAC files. NO
> PRINTS!!!!
>
>    But when I run "pvplayer_engine_test" to play an MP4 file, I get
> all the prints.
>
> Does this mean that 'Video & Music' application provided in android
> doesnot use OpenMax IF, or is there anything that I'm missing to
> enable prints in 'Video & Music' apps.
>
> On Dec 11 2008, 7:56 pm, getandroid <sampath...@gmail.com> wrote:
>
> > Hi girish,
>
> >     Thanks a lot for the help!!  It worked.
>
> > it creates two files: test_audio.dat & test_video.dat
> > but when i check the size of test_video.dat is 0 bytes, may be bcoz of
> > space constraint.
>
> > I'm able to listen to audio properly but no video. I'll try using a
> > small test.mp4 file to test this time so that, we don't get any space
> > problem.
>
> > On Dec 11, 12:44 pm, Girish <htgir...@gmail.com> wrote:
>
> > > Hi Sampath,
>
> > > if you want to execute it on the emulator then try these steps, Think
> > > should be similar procedure for x86
>
> > > Please check the executables built in
>
> > > [mydroid]/out/target/product/generic/system/bin
>
> > > there will be 2 arm executables with the name
> > > pvplayer_engine_test ,test_pvauthorengine
>
> > > For player Push these executables and a sample file (say test.mp4) to /
> > > data
>
> > > Go to adb shell
> > > adb shell
>
> > > Then try giving
>
> > > pvplayer_engine_test -test 803 803 -source test.mp4 -logfile -logall"
>
> > > Let us know if there anything we need to do extra for running on x86.
>
> > > Regards
> > > Girish
>
> > > On Dec 11, 12:39 am, getandroid <sampath...@gmail.com> wrote:
>
> > > > Yes, I've already included this:
>
> > > > include $(PV_TOP)//engines/player/sample_app/Android.mk
> > > > include $(PV_TOP)//engines/player/test/Android.mk
> > > > include $(PV_TOP)//engines/adapters/player/framemetadatautility/test/
> > > > Android.mk
> > > > include $(PV_TOP)//engines/author/test/Android.mk
>
> > > > So after uncommenting all the above, I assume that the player should
> > > > get built.
>
> > > > but may be i'm checking in the wrong folder for the executable....
> > > > (Only whenopencoreis built outside of android, exe's and libraries
> > > > will be present in the folder i mentioned above???)
>
> > > > may be i should check in out/target/product/generic ......
>
> > > > On Dec 11, 10:20 am, freepine <freep...@gmail.com> wrote:
>
> > > > > 'pvplayer_engine_test' won't be built by default, you need to modify
> > > > > Android.mk file under /external/opencoreto enable building it.
> > > > > include $(PV_TOP)//engines/player/test/Android.mk
>
> > > > > On Thu, Dec 11, 2008 at 1:07 PM, getandroid <sampath...@gmail.com> 
> > > > > wrote:
>
> > > > > > Hi Joe,
>
> > > > > > As suggested by you, when I try to do:
>
> > > > > > source build/envsetup.sh
> > > > > > lunch
> > > > > > (pick generic, not sim)
> > > > > > make
>
> > > > > >opencoreis not getting built. I checked in 
> > > > > >"external/opencore/engines/
> > > > > > player/test/build/linux_nj/"
> > > > > > for 'pvplayer_engine_test' or any other libraries, which are not
> > > > > > present there.
>
> > > > > > Any idea??
>
> > > > > > On Dec 8, 9:23 pm, "Joe Onorato" <j...@android.com> wrote:
> > > > > > > Hi.  Which directory are you in when you type that command?
>
> > > > > > > The easiest way to make sure that everything builds is to run 
> > > > > > > these
> > > > > > commands
> > > > > > > from the directory that you ran repo init from.
>
> > > > > > > source build/envsetup.sh
> > > > > > > lunch
> > > > > > > (pick generic, not sim)
> > > > > > > make
>
> > > > > > > If your machine has multiple CPUs or a multicore CPU, you can do 
> > > > > > > make
> > > > > > -jN,
> > > > > > > where N is the number of cores times two.  Before you do that, 
> > > > > > > try rm -rf
> > > > > > > out from that directory to clean out any builds that might be
> > > > > > inconsistent.
>
> > > > > > > You don't need to set the ARCH or CROSS_COMPILE variables if you 
> > > > > > > use
> > > > > > > envsetup.sh and lunch.
>
> > > > > > > -joe
>
> > > > > >  > On Mon, Dec 8, 2008 at 4:32 AM, getandroid <sampath...@gmail.com>
> > > > > > wrote:
>
> > > > > > > > I do
>
> > > > > > > > make ARCH=arm CROSS_COMPILE=arm-eabi-
>
> > > > > > > > then the whole android get compiled but none of the external 
> > > > > > > > packages
> > > > > > > > get built!!!
> > > > > > > > is there any way to compile whole android code at once???
>
> > > > > > > > secondly, i compiledopencoreand got the executable
> > > > > > > > 'pvplayer_engine_test'
>
> > > > > > > > was trying to run this in emulator but it seems that it doesnot 
> > > > > > > > have
> > > > > > > > execute permission
> > > > > > > > chmod 0777 <file> is not working(even after doing this the 
> > > > > > > > permission
> > > > > > > > dont change).
>
> > > > > > > > On Dec 8, 11:59 am, "Joe Onorato" <j...@android.com> wrote:
> > > > > > > > > That's odd.  Usually it does compileopencorewhen you build 
> > > > > > > > > the rest
> > > > > > of
> > > > > > > > > android.  How are you doing the android build?
>
> > > > > > > > > -joe
>
> > > > > > > > > On Mon, Dec 8, 2008 at 1:56 AM, getandroid 
> > > > > > > > > <sampath...@gmail.com>
> > > > > > wrote:
>
> > > > > > > > > > Hi,
>
> > > > > > > > > >  I was trying to build 'opencore' from the android package, 
> > > > > > > > > > as it
> > > > > > > > > > doesnot get built when u compile the whole android source 
> > > > > > > > > > code. So,
> > > > > > I
> > > > > > > > > > assume one has to build it seperately.
>
> > > > > > > > > > Does anyone know how to compileopencorefor arm arch. bcoz 
> > > > > > > > > > when i
> > > > > > > > > > give ARCH=arm & CROSS_COMPILE=arm-eabi- it says no rule to 
> > > > > > > > > > make
> > > > > > > > > > target. ???
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to