ffmpeg -y -i test.mp4 -i bkg.png -filter_complex "[0:v]drawtext=fontfile=PingFang-SC-Regular.ttf:text='check.....':fontcolor=white:fontsize=36:x=200:y=200:enable='if(gt(t,10),lt(t,20))'[text];[text][1:v]overlay=x=180:y=180:enable='if(gt(t,9.9),lt(t,20))'[out]" -map "[out]" out.mp4  How to put the picture watermark in the front?I'm going to put the text on the picture
i want to add watermark on some videos but problem is because image in some videos its too small and in some videos its too big, (i think it depends on input link resulution)   so all my videos have output '640:360' so how can i make watermark image to be same in all videos not on some videos smaller in some bigger   ffmpeg -i "link" -i "/var/www/logo/logo1.png" -filter_complex 'overlay=10:10' -vcodec h264 -crf 25 -preset superfast -maxrate 600k -bufsize 600k -aspect '640:360' -s '640:360' ....
Are there any add-ons that will cause a browser to automatically refresh a page when a particular file changes on disk? MAXDOP not working? I wanted to test out MAXDOP on my computer. So I set MAXDOP to 2 for a specific query. However, when I looked at my logical processors in Task Manager as I ran the query, it looked like they were all being used. I thought that it would only be using 2 logical processors if MAXDOP was set to 2? Does anyone know what is happening? Please see image below.  Another issue is, the DOP returned by the execution plan said 1. Now I know that setting MAXDOP does not mean SQL Server will actually use the number set. However, given that it seemed all my 4 logical processors were being used to process the query, it made it even more strange to see DOP 1.  This is the query I ran:   This was what happened as I ran it (i.e. it looks like all 4 logical processors are being used to run the query): How to make text file created in Ubuntu compatible with Windows Notepad? Sometime I have to use the text files created in Ubuntu, using editors, in Windows editors. So basically when ever I create a text file in Ubuntu I append the extension .txt, and it does make the file open in Windows very easily.  But the actual problem is the text files created in Ubuntu are so difficult to understand (read) when opened in Windows' Notepad. No matter how many lines have been used, all the lines appear in the same one line.  Is there a easy way to save the text files in Ubuntu's basic editors so that it can be seen exactly the same in Windows' notepad? How do we initialise unpacked arrays in Verilog? Suppose I declare an unpacked array of size say 8 bits wide. reg b[7:0];  If I want to assign b[7] = 1,b[6] = 1, b[5] = 1, ......b[0] = 1, then apart from assigning value to each bit is there a way to assign any combination of bits say 8'bA8, to b? For instance if I execute this code(below) in verilog: module tb();     reg [7:0]a;     reg b[7:0];     initial begin         $monitor(&quot;a = %b,b = &quot;,a);         a = 8'hA8;         b = 8'hA8; // Line 7     end endmodule  I get this error: C:\iverilog\bin&gt;iverilog -o a test.v test.v:7: error: Cannot assign to array b. Did you forget a word index? 1 error(s) during elaboration.  I am using Icarus Verilog on a command prompt on Windows 10 operating system. I have two PHP scripts, both using the same session by calling session_name('MySessID').  When the first script calls the second script using curl, the second script hangs when session_start() is called.  Why would this happend? Changing "index.php" Within The Address Is it possible to append to innerHTML without destroying descendants' event listeners? In the following example code, I attach an onclick event handler to the span containing the text "foo". The handler is an anonymous function that pops up an alert().  However, if I assign to the parent node's innerHTML, this onclick event handler gets destroyed - clicking "foo" fails to pop up the alert box.  Is this fixable?  &lt;html&gt;  &lt;head&gt;  &lt;script type="text/javascript"&gt;    function start () {     myspan = document.getElementById("myspan");     myspan.onclick = function() { alert ("hi"); };      mydiv = document.getElementById("mydiv");     mydiv.innerHTML += "bar";   }   &lt;/script&gt;  &lt;/head&gt;   &lt;body onload="start()"&gt;    &lt;div id="mydiv" style="border: solid red 2px"&gt;      &lt;span id="myspan"&gt;foo&lt;/span&gt;    &lt;/div&gt;  &lt;/body&gt;  &lt;/html&gt; Suppose $A$ is a 4x4 matrix such that $\det(A)=\frac{1}{64}$ I'm looking for a 90s (or early 2000s) scifi (mini)series where a boy and old man chase a black guy in metal suit. I think they were going through different dimensions. I remember part of it, but I don't think I ever saw how it ended. I remember my friend telling me there was a twist at the end. I think they were trying to find something and he was always ahead of them.. Word with the same meaning as "good moments" or "pleasant memories"? Is there a single word with the same meaning as "good moments" or "pleasant memories"? I'm looking for a word which describes good thing(s) that happened to someone. The only word I can think of is "joy".  Some examples might be:   Wayne has many pleasant memories of the days spent with the family. She could remember many good moments from the last weekend. Question Prove that for every integer k≥1, exists a self-complementary graph with 4k vertices half of which are of degree 2k-1 and the other half of degree 2k.  My approach So, I think the easiest way to prove what is asked is by induction. I can prove the base case for k=1, but as far as the inductive step is concerned, I cannot seem to reach a conclusion as to why if the statement holds for n, then it holds for n+1.  Any help would be appreciated. How can I upgrade to Java 1.8 on an Amazon Linux Server? I tried sudo yum update but it just keeps java "1.7.0_75". I need 1.8 for it to work with another application but can't figure out how to upgrade it. Do I need to manually install it somehow? There's not much information on this on the internet as far as I can see. Specs:   java version "1.7.0_75" OpenJDK Runtime Environment (amzn-2.5.4.0.53.amzn1-x86_64 u75-b13) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)   When I try update now:     [ec2-________]$ sudo yum update Loaded plugins: priorities, update-motd, upgrade-helper amzn-main/latest                                         | 2.1 kB     00:00 amzn-updates/latest                                      | 2.3 kB     00:00 No packages marked for update   Is there anything else I need to do? Thanks. Distribution of range of Uniform $(0,1)$ distribution Does iTunes work (well) on Ubuntu? I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it? Compactly supported continuous function is uniformly continuous Proving that $m+n\sqrt{2}$ is dense in $\mathbb R$ When should I use \input vs. \include? There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of? The Weyl equidistribution theorem states that the sequence of fractional parts ${n \xi}$, $n = 0, 1, 2, \dots$ is uniformly distributed for $\xi$ irrational.   This can be proved using a bit of ergodic theory, specifically the fact that an irrational rotation is uniquely ergodic with respect to Lebesgue measure. It can also be proved by simply playing with trigonometric polynomials (i.e., polynomials in $e^{2\pi i k x}$ for $k$ an integer) and using the fact they are dense in the space of all continuous functions with period 1.  In particular, one shows that if $f(x)$ is a continuous function with period 1, then for any $t$,  $\int_0^1 f(x) dx = \lim \frac{1}{N} \sum_{i=0}^{N-1} f(t+i \xi)$. One shows this by checking this (directly) for trigonometric polynomials via the geometric series.  This is a very elementary and nice proof.  The general form of Weyl's theorem states that if $p$ is a monic integer-valued polynomial, then the sequence ${p(n \xi)}$ for $\xi$ irrational is uniformly distributed modulo 1.  I believe this can be proved using extensions of these ergodic theory techniques -- it's an exercise in Katok and Hasselblatt.  I'd like to see an elementary proof.  Can the general form of Weyl's theorem be proved using the same elementary techniques as in the basic version? Why does the wire-frame material fades across the object? Why does the wire-frame material fades across the object?  Here is what I did - I created a new material and I selected on "Wire" and I made it shadeless. Then, I created a new material and assigned the new material on the on the object. However, doing it that way, it allows me to render both materials - "Wire" and "Surface". Then I get a fading result like this -    But I want all of the edges to be shown, not a fading result. How can I make that?  Here is the blend file if anybody wants to check it out -