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

Author Topic: sfTheora 1.4 - Play videos in SFML  (Read 70008 times)

0 Members and 2 Guests are viewing this topic.

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #45 on: May 24, 2011, 03:11:54 pm »
Fixed:
http://hotfile.com/dl/118796640/bef0cbb/SFMLTheora127.zip.html

I basically just changed the OnSeek to sf::Uint32 instead of float.
And in the main function (in main.cpp), from plain GetFrameTime() to GetFrameTime() / 1000.0f.

roosterkin123

  • Newbie
  • *
  • Posts: 43
    • MSN Messenger - rogerboy@hotmail.co.uk
    • View Profile
SFMLTheora 1.3 - Play videos in SFML
« Reply #46 on: May 25, 2011, 10:55:05 pm »
Hi, thanks a lot for having a look at it again,

Unfortunately it still doesnt work.
Still a blank screen.
Is there anything I should be doing differently when loading and playing video? Since something to do with timers has changed with SFML new version.

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #47 on: May 26, 2011, 02:57:04 am »
Does the example that comes along with it works?

The only thing I've changed outside the SFMLTheora code is in main.cpp:
From
Code: [Select]
testVid->Update(sfApp.GetFrameTime());

To
Code: [Select]
testVid->Update(sfApp.GetFrameTime() / 1000.0f);

I just tried compiling it without changing that line, the result I get is a blank screen with the audio still working.

If you've changed this line and it's still not working, could you try downloading my compiled version of the latest SFML2 from my blog? It's under the Other Downloads section.  :)

roosterkin123

  • Newbie
  • *
  • Posts: 43
    • MSN Messenger - rogerboy@hotmail.co.uk
    • View Profile
SFMLTheora 1.3 - Play videos in SFML
« Reply #48 on: May 26, 2011, 09:14:48 pm »
Its now fixed thank you :D

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #49 on: May 27, 2011, 04:30:21 am »
You're welcome. Thanks for reporting the bug as well. :)

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFMLTheora 1.3 - Play videos in SFML
« Reply #50 on: June 24, 2011, 06:37:26 pm »
This is probably a stupid question but does this work with SFML 2 ?
SFML 2.1

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #51 on: June 25, 2011, 03:51:52 pm »
Yes, it does, but since SFML2 isn't a stable release yet and is constantly being updated and changed, the latest SFML 2 may not work with the latest version of SFMLTheora, if this occurs (if you find any bug), please let me know by posting on this forum, my blog, or email me, and I'll try to fix it asap.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFMLTheora 1.3 - Play videos in SFML
« Reply #52 on: June 25, 2011, 10:21:20 pm »
Thanks for the reply.

I've tried to integrate this into my project, but on compilation it says:

Quote

1>c:\projects\testproject\SFMLTheora/Video.h(35) : fatal error C1083: Cannot open include file: 'theoraplayer/TheoraPlayer.h': No such file or directory


What am I missing?

Also, I need to static link the libraries, so I guess I have to recompile them?

Thanks
SFML 2.1

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #53 on: June 26, 2011, 05:34:56 am »
SFMLTheora depends on libtheoraplayer, you'll need libtheoraplayer for SFMLTheora to work.

You can get it from the libtheoraplayer site, or if you're using MSVC++ 2010, you can get it from my site, the one on my site is compiled with MSVC++ 2010 Express, from the SVN:

http://www.zorexxlkl.com/p/other-downloads.html

If you need static libraries for libtheoraplayer, you'll have to recompile them yourself.

roosterkin123

  • Newbie
  • *
  • Posts: 43
    • MSN Messenger - rogerboy@hotmail.co.uk
    • View Profile
SFMLTheora 1.3 - Play videos in SFML
« Reply #54 on: August 18, 2011, 12:48:00 am »
As of the latest sfml2, this is now again broken. It is to do with the sf::Image changes.

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #55 on: August 18, 2011, 06:04:38 am »
I'm overseas right now and don't have access to my files, but I'll fix it once I get back, thanks for reporting again. :)


roosterkin123

  • Newbie
  • *
  • Posts: 43
    • MSN Messenger - rogerboy@hotmail.co.uk
    • View Profile
SFMLTheora 1.3 - Play videos in SFML
« Reply #57 on: August 23, 2011, 10:43:01 pm »
Your amazing, thanks it works again :D

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #58 on: August 24, 2011, 05:59:06 pm »
No prob, thank you again for reporting.

zorexx

  • Full Member
  • ***
  • Posts: 109
    • View Profile
    • zorexx@site
SFMLTheora 1.3 - Play videos in SFML
« Reply #59 on: September 14, 2011, 07:44:35 am »
Update!

SFMLTheora is now a static library, and you don't have to download libtheoraplayer anymore, I've included libogg.dll, libvorbis.dll, libtheora.dll, and libtheoraplayer.dll in a folder named "dependencies", just copy them into your project folder and you're set!

 

anything