<!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.1607" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=884382701-11042008>Vijay,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=884382701-11042008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=884382701-11042008>I think you can open the log for more
information,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN
class=884382701-11042008>export GST_DEBUG=GST_CAPS:5</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff></FONT> </DIV>
<DIV><SPAN class=884382701-11042008><FONT face="Courier New" color=#0000ff>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.</FONT></SPAN></DIV>
<DIV><SPAN class=884382701-11042008></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><BR></P></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Vijay [mailto:vijay.linux.mail@gmail.com]
<BR><B>Sent:</B> Thursday, April 10, 2008 9:38 PM<BR><B>To:</B> Zhao
Liang-E3423C<BR><B>Cc:</B>
gstreamer-embedded@lists.sourceforge.net<BR><B>Subject:</B> Re: [gst-embedded]
GStreamer on TI's embedded platform<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Thanks for your response, Zhao. I really appreciate it. I didn't get a
chance to respond to your mail until now.</DIV>
<DIV> </DIV>
<DIV>I don't think I'm missing a mp3 demux element. Here's why:<BR></DIV>
<DIV> - 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.</DIV>
<DIV>Plus, this pipeline comes from Texas Instruments, and they must have tested
this before they put it on their website (hopefully)!</DIV>
<DIV> </DIV>
<DIV>Coming back to the problem I was facing:</DIV>
<DIV>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.</DIV>
<DIV>Here's what gst-inspect says about TI's adecoder plugin:</DIV>
<DIV><BR>Pad Templates:<BR> SRC template: 'src'<BR>
Availability: Always<BR>
Capabilities:<BR> audio/x-raw-int</DIV>
<DIV>
...</DIV>
<DIV>
...</DIV>
<DIV>
...<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 ]</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV>
<DIV>Vijay<BR><BR></DIV>
<DIV class=gmail_quote>On Tue, Apr 8, 2008 at 8:20 AM, Zhao Liang-E3423C <<A
href="mailto:E3423C@motorola.com">E3423C@motorola.com</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV dir=ltr align=left><FONT face="Courier New"
color=#0000ff><SPAN>Vijay,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New"
color=#0000ff><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN>I think
maybe you miss a mp3demuxe between filesrc and adecoder.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff><SPAN>and the
command shall be </SPAN></FONT></DIV>
<DIV>gst-launch-0.10 filesrc location=$1 !<SPAN> <FONT
color=#ff0000>mp3demux</FONT> !</SPAN> adecoder Codec=3 !
osssink<BR><SPAN><FONT face="Courier New" color=#0000ff>TI adecoder element
may not accept the filesrc RAW caps.</FONT></SPAN></DIV>
<DIV>
<P align=left><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: red">Best
Regards<BR>Zhao <SPAN>Liang</SPAN> </SPAN></B><BR></P></DIV>
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net"
target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A> [mailto:<A
href="mailto:gstreamer-embedded-bounces@lists.sourceforge.net"
target=_blank>gstreamer-embedded-bounces@lists.sourceforge.net</A>] <B>On
Behalf Of </B>Vijay<BR><B>Sent:</B> Monday, April 07, 2008 8:32
PM<BR><B>To:</B> <A href="mailto:gstreamer-embedded@lists.sourceforge.net"
target=_blank>gstreamer-embedded@lists.sourceforge.net</A><BR><B>Subject:</B>
[gst-embedded] GStreamer on TI's embedded platform<BR></FONT><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<DIV></DIV>
<DIV>Hi,<BR>I received TI's port of gstreamer to it's DaVinci processors from
<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> <BR>I've
tried to run the example (scripts) provided by TI and I've faced what seem to
be two separate issues.<BR>I've copied the stdout log
below:<BR> <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 returned caps which are not a real subset of its template
caps<BR>(gst-launch-0.10:1204): GStreamer-CRITICAL **: gst_caps_get_structure:
assertion `index < caps->structs->len'
failed<BR>(gst-launch-0.10:1204): GStreamer-CRITICAL **:
gst_structure_get_int: assertion `structure != NULL' failed<BR><BR>[program
hangs here]</DIV>
<DIV> </DIV>
<DIV>For most of you, who don't know about this script: All it does is
after setting the gstreamer, plugin and library paths, it runs gst-launch with
a pipeline, thus: gst-launch-0.10 filesrc location=$1 ! adecoder Codec=3 !
osssink<BR><BR>The two issues I'm facing:</DIV>
<DIV>(a) The *last* element in the gstreamer pipeline does not reply with a
message to the app saying it has paused (This is ascertained with debug prints
that I inserted in gst-launch.c. It's possible that for some reason, the
element does not pause. I've faced this same issue with pipelines which have
no decode/render elements as well.) Actually, I'm not sure if (a) it doesn't
pause because it doesn't finish preroll or (b) it says it hasn't finished
preroll because it doesn't send a pause signal! (I'm not sure which is the
cause and which is the effect).</DIV>
<DIV><BR>(b) The critical errors printed (seen above. I guess these are caused
because of TI's mp3 decoder element plugin.) Could the adecoder capabilities
be incompatible? Seems unlikely, since TI would have tested this
first.<BR><BR><BR>Would anyone know what the issue might be? Has anyone seen a
similar issue with gstreamer?<BR>I'd greatly appreciate any help.</DIV>
<DIV>Thanks.<BR><BR><BR>Vijay</DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>