<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1609" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=699583007-16042008>Hi vijay,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=699583007-16042008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=699583007-16042008>I mean the adecoder src pad's caps in runtime did
not match well with its template.</SPAN></FONT></DIV>
<DIV><SPAN class=699583007-16042008><FONT face="Courier New" color=#0000ff>It is
just my guess, you'd better print out the runtime adecoder src0
caps.</FONT></SPAN></DIV>
<DIV><SPAN class=699583007-16042008><FONT face="Courier New" color=#0000ff>or
you can refer the sourcecode in gstcaps.c: </FONT></SPAN><SPAN
class=699583007-16042008><FONT face="Courier New"
color=#0000ff>gst_caps_is_subset</FONT></SPAN></DIV>
<DIV><SPAN class=699583007-16042008><FONT face="Courier New"
color=#0000ff></FONT></SPAN> </DIV>
<DIV class=Section1>
<P class=MsoNormal align=left><B><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'">Best
Regards<BR>Zhao <SPAN class=SpellE>Liang</SPAN></SPAN></B>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Vijay [mailto:vijay.linux.mail@gmail.com]
<BR><B>Sent:</B> Wednesday, April 16, 2008 3:28 PM<BR><B>To:</B> Stefan
Kost<BR><B>Cc:</B> Zhao Liang-E3423C;
gstreamer-embedded@lists.sourceforge.net<BR><B>Subject:</B> Re: [gst-embedded]
GStreamer on TI's embedded platform<BR></FONT><BR></P></DIV>
<DIV></DIV>
<DIV>Zhao & Stefan,</DIV>
<DIV>Thank you both, for your responses.</DIV>
<DIV> </DIV>
<DIV>I didnt' quite understand what you meant. As I understand caps negotiation,
there should be no problem with the negotiation process if the adecoder sink pad
(that feeds into the adecoder element) caps has an overlap with the filesrc src
pad (that takes the data read from the file, by the filesrc element). And since
the filesrc src pad is 'ANY', there should be an overlap always and therefore,
there should be no problem. I'm not sure if that understanding is correct.</DIV>
<DIV> </DIV>
<DIV>Here's the entire adecoder caps values (obtained by using the command
"gst-inspect-0.10 adecoder" on the command line) :</DIV>
<DIV><BR>Pad Templates:<BR> SRC template: 'src'<BR>
Availability: Always<BR>
Capabilities:<BR>
audio/x-raw-int<BR>
endianness:
1234<BR>
signed:
true<BR>
width:
16<BR>
depth:
16<BR>
rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
}<BR>
channels: [ 1, 2 ]</DIV>
<DIV> SINK template: 'sink'<BR> Availability:
Always<BR> Capabilities:<BR>
audio/mpeg<BR>
mpegversion: { 1, 2, 4
}<BR>
layer: { 1, 2, 3 }<BR>
audio/x-wma<BR>
wmaversion: { 1, 2, 3
}<BR>
rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
}<BR>
channels: [ 1, 2 ]</DIV>
<DIV> </DIV>
<DIV>Please let me know if my understanding is incorrect or if there could be
some other problem.</DIV>
<DIV> </DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV>
<DIV>Vijay</DIV>
<DIV> </DIV>
<DIV><BR> </DIV>
<DIV class=gmail_quote>On Mon, Apr 14, 2008 at 1:48 AM, Stefan Kost <<A
href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Zhao
Liang-E3423C schrieb:
<DIV class=Ih2E3d><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px; BORDER-LEFT: #ccc 1px solid">Vijay,<BR> I
think you can open the log for more information,<BR>export
GST_DEBUG=GST_CAPS:5<BR> Seems actual adecoder src0 caps is not a
subset of src template caps, maybe the src rate, channels, or depth is not
suitable for template caps.<BR></BLOCKQUOTE><BR></DIV>This is a programming
error in TIs elements. The quite likely set a value in the caps which are not
in the template caps. Unfortunately you did not send those (just as "...").
But there they quite likely forgot e.g. rate or channels.<BR><BR>Stefan<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px; BORDER-LEFT: #ccc 1px solid"><BR>*Best
Regards
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c><BR>Zhao
Liang*<BR><BR>------------------------------------------------------------------------<BR>*From:*
Vijay [mailto:<A href="mailto:vijay.linux.mail@gmail.com"
target=_blank>vijay.linux.mail@gmail.com</A>]<BR>*Sent:* Thursday, April 10,
2008 9:38 PM<BR>*To:* Zhao Liang-E3423C<BR>*Cc:* <A
href="mailto:gstreamer-embedded@lists.sourceforge.net"
target=_blank>gstreamer-embedded@lists.sourceforge.net</A><BR>*Subject:* Re:
[gst-embedded] GStreamer on TI's embedded platform<BR><BR>Thanks for your
response, Zhao. I really appreciate it. I didn't get a chance to respond to
your mail until now.<BR> I don't think I'm missing a mp3 demux element.
Here's why:<BR> - This file has worked with every decoder I've tried,
without any demuxing or parsing of container format (and I've tried a lot of
decoders on a lot of systems! - all without any demuxing)<BR> - It has
no ID3 or other tags (I removed all such MP3 headers and trailers in the
file, myself)<BR> - It has only an elementary stream that contains only
MP3 frames (each frame starting with "0xFF 0xFB"), all of the same
length.<BR>That means, this file should not require a MP3 parser and any MP3
decoder should be able to decode the contents of the file directly.<BR>Plus,
this pipeline comes from Texas Instruments, and they must have tested this
before they put it on their website (hopefully)!<BR> Coming back to the
problem I was facing:<BR>I was wrong about one thing. These are not two
problems - it's probably one problem. It can't pause because it probably
cannot negotiate caps.<BR>Here's what gst-inspect says about TI's adecoder
plugin:<BR><BR>Pad Templates:<BR> SRC template: 'src'<BR>
Availability: Always<BR> Capabilities:<BR>
audio/x-raw-int<BR>
...<BR> ...<BR>
...<BR> SINK template: 'sink'<BR>
Availability: Always<BR> Capabilities:<BR>
audio/mpeg<BR> mpegversion: {
1, 2, 4 }<BR>
layer: { 1, 2, 3 }<BR> audio/x-wma<BR>
wmaversion: { 1, 2, 3 }<BR>
rate: { 8000, 11025, 12000, 16000,
22050, 24000, 32000, 44100, 48000 }<BR>
channels: [ 1, 2 ]<BR> If I understand this correctly, it
means that it takes mp3 or wma audio data as input and gives raw pcm samples
as output. Since the filesrc element can output "any" data type, they should
match and it should not be a problem. So I'm still stuck and I don't have a
clue as to what the problem could be. Please, let me know if you have any
idea about this problem. I'd appreciate any
help.<BR> Thanks.<BR> Vijay<BR><BR></DIV></DIV>
<DIV class=Ih2E3d>On Tue, Apr 8, 2008 at 8:20 AM, Zhao Liang-E3423C <<A
href="mailto:E3423C@motorola.com" target=_blank>E3423C@motorola.com</A>
<mailto:<A href="mailto:E3423C@motorola.com"
target=_blank>E3423C@motorola.com</A>>> wrote:<BR><BR>
Vijay,<BR> I think maybe you miss a
mp3demuxe between filesrc and adecoder.<BR> and the command
shall be<BR> gst-launch-0.10 filesrc location=$1 ! mp3demux !
adecoder Codec=3 !<BR> osssink<BR> TI adecoder
element may not accept the filesrc RAW caps.<BR><BR> *Best
Regards<BR> Zhao Liang *<BR><BR>
------------------------------------------------------------------------<BR>
*From:* <A
href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net"
target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A><BR>
<mailto:<A
href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net"
target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A>><BR>
[mailto:<A
href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net"
target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A><BR>
<mailto:<A
href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net"
target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A>>]
*On<BR> Behalf Of *Vijay<BR> *Sent:* Monday, April
07, 2008 8:32 PM<BR> *To:* <A
href="mailto:gstreamer-embedded@lists.sourceforge.net"
target=_blank>gstreamer-embedded@lists.sourceforge.net</A><BR></DIV>
<mailto:<A href="mailto:gstreamer-embedded@lists.sourceforge.net"
target=_blank>gstreamer-embedded@lists.sourceforge.net</A>>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c><BR> *Subject:* [gst-embedded] GStreamer on
TI's embedded platform<BR><BR> Hi,<BR> I received
TI's port of gstreamer to it's DaVinci processors from<BR> <A
href="http://focus.ti.com/dsp/docs/dspsplash.tsp?contentId=3100"
target=_blank>http://focus.ti.com/dsp/docs/dspsplash.tsp?contentId=3100</A><BR>
I've tried to run the example (scripts) provided by TI
and I've<BR> faced what seem to be two separate
issues.<BR> I've copied the stdout log below:<BR>
<linux prompt>:/opt/system_files_gstreamer# ./test_MP3.sh
MP3_file.mp3<BR> Setting pipeline to PAUSED ...<BR>
Pipeline is PREROLLING ...<BR> (gst-launch-0.10:1204):
GStreamer-WARNING **: pad adecoder0:src<BR> returned caps which
are not a real subset of its template caps<BR>
(gst-launch-0.10:1204): GStreamer-CRITICAL **:<BR>
gst_caps_get_structure: assertion `index <
caps->structs->len' failed<BR> (gst-launch-0.10:1204):
GStreamer-CRITICAL **:<BR> gst_structure_get_int: assertion
`structure != NULL' failed<BR><BR> [program hangs
here]<BR> For most of you, who don't know about
this script: All it does is<BR> after setting the gstreamer,
plugin and library paths, it runs<BR> gst-launch with a
pipeline, thus: gst-launch-0.10 filesrc<BR> location=$1 !
adecoder Codec=3 ! osssink<BR><BR> The two issues I'm
facing:<BR> (a) The *last* element in the gstreamer pipeline
does not reply with<BR> a message to the app saying it has
paused (This is ascertained with<BR> debug prints that I
inserted in gst-launch.c. It's possible that for<BR> some
reason, the element does not pause. I've faced this same issue<BR>
with pipelines which have no decode/render elements as
well.)<BR> Actually, I'm not sure if (a) it doesn't pause
because it doesn't<BR> finish preroll or (b) it says it hasn't
finished preroll because it<BR> doesn't send a pause signal!
(I'm not sure which is the cause and<BR> which is the
effect).<BR><BR> (b) The critical errors printed (seen above. I
guess these are<BR> caused because of TI's mp3 decoder element
plugin.) Could the<BR> adecoder capabilities be incompatible?
Seems unlikely, since TI<BR> would have tested this
first.<BR><BR><BR> Would anyone know what the issue might be?
Has anyone seen a similar<BR> issue with gstreamer?<BR>
I'd greatly appreciate any help.<BR>
Thanks.<BR><BR><BR>
Vijay<BR><BR><BR></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV></BODY></HTML>