[gst-embedded] Playback of raw audio on N900: Internal data flow error
t.i.m at zen.co.uk
Thu Dec 16 15:51:55 PST 2010
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,
The signed field should be of G_TYPE_BOOLEAN.
More information about the Gstreamer-embedded