[FFmpeg-user] How can I reduce the cpu usage of ffmpeg?
voip at gmx.ca
voip at gmx.ca
Mon Jan 12 19:14:39 CET 2015
On Sunday, January 11, 2015 at 8:40 AM, "Nicholas Robbins" <nickrobbins-at-yahoo.com at ffmpeg.org> wrote:
> On Sunday, January 11, 2015 6:26 AM, Moritz Barsnick <barsnick at gmx.net> wrote:
> > On Sun, Jan 11, 2015 at 02:07:57 +0100, voip at gmx.ca wrote:
> > > I'm a little confused as to why in the first example the sleep
> > > command is followed by a ; while in yours it's followed by && -
> > > two different ways to indicate the same thing?
> >
> > No. One '&' followed by a second command launches the second command
> > once the first one has dropped to the background.
> >
> > Two '&&' lauches the second command only when the first one terminates
> > and returns with "success" (exit code 0). 'sleep & command' makes no
> > sense to me.
> && launches the second command if the first one succeeds.
> || launches the second command if the first one fails.
> ; launches the second command after the first one finishes.
(I took the liberty of reformatting the quoting so it looks a bit neater, and to cut out extraneous text)
Just wanted to thank you guys for the explanations, I much appreciate them! Seems that Bash is more capable than I originally thought.
More information about the ffmpeg-user
mailing list