pngdec, imageoverlay, setting framerate for framed output?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pngdec, imageoverlay, setting framerate for framed output?

Thorbjorn Vynne

Hi

 

So running with the default gstreamer packages on ubuntu hardy I’ve had image overlay working, with a videomixer with a video input and an image input, using pngdec. I get a lot of assertion errors

 

CRITICAL **: gst_object_sync_values: assertion `GST_CLOCK_TIME_IS_VALID (timestamp)' failed

, but the png image was overlayed on all video frames.

 

The pipeline looks like this with gst-launch

 

gst-launch-0.10 location=test.mov  filesrc location=logo.png ! pngdec ! alphacolor ! alpha method=0 alpha=0.5 ! videomixer name=mixer

 filesrc location=input.mov ! decodebin ! ffmpegcolorspace ! alpha method=0 alpha=0.5 ! mixer. ! ffmpegcolorspace ! ffenc_mjpeg ! ffmux_mov ! filesink

 

Now with the latests stable releases I only get the image overlayed on the first video frame.

 

The doc for pngdec states that: “If there is no framerate set on sink caps, it sends EOS after the first picture.”

 

So I’ve tried setting the framerate on the sink caps, but the pngdec still sends eos stream after the first frame and the image only gets overlayed the first frame….

 

So my questions is what should I do to have the png image overlayed on all frames? Is it still possible or was it just a side effect of something not handled correctly?

 

/thor

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: pngdec, imageoverlay, setting framerate for framed output?

Thorbjorn Vynne
Sorry messed the pipeline up
This should work

gst-launch-0.10 filesrc location=logo.png ! pngdec ! alphacolor ! alpha
method=0 alpha=0.5 ! videomixer name=mixer ! ffmpegcolorspace ! ffenc_mjpeg
! ffmux_mov ! filesink location=test.mov filesrc location=input.mov !
decodebin ! ffmpegcolorspace ! alpha method=0 alpha=1.0 ! mixer.

/thor


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel