Hi!
I'm trying to compose two videos, and I'm using the alpha plug-in to make the white color transparent. To test the alpha plug-in I'm creating the pipeline with gst-launch. The first test I done was: gst-launch videotestsrc pattern=smpte75 \ ! alpha method=custom target-r=255 target-g=255 target-b=255 angle=10 \ ! videomixer name=mixer ! ffmpegcolorspace ! autovideosink \ videotestsrc pattern=snow ! mixer. and it works great! Then I created two videos with those lines: gst-launch videotestsrc pattern=snow ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=snow.ogv gst-launch videotestsrc pattern=smpte75 ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=bars75.ogv And changed the videotestsrc to a filesrc and it continues working gst-launch filesrc location=bars75.ogv ! decodebin2 \ ! alpha method=custom target-r=255 target-g=255 target-b=255 angle=10 \ ! videomixer name=mixer ! ffmpegcolorspace ! autovideosink \ filesrc location=snow.ogv ! decodebin2 ! alpha ! mixer. But, when I use the ideo I want to compose, I'm not able to make the white color transparent gst-launch filesrc location=video.ogv ! decodebin2 \ ! alpha method=custom target-r=255 target-g=255 target-b=255 angle=10 \ ! videomixer name=mixer ! ffmpegcolorspace ! autovideosink \ filesrc location=snow.ogv ! decodebin2 ! alpha ! mixer. Can you help me? Any idea what is happening? I'm using GStreamer 0.10.28 You can download the test videos from here: http://polimedia.upv.es/pub/gst/gst.zip Thanks in advance, Miguel Escriva ------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Miguel,
Can you please run your pipeline with GST_DEBUG=*:2 and pastebin the logs ? Also based on your mail not clear whats the error,which is needed to give appropriate help. One guess, you should have queue, before the mixer. cheers Kapil On Mon, May 3, 2010 at 2:57 PM, Miguel Escriva <[hidden email]> wrote: Hi! -- http://www.linkedin.com/in/kapilagrawal ------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi Kapil,
The error is that I can not get the white color trasnparent. I get the white color transparent in the first example, but when I test it with my video It doesn't work. By the way, I can get other colors to get transparent but not the white. I ran the example with GST_DEBUG=*:2 and here you have the output $ GST_DEBUG=*:2 gst-launch filesrc location=video.ogv ! decodebin2 ! alpha method=custom target-r=255 target-g=255 target-b=255 angle=10 ! queue ! videomixer name=mixer ! ffmpegcolorspace ! autovideosink filesrc location=snow.ogv ! decodebin2 ! alpha ! queue ! mixer. Setting pipeline to PAUSED ... 0:00:00.198821332 8308 0x88d17d8 WARN oggdemux gstoggdemux.c:2366:gst_ogg_demux_read_chain:<oggdemux0> page is not BOS page 0:00:00.199405036 8308 0x88d17d8 WARN oggdemux gstoggdemux.c:2362:gst_ogg_demux_read_chain:<oggdemux0> problem reading BOS page: ret=-3 Pipeline is PREROLLING ... 0:00:00.205978003 8308 0x8784968 WARN oggdemux gstoggdemux.c:743:gst_ogg_pad_submit_packet:<oggdemux1> stream parser didn't create src pad caps 0:00:00.206060428 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.206313860 8308 0x8784968 WARN oggdemux gstoggdemux.c:2366:gst_ogg_demux_read_chain:<oggdemux1> page is not BOS page 0:00:00.206372701 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.206418895 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.206525018 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.206856786 8308 0x8784968 WARN oggdemux gstoggdemux.c:2362:gst_ogg_demux_read_chain:<oggdemux1> problem reading BOS page: ret=-3 0:00:00.212764744 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.212846092 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.212888936 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.212928600 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.213180737 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.213285642 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.213327033 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration 0:00:00.213430980 8308 0x8784968 WARN oggdemux gstoggstream.c:199:gst_ogg_stream_get_packet_duration: Failed to determine packet duration Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 38580523905 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... You can download the videos from http://polimedia.upv.es/pub/gst/gst.zip and test if you want. Thanks, Miguel Escriva
2010/5/3 Kapil Agrawal <[hidden email]> Miguel, ------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |