Hi Sudarshan,<br><br>I did not had the time to hack on this for a while, but finally I changed the pipeline to this:<br><br>gst-launch-0.10 -v gnomevfssrc location=$CAMERA ! mutipartdemux ! ffdec_mjpeg !
clockoverlay text="Camera 1" ! ffmpegcolorspace !
ximagesink <br><br>The video still freezes. I still don't know why, even if the caps says that the video is at 25fps. If I try to close the window, gst-launch does not terminate the execution of the pipeline, I have to hit Ctrl-C to re-gain control over the console.<br>
<br><br><br>Any idea?<br><br><br><br><div class="gmail_quote">2008/10/5 sudarshan bisht <span dir="ltr"><<a href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div>Hi Noe ,</div>
<div> As you are using decodebin here as a decoder element so what is does is on the basis of input file it selects the decoder , here in your case it is selecting jpegdec(see red line in your log) , that means it will decode only one frame of data . </div>
<div> To fix this problem you can use ffdec_mjpeg element which is there in ffmpeg package. </div><div><div></div><div class="Wj3C7c">
<div> </div>
<div> <br><br></div>
<div class="gmail_quote">On Sat, Oct 4, 2008 at 6:06 AM, Noe Nieto <span dir="ltr"><<a href="mailto:tzicatl@gmail.com" target="_blank">tzicatl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div dir="ltr">Thanks Sudarshan<br><br>Now I've changed the pipeline to this:<br>gst-launch-0.10 -v gnomevfssrc location=$CAMERA ! decodebin ! clockoverlay text="Camera 1" ! ffmpegcolorspace ! videoscale ! ximagesink force-aspect-ratio="true"<br>
<br>But when I run the pipeline there is no video, it's only an still image with the clock time overlaid, but it is not moving.<br><br>What is the problem? I have reviewed the output of gst-launch and I found a strange warning:<br>
<br> <br>Setting pipeline to PAUSED ...<br>Pipeline is PREROLLING ...<br>/pipeline0/decodebin0/typefind.src: caps = multipart/x-mixed-replace<br>/pipeline0/decodebin0/multipartdemux0.sink: caps = multipart/x-mixed-replace<br>
<font color="#ff0000">/pipeline0/decodebin0/jpegdec0.sink: caps = image/jpeg<br>/pipeline0/decodebin0/jpegdec0.src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)0/1</font><br>
/pipeline0/clockoverlay0.src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)0/1<br>/pipeline0/clockoverlay0.video_sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)0/1<br>
/pipeline0/decodebin0.src0: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)0/1<br>/pipeline0/decodebin0.src0.proxypad1: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)0/1<br>
<br>(gst-launch-0.10:9349): GStreamer-CRITICAL **: gst_util_uint64_scale_int: assertion `denom > 0' failed<br>/pipeline0/ffmpegcsp0.src: caps = video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)640, height=(int)480, framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1<br>
/pipeline0/ffmpegcsp0.sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, framerate=(fraction)0/1<br>/pipeline0/videoscale0.src: caps = video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)640, height=(int)480, framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1<br>
/pipeline0/videoscale0.sink: caps = video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)640, height=(int)480, framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1<br>
/pipeline0/ximagesink0.sink: caps = video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)640, height=(int)480, framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1<br>
Pipeline is PREROLLED ...<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br>Caught interrupt -- handling interrupt.<br>Interrupt: Setting pipeline to PAUSED ...<br>Execution ended after 8957877000 ns.<br>
Setting pipeline to PAUSED ...<br>Setting pipeline to READY ...<br>/pipeline0/ximagesink0.sink: caps = NULL<br>/pipeline0/videoscale0.src: caps = NULL<br>/pipeline0/videoscale0.sink: caps = NULL<br>/pipeline0/ffmpegcsp0.src: caps = NULL<br>
/pipeline0/ffmpegcsp0.sink: caps = NULL<br>/pipeline0/clockoverlay0.src: caps = NULL<br>/pipeline0/clockoverlay0.video_sink: caps = NULL<br>/pipeline0/decodebin0.src0: caps = NULL<br>/pipeline0/decodebin0/jpegdec0.src: caps = NULL<br>
/pipeline0/decodebin0/jpegdec0.sink: caps = NULL<br>/pipeline0/decodebin0/multipartdemux0.src_0: caps = NULL<br>/pipeline0/decodebin0/multipartdemux0.sink: caps = NULL<br>/pipeline0/decodebin0/typefind.src: caps = NULL<br>
Setting pipeline to NULL ...<br>X connection to :0.0 broken (explicit kill or server shutdown).<br><br>Is there a work around this, or a typical problem?<br><br>Thank you.<br><br>
<div class="gmail_quote">2008/10/2 sudarshan bisht <span dir="ltr"><<a href="mailto:bisht.sudarshan@gmail.com" target="_blank">bisht.sudarshan@gmail.com</a>></span>
<div>
<div></div>
<div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">
<div>Hi Noe ,</div>
<div> </div>
<div> Your problem is because clockoverlay element works on YUV 4:2:0 data ( see caps by doing gst-inspect clockoverlay ) that means it expects YUV 4:2:0 data from previous element and sends YUV 4:2:0 data also to next element . But ximagesink works on RGB data thats why you can't connect these tow elements . </div>
<div> To solve this problem insert clockoverlay just after decodbin element . <br></div>
<div><br> </div>
<div class="gmail_quote">
<div>
<div></div>
<div>On Thu, Oct 2, 2008 at 12:37 AM, Noe Nieto <span dir="ltr"><<a href="mailto:tzicatl@gmail.com" target="_blank">tzicatl@gmail.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<div></div>
<div>
<div dir="ltr">Hi, I had posted this topic before but I am unsure if it reached the mailing list.<br><br>I have an app that displays MJPEG Streams from webcam cameras that looks like the following:<br><br>gst-launch-0.10 gnomevfssrc location="<a href="http://ip/image?speed=25" target="_blank">http://ip/image?speed=25</a>" ! decodebin ! ffmpegcolorspace ! videoscale ! ximagesink force-aspect-ratio="true"<br>
<br>But when I add a clockoverlay element between the videoscale and ximagesink, the video gets frozen. Looks like it just displays the first frame.<br><br>Can someone please, help me? What I am doing wrong.<br><br>Noe Nieto.<br>
</div><br></div></div>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br></div><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div></div></div><br></div><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br></div></div></div>
<br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>