M M wrote:
Hi,
I am trying to use dspmpeg4sink on maemo, but it never works. I used the following pipeline.

gst-launch-0.8 udpsrc ! video/x-h263 ! dspmpeg4sink

and this happens

RUNNING pipeline . . .
ERROR: pipeline doesn't want to play.
I had sent mails and gotten very good responses, but I wonder if any body has any clue on why it doesn't work, atleast as normal gstreamer plugin. Regards,
Michael

I'm facing similar problem, trying to build by myself a pipeline with dsp sinks:
I type on the console:

Nokia770-13:/home/user/MyDocs/.videos# gst-launch-0.8 gnomevfssrc location=IceAge2_trailer.avi ! avidemux name=demux demux.audio_00 ! dspmp3sink demux.video_00 ! dspmpeg4sink
RUNNING pipeline ...
dsp_dld: event detected.
device mpeg4dec is requesting for TADD.
starting TADD process for device mpeg4dec.
loading /etc/dsp/modules/mpeg4.o.
adding _mpeg4dec_socket_node(@11[ 2898.426300] omapdsp: task 4: name mpeg4dec
a94c) into system.
[ 2898.431579] omapdsp: taskdev mpeg4dec enabled.
[ 2898.438690] tlv320aic23 powering up
receiving signal 17
[ 2898.525115] tlv320aic23_init_power() done
dsp_dld: event detected.
device mp3dec is requesting for TADD.
starting TADD process for device mp3dec.
loading /etc/dsp/modules/mp3.o.
adding _mp3dec_socket_node(@1247[ 2899.623748] omapdsp: task 5: name mp3dec
c8) into system.
[ 2899.628906] omapdsp: taskdev mp3dec enabled.
receiving signal 17



The sound is well decoded and outputed, but I have no video at all.
The same of course if I launch the video only pipeline.

Nokia770-13:~/MyDocs/.videos$ gst-launch-0.8 gnomevfssrc location=IceAge2_trailer.avi ! avidemux ! dspmpeg4sink videoonly=true
RUNNING pipeline ...
dsp_dld: event detected.
device mpeg4dec is requesting for TADD.
starting TADD process for device mpeg4dec.
loading /etc/dsp/modules/mpeg4.o.
adding _mpeg4dec_socket_node(@11[ 3823.817687] omapdsp: task 4: name mpeg4dec
a94c) into system.
[ 3823.822967] omapdsp: taskdev mpeg4dec enabled.
[ 3823.830139] tlv320aic23 powering up
receiving signal 17
[ 3823.840789] tlv320aic23_init_power() done


I guess there are some tricks to configure the dsp and fb, programming the location and size of the output on screen for example.. Could you, nokia guys, provide more information to the community on how to use dspmpeg4sink from command line?

for example, how to produce these lines:
osso-media-server[914]: GLIB WARNING ** default - failed to init[ 6159.287567] [dsp] FBCTL_ENABLE received, but fb is already enabled.
ialize dsp MPEG4 node, error = 0x0A
ProcXSPDispatch: 3
registering dsp area
register dsp area: 0, (176, 62), 600, 360
ProcXSPDispatch: 3
registering dsp area
register dsp area: 0, (176, 62), 600, 360
dsp_dld: event detected.

For those who are interrested, I ve compiled gstreamer in debug mode and produced some gst-inspect documentation on the proprietary plugins of nokia.

--
Pierre Tardy

No such element or plugin 'spaacsink'
Factory Details:
  Long name:    DSP PCM Sink
  Class:        Sink/Audio
  Description:  Raw PCM audio sink
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         primary (256)

Plugin Details:
  Name:         dsppcm
  Description:  DSP PCM audio sink
  Filename:     /usr/lib/gstreamer-0.8/libgstdsppcmsink.so
  Version:      1.0
  License:      LGPL
  Package:      dspaudio
  Origin URL:   Nokia Corporation

GObject
 +----GstObject
       +----GstElement
             +----GstDSPPcmSink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      audio/x-raw-int
             endianness: 1234
                 signed: { true, false }
                  width: { 8, 16 }
                  depth: { 8, 16 }
                   rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 
44100, 48000, 64000, 88200, 96000 }
               channels: [ 1, 2 ]
      audio/x-alaw
                   rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 
44100, 48000, 64000, 88200, 96000 }
               channels: [ 1, 2 ]
      audio/x-mulaw
                   rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 
44100, 48000, 64000, 88200, 96000 }
               channels: [ 1, 2 ]


Element Flags:
  GST_ELEMENT_EVENT_AWARE

Element Implementation:
  No loopfunc(), must be chain-based or not configured yet
  Has change_state() function: 0x401605b0
  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.

Pads:
  SINK: 'sink'
    Implementation:
      Has chainfunc(): 0x4015f91c
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "dsppcmsink0")
  volume              : Defines the volume level of the stream
                        Unsigned Integer. Range: 0 - 65535 (Default 65535)
  panning             : Defines the balance between left/right channels
                        Integer. Range: -16384 - 16384 (Default 0)
  mute                : Mutes or unmutes the stream
                        Boolean. (Default false)
  stream-id           : Unique stream identifier value
                        Unsigned Integer. Range: 0 - 65535 (Default 0)
  postprocessing      : Turn on/off audio post-processing
                        Boolean. (Default false)
  priority            : Defines the priority value of the stream
                        Integer. Range: 0 - 5 (Default 0)
Factory Details:
  Long name:    3GPP demuxer
  Class:        Demuxer
  Description:  Demultiplexes 3GPP file into audio and video streams
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         primary (256)

Plugin Details:
  Name:         demux3gp
  Description:  3GPP demuxer
  Filename:     /usr/lib/gstreamer-0.8/libgstdemux3gp.so
  Version:      1.0
  License:      unknown
  Package:      demux
  Origin URL:   Nokia Corporation

GObject
 +----GstObject
       +----GstElement
             +----GstDemux3GP

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      ANY

  SRC template: 'video_%02d'
    Availability: Sometimes
    Capabilities:
      video/x-divx
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]
            mpegversion: 4
           systemstream: false
      video/x-msmpeg
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]
          msmpegversion: { 41, 42 }
      video/x-h263
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]
      video/x-divx
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]
            divxversion: 4
      video/mpeg
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]
            mpegversion: 4
           systemstream: false
      video/x-h263
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]

  SRC template: 'audio_%02d'
    Availability: Sometimes
    Capabilities:
      audio/x-amr
                   wide: { true, false }
      audio/x-m4a
               channels: [ 1, 2 ]
             rate_index: [ 0, 20 ]
            object_type: [ 0, 20 ]


Element Flags:
  no flags set

Element Implementation:
  loopfunc()-based element: 0x40164c04
  Has change_state() function: 0x40163128
  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.

Pads:
  SINK: 'sink'
    Implementation:
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "demux3gp0")
  streaming           : Turn on/off streaming mode
                        Boolean. (Default false)
Factory Details:
  Long name:    DSP MPEG4/H.263 Sink
  Class:        Decoder/Sink/Video
  Description:  Raw MPEG4 and H.263 video sink
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         primary (256)

Plugin Details:
  Name:         dspmpeg4sink
  Description:  DSP MPEG4 video sink
  Filename:     /usr/lib/gstreamer-0.8/libgstdspmpeg4.so
  Version:      1.0
  License:      LGPL
  Package:      dspmpeg4sink
  Origin URL:   Nokia Corporation

GObject
 +----GstObject
       +----GstElement
             +----GstDSPMPEG4Sink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-divx
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]
            divxversion: [ 4, 5 ]
      video/x-h263
                  width: [ 0, 4096 ]
                 height: [ 0, 4096 ]


Element Flags:
  GST_ELEMENT_EVENT_AWARE

Element Implementation:
  loopfunc()-based element: 0x40160774
  Has change_state() function: 0x40161468
  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.

Pads:
  SINK: 'sink'
    Implementation:
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "dspmpeg4sink0")
  xpos                : X coordinate of the left-top corner of the image
                        Unsigned Integer. Range: 0 - 1024 (Default 174)
  ypos                : Y coordinate of the left-top corner of the image
                        Unsigned Integer. Range: 0 - 1024 (Default 60)
  width               : Width of the view area on screen
                        Unsigned Integer. Range: 0 - 800 (Default 602)
  height              : Height of the view area on screen
                        Unsigned Integer. Range: 0 - 480 (Default 362)
  rotation            : Screen rotation in degrees (multiple of 90)
                        Unsigned Integer. Range: 0 - 270 (Default 0)
  flipping            : Vertical (1)/Horizontal (2)/Both (3) screen mirroring
                        Unsigned Integer. Range: 0 - 3 (Default 0)
  audio-stream-id     : Stream identifier for video stream that is related to 
this video
                        Unsigned Integer. Range: 0 - 65535 (Default 0)
  fullscreen          : Fullscreen disable/enable
                        Boolean. (Default false)
  videoonly           : If true, the stream is video without audio.
                        Boolean. (Default false)
Factory Details:
  Long name:    MPEG1 demuxer
  Class:        Sink
  Description:  MPEG1 ES demuxer
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         none (0)

Plugin Details:
  Name:         mpeg1demux
  Description:  MPEG1 video demultiplexer
  Filename:     /usr/lib/gstreamer-0.8/libgstmpeg1demux.so
  Version:      1.0
  License:      unknown
  Package:      Nokia
  Origin URL:   http://www.nokia.com/

GObject
 +----GstObject
       +----GstElement
             +----GstMpeg1demux

Pad Templates:
  SRC template: 'video_%02d'
    Availability: Sometimes
    Capabilities:
      video/mpeg
            mpegversion: 1
           systemstream: false

  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/mpeg
            mpegversion: { 1 }
           systemstream: false


Element Flags:
  GST_ELEMENT_EVENT_AWARE

Element Implementation:
  loopfunc()-based element: 0x4015f5e0
  Has change_state() function: 0x4015f7d0
  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.

Pads:
  SINK: 'sink'
    Implementation:
      Supports seeking/conversion/query formats:
      Has custom convertfunc(): gst_mpeg1demux_convert
        Provides event masks:
                seek | method-set | flag-flush 
      Has custom queryfunc(): 0x4015e9c4
        Provides query types:
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "mpeg1demux0")
Factory Details:
  Long name:    DSP FB Sink
  Class:        Sink
  Description:  Raw FB video sink
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         primary (256)

Plugin Details:
  Name:         dspfbsink
  Description:  DSP FrameBuffer video sink
  Filename:     /usr/lib/gstreamer-0.8/libgstdspfb.so
  Version:      1.0
  License:      LGPL
  Package:      dspfbsink
  Origin URL:   Nokia Corporation

GObject
 +----GstObject
       +----GstElement
             +----GsDSPFBSink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-raw-yuv
                  width: [ 16, 4096 ]
                 height: [ 16, 4096 ]
                    fps: [ 0, 40 ]
                 format: I420


Element Flags:
  GST_ELEMENT_EVENT_AWARE

Element Implementation:
  loopfunc()-based element: 0x401603a4
  Has change_state() function: 0x40161450
  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.

Pads:
  SINK: 'sink'
    Implementation:
      Has custom queryfunc(): 0x4015f254
        Provides query types:
                (2):    position (Current Position)
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "gsdspfbsink0")
  xpos                : X coordinate of the left-top corner of the image
                        Unsigned Integer. Range: 0 - 1024 (Default 174)
  ypos                : Y coordinate of the left-top corner of the image
                        Unsigned Integer. Range: 0 - 1024 (Default 60)
  width               : Width of the view area on screen
                        Unsigned Integer. Range: 0 - 800 (Default 602)
  height              : Height of the view area on screen
                        Unsigned Integer. Range: 0 - 480 (Default 362)
  rotation            : Screen rotation in degrees (multiple of 90)
                        Unsigned Integer. Range: 0 - 270 (Default 0)
  flipping            : Vertical (1)/Horizontal (2)/Both (3) screen mirroring
                        Unsigned Integer. Range: 0 - 3 (Default 0)
  audio-stream-id     : Stream identifier for video stream that is related to 
this video
                        Unsigned Integer. Range: 0 - 65535 (Default 0)
  fullscreen          : Fullscreen disable/enable
                        Boolean. (Default false)
  videoonly           : If true, the stream is video without audio.
                        Boolean. (Default false)
Factory Details:
  Long name:    DSP AMR Sink
  Class:        Sink/Audio
  Description:  AMR NB/WB audio sink
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         primary (256)

Plugin Details:
  Name:         dspamr
  Description:  DSP AMR NB/WB audio sink
  Filename:     /usr/lib/gstreamer-0.8/libgstdspamrsink.so
  Version:      1.0
  License:      LGPL
  Package:      dspaudio
  Origin URL:   Nokia Corporation

GObject
 +----GstObject
       +----GstElement
             +----GstDSPAMRSink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      audio/x-amr


Element Flags:
  GST_ELEMENT_EVENT_AWARE

Element Implementation:
  loopfunc()-based element: 0x4015fbcc
  Has change_state() function: 0x401616f0
  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.

Pads:
  SINK: 'sink'
    Implementation:
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "dspamrsink0")
  volume              : Defines the volume level of the stream
                        Unsigned Integer. Range: 0 - 65535 (Default 65535)
  panning             : Defines the balance between left/right channels
                        Integer. Range: -16384 - 16384 (Default 0)
  mute                : Mutes or unmutes the stream
                        Boolean. (Default false)
  stream-id           : Unique stream identifier value
                        Unsigned Integer. Range: 0 - 65535 (Default 0)
  postprocessing      : Turn on/off audio post-processing
                        Boolean. (Default false)
  priority            : Defines the priority value of the stream
                        Integer. Range: 0 - 5 (Default 0)
Factory Details:
  Long name:    DSP MP3 Sink
  Class:        Sink/Audio
  Description:  MP3 audio sink
  Author(s):    Makoto Sugano <[EMAIL PROTECTED]>
  Rank:         primary (256)

Plugin Details:
  Name:         dspmp3
  Description:  DSP MP3 audio sink
  Filename:     /usr/lib/gstreamer-0.8/libgstdspmp3sink.so
  Version:      1.0
  License:      LGPL
  Package:      dspaudio
  Origin URL:   Nokia Corporation

GObject
 +----GstObject
       +----GstElement
             +----GstDSPMP3Sink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      audio/mpeg
            mpegversion: 1
                  layer: [ 2, 3 ]


Element Flags:
  GST_ELEMENT_EVENT_AWARE

Element Implementation:
  loopfunc()-based element: 0x40161854
  Has change_state() function: 0x40162de8
  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.

Pads:
  SINK: 'sink'
    Implementation:
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        String. (Default "dspmp3sink0")
  volume              : Defines the volume level of the stream
                        Unsigned Integer. Range: 0 - 65535 (Default 65535)
  panning             : Defines the balance between left/right channels
                        Integer. Range: -16384 - 16384 (Default 0)
  mute                : Mutes or unmutes the stream
                        Boolean. (Default false)
  stream-id           : Unique stream identifier value
                        Unsigned Integer. Range: 0 - 65535 (Default 0)
  postprocessing      : Turn on/off audio post-processing
                        Boolean. (Default false)
  priority            : Defines the priority value of the stream
                        Integer. Range: 0 - 5 (Default 0)
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to