[FFmpeg-user] Detecting errors

Tom Evans tevans.uk at googlemail.com
Fri Aug 17 13:43:45 CEST 2012


On Fri, Aug 17, 2012 at 5:47 AM, Rossana Guerra
<guerra.rossana at gmail.com> wrote:
> 2012/8/16 Michael Bradshaw <mbradshaw at sorensonmedia.com>
>>
>> Were you 1) reading from stderr (and not stdout) and 2) getting errors
>> (if there are no errors, you'll get... no errors)?
>>
>> I got an empty file when warning or errors.
>
> ffmpeg -loglevel error -i video1.avi -vf "movie=logo.png [logo]; [in][logo]
> overlay=W-w-10:10:1[out]" -vcodec libx264 -acodec libmp3lame -b 1400k -b:a
> 192k outlogov1.avi  >> logerror.txt
>
> regards

That will only capture stdout, not stderr. stderr is where the errors
are reported.

foo-cmd >stdout-goes-here 2>stderr-goes-here

Cheers

Tom


More information about the ffmpeg-user mailing list