Re: [Mlt-devel] [PATCH] use sse2 instruction for line compositing
15.02.12 05:33, Dan Dennedy написав(ла): [...] OK, very close! But there is still one problem I noticed. On some geometry widths, the right edge of the B frame image is chopped off. This is reproduced in demo/mlt_my_name_is. On the first title that reads My name is Inigo Montoya notice how the right side of 'a' is cropped. i can't reproduce it... did you apply patch completely? because newer version has dropped lines: + dest += j * 2; + src += j * 2; + alpha_a += j; + alpha_b += j; because that values been updated in asm code... -- Maksym Veremeyenko -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel
Re: [Mlt-devel] Adding text to a video
On Wed, Feb 15, 2012 at 6:49 AM, bettinger cédric bced...@gmail.com wrote: Ok so here are the 4 files I tried. The first one come from open shot. The second one from inkscape. The third one from gimp. The last one was created with Qt. works for me: melt color:red out=50 ~/Downloads/cedric_01.svg out=50 -mix 50 -mixer composite 2012/2/15 Dan Dennedy d...@dennedy.org On Tue, Feb 14, 2012 at 3:30 PM, bettinger cédric bced...@gmail.com wrote: I would suggest looking at Brian's dynamictext filter, but it may take some additional effort to get the gdk/pango thing working Right now I can't try this plugin since I installed mlt with the ubuntu synaptic manager...and my version of mlt is 0.6.2. But may be I should try to compile the last version...I am just afraid of messing up and having no mlt version working. I think I will try to compile the last version of mlt++ on a virtual ubuntu machine with virtual box. I am using Qt to draw on the video image. Also, it does not need a composite transition, but the text for that is very specific to that effect. I am not sure of what you are talking about ? Are you saying that I could draw every frame of a producer with Qt ? or I could draw onto the qt widget ? There is a new transition in mlt. It uses Qt to draw text on the frames. Something similar could be done, but not right now. I guess continue on your current route. FYI, distort=1 is a dangerous approach. It depends on how you generate the SVG, but the name distort is intentionally dangerous sounding. I took that from open shot xml. I don't really know what it is, but without that the movie doesn't have the right size I want. Change the 50 to 100. Yeah I tried that as I tried 0 but either I only see my text with a black background or I only see the movie. If I remove geometry I only see the text with a black background while the movie is playing. I don't understand that since the image has a transparent background. No, then image does not have a transparent background, or if it really does the image loader is not supporting it. Send the SVG you are using. 2012/2/14 Dan Dennedy d...@dennedy.org On Tue, Feb 14, 2012 at 7:56 AM, bettinger cédric bced...@gmail.com wrote: Only the kdenlivetitle producer loads kdenlivetitle xml, but you created a color producer. Ok I didn't know that. Finally I couldn't fint out how kdenlive add text to a video, but I think I alsmot understood how open shot does. Now I created an svg image with text and a transparent background and I load For the application you described, do you really want to generate SVG for each text item? Same thing could be said for kdenlivetitle. Even if you can embed the XML within MLT XML, it seems a rather bloated approach. I would suggest looking at Brian's dynamictext filter, but it may take some additional effort to get the gdk/pango thing working across platforms. For the new vqm transition, I am using Qt to draw on the video image. Also, it does not need a composite transition, but the text for that is very specific to that effect. (Just thinking aloud here about best approach for you.) it with a producer. I just have a problem with the composite transition. I have been able to mix a movie with a text. But I don't get the expected results : either I just see the text or with the geometry property I see the text with transparence. Text with transparency sounds like a good thing. Here is my code : void MainWindow::openVideo(){ QString fileName = QFileDialog::getOpenFileName(this); if(!fileName.isNull()){ Mlt::Producer *producer = new Mlt::Producer(*m_profile, fileName.toUtf8().constData()); if(producer-is_valid()){ m_playlist = new Mlt::Playlist(); Mlt::Producer *subTitleProducer = new Mlt::Producer(*m_profile, cedric_01.svg); Mlt::Transition *transition = Mlt::Factory::transition(*m_profile, composite, NULL); //I tried to change some propertie according to what I can see in the kdenlive or open shot xml when I add a composition. Mlt::Properties *prop = new Mlt::Properties(transition-get_properties()); prop-set(geometry, 0=0%/0%:100%x100%:50); The 50 at the end of that property value means 50% opacity. prop-set(distort, 1); FYI, distort=1 is a dangerous approach. It depends on how you generate the SVG, but the name distort is intentionally dangerous sounding. prop-set(fill, 1); m_playlist-append(*subTitleProducer, 0, 400); m_playlist-append(*producer, 0); m_playlist-mix(0, 400, transition); m_consumer-stop(); m_consumer-connect(*m_playlist); delete m_producer; m_producer = producer; /* m_consumer-start(); play(); } } m_consumer-set (refresh, 1); } So when I open a video, I hear the sound directly. If I remove the
Re: [Mlt-devel] no alpha channel for video with PIX_FMT_YUVA420P pixel format
02.02.12 19:03, Maksym Veremeyenko написав(ла): Hi, i am trying to decrease cpu usage, so i would like to use PIX_FMT_YUVA420P animation instead of PIX_FMT_BGRA (or other rgb with alpha channel) but has no luck.. i think i found where it should be fixed, now its clear why 32bit rgba formats not converted in avformat_producer but converted with alpha extracting later in convert_image in filter_avcolour_space.c -- Maksym Veremeyenko -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel
Re: [Mlt-devel] [PATCH] use sse2 instruction for line compositing
2012/2/15 Maksym Veremeyenko ve...@m1stereo.tv: 15.02.12 05:33, Dan Dennedy написав(ла): [...] OK, very close! But there is still one problem I noticed. On some geometry widths, the right edge of the B frame image is chopped off. This is reproduced in demo/mlt_my_name_is. On the first title that reads My name is Inigo Montoya notice how the right side of 'a' is cropped. i can't reproduce it... Look real closely - it occurs more at the beginning when the geometry is smaller. I can switch between the branch with this patch and master and see it is different. did you apply patch completely? because newer version has dropped lines: + dest += j * 2; + src += j * 2; + alpha_a += j; + alpha_b += j; because that values been updated in asm code... yes, just double-checked. I will see if I can figure it out this weekend because it always nice to refresh myself on some simd asm. -- +-DRD-+ -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel
Re: [Mlt-devel] [PATCH] save converted image for next use
2012/2/14 Maksym Veremeyenko ve...@m1stereo.tv: Hi, data for overlay image converted from RGBA to YUV422 for each frame. attached patch save converted image of *pixbuf* producer to avoid converting it to profile format each time it require to produce resulting frame. with that patch and previous SSE2 patches it possible to put full hd logo on video without dropped frame. it is draft version with leak on exit but it could answer the question if it is a right approach for solving problem with image converted to desired format once per frame instead of once per load/format_change. The idea is fine but not the patches. The first patch to mlt_frame is rejected because they are not really needed; use mlt_frame_get_alpha_mask and mlt_frame_get_image. API changes including additions are not taken lightly and need strong justification. These two just add confusion. In the pixbuf patch, you should not call the convert_image virtual function directly; use mlt_frame_get_image(). Unfortunately, mlt_frame_set_image lacks a format parameter. I forget why. For now, just set the format property. mlt_frame_get_alpha_mask() should probably have an out param. I will think about breaking API because there are other API changes coming in this release. For now, you will have to use a computed size for the alpha. Lastly, break clone.size apart into clone.image_size and clone.alpha_size for readability. -- +-DRD-+ -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel