[FFmpeg-user] Detecting errors

Rossana Guerra guerra.rossana at gmail.com
Fri Aug 17 04:05:55 CEST 2012


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.
>
> Thank you,
> Thanks a lot for your support.
>

some ffmpeg- command
then I check for  $?

see this: http://tldp.org/LDP/abs/html/exit-status.html

Regards


I had the same problem, I am not able to detect an exact error, the most I
achieve was identifying it  according to the command I am using.
I do the following:

>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list