[FFmpeg-user] Detecting errors

Michael Bradshaw mbradshaw at sorensonmedia.com
Fri Aug 17 04:04:49 CEST 2012


On Thu, Aug 16, 2012 at 7:52 PM, Murthy avsn <avsn9849625263 at hotmail.com> wrote:
>
> Hi all,
> I am calling 'ffmpeg' from PHP to encode a video.here id how I am calling. exec(''ffmpeg -i inputfile outputfile 2>result.log");
> I am trying to redirect stderr to a text file.ProblemI was expecting only errors to be written to log file but the entire console output is being written to file.Is there a way to only display error with ffmpeg.How can I find a encoding failure by looking at the console out put.
> Please help me.

Look into the -loglevel option. If you set it to "-loglevel warning"
or "-loglevel error" you'll just get messages with a minimum priority
of warning or error (respectively).

--Michael


More information about the ffmpeg-user mailing list