<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Michel,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>
Nice to have reply back. element yuv doen't do much thing. It reads data from
buffer sent from filesrc, parse the raw video data and push buffer to next
element which is mpeg4dec. For testing purpose i have set sink and source pad of
yuv element to ANY. Following pipeline is working fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[ ]
gst-launch-0.10 filesrc location=~/test.m4v ! yuv ! mpeg4dec ! filesink
location=~/out.yuv </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
My mpeg4dec element reads data from yuv elemnet, decode it
and generate output in YV12 format. When i connect mpeg4dec with
ffmpegcolorspace element it crashes. I am not doing any set capabilities for
mpeg4dec element. When i create srcfactory pad, i have assigned following
details.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>static GstStaticPadTemplate sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink",<BR>
GST_PAD_SINK,<BR> GST_PAD_ALWAYS,<BR>
GST_STATIC_CAPS ("ANY")<BR> );</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>static GstStaticPadTemplate src_factory =
GST_STATIC_PAD_TEMPLATE ("src",<BR>
GST_PAD_SRC,<BR> GST_PAD_ALWAYS,<BR>
GST_STATIC_CAPS ("video/x-raw-yuv,
"<BR> "format = (fourcc) {YV12 },
"<BR> "framerate = (fraction) [0/1,
MAX], "<BR> "width = (int) [ 1, MAX ],
" "height = (int) [ 1, MAX ]")<BR>// GST_STATIC_CAPS
("ANY")<BR> );<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
Please help me and correct me if i am wrong at any
places.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks In Advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Tejas.</DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
Please help me out. </FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=tejas@oriolesoftware.com href="mailto:tejas@oriolesoftware.com">Tejas
Bhanabhagavanwala</A> </DIV>
<DIV><B>To:</B> <A title=gstreamer-embedded@lists.sourceforge.net
href="mailto:gstreamer-embedded@lists.sourceforge.net">gstreamer-embedded@lists.sourceforge.net</A>
</DIV>
<DIV><B>Sent:</B> Wednesday, November 18, 2009 6:25 PM</DIV>
<DIV><B>Subject:</B> Need Help to run my plugin</DIV></DIV>
<DIV><BR></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial
size=2> I have
installed gstreamer-0.10.25 and gstreamer-base-plugins-0.10.25. And i have
tested following video testsrc plugins.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>gst-launch-0.10 -v videotestsrc ! ffmpegcolorspace
! ximagesink and it is working fine.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
I have develop following 2 plugins and i want to get display
from my video decoder. I am using following pipe line.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>gst-launch-0.10 filesrc location=~/test.m4v ! yuv !
mpeg4dec ! ffmpegcolorspace ! ximagesink</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
Here yuv plugin will read raw data from filesrc and push raw
data to mpeg4decelement. Mpeg4dec element decode raw data and genearte yuv data
and same will be pushed to ffmpegcolorspace element. When i run that pipeline it
gives me following error.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>space<BR>Setting pipeline to PAUSED ...<BR>Width =
320 Height = 240<BR>Pipeline is PREROLLED ...<BR>Setting pipeline to PLAYING
...<BR>New clock: GstSystemClock<BR>(MPEG4DEC) Memory is not
allocated<BR> !!Caught SIGSEGV accessing address
0x10<BR>Killed<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
My plugons capabilities
are as followed.</FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>[ ] gst-inspect-0.10 yuv
is as followed.</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Factory Details:<BR> Long
name: yuv<BR>
Class: FIXME:Generic<BR>
Description: FIXME:Generic Template Element<BR>
Author(s): Neelam Gaikwad <<<A
href="">user@hostname.org</A>>><BR>
Rank: none (0)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Plugin Details:<BR>
Name:
yuv<BR> Description:
Template yuv<BR>
Filename:
/home/neelam/.gstreamer-0.10/plugins/lib/gstreamer-0.10/libgstyuv.so<BR>
Version:
0.10.0.1<BR>
License:
LGPL<BR> Source module:
gst-plugin<BR> Binary package:
GStreamer<BR> Origin
URL: <A
href="">http://gstreamer.net/</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>GObject<BR> +----GstObject<BR>
+----GstElement<BR>
+----Gstyuv</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Pad Templates:<BR> SINK template:
'sink'<BR> Availability: Always<BR>
Capabilities:<BR> ANY</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> SRC template: 'src'<BR>
Availability: Always<BR>
Capabilities:<BR> ANY</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>Element Flags:<BR> no flags
set</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Element Implementation:<BR> Has
change_state() function: 0x111600<BR> Has custom save_thyself() function:
gst_element_save_thyself<BR> Has custom restore_thyself() function:
gst_element_restore_thyself</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Element has no clocking capabilities.<BR>Element
has no indexing capabilities.<BR>Element has no URI handling
capabilities.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Pads:<BR> SRC: 'src'<BR>
Implementation:<BR> Pad Template: 'src'<BR> SINK:
'sink'<BR> Implementation:<BR>
Has chainfunc(): gst_yuv_chain<BR> Pad Template:
'sink'</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Element Properties:<BR>
name
: The name of the
object<BR>
flags: readable,
writable<BR>
String. Default: null Current: "yuv0"<BR>
silent
: Produce verbose output
?<BR>
flags: readable,
writable<BR>
Boolean. Default: false Current: false</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR><STRONG>[ ] gst-inspect-0.10 mpeg4dec is as
followed.</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>Factory Details:<BR> Long name: mpeg4dec<BR>
Class: FIXME:Generic<BR>
Description: FIXME:Generic Template Element<BR>
Author(s): Neelam Gaikwad <<<A
href="">user@hostname.org</A>>><BR>
Rank: none (0)</DIV>
<DIV> </DIV>
<DIV>Plugin Details:<BR>
Name:
mpeg4dec<BR>
Description: Template
mpeg4dec<BR>
Filename:
/home/neelam/.gstreamer-0.10/plugins/lib/gstreamer-0.10/libgstmpeg4dec.so<BR>
Version:
0.10.0.1<BR>
License:
LGPL<BR> Source module:
gst-plugin<BR> Binary package:
GStreamer<BR> Origin
URL: <A
href="">http://gstreamer.net/</A></DIV>
<DIV> </DIV>
<DIV>GObject<BR> +----GstObject<BR>
+----GstElement<BR>
+----Gstmpeg4dec</DIV>
<DIV> </DIV>
<DIV>Pad Templates:<BR> SINK template: 'sink'<BR>
Availability: Always<BR>
Capabilities:<BR> ANY</DIV>
<DIV> </DIV>
<DIV> SRC template: 'src'<BR> Availability:
Always<BR> Capabilities:<BR>
video/x-raw-yuv<BR>
format: { YV12
}<BR>
framerate: [ 0/1, 2147483647/1
]<BR>
width: [ 1, 2147483647
]<BR>
height: [ 1, 2147483647 ]</DIV>
<DIV> </DIV>
<DIV><BR>Element Flags:<BR> no flags set</DIV>
<DIV> </DIV>
<DIV>Element Implementation:<BR> Has change_state() function:
0xc97240<BR> Has custom save_thyself() function:
gst_element_save_thyself<BR> Has custom restore_thyself() function:
gst_element_restore_thyself</DIV>
<DIV> </DIV>
<DIV>Element has no clocking capabilities.<BR>Element has no indexing
capabilities.<BR>Element has no URI handling capabilities.</DIV>
<DIV> </DIV>
<DIV>Pads:<BR> SRC: 'src'<BR>
Implementation:<BR> Pad Template: 'src'<BR> SINK:
'sink'<BR> Implementation:<BR>
Has chainfunc(): gst_mpeg4dec_chain<BR> Pad Template:
'sink'</DIV>
<DIV> </DIV>
<DIV>Element Properties:<BR>
name
: The name of the
object<BR>
flags: readable,
writable<BR>
String. Default: null Current: "mpeg4dec0"<BR>
silent
: Produce verbose output
?<BR>
flags: readable,
writable<BR>
Boolean. Default: false Current: false<BR></DIV>
<DIV>
</DIV>
<DIV> </DIV>
<DIV>
Please help me to resolve this issue. If i am wrong at any
place please correct me. I am using by default setcaps and getcaps function
which we are generating from gst-template-master source code.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>-Thanks In Advance,</DIV>
<DIV>Tejas.</DIV></FONT></DIV></BODY></HTML>