Kodi Community Forum

Full Version: Current song codec issue?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi guys, i have a little problem. i hope tahn you can help me.

when i try to get the codec of the current song with MusicPlayer.Codec, i have "DVD Player" as a response Sad , thereĀ“s a way to get the extension of the song? like a AAC, MP3, OGG Huh

thanks a lot
Works for me on Win32, only build I can check at this time. This code
Code:
<label>$LOCALIZE[445] | $INFO[musicplayer.Codec,Codec: ,]$INFO[musicplayer.Bitrate, - Bitrate: ,kbps]$INFO[musicplayer.bitspersample, - Bits:,bit]$INFO[musicplayer.Samplerate, - Freq.: ,kHz]$INFO[musicplayer.Channels, - Channels: ]</label>
looks like this (first line)...
Image
If you have dvdplayer set as the default player for music thats what will show if the default paplayer is used then it will show correct
Jezz_X Wrote:If you have dvdplayer set as the default player for music thats what will show if the default paplayer is used then it will show correct
no, i have paplayer as a default audio player (that's what it says my xbmc.log) any other idea??
Code:
01:32:50 T:744 M:442531840  NOTICE: -----------------------------------------------------------------------
01:32:50 T:744 M:442494976  NOTICE: Starting XBMC, Platform: Windows XP Professional Service Pack 3 build 2600.  Built on Jun  2 2009 (SVN:20672, compiler 1500)
01:32:50 T:744 M:442494976  NOTICE: AMD Sempron(tm)   2800+
01:32:50 T:744 M:442494976  NOTICE: Desktop Resolution: 1024x768 32Bit at 60Hz
01:32:50 T:744 M:442494976  NOTICE: special://xbmc/ is mapped to: C:\Archivos de programa\XBMC
01:32:50 T:744 M:442494976  NOTICE: special://masterprofile/ is mapped to: C:\Archivos de programa\XBMC\userdata
01:32:50 T:744 M:442494976  NOTICE: special://home/ is mapped to: C:\Archivos de programa\XBMC
01:32:50 T:744 M:442494976  NOTICE: special://temp/ is mapped to: C:\Archivos de programa\XBMC\cache
01:32:50 T:744 M:442490880  NOTICE: The executable running is: C:\Archivos de programa\XBMC\XBMC.exe
01:32:50 T:744 M:442490880  NOTICE: Log File is located: C:\Archivos de programa\XBMC\xbmc.log
01:32:50 T:744 M:442490880  NOTICE: -----------------------------------------------------------------------
01:32:50 T:744 M:442470400  NOTICE: Setup SDL
01:32:50 T:744 M:441749504  NOTICE: load settings...
01:32:50 T:744 M:441729024  NOTICE: special://profile/ is mapped to: special://masterprofile/
01:32:50 T:744 M:441724928  NOTICE: loading special://masterprofile/guisettings.xml
01:32:50 T:744 M:441376768  NOTICE: Getting hardware information now...
01:32:50 T:744 M:441376768  NOTICE: Checking resolution 4
01:32:50 T:744 M:441352192  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
01:32:50 T:744 M:441352192  NOTICE: Default DVD Player: dvdplayer
01:32:50 T:744 M:441352192  NOTICE: Default Video Player: dvdplayer
01:32:50 T:744 M:441352192  NOTICE: Default Audio Player: paplayer
01:32:50 T:744 M:441446400  NOTICE: special://masterprofile/sources.xml
01:32:50 T:744 M:430395392  NOTICE: GL_VENDOR = NVIDIA Corporation
01:32:50 T:744 M:430395392  NOTICE: GL_RENDERER = GeForce FX 5200/AGP/SSE/3DNOW!
01:32:50 T:744 M:430395392  NOTICE: GL_VERSION = 2.0.0
01:32:50 T:744 M:430395392  NOTICE: GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_half_float_pixel GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_shared_texture_palette GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_half_float GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_expand_normal GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum GL_WIN_swap_hint WGL_EXT_swap_control
01:32:51 T:744 M:428924928  NOTICE: start dvd mediatype detection
01:32:51 T:744 M:428892160  NOTICE: initializing playlistplayer
01:32:51 T:744 M:428892160  NOTICE: DONE initializing playlistplayer
01:32:51 T:744 M:428883968  NOTICE: load default skin:[Empty]
01:32:51 T:744 M:428687360 WARNING: file doesnt have <fontset> with name 'Default', defaulting to first fontset
some codecs (those handled by dvdp) does not show extended info, they just show 'dvdplayer' atm. that is, dvdplayer codecs used through pap (wma among others)
mmm very bad Sad
so, what can i do for put in a type of flag of the current song Huh
you can send a patch.
a patch?? how i do thatĀ”?
heh, you change the code to do what you want then generate a diff. judging by that question, i think it's fair to say someone else has to do it Smile
lol Smile
jeje thats true, thank you all.