[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: [gst-devel] Make transparent a specific color inside a video
From:       megabug <megabug () autistici ! org>
Date:       2009-10-31 14:01:37
Message-ID: 200910311501.37370.megabug () autistici ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Friday 30 October 2009 12:59:17 Kapil Agrawal wrote:
> Probably videobox and videomixer may fix it
>
> -kapil

No, as I stated before in my email, changing the whole frame alpha value is 
not useful in my case.

Anyway I managed to find the solution myself: the "alpha" plugin works and 
provides a chroma-key feature that is exacly what I needed.

Now I have another problem: PgmImageSink (in pigment library) refuses to 
receive a stream with Alpha channel in it. 

filesrc -> decodebin -> alpha -> pgmimagesink (doesn't work)

If I put an ffmpegcolorspace, the pipeline runs successfully but the alpha 
channel is filtered.

filesrc -> decodebin -> alpha -> ffmpegcolorspace -> pgmimagesink
(works but ffmpegcolorspace removes the alpha channel)

Even using capsfilter to force a colorspace with alpha channel won't work.
I think that the problem is in pgmimagesink, but any suggestions are welcome!

Bye
-- 
megabug

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; \
font-weight:400; font-style:normal;">On Friday 30 October 2009 12:59:17 Kapil Agrawal \
wrote:<br> &gt; Probably videobox and videomixer may fix it<br>
&gt;<br>
&gt; -kapil<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>No, as I stated before in my email, changing the whole \
frame alpha value is not useful in my case.<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Anyway I managed to \
find the solution myself: the "alpha" plugin works and provides a chroma-key feature \
that is exacly what I needed.<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>Now I have another problem: PgmImageSink \
(in pigment library) refuses to receive a stream with Alpha channel in it. <br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>filesrc -&gt; decodebin -&gt; alpha -&gt; pgmimagesink \
(doesn't work)<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>If I put an ffmpegcolorspace, the \
pipeline runs successfully but the alpha channel is filtered.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>filesrc -&gt; decodebin -&gt; alpha -&gt; ffmpegcolorspace \
-&gt; pgmimagesink<br> (works but ffmpegcolorspace removes the alpha channel)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Even using capsfilter to force a colorspace with alpha \
channel won't work.<br> I think that the problem is in pgmimagesink, but any \
suggestions are welcome!<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
                text-indent:0px; -qt-user-state:0;"><br></p>Bye<br>
-- <br>
megabug</p></body></html>



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic