[FFmpeg-user] ffmpeg does nothing but using CPU

Cecil Westerhof Cecil at decebal.nl
Tue Oct 20 22:29:46 EEST 2020


Moritz Barsnick <barsnick at gmx.net> writes:

> On Tue, Oct 20, 2020 at 19:33:05 +0200, Cecil Westerhof wrote:
>> When looking into the log-file I see it ends with:
>>     Enter command: <target>|all <time>|-1 <command>[ <argument>]
>>
>> What could be happening here?
>
> This looks like something from stdin triggered interactive mode.
>
> On Tue, Oct 20, 2020 at 20:38:03 +0200, Cecil Westerhof wrote:
>> The command I use in the bash script is:
>>     nice -n 10 ionice -c3                           \
>>          ffmpeg -y                                  \
>>                 -i          "${inputfile}"          \
>>                 -vf         scale=${xDimension}:-2  \
>>                 -crf        28                      \
>>                 -acodec     libmp3lame              \
>>                 -qscale:a   9                       \
>>                 -preset     veryfast                \
>>                 "${outputfile}" 2>"${logfile}"
>
> If you add the option "-nostdin", this mode cannot be triggered. Do try
> that. (You can then no longer interactively quit ffmpeg, of course.)

I will add that. It is in a batch, so I do not need the interactivity.
;-)

Does it matter where I put it? (I am thinking between -i and -vf.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list