[Libav-user] ffmpeg on android - cannot write output file

Cen-bi Liu cenbiliu at gmail.com
Fri Feb 13 17:34:30 CET 2015


Thanks, that's a good point to see the error code. I will give it a try. I
just thought failure to open will result in a negative number. From the
list of error codes,
https://www.ffmpeg.org/doxygen/2.3/group__lavu__error.html, I don't see a
whole bunch related to different I/O errors, though.

Best,
Cen

On Fri, Feb 13, 2015 at 10:26 AM, Nicolas George <george at nsup.org> wrote:

> Le quintidi 25 pluviôse, an CCXXIII, Cen-bi Liu a écrit :
> > if ((error = avio_open(&output_io_context, filename,
> >                        AVIO_FLAG_WRITE)) < 0) {
> >     __android_log_print(ANDROID_LOG_ERROR, "encoder","couldn't open
> > output file");
> >     exit(1);}
>
> Why are you not doing anything with the error code?
>
> Regards,
>
> --
>   Nicolas George
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>


-- 
===============================

Cen Bi Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150213/563b7a28/attachment.html>


More information about the Libav-user mailing list