Enable PVLOGGER

35 views
Skip to first unread message

sreedhar b

unread,
May 11, 2009, 9:23:01 AM5/11/09
to android...@googlegroups.com
Hi,
 
I followed the instructions provided by Freepine as indicated in the below thread:
 
 
1. cd <android_root>
2. touch external/opencore/oscl/oscl/osclbase/src/pvlogger.h
//the pvlogger.h is already present inside my package at the above path
3. make ENABLE_PV_LOGGING=1
 
After flashing the rebuilt images onto my device, i ran the video player.
Used logcat & to capture logs, but still i am not getting the PVLOGGER_LOGMSG prints.
 
Please let me know if iam missing anything here or suggest me if there are any other methods to do so.
 
 
Regards,
Sreedhar
 

 

Freepine

unread,
May 12, 2009, 8:17:57 AM5/12/09
to android...@googlegroups.com
Hi, you missed the last step:)
After compiling the source code with ENABLE_PV_LOGGING=1, you still need to configure which level&nodes to be captured at runtime in /sdcard/pvlogger.txt. 
Using adb shell to create a file /sdcard/pvlogger.txt and writing "8" into it will enable all pv logs.
#echo 8 >/sdcard/pvlogger.txt 

sreedhar b

unread,
May 14, 2009, 8:28:21 AM5/14/09
to android...@googlegroups.com
Hi Freepine,
 
Thanks. I am getting the logs now.
 
You have referred some configuration pertaining to level&nodes.
 
Is this 8 corresponds to level as defined below :
 
// part of Pvlogger.h
 
/**
 * debug-level messages
 */
const PVLogger::log_level_type PVLOGMSG_DEBUG   = 8;
 
And what about the nodes?
 
Regards,
Sreedhar

Freepine

unread,
May 15, 2009, 8:23:20 AM5/15/09
to android...@googlegroups.com
Yes, 8 is the lowest log level, and you can also specify a string in pvlogger.txt to filter only messages from the corresponding logger object.

e.g: write below lines into pvlogger.txt will capture logs from PVPlayerEngine and PVMFOMXAudioDecNode only.
#echo "8,PVPlayerEngine" >/sdcard/pvlogger.txt
#echo "8,PVMFOMXAudioDecNode" >>/sdcard/pvlogger.txt

sreedhar b

unread,
May 15, 2009, 9:30:55 AM5/15/09
to android...@googlegroups.com
Hi Freepine,
 
Thanks for these details.
 
Regards,
Sreedhar

Reply all
Reply to author
Forward
0 new messages