Hi,
I need to implement this following stream on C++: filesrc location=Video2.avi ! decodebin2 name=dec ! queue ! ffmpegcolorspace ! autovideosink dec. ! char audio [] = "queue ! audioconvert ! audioresample ! autoaudiosink I've done this simple code: int main(int argc, char ** argv) { GError *error = NULL; GstElement *gstInit, *gstVideo, *gstAudio; GstElement *video_stream, *filesrc, *decodebin2, *queue_1, *ffmpegcolorspace; GstElement *autovideosink, *queue_2, *audioconvert, *audioresample, *autoaudiosink; gst_init(&argc, &argv); video_stream = gst_pipeline_new("Video"); filesrc = gst_element_factory_make("filesrc location=Video2.avi", "filesrc"); decodebin2 = gst_element_factory_make("decodebin2 name=dec", "decodebin2"); queue_1 = gst_element_factory_make("queue", "queue1"); ffmpegcolorspace = gst_element_factory_make("ffmpegcolorspace", "ffmpegcolorspace"); autovideosink = gst_element_factory_make("autovideosink dec.", "autovideosink"); queue_2 = gst_element_factory_make("queue", "queue2"); audioconvert = gst_element_factory_make("audioconvert", "audioconvert"); audioresample = gst_element_factory_make("audioresample", "audioresample"); autoaudiosink = gst_element_factory_make("autoaudiosink", "autoaudiosink"); gst_bin_add_many(GST_BIN(video_stream), filesrc, decodebin2, queue_1, ffmpegcolorspace, autovideosink, queue_2, audioconvert, audioresample, autoaudiosink, NULL); } It compiles, but when I try to run I get this: (playVideo:4190): GStreamer-CRITICAL **: gst_bin_add_many: assertion `GST_IS_ELEMENT (element_1)' failed What Am I doing wrong? Thanks in advance. -- Marlos Cholodovskis Machado ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
On Fri, Oct 22, 2010 at 10:01 AM, Marlos C. Machado <[hidden email]> wrote: decodebin2 = gst_element_factory_make("decodebin2 name=dec", I'd bet that decodebin2 is equal to NULL. The first parameter to gst_element_factory_make should just be "decodebin2" Hope that helps ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
If I take off these additional parameters, including the file filesrc
location=Video2.avi it works. How do I pass as parameter the path to filesrc? 2010/10/22 Robert Powell <[hidden email]>: > Hi, > > > On Fri, Oct 22, 2010 at 10:01 AM, Marlos C. Machado <[hidden email]> > wrote: >> >> decodebin2 = gst_element_factory_make("decodebin2 name=dec", >> "decodebin2"); > > I'd bet that decodebin2 is equal to NULL. The first parameter to > gst_element_factory_make should just be "decodebin2" > > > Hope that helps > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > -- Marlos Cholodovskis Machado ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On 10/22/2010 11:39 AM, Marlos C. Machado wrote:
> If I take off these additional parameters, including the file filesrc > location=Video2.avi it works. > > How do I pass as parameter the path to filesrc? g_object_set (G_OBJECT (filesrc), "location", "Video2.avi", NULL); ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thanks a lot! Robert and You helped me a lot!
2010/10/22 Nathanael D. Noblet <[hidden email]> On 10/22/2010 11:39 AM, Marlos C. Machado wrote: -- Marlos Cholodovskis Machado ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Am 22.10.2010 21:05, schrieb Marlos C. Machado:
> Thanks a lot! Robert and You helped me a lot! > > 2010/10/22 Nathanael D. Noblet <[hidden email] <mailto:[hidden email]>> > > On 10/22/2010 11:39 AM, Marlos C. Machado wrote: > > If I take off these additional parameters, including the file filesrc > > location=Video2.avi it works. > > > > How do I pass as parameter the path to filesrc? > > g_object_set (G_OBJECT (filesrc), "location", "Video2.avi", NULL); > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > <mailto:[hidden email]> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > > > -- > Marlos Cholodovskis Machado > Maybe we should have gst_parse_element_from_description() like we have gst_parse_bin_from_description() as a convinience api for quick tests. Stefan ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |