Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfeMovie (video & audio playback library with many codecs)  (Read 149703 times)

0 Members and 3 Guests are viewing this topic.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #180 on: April 02, 2015, 12:29:04 am »
Certainly. It's quite long so I'll post the lines above the make error
I've seen posts with similar errors where it looks to be related to recent changes in MinGW. Didn't check further about this point for now. At least locally I can still build FFmpeg just fine.

Here is an "as simple as possible" program that breaks on .play() . Also included the SFML and sfeMovie files I used to make it. I keep the SFML folder in C:\. It's on Dropbox (click me)

If there's anything else you need to know, let me know.
Thanks :) I could easily reproduce the same error as you. I checked with fresh binaries from my website and SFML's one, same problem. Then I rebuilt sfeMovie and the error disappeared. Just replacing sfeMovie's dll made the problem appear again, while both dlls are supposed to be built from the exact same sources.

Can you try with https://www.dropbox.com/s/rinmsi1i0fylm7m/sfeMovie-d.dll?dl=0 and tell me if it also crashes? If it doesn't then something is wrong with the build environment that generate the downloadable files...
Want to play movies in your SFML application? Check out sfeMovie!

A Docile Sloth

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #181 on: April 02, 2015, 12:57:27 am »
I've seen posts with similar errors where it looks to be related to recent changes in MinGW. Didn't check further about this point for now.
Fair enough. I'll have a look around and see what I can find out.

Can you try with link and tell me if it also crashes? If it doesn't then something is wrong with the build environment that generate the downloadable files...

This .dll doesn't result in a crash. The video plays fine :)

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #182 on: April 09, 2015, 08:52:31 pm »
I've done some investigations. The problem does not occur with MinGW binaries and SFML-2.1. However MinGW binaries don't look to be compatible with SFML-2.2 (which uses a more recent version of MinGW). Unfortunately MinGW upgrade looks to be buggy (crashing) so I could not check this for now. Will try to do a full clean install of MinGW. If it doesn't change anything, I don't know where GCC 4.9.2 MinGW (DW2) used for SFML comes from...

So at least the problem is not with the FFmpeg dlls. As for Visual Studio, I noticed the build slaves have "Update 3" installed while I have "Update 4" locally. So I'm upgrading the remote installation and I'll see if it gives better results.
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #183 on: April 09, 2015, 11:01:21 pm »
Grrr, I've had the bad idea of reinstalling MinGW too (in case it was the source of the problem), and now I get the same compilation error as you ;D
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #184 on: April 13, 2015, 09:00:31 pm »
News again. I've done tests with older releases of sfeMovie, in order to check when the problem appeared. And none of the binaries up to last december worked. So I tried to replace SFML binaries and... surprise, even the latest binaries work fine with SFML 2.1, but not 2.2.

What is weird is that SFML 2.1 binaries are for VS2012 builds, while I use VS2013. So it should not work. And SFML 2.2 binaries, both VS2012 and VS2013 do not work. While SFML 2.2 for VS2013 should be the perfect match.

So for the short term, using SFML 2.1 binaries for VS2012 should do it. As for the fix, I still need to check whether this is an issue with SFML 2.2 or if it a problem with the SFML binaries I have been using till now to provide the downloads.
Want to play movies in your SFML application? Check out sfeMovie!

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #185 on: April 15, 2015, 12:11:18 am »
@A Docile Sloth
It looks like the problem was the SFML binaries I was using on the build system. I replaced that with what should be used and now I can't reproduce the problem anymore. The download links provide the updated binaries. Can you confirm that it is fixed?
« Last Edit: April 15, 2015, 12:13:20 am by Ceylo »
Want to play movies in your SFML application? Check out sfeMovie!

upVote

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #186 on: April 15, 2015, 06:06:13 pm »
Hi Ceylo, I have work with sfeMovie and SFML 2.2 all files provided by you in this thread works fine.
Now when I was running the app in Visual Studio 2013 in release mode it was asking for the libiconv-2.dll witch is part of mgbw compiler so what I did I went to the official website and obtain the library from them, now everything works fine and it is official now SFML 2.2 and sfemovie don't have any problem with binaries file. And the Video play fine.

here is the link to download visual studio 2013 release sfemovie decoders . link http://sfemovie.yalir.org/latest/downloads.php
and now here is a Drop Box link containing all libraries needed including SFML 2.2 as well to build the program your-self. https://www.dropbox.com/s/53rnkwwypxybcez/sfml%20console%20app.rar?dl=0
Thank you so much for this amazing library it save me a lot of time.:-)

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #187 on: April 29, 2015, 11:14:43 pm »
Hi upVote,

I'm glad you like it :) As for the additional dlls… I must admit I have never noticed ;D . Just because I have MinGW binaries in my PATH. That's really good to know, and one more reason to get rid of MinGW for building FFmpeg :)
Want to play movies in your SFML application? Check out sfeMovie!

neobit

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #188 on: May 01, 2015, 02:25:23 am »
I have a little problem while I tryed to compile the source code. I used the source code from https://github.com/Yalir/sfeMovie/zipball/v1.0 and I got this error:

Linking CXX shared library libsfeMovie.dll
C:/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lavdevice
C:/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lavformat
C:/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lavcodec
C:/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lavutil
C:/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot fin
d -lswscale
collect2.exe: error: ld returned 1 exit status
CMakeFiles\sfeMovie.dir\build.make:226: recipe for target 'libsfeMovie.dll' fail
ed
mingw32-make[2]: *** [libsfeMovie.dll] Error 1
CMakeFiles\Makefile2:62: recipe for target 'CMakeFiles/sfeMovie.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/sfeMovie.dir/all] Error 2
Makefile:115: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #189 on: May 01, 2015, 02:27:28 pm »
Hi neobit,

From what I can see you downloaded the sources of version 1.0. It is quite old and the build system and features have evolved a lot in the meantime. I won't bring any fix to this version so I recommend that you download the latest sources from the GitHub page https://github.com/Yalir/sfeMovie (download zip button on the right).

A part from that I see that you're using mingw32-make. Building requires more than that mingw32-make, it also requires that you run make from a real Shell environment (namely the one provided by MinGW when installed with MSYS).
Want to play movies in your SFML application? Check out sfeMovie!

neobit

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #190 on: May 02, 2015, 02:14:19 am »
I really don't understand something,  I done like it's said in the tutorial from your website. CMake GUI generates a makefile. If I try to run this file from bash it will not work, because CMake GUI generates a Windows style makefile, that contains Windows PATH's. What should I do? It's the first time I used this.

Thanks for all your help.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #191 on: May 02, 2015, 11:17:26 am »
MinGW knows how to handle Windows paths. I'm not sure about what you mean when saying "run this file". Apart from the details specified in the Getting Started section, you're just supposed to run CMake with "MSYS Makefiles" as generator and then run 'make' within the MinGW terminal with the current working directory being your build directory.
Want to play movies in your SFML application? Check out sfeMovie!

neobit

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #192 on: May 02, 2015, 01:18:55 pm »
Now I have an error at line 139, in build_ffmpeg.sh file:

{ echo "$args" | xargs "${temporary_ffmpeg_dir}/configure"; }

xargs command not found ( I run make from bash like you said )

The first problem was solved, I have H:/ partition, so the script have only from C to G.

Thanks so much for your help.

-------------------------------------------------------------------------------------------

Solved, my MSYS version was so old, so I downloaded a new version from here :

http://sourceforge.net/projects/mingwbuilds/files/External%20binary%20packages/

Thanks again for all your help
« Last Edit: May 02, 2015, 01:40:51 pm by neobit »

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #193 on: May 02, 2015, 02:18:42 pm »
So in the end could you get everything to work?
Want to play movies in your SFML application? Check out sfeMovie!

neobit

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: sfeMovie Project [v1.0 released] [looking for developers]
« Reply #194 on: May 02, 2015, 04:24:38 pm »
Yes, thank you so much for your help!

 

anything