On Fri, 2010-12-17 at 00:10 +0100, Thomas Jarosch wrote:

> I tried all kind of ways to push the raw audio via an "appsrc" to "playbin2".
> The result is always an "Internal data flow" error.

What's the debug message detail on that? (not-negotiated?)

> Please see the attached code and the function call log.
> The magic happens in pcm_play_dma_init(), found_source() and feed_data().
> 
> Any idea what could be wrong? The timestamps on the GstBuffer?

That depends on the exact error, but if it's not-negotiated it's likely
got something to do with caps.

> Can I push arbitrary data size into the appsrc or must it be
> in sample size chunks?

That depends on what you're pushing into appsrc. If it's raw PCM audio,
it should be in chunks of bytes_per_sample * channels.


> The code is quite hacky at the moment as I want to get
> it up and running and then beautify it. Sorry:)

  audio_caps = gst_caps_new_simple("audio/x-raw-int",
      "width", G_TYPE_INT, (gint)16,
      "depth", G_TYPE_INT, (gint)16,
      "channels" ,G_TYPE_INT, (gint)2,
 -->  "signed",G_TYPE_INT,1, <--
      "rate", G_TYPE_INT, 44100,
      "endianness", G_TYPE_INT, (gint)1234,
      NULL);

The signed field should be of G_TYPE_BOOLEAN.

Cheers
 -Tim



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Gstreamer-embedded mailing list
Gstreamer-embedded@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded

Reply via email to