[Libav-user] Different behaviour when compiling FFmpeg with MingW and VC++2010

cyril apan cyrilapan at yahoo.fr
Fri Apr 11 14:16:34 CEST 2014


Le Vendredi 11 avril 2014 10h23, Anshul <anshul.ffmpeg at gmail.com> a écrit :
 
cyril apan <cyrilapan at yahoo.fr> wrote:
>Le Vendredi 11 avril 2014 5h45, Anshul <anshul.ffmpeg at gmail.com> a
>écrit :
> 
>cyril apan <cyrilapan at yahoo.fr> wrote:
>>Hi everybody,
>>
>>I tried to compile FFmpeg with 2 different compilers on Windows 7.
>>After testing both binaries, I don't get the same behaviour. Well,
>>actually with most video files I do get the same results, but with
>some
>>files I do get different results.
>>
>>For instance, with the binaries compiled from MingW, I can decode
>video
>>frames, but with the VC++2010 version I just get an error.
>>For another video file, after seeking and trying to get a video frame,
>>the MingW version just returns a gray image while the VC++2010 version
>>returns an actual scene from the video.
>>
>>For the same code base to produce different outputs is quite
>startling.
>>Does anybody know what the difference can come from?
>>
>>Regards,
>>
>>Cyril APAN.
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Libav-user mailing list
>>Libav-user at ffmpeg.org
>>http://ffmpeg.org/mailman/listinfo/libav-user
>
>Can you explain about error you are getting.
>
>-Anshul
>
>-- 
>Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
>_______________________________________________
>Libav-user mailing list
>Libav-user at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/libav-user
>
>I've just found out that the errors are there in both versions, it's
>just that I modified something before going for the VC++ version...
>dumb late night debugging sessions.
>But the gray image for MingW while having a real picture for VC++ still
>hold true.
>
>Cyril APAN.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libav-user mailing list
>Libav-user at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/libav-user

It mighr be because you or ffmpeg is using uninitialized, just try to figure out. Why there is grey region in mingw.

My application also fails with mingw and work fine in linux.

I always end up with some problem in my aapplication.

If I am right then you have cmpiled ffmpeg library using mingw and your application with mingw where u have the issue.


-Anshul

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Yes Anshul, you're right, when I use FFmpeg dll compiled with MingW with my app, I get a gray bitmap for a certain file after seeking at a particular point and then trying to decode the frame.
When doing the same thing with FFmpeg compiled with VC++2010, I do get an actual scene from the video. In both cases, my app is compiled using VC++2010.

As my app doesn't change in any way (same code base and same compiler), the difference can only come from FFmpeg (same code base, different compilers). But I guess, I'll simply definitively switch for VC++2010 even for FFmpeg as it's working better.

Cheers,

Cyril APAN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140411/81c5798d/attachment.html>


More information about the Libav-user mailing list