overlay

Text overlay when video is recording using Directshow and C#

删除回忆录丶 提交于 2019-12-31 06:51:07
问题 By using DirectShowLib i can able to record the video by using ASF writter here is the code to start recording try { IBaseFilter capFilter = null; IBaseFilter asfWriter = null; IFileSinkFilter pTmpSink = null; ICaptureGraphBuilder2 captureGraph = null; GetVideoDevice(); if (availableVideoInputDevices.Count > 0) { // //init capture graph // graphBuilder = (IFilterGraph2)new FilterGraph(); captureGraph = (ICaptureGraphBuilder2)new CaptureGraphBuilder2(); // //sets filter object from graph //

How to scale and add correct a logo in ffmpeg command?

家住魔仙堡 提交于 2019-12-31 04:33:33
问题 I am trying to apply a watermark and also to scale it to the current video size via ffmpeg command: Here is my inital comand that works without watermark ffmpeg -v 0 -vcodec h264_qsv -i 'udp://@some.ip:1234?fifo_size=1000000&overrun_nonfatal=1&buffer_size=1000000' -vf scale=iw:ih -profile baseline -acodec aac -ac 1 -ar 44100 -ab 64k -deinterlace -vcodec h264_qsv -bufsize 4000k -maxrate 3500k -preset veryfast -vb 2000k -f flv rtmp://127.0.0.1/app/720 Now I tried to add the picture as a

Flutter how to save(re-encode) text overlay on video

冷暖自知 提交于 2019-12-30 12:22:18
问题 I would like to implement feature like instagram story(only text overlay). I was able to come to the point where user can add some text on video like screen shot below(upper right icon starts entering text, upper left just back to previous page). After user put some text I want store the video into Firebase storage . But the problem is how can I keep this text in the video? Is there any way to rewrite the file(re-encode) which has text overlay user put? Or do I have to store text info into

Flutter how to save(re-encode) text overlay on video

不问归期 提交于 2019-12-30 12:22:10
问题 I would like to implement feature like instagram story(only text overlay). I was able to come to the point where user can add some text on video like screen shot below(upper right icon starts entering text, upper left just back to previous page). After user put some text I want store the video into Firebase storage . But the problem is how can I keep this text in the video? Is there any way to rewrite the file(re-encode) which has text overlay user put? Or do I have to store text info into

iOS overlay (MKPolygon) data for all U.S. states?

给你一囗甜甜゛ 提交于 2019-12-30 09:22:45
问题 In the Displaying Overlays on a Map section of the iOS Developer Library Location Awareness Programming Guide, there is an example that "shows a filled and stroked overlay covering the state of Colorado." // Define an overlay that covers Colorado. CLLocationCoordinate2D points[4]; points[0] = CLLocationCoordinate2DMake(41.000512, -109.050116); points[1] = CLLocationCoordinate2DMake(41.002371, -102.052066); points[2] = CLLocationCoordinate2DMake(36.993076, -102.041981); points[3] =

iOS overlay (MKPolygon) data for all U.S. states?

China☆狼群 提交于 2019-12-30 09:22:26
问题 In the Displaying Overlays on a Map section of the iOS Developer Library Location Awareness Programming Guide, there is an example that "shows a filled and stroked overlay covering the state of Colorado." // Define an overlay that covers Colorado. CLLocationCoordinate2D points[4]; points[0] = CLLocationCoordinate2DMake(41.000512, -109.050116); points[1] = CLLocationCoordinate2DMake(41.002371, -102.052066); points[2] = CLLocationCoordinate2DMake(36.993076, -102.041981); points[3] =

Html5 Canvas overlay

ぐ巨炮叔叔 提交于 2019-12-30 07:48:08
问题 Is there a good solution to draw a bitmap with an overlay color with canvas ? What I'm looking to do is drawing a bitmap with a unique color for all not transparent pixel. I do not find any solution for that, and it could be usefull for me ! Thank's 回答1: Live Demo One way to do it is to loop through each pixel and change the r/g/b values to the value you want it. By skipping over the alpha value it will only change the opaque pixels to the color you want. var canvas = document.getElementById(

Primefaces - AjaxStatus - Dialog is behind the overlay

我怕爱的太早我们不能终老 提交于 2019-12-30 06:05:32
问题 I checked the z-index, but the Dialog z-index is higher than the div of overlay. It was to be correct. In the showcase works correctly. Could you help me with this problem? 回答1: Set appendToBody = true and your problem will go away - but be careful to have a form inside if you do some server-side processing. More info when you post more info! 回答2: For primefaces 5.1 you can use appendTo="@(body)" 来源: https://stackoverflow.com/questions/8434639/primefaces-ajaxstatus-dialog-is-behind-the

How to scale and position watermark to scale?

坚强是说给别人听的谎言 提交于 2019-12-30 05:30:08
问题 I'm scaling a video and applying a watermark like so: ffmpeg -ss 0:0:0.000 -i video.mp4 -y -an -t 0:0:10.000 -vf \"[in]scale=400:316[middle]\" -b:v 2000k -r 20 -vf 'movie=watermark.png,pad=400:316:0:0:0x00000000 [watermark];[middle] [watermark]overlay=0:0[out]' out.flv However, the applied watermark seems to be scaled to the original video size rather than the smaller scaled video size. This command line worked on ffmpeg version 0.8.6.git and now behaves differently after an upgrade to

Angular.js closing with click anywhere but on the element

只谈情不闲聊 提交于 2019-12-30 03:30:07
问题 It's pretty common thing, like if you click on inbox here here on stackoverflow. I'll be calling that dialog or whatever gets opened a thing . Now there are two ways I know of to deal with this, you create an invisible overlay where only the element you opened has bigger zindex, and you close your thing by clicking on the overlay click event on the document, and you check upon clicking whether you clicked on your thing or outside it, in which case you close your thing . In either case I'd