← Back to team overview

ubuntu-phone team mailing list archive

Re: Video decoding problem

 


When I
rm -rf .cache/gstreamer-1.0/
kill mediascanner-server(mediascanner-server will restart)
the logcat output:
V/MediaCodecList(28942): size_t media_codec_list_count_codecs() 
V/MediaCodecList(28942): void media_codec_list_get_codec_info_at_id(size_t) 
V/MediaCodecList(28942): const char* media_codec_list_get_codec_name(size_t) 
V/MediaCodecList(28942): bool media_codec_list_is_encoder(size_t) 
V/MediaCodecList(28942): size_t media_codec_list_get_num_supported_types(size_t) 
D/MediaCodecList(28942): Number of supported codec types: 1
V/MediaCodecList(28942): size_t media_codec_list_get_nth_supported_type_len(size_t, size_t) 
V/MediaCodecList(28942): int media_codec_list_get_nth_supported_type(size_t, char*, size_t) 
V/MediaCodecList(28942): size_t media_codec_list_get_num_color_formats(size_t, const char*) 
V/MediaCodecList(28942): void media_codec_list_get_num_codec_capabilities(size_t, const char*, size_t*, size_t*) 
D/MediaCodecList(28942): index: 0, type: 'video/mp4v-es'
I/OMXClient(28942): Using client-side OMX mux
I/OMXClient(28942): Allocating remote Node (flase remote)
I/Hantro_omx_core(28942): init count = 1
V/MediaCodecList(28947): size_t media_codec_list_count_codecs() 
V/MediaCodecList(28947): void media_codec_list_get_codec_info_at_id(size_t) 
V/MediaCodecList(28947): const char* media_codec_list_get_codec_name(size_t) 
V/MediaCodecList(28947): bool media_codec_list_is_encoder(size_t) 
V/MediaCodecList(28947): size_t media_codec_list_get_num_supported_types(size_t) 
D/MediaCodecList(28947): Number of supported codec types: 1
V/MediaCodecList(28947): size_t media_codec_list_get_nth_supported_type_len(size_t, size_t) 
V/MediaCodecList(28947): int media_codec_list_get_nth_supported_type(size_t, char*, size_t) 
V/MediaCodecList(28947): size_t media_codec_list_get_num_color_formats(size_t, const char*) 
V/MediaCodecList(28947): void media_codec_list_get_num_codec_capabilities(size_t, const char*, size_t*, size_t*) 
D/MediaCodecList(28947): index: 0, type: 'video/mp4v-es'
I/OMXClient(28947): Using client-side OMX mux
I/OMXClient(28947): Allocating remote Node (flase remote)
I/Hantro_omx_core(28947): init count = 1


Can you please tell me the workflow about decoding or related ?
Any help will be wellcome :)


在 2014-05-19 05:56:50,"Jim Hodapp" <jim.hodapp@xxxxxxxxxxxxx> 写道:






On Mon, May 19, 2014 at 5:44 AM, <zhangchao@xxxxxxxxxxxxxxx> wrote:


No usr.bin.media-hub-server file and media-hub-server on my touch system.
I am using the touch system is released at 4.17, and The same system is normal on my Nexus4.
apparmor is a must have ? It is disable in my kernel.



If apparmor is truly not running on your system, then you're fine. I just want to make sure we are getting all of the media-hub-server output possible in logcat.
 
The attachment is a complete log:system boot and play a video(open a video file by file manager)

At 2014-05-19 04:48:20, "Jim Hodapp" <jim.hodapp@xxxxxxxxxxxxx> wrote:

See my comments inline below:




On Mon, May 19, 2014 at 3:13 AM, <zhangchao@xxxxxxxxxxxxxxx> wrote:



Hi all,
I have puted Ubuntu Touch 14.04 port to a Android device,and it already can play audio.
But I have a problem when play video : video only display black but with audio works fine.
The video file can be played normally by use SurfaceFlinger and "codec -p" (codec is a tool in libhybris).
When I play video by use mir and mediaplayer-app, the log is very simple,only the following lines:


V/SurfaceTextureClientHybris( 4230): void* surface_texture_client_create_by_id(unsigned int) 
V/SurfaceTextureClientHybris( 4230): _SurfaceTextureClientHybris::_SurfaceTextureClientHybris() 
D/SurfaceTextureClientHybris( 4230): stch: 0x1f301f0 (void* surface_texture_client_create_by_id(unsigned int))
V/SurfaceTextureClientHybris( 4230): void set_surface(_SurfaceTextureClientHybris*, const android::sp<android::SurfaceTexture>&) 
V/SurfaceTextureClientHybris( 4230): void set_surface(_SurfaceTextureClientHybris*, const android::sp<android::SurfaceTexture>&) 
V/SurfaceTextureClientHybris( 4230): void surface_texture_client_set_hardware_rendering(SurfaceTextureClientHybris, uint8_t) 




Can you try again but this time do the following and reply back with the logcat output attached:


adb shell
sudo apparmor_parser -R /etc/apparmor.d/usr.bin.media-hub-server

restart media-hub-server
/system/bin/logcat
 


I think the android video decoding library not be call. so,I want to know  what is the workflow of touch 14.04 play video(use mir),and how can I debug it ?


This is how we can start to debug it. I really need to see the output of logcat to be able to first start to determine what the issue might be.
 
Any help will be wellcome :)


--


Regards,

Ubuntu Kylin  Team Zhangchao

---------------------------------------------------------

等待&希望





Thanks,


Jim
 

--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp









References