<!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>&nbsp;</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&nbsp;did 
not&nbsp;match&nbsp;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&nbsp;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>&nbsp;</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 &amp; Stefan,</DIV>
<DIV>Thank you both, for your responses.</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp; SRC template: 'src'<BR>&nbsp;&nbsp;&nbsp; 
Availability: Always<BR>&nbsp;&nbsp;&nbsp; 
Capabilities:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
audio/x-raw-int<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
endianness: 
1234<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
signed: 
true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
width: 
16<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
depth: 
16<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
channels: [ 1, 2 ]</DIV>
<DIV>&nbsp; SINK template: 'sink'<BR>&nbsp;&nbsp;&nbsp; Availability: 
Always<BR>&nbsp;&nbsp;&nbsp; Capabilities:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
audio/mpeg<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
mpegversion: { 1, 2, 4 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
layer: { 1, 2, 3 }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
audio/x-wma<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
wmaversion: { 1, 2, 3 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
rate: { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
channels: [ 1, 2 ]</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please let me know if my understanding is incorrect or if there could be 
some other problem.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Vijay</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV class=gmail_quote>On Mon, Apr 14, 2008 at 1:48 AM, Stefan Kost &lt;<A 
href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</A>&gt; 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>&nbsp;I 
    think you can open the log for more information,<BR>export 
    GST_DEBUG=GST_CAPS:5<BR>&nbsp;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>&nbsp;I don't think I'm missing a mp3 demux element. 
    Here's why:<BR>&nbsp;- 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>&nbsp;- It has 
    no ID3 or other tags (I removed all such MP3 headers and trailers in the 
    file, myself)<BR>&nbsp;- 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>&nbsp;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>&nbsp;SRC template: 'src'<BR>&nbsp; 
    &nbsp;Availability: Always<BR>&nbsp; &nbsp;Capabilities:<BR>&nbsp; &nbsp; 
    &nbsp;audio/x-raw-int<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
    ...<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...<BR>&nbsp; &nbsp; &nbsp; 
    &nbsp; &nbsp; &nbsp; ...<BR>&nbsp;SINK template: 'sink'<BR>&nbsp; 
    &nbsp;Availability: Always<BR>&nbsp; &nbsp;Capabilities:<BR>&nbsp; &nbsp; 
    &nbsp;audio/mpeg<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mpegversion: { 
    1, 2, 4 }<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
    &nbsp;layer: { 1, 2, 3 }<BR>&nbsp; &nbsp; &nbsp;audio/x-wma<BR>&nbsp; &nbsp; 
    &nbsp; &nbsp; &nbsp; &nbsp; wmaversion: { 1, 2, 3 }<BR>&nbsp; &nbsp; &nbsp; 
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rate: { 8000, 11025, 12000, 16000, 
    22050, 24000, 32000, 44100, 48000 }<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
    &nbsp; &nbsp; channels: [ 1, 2 ]<BR>&nbsp;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>&nbsp;Thanks.<BR>&nbsp;Vijay<BR><BR></DIV></DIV>
    <DIV class=Ih2E3d>On Tue, Apr 8, 2008 at 8:20 AM, Zhao Liang-E3423C &lt;<A 
    href="mailto:E3423C@motorola.com" target=_blank>E3423C@motorola.com</A> 
    &lt;mailto:<A href="mailto:E3423C@motorola.com" 
    target=_blank>E3423C@motorola.com</A>&gt;&gt; wrote:<BR><BR>&nbsp; 
    &nbsp;Vijay,<BR>&nbsp; &nbsp; &nbsp; &nbsp;I think maybe you miss a 
    mp3demuxe between filesrc and adecoder.<BR>&nbsp; &nbsp;and the command 
    shall be<BR>&nbsp; &nbsp;gst-launch-0.10 filesrc location=$1 ! mp3demux ! 
    adecoder Codec=3 !<BR>&nbsp; &nbsp;osssink<BR>&nbsp; &nbsp;TI adecoder 
    element may not accept the filesrc RAW caps.<BR><BR>&nbsp; &nbsp;*Best 
    Regards<BR>&nbsp; &nbsp;Zhao Liang *<BR><BR>&nbsp; 
    &nbsp;------------------------------------------------------------------------<BR>&nbsp; 
    &nbsp;*From:* <A 
    href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net" 
    target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A><BR>&nbsp; 
    &nbsp;&lt;mailto:<A 
    href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net" 
    target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A>&gt;<BR>&nbsp; 
    &nbsp;[mailto:<A 
    href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net" 
    target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A><BR>&nbsp; 
    &nbsp;&lt;mailto:<A 
    href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net" 
    target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A>&gt;] 
    *On<BR>&nbsp; &nbsp;Behalf Of *Vijay<BR>&nbsp; &nbsp;*Sent:* Monday, April 
    07, 2008 8:32 PM<BR>&nbsp; &nbsp;*To:* <A 
    href="mailto:gstreamer-embedded@lists.sourceforge.net" 
    target=_blank>gstreamer-embedded@lists.sourceforge.net</A><BR></DIV>&nbsp; 
    &nbsp;&lt;mailto:<A href="mailto:gstreamer-embedded@lists.sourceforge.net" 
    target=_blank>gstreamer-embedded@lists.sourceforge.net</A>&gt; 
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c><BR>&nbsp; &nbsp;*Subject:* [gst-embedded] GStreamer on 
    TI's embedded platform<BR><BR>&nbsp; &nbsp;Hi,<BR>&nbsp; &nbsp;I received 
    TI's port of gstreamer to it's DaVinci processors from<BR>&nbsp; &nbsp;<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>&nbsp; 
    &nbsp; &nbsp; &nbsp;I've tried to run the example (scripts) provided by TI 
    and I've<BR>&nbsp; &nbsp;faced what seem to be two separate 
    issues.<BR>&nbsp; &nbsp;I've copied the stdout log below:<BR>&nbsp; &nbsp; 
    &nbsp; &nbsp;&lt;linux prompt&gt;:/opt/system_files_gstreamer# ./test_MP3.sh 
    MP3_file.mp3<BR>&nbsp; &nbsp;Setting pipeline to PAUSED ...<BR>&nbsp; 
    &nbsp;Pipeline is PREROLLING ...<BR>&nbsp; &nbsp;(gst-launch-0.10:1204): 
    GStreamer-WARNING **: pad adecoder0:src<BR>&nbsp; &nbsp;returned caps which 
    are not a real subset of its template caps<BR>&nbsp; 
    &nbsp;(gst-launch-0.10:1204): GStreamer-CRITICAL **:<BR>&nbsp; 
    &nbsp;gst_caps_get_structure: assertion `index &lt; 
    caps-&gt;structs-&gt;len' failed<BR>&nbsp; &nbsp;(gst-launch-0.10:1204): 
    GStreamer-CRITICAL **:<BR>&nbsp; &nbsp;gst_structure_get_int: assertion 
    `structure != NULL' failed<BR><BR>&nbsp; &nbsp;[program hangs 
    here]<BR>&nbsp; &nbsp; &nbsp; &nbsp;For most of you, who don't know about 
    this script: All it does is<BR>&nbsp; &nbsp;after setting the gstreamer, 
    plugin and library paths, it runs<BR>&nbsp; &nbsp;gst-launch with a 
    pipeline, thus: gst-launch-0.10 filesrc<BR>&nbsp; &nbsp;location=$1 ! 
    adecoder Codec=3 ! osssink<BR><BR>&nbsp; &nbsp;The two issues I'm 
    facing:<BR>&nbsp; &nbsp;(a) The *last* element in the gstreamer pipeline 
    does not reply with<BR>&nbsp; &nbsp;a message to the app saying it has 
    paused (This is ascertained with<BR>&nbsp; &nbsp;debug prints that I 
    inserted in gst-launch.c. It's possible that for<BR>&nbsp; &nbsp;some 
    reason, the element does not pause. I've faced this same issue<BR>&nbsp; 
    &nbsp;with pipelines which have no decode/render elements as 
    well.)<BR>&nbsp; &nbsp;Actually, I'm not sure if (a) it doesn't pause 
    because it doesn't<BR>&nbsp; &nbsp;finish preroll or (b) it says it hasn't 
    finished preroll because it<BR>&nbsp; &nbsp;doesn't send a pause signal! 
    (I'm not sure which is the cause and<BR>&nbsp; &nbsp;which is the 
    effect).<BR><BR>&nbsp; &nbsp;(b) The critical errors printed (seen above. I 
    guess these are<BR>&nbsp; &nbsp;caused because of TI's mp3 decoder element 
    plugin.) Could the<BR>&nbsp; &nbsp;adecoder capabilities be incompatible? 
    Seems unlikely, since TI<BR>&nbsp; &nbsp;would have tested this 
    first.<BR><BR><BR>&nbsp; &nbsp;Would anyone know what the issue might be? 
    Has anyone seen a similar<BR>&nbsp; &nbsp;issue with gstreamer?<BR>&nbsp; 
    &nbsp;I'd greatly appreciate any help.<BR>&nbsp; 
    &nbsp;Thanks.<BR><BR><BR>&nbsp; 
  &nbsp;Vijay<BR><BR><BR></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV></BODY></HTML>