audioparse in gstreamer1.0

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Aug 22 03:53:32 PDT 2013


On Thu, 2013-08-22 at 16:04 +0530, jyoti kulkarni wrote:

> Since i dont known the correct format i am using
> GST_AUDIO_FORMAT_UNKNOWN but still i dont hear the audio. I also tried
> GST_AUDIO_FORMAT_S16LE (wiz default val) and other options but still
> audio is not heard.

If you tell us the previous settings for format, endianness, width,
depth and signedness we can tell you the format..

Cheers
 -Tim

> I get the following critical warning:
> 
> GStreamer-CRITICAL **: gst_segment_to_running_time: assertion
> `segment->format == format' failed
> 
> 
> Regards
> 
> Jyoti
> 
> 
> 
> On Thu, Aug 22, 2013 at 3:49 PM, Tim-Philipp Müller <t.i.m at zen.co.uk>
> wrote:
>         On Thu, 2013-08-22 at 15:28 +0530, jyoti kulkarni wrote:
>         
>         Hi,
>         
>         > Some of the properties are removed from the audioparse
>         element in
>         > gstreamer 1.0
>         >
>         > Like "endianness", "width", "depth" so how can we set these
>         properties
>         > for audio data.
>         >
>         > Actually i want to play  pcm data for which i need to set
>         all the
>         > properties for audioparse.
>         >
>         > But now since these properties are removed i am not able to
>         hear any
>         > audio and simply get warning messages that these properties
>         cannot be
>         > set.
>         >
>         > The same worked fine with gstreamer0.1 where i was able to
>         set all the
>         > properties and audio was playing fine.
>         
>         
>         Those are now all part of the "raw-format" property - so you
>         only have
>         to set one property instead of half a dozen:
>         
>           raw-format          : Format of audio samples in raw stream
>                                 flags: readable, writable
>                                 Enum "GstAudioFormat" Default: 4,
>         "s16"
>         
>          (0): unknown - GST_AUDIO_FORMAT_UNKNOWN
>          (1): encoded - GST_AUDIO_FORMAT_ENCODED
>          (2): s8      - GST_AUDIO_FORMAT_S8
>          (3): u8      - GST_AUDIO_FORMAT_U8
>          (4): s16le   - GST_AUDIO_FORMAT_S16LE
>          (5): s16be   - GST_AUDIO_FORMAT_S16BE
>          (6): u16le   - GST_AUDIO_FORMAT_U16LE
>          (7): u16be   - GST_AUDIO_FORMAT_U16BE
>          (8): s24-32le- GST_AUDIO_FORMAT_S24_32LE
>          (9): s24-32be- GST_AUDIO_FORMAT_S24_32BE
>         (10): u24-32le- GST_AUDIO_FORMAT_U24_32LE
>         (11): u24-32be- GST_AUDIO_FORMAT_U24_32BE
>         (12): s32le   - GST_AUDIO_FORMAT_S32LE
>         (13): s32be   - GST_AUDIO_FORMAT_S32BE
>         (14): u32le   - GST_AUDIO_FORMAT_U32LE
>         (15): u32be   - GST_AUDIO_FORMAT_U32BE
>         (16): s24le   - GST_AUDIO_FORMAT_S24LE
>         (17): s24be   - GST_AUDIO_FORMAT_S24BE
>         (18): u24le   - GST_AUDIO_FORMAT_U24LE
>         (19): u24be   - GST_AUDIO_FORMAT_U24BE
>         (20): s20le   - GST_AUDIO_FORMAT_S20LE
>         (21): s20be   - GST_AUDIO_FORMAT_S20BE
>         (22): u20le   - GST_AUDIO_FORMAT_U20LE
>         (23): u20be   - GST_AUDIO_FORMAT_U20BE
>         (24): s18le   - GST_AUDIO_FORMAT_S18LE
>         (25): s18be   - GST_AUDIO_FORMAT_S18BE
>         (26): u18le   - GST_AUDIO_FORMAT_U18LE
>         (27): u18be   - GST_AUDIO_FORMAT_U18BE
>         (28): f32le   - GST_AUDIO_FORMAT_F32LE
>         (29): f32be   - GST_AUDIO_FORMAT_F32BE
>         (30): f64le   - GST_AUDIO_FORMAT_F64LE
>         (31): f64be   - GST_AUDIO_FORMAT_F64BE
>          (4): s16     - GST_AUDIO_FORMAT_S16
>          (6): u16     - GST_AUDIO_FORMAT_U16
>          (8): s24-32  - GST_AUDIO_FORMAT_S24_32
>         (10): u24-32  - GST_AUDIO_FORMAT_U24_32
>         (12): s32     - GST_AUDIO_FORMAT_S32
>         (14): u32     - GST_AUDIO_FORMAT_U32
>         (16): s24     - GST_AUDIO_FORMAT_S24
>         (18): u24     - GST_AUDIO_FORMAT_U24
>         (20): s20     - GST_AUDIO_FORMAT_S20
>         (22): u20     - GST_AUDIO_FORMAT_U20
>         (24): s18     - GST_AUDIO_FORMAT_S18
>         (26): u18     - GST_AUDIO_FORMAT_U18
>         (28): f32     - GST_AUDIO_FORMAT_F32
>         (30): f64     - GST_AUDIO_FORMAT_F64
>         
>         LE = little endian
>         BE = big endian
>         
>         U = unsigned
>         S = signed
>         F = float/double
>         
>         Cheers
>          -Tim
>         
>         
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list