Created
August 19, 2012 00:12
-
-
Save waveform80/3390484 to your computer and use it in GitHub Desktop.
GStreamer 1 image overlay on video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Working (overlays image on videotestsrc) | |
| gst-launch-1.0 videomixer name=mix ! videoconvert ! xvimagesink multifilesrc location="test.png" caps="image/png,framerate=0/1" ! pngdec ! imagefreeze ! alpha method=0 alpha=0.5 ! mix. videotestsrc ! "video/x-raw,format=AYUV,framerate=25/1,width=320,height=240" ! mix. | |
| # Fails (attempts to overlay image on webcam source) | |
| gst-launch-1.0 videomixer name=mix ! videoconvert ! xvimagesink multifilesrc location="test.png" caps="image/png,framerate=0/1" ! pngdec ! imagefreeze ! alpha method=0 alpha=0.5 ! mix. v4l2src device=/dev/video0 ! "video/x-raw,format=YUY2,width=320,height=240" ! videoconvert ! mix. | |
| # Output of failing command: | |
| cat << EOF | |
| Setting pipeline to PAUSED ... | |
| Pipeline is live and does not need PREROLL ... | |
| Setting pipeline to PLAYING ... | |
| New clock: GstSystemClock | |
| (gst-launch-1.0:15685): GStreamer-CRITICAL **: gst_query_new_accept_caps: assertion `gst_caps_is_fixed (caps)' failed | |
| (gst-launch-1.0:15685): GStreamer-CRITICAL **: gst_pad_peer_query: assertion `GST_IS_QUERY (query)' failed | |
| (gst-launch-1.0:15685): GStreamer-CRITICAL **: gst_mini_object_unref: assertion `mini_object != NULL' failed | |
| (gst-launch-1.0:15685): GStreamer-CRITICAL **: gst_query_new_accept_caps: assertion `gst_caps_is_fixed (caps)' failed | |
| (gst-launch-1.0:15685): GStreamer-CRITICAL **: gst_pad_peer_query: assertion `GST_IS_QUERY (query)' failed | |
| (gst-launch-1.0:15685): GStreamer-CRITICAL **: gst_mini_object_unref: assertion `mini_object != NULL' failed | |
| ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error. | |
| Additional debug info: | |
| gstbasesrc.c(2767): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: | |
| streaming task paused, reason not-negotiated (-4) | |
| Execution ended after 295233813 ns. | |
| Setting pipeline to PAUSED ... | |
| Setting pipeline to READY ... | |
| Setting pipeline to NULL ... | |
| Freeing pipeline ... | |
| EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment