打印
[i.MX]

求救:buildroot下编译的gstreamer不能播音频

[复制链接]
3096|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
xsjkiver|  楼主 | 2015-11-5 11:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
如题,在buildroot(2015.08)下编译imx6dlsabreauto,编译后的gstreamer0.10可正常播放视频,但提示找不到音频解码器(beepdec)。使用gst-inspect工具查看此插件的信息发现有问题,如下:
-------------------------------------------------------------------------------------------------------------------------------------------
# gst-inspect-0.10  beepdec

(gst-plugin-scanner:233): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_amrdec.so': lib_nb_amr_dec_arm9_elinux.sy

(gst-plugin-scanner:233): GStreamer-CRITICAL **: gst_element_class_add_pad_template: assertion 'GST_IS_PAD_TEMPLATE (templ)' failed

(gst-plugin-scanner:233): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_mp3enc.so': lib_mp3_enc_arm12_elinux.so.y
MAX resolution 1920x1080

(gst-plugin-scanner:233): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_audio_pp.so': lib_peq_arm11_elinux.so.1:y

(gst-plugin-scanner:233): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_mpeg2dec.so': lib_mpeg2_dec_arm11_elinuxy

(gst-plugin-scanner:233): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_h264dec.so': lib_H264_dec_arm11_elinux.s!
en shared object file: No such file or directory

(gst-plugin-scanner:233): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libmfw_gst_mpeg4aspdec.so': lib_MPEG4ASP_dec_arm11_y

(gst-inspect-0.10:232): GStreamer-CRITICAL **: gst_element_class_add_pad_template: assertion 'GST_IS_PAD_TEMPLATE (templ)' failed

(gst-inspect-0.10:232): GStreamer-CRITICAL **: gst_pad_new_from_template: assertion 'GST_IS_PAD_TEMPLATE (templ)' failed

(gst-inspect-0.10:232): GStreamer-CRITICAL **: gst_pad_set_setcaps_function: assertion 'GST_IS_PAD (pad)' failed

(gst-inspect-0.10:232): GStreamer-CRITICAL **: gst_pad_set_chain_function: assertion 'GST_IS_PAD (pad)' failed

(gst-inspect-0.10:232): GStreamer-CRITICAL **: gst_pad_set_event_function: assertion 'GST_IS_PAD (pad)' failed

(gst-inspect-0.10:232): GStreamer-CRITICAL **: gst_element_add_pad: assertion 'GST_IS_PAD (pad)' failed

Factory Details:
  Long name:    beep audio decoder
  Class:        Codec/Decoder/Audio
  Description:  Decode compressed audio to raw data
  Author(s):    Multimedia Team
  Rank:         secondary + 1 (129)

Plugin Details:
  Name:                 beep.imx
  Description:          universal audio codec
  Filename:             /usr/lib/gstreamer-0.10/libmfw_gst_beep.so
  Version:              4.0.2
  License:              LGPL
  Source module:        gst-fsl-plugins
  Binary package:       Freescle Gstreamer Multimedia Plugins
  Origin URL:         

GObject
+----GstObject
       +----GstElement
             +----GstBeepDec

Pad Templates:
  SRC template: 'src'
    Availability: Always
    Capabilities:
      audio/x-raw-int
                  width: { 16, 24, 32 }
                  depth: { 16, 24, 32 }
                   rate: { 7350, 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000 }
               channels: [ 1, 8 ]


Element Flags:
  no flags set

Element Implementation:
  Has change_state() function: gst_beepdec_state_change

Element has no clocking capabilities.
Element has no indexing capabilities.
Element has no URI handling capabilities.

Pads:
  SRC: 'src'
    Implementation:
      Has custom eventfunc(): gst_pad_event_default
      Has custom queryfunc(): gst_pad_query_default
        Provides query types:
                (2):    duration (Total duration)
      Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
      Has getcapsfunc(): gst_pad_get_fixed_caps_func
      Has acceptcapsfunc(): gst_pad_acceptcaps_default
    Pad Template: 'src'

Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "beepdec0"
  resync-threshold    : set threshold for resync timestamp: -1, disable resync
                        flags: readable, writable
                        Integer64. Range: -1 - 9223372036854775807 Default: 2000000000
  reset-when-resync   : enable/disable reset when resync
                        flags: readable, writable
                        Boolean. Default: true
  set-layout          : enable/disable set output channel layout
                        flags: readable, writable
                        Boolean. Default: true
#
-----------------------------------------------------------------------------------------------------------------------------------------------------------
在其官方原版系统下(yocto),查看此插件的信息是正常的,如下:
------------------------------------------------------------------------------------------------------------------------------------------------------------
# gst-inspect-0.10 beepdec
Factory Details:
  Long name:    beep audio decoder
  Class:        Codec/Decoder/Audio
  Description:  Decode compressed audio to raw data
  Author(s):    Multimedia Team
  Rank:         secondary + 1 (129)

Plugin Details:
  Name:                 beep.imx
  Description:          universal audio codec
  Filename:             /usr/lib/gstreamer-0.10/libmfw_gst_beep.so
  Version:              4.0.2
  License:              LGPL
  Source module:        gst-fsl-plugins
  Binary package:       Freescle Gstreamer Multimedia Plugins
  Origin URL:         

GObject
+----GstObject
       +----GstElement
             +----GstBeepDec

Pad Templates:
  SRC template: 'src'
    Availability: Always
    Capabilities:
      audio/x-raw-int
                  width: { 16, 24, 32 }
                  depth: { 16, 24, 32 }
                   rate: { 7350, 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 96000 }
               channels: [ 1, 8 ]

  SINK template: 'sink'
    Availability: Always
    Capabilities:
      audio/x-vorbis
      audio/mpeg
            mpegversion: 1
      audio/mpeg
            mpegversion: { 2, 4 }


Element Flags:
  Has custom save_thyself() function: gst_element_save_thyself
  Has custom restore_thyself() function: gst_element_restore_thyself

Element has no clocking capabilities.
Element has no indexing capabilities.
Element has no URI handling capabilities.

Pads:
  SRC: 'src'
    Implementation:
      Has custom eventfunc(): gst_pad_event_default
      Has custom queryfunc(): gst_pad_query_default
        Provides query types:
                (2):    duration (Total duration)
      Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
      Has getcapsfunc(): gst_pad_get_fixed_caps_func
      Has acceptcapsfunc(): gst_pad_acceptcaps_default
    Pad Template: 'src'
  SINK: 'sink'
    Implementation:
      Has chainfunc(): gst_beepdec_chain
      Has custom eventfunc(): gst_beepdec_sink_event
      Has custom queryfunc(): gst_pad_query_default
      Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
      Has setcapsfunc(): gst_beepdec_setcaps
      Has acceptcapsfunc(): gst_pad_acceptcaps_default
    Pad Template: 'sink'


Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "beepdec0"
  resync-threshold    : set threshold for resync timestamp: -1, disable resync
                        flags: readable, writable
                        Integer64. Range: -1 - 9223372036854775807 Default: 2000000000
  reset-when-resync   : enable/disable reset when resync
                        flags: readable, writable
                        Boolean. Default: true
  set-layout          : enable/disable set output channel layout
                        flags: readable, writable
                        Boolean. Default: true
#
------------------------------------------------------------------------------------------------------------------------------------------
发现在buildroot系统下的beepdec比原版系统下的beepdec在“Pads”下少一个“SINK”。
有遇到过此问题的大神吗?

相关帖子

沙发
FSL_TICS_Rita| | 2015-11-5 15:26 | 只看该作者
楼主你好,关于你帖中的问题,建议你到https://community.freescale.com/community/imx/content这里提问。

使用特权

评论回复
板凳
mini1986| | 2015-11-6 10:29 | 只看该作者
顶起来,祝你早日解决问题,分享下经验......

使用特权

评论回复
地板
xsjkiver|  楼主 | 2016-1-2 00:08 | 只看该作者
只需将/usr/lib/imx-mm/audio-codec/目录下的库文件(不包括wrap目录)以及/usr/lib/imx-mm/video-codec/目录下的库文件移动到/usr/lib/下即可

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

34

帖子

1

粉丝