ffmpeg: how to convert mov file to gif , and gif is resized how to use ffmpeg to convert mov file to gif , and gif is resized directly?  Here is the   I firstly convert mov to gif,  ffmpeg -i input.mov -pix_fmt rgb24 output.gif,  then use imageMagick to resize the gif.  convert   output.gif -coalesce temporary.gif convert -size 756x1504   temporary.gif -resize 189x376 smaller.gif   Here is the result:     How to use ffmpeg to do this directly, without using imagemagick
How do I convert a video to GIF using ffmpeg, with reasonable quality? I'm converting a video to GIF file with ffmpeg:  ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif   It works great, but output gif file has a very low quality.  Any ideas how can I improve quality of converted gif?
Why is $M\frac{dv}{dt} = v_{rel} .\frac{dm}{dt}$ correct and $(M - dm)\frac{dv}{dt} = v_{rel} .\frac{dm}{dt}$ wrong? Newton's 2nd law of motion can't be applied for mass-varying systems. Another force, known as Thrust must come to play. It can be measured using law of conservation of linear momentum. $$\text{Thrust} M.\dfrac{dv}{dt} = v_{rel} .\dfrac{dm}{dt}.$$   where $M$ is the mass of the system;   $\frac{dm}{dt}$ is the rate at which the mass changes;    &amp;    $v_{rel}$ is the relative velocity of the exhausted mass w.r.t to the main system.    This is what my book writes. Now, the left hand side of the eqn. represents force on mass $M$ whereas the right hand side represents the force due to variable mass. How can they be equal? During the application of thrust, $M$ does change and the equation had to be $$ (M - dm). \dfrac{dv}{dt} = v_{rel} .\dfrac{dm}{dt}$$ But that is not the book's equation. Why is mine wrong? What is the intuition? Namespaces and Operator Overloading in C++ When authoring a library in a particular namespace, it's often convenient to provide overloaded operators for the classes in that namespace.  It seems (at least with g++) that the overloaded operators can be implemented either in the library's namespace:  namespace Lib { class A { };  A operator+(const A&amp;, const A&amp;); } // namespace Lib   or the global namespace  namespace Lib { class A { }; } // namespace Lib  Lib::A operator+(const Lib::A&amp;, const Lib::A&amp;);   From my testing, they both seem to work fine.  Is there any practical difference between these two options?  Is either approach better? Is there anything I can do about someone who has pointed their domain at my ip? This is kind of a weird request. For some reason whoever owns safeandbuy.com has pointed their domain at my IP address. The reason it's a problem is that I'm having all kinds of crawlers that are trying to crawl my site with that domain name.   Is there anything I can do about this? Show $f(x)=x\ln x$ is not uniformly continuous Show $f:(0,\infty)\rightarrow \mathbb{R}, f(x)=x\ln x$ on $(0,\infty)$ is not uniformly continuous.    I think that the general way to prove that something is not continuous in a metric space is to let $\epsilon=...$ and show that $\forall\delta&gt;0$, $d&#39;(f(x)-f(y))&gt;\epsilon$. I can't use the Mean Value Theorem because we haven't gone over it yet.    Here's an attempt: Let $\epsilon=1$. Without loss of generality, let $x&gt;y&gt;0$. $|x\ln x-y\ln y|&lt;|(x-y)(\ln x)|\leq|x-y||\ln x|$...$\delta=\frac{\epsilon}{\ln x}$ and therefore doesn't work for all $x$? How to measure a qubit Hamiltonian in qiskit multiplicative group of infinite fields How do I create an animated gif from still images (preferably with the command line)? I want make a .gif animated picture from a given set of .jpg pictures.  I would prefer to do it from the command line, so command line tools would be very welcome. I don't understand how to use Fermat's little theorem to find remainders e.g if we are asked to find remainder of $50^{50}$ on division by $13$, what is a and what is $p$ in the formula?  Also I wanted to check can we use both congruence classes as well as Fermat's little theorem to find such remainders? How would be write $50^{50}$ on division by $13$ in terms of congruence classes to find the remainder?  I don't exactly understand what a congruence class is, what does it tell us and how is it related to this? Why mass terms are forbidden? I would like to clarify my understanding on why mass terms in Lagrangians of gauge theories are forbidden.  It's often repeated that particle masses are forbidden by electroweak symmetry because it is a chiral theory. I want to make a distinction between fermionic masses and gauge boson masses.   Looking through the transformations of gauge boson mass terms, it seems that these are in fact always forbidden by their respective gauge symmetry. Is this correct? (So if there was no SU(2) symmetry, the photon and gluon would still need to be massless?)  In which case, the electroweak symmetry is actually responsible for forbidding all other mass terms (i.e. weak boson masses and fermion masses) due to the usual chiral arguments. Is this correct? Shrink Tempdb log file when reaching a specific size how I can shrink tempdb log file when reaching a specific size?? I'm scheduling job to shrink tempdb but still I face a problem of disk space due to tempdb is full! Are security.ubuntu.com updates eventually merged into normal updates? Upon my observation, seems new packages will first appear in security.ubuntu.com, but if you upgrade later, they will appear in XX.archive.ubuntu.com (depends on your config),  Was that true ? How long will homemade salad dressing stay good in the fridge? How long can I keep salad dressings that I made?  Since this is probably affected by what it's made up of, let's say we're talking about different salad dressings made from a combination of the following ingredients: mayonnaise, ketchup, mustard, vinegar, sugar, garlic, oil, salt, pepper, lemon juice...  And are there any other ingredients that I should watch out for that could affect salad dressing shelf life? Any rules of thumb regarding storing salad dressings...? When you pick up items in Skyrim it tells you the value of each item. However when I go and sell the items the merchants are only paying 30% of this value, at best.  Discounting any perks or other effects, how high does Speechcraft have to be before merchants start paying full value for items? When I run the logistic regression, two independent variables have VIF values greater than 10 like 13 or so. Logistic regression is the one I will use to measure the overall change in the dependent variable with one incremental changes in every each independent variable. However, when I run the linear regression model version on my same data, the VIF values I get from all the independent variables are either slightly greater than 1 or around 5 or 6. Besides, all the coefficients are highly significant all below 0.01.  If so, is it safe to use my logistic regression model to find out the incremental effect of every each independent variable without dropping out any independent variables?   If my purpose is to find an incremental effect of every each independent variable on the overall dependent value in a logistic regression model, is multicolinearity an important problem to consider? Can I ignore it?   If my p-values are all less than 0.01 which is the same indicator as t-value, will I still need to worry about colinearity issue even though my VIF scores for two variables are around 13-14? Based on what you said, if p-value is safe enough, will this be still a problem?  I am also referring to the following website comment:                                                                     So, in sum, my ultimate goal is to use the final output from the logistic regression model generated from the independent variables and one binary dependent variable. If so, do you think I can ignore the multicolinearity problem? JAVA Bad variable reference? Receiving strange output - possibly memory address? I want to use Windows 7 or 8 but I don't know to install a software like VirtualBox which we have to do with the use of terminal. I don't want to use Windows as a main OS so I want to use it in VirtualBox. Can you tell me how to install downloaded files in Ubuntu. I once installed java runtime but don't know the meaning of the lines which I have written in terminal, I just did as the blog posted by a man says. I am asked to determine if a series converges or not:  $$\displaystyle\sum\limits_{n=1}^{\infty} \frac{(2^n)n!}{(n^n)}$$  So I'm using the $n$th root test and came up with $\lim_{n \to {\infty}}\frac{2}{n}\times(\sqrt[n]{n!})$ I know that the limit of $\frac{2}{n}$ goes to $0$ when $n$ goes to infinity but what about the $(\sqrt[n]{n!})$? In D&amp;D 4e there was an option to Delay your initiative:     Perform your actions as desired and adjust your initiative to your new   position in the order.   Does this rule to change initiative order still exist in 5th edition? I cannot find it in the PHB. let $\gamma$ be a closed continuosly differentiable path in the upper half plane  not passing through $i$. What are the possible values of the integral $$\frac{1}{2\pi i}\int_{\gamma}\frac{2i}{z^2+1}dz$$ well the integral can be broken like  $$\frac{1}{2\pi i}\int_{\gamma}\frac{2i}{(z+i)(z-i)}dz=$$  $$\frac{1}{2\pi i}\int_{\gamma}\frac{dz}{z-i}dz-\frac{1}{2\pi i}\int_{\gamma}\frac{dz}{z+i}dz=$$ by Cauchy Integral Formuale $$f(i)-f(-i)$$,so the second integral is $0$ as it is analytic in the upper half plane, but the first integral iss just $n(\gamma,i)$, which iss the windding number of $\gamma$ around $i$ what more I can say? Thank you. What are all the correct answers to the Squirrel's questions, and what is the reward when I get them all correct? I encountered The Squirrel at "A tree."              |   |                                                                         |   |                     "   Hello, I'm The                        |             |                        Squirrel. I can                        |             |                      provide you candies,                     |             |                      and lots of things.                                    |                      I know how much you                                    |        _.-'''-,      love candies. But I                                    |      .'        `\     feel alone in this                                    |     /           /          forest.       "                         |        |    /      .--^_^                                                   |        |    |     /  C ,,\                                                           |    |    |   \  _.)                           ___                            |     \   |   /  \                   ____.----'.-'                            |      '-, \./ \)\)               .-' --  __.-'                   |            \        `-/   );/           ___/  - _.-'                        |             \_________''--'-'________.-' --    /                            |              -   --        -  -     -     __.-'                                              -    --    -     --   --  /                                                 _________________________.-'                                 He asks you some questions. What are the correct answers, and what is the reward for getting them correct?