1.gstreamer launch in console:
set environment:
adb shell
#cd /sdcard
#export GST_PLUGIN_PATH=/system/plugins
#export GST_REGISTRY_UPDATE=1
#export GST_REGISTRY=/sdcard/reg.bin
#export GST_DEBUG=5 //open the gst log in console
#gst-inspect-0.10 //get the elements installed
#gst-launch-0.10 filesrc location=bressanon.mp3 ! mp3parse ! mad !
audioconvert ! audioflingersink > mask.log 2>&1 //luanch gst in
console and output the log to file mask.log
2.gstreamer launch through apk application of android.
Copy gst.conf from ~Android_build/external/gst-plugins-android/player
to first partition of sdcard.
then if launch Music in homescreen, and form adb logcat, we can see that
gst log.
3.open MediaPlayerService log.
in file
frameworks/base/media/libmediaplayerservice/MediaPlayService.cpp
uncomment
#define LOG_NDEBUG 0
in many jni files, we uncoment macro
#define LOG_NDEBUG 0
we can get these jni log form adb logcat.
thanks.
gstreamer launch config and open log macro
最新推荐文章于 2024-05-20 14:08:31 发布