[FFmpeg-user] Detecting errors

Rossana Guerra guerra.rossana at gmail.com
Fri Aug 17 06:47:45 CEST 2012


2012/8/16 Michael Bradshaw <mbradshaw at sorensonmedia.com>

> On Thu, Aug 16, 2012 at 8:20 PM, Rossana Guerra
> <guerra.rossana at gmail.com> wrote:
> > 2012/8/16 Murthy avsn <avsn9849625263 at hotmail.com>
> >
> >>
> >> > >
> >> > > 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
> >>
> >>
> >> Thanks Michael
> >> I think -loglevel 'error' is working for me.I am also using -report to
> >> make output of the command to a file .
> >> Thank you all.
> >>
> >
> > the loglevel error didn't work for me...it was empty all the time.
> > Why was so?
>
> 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




> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> Please trim this above part when quoting :)
>
> --Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list