Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: 1 [2] 3 4 5

Author Topic: Ressurecting the Theora Plugin project  (Read 10548 times)

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #15 on: August 01, 2008, 08:32:59 AM »

Kreso - I am happy to help you test whatever changes to make - add me on msn :

renegadeandy@hotmail.com

or what do you use?

I've added you. I prefer email communication though;


@pjcast - I see, a good idea :) I'm beginning to understand the whole process better.

@pjcast - I've sent you an email before, not sure if you've read it: I'd need svn write access on ogreaddons/videoplugin so I can open up a branch and start with some coding;

I was thinking of creating a new folder 'theoranew' and in it trunk, branches and tags;
Logged

renegadeandy

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 14
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #16 on: August 01, 2008, 08:48:55 AM »

Its useful for fast communication between us however.

I am online now - added you but i think you are now offline :S
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: Ressurecting the Theora Plugin project
« Reply #17 on: August 01, 2008, 09:29:59 AM »

Sorry, I no longer have access to Ogreaddons since it moved out of Ogre CVS. I could possible request and get access/admin, but don't see much of a point right now.

Two options:
1) You can request access from Sinbad
2) And I think best option, simply create/request a dedicated project space from Sourceforge.net for such a project. Then, you (anyone involved) would have free control over the SVN/project space. This could take 3-5 days. But, that doesn't stop you from developing or even creating a local SVN repo and later importing.
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #18 on: August 01, 2008, 11:50:07 AM »

@pjcast: hmm, good idea, I'll do that then.
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #19 on: August 01, 2008, 02:39:50 PM »

I've registered a new project on sourceforge, let the coding begin :)

https://sourceforge.net/projects/ogrevideo/
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: Ressurecting the Theora Plugin project
« Reply #20 on: August 01, 2008, 02:41:54 PM »

I've registered a new project on sourceforge, let the coding begin :)

https://sourceforge.net/projects/ogrevideo/

oO - Wow, that was quick. Last i did such a thing, it took a week. And OIS page took at least 3 days. Impressive :)
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #21 on: August 02, 2008, 02:54:10 AM »

a potentially stupid question: how can you debug the plugin if it is loaded dynamically in ogre?
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: Ressurecting the Theora Plugin project
« Reply #22 on: August 02, 2008, 03:22:50 AM »

You can still link into it normally, any breakpoints you put will still work fine.
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #23 on: August 02, 2008, 05:02:55 AM »

Compiling the video plugin with the theora build from video plugin svn (which is very old!) compiles, however, when compiling with libtheora1.0beta3, I get a few linker errors, anyone know what might be the cause? I really don't want to use an ancient version of theora;

I am compiling everything on windows xp sp2, with visual c++ express 2008

Code: [Select]
3>LINK : ..\bin\debug/Plugin_TheoraVideoSystem.dll not found or not built by the last incremental link; performing full link
3>   Creating library .\..\bin\Debug/Plugin_TheoraVideoSystem.lib and object .\..\bin\Debug/Plugin_TheoraVideoSystem.exp
3>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
3>theora_static_d.lib(decode.obj) : error LNK2019: unresolved external symbol _theorapackB_readinit referenced in function _th_decode_packetin
3>theora_static_d.lib(decinfo.obj) : error LNK2001: unresolved external symbol _theorapackB_readinit
3>theora_static_d.lib(decode.obj) : error LNK2019: unresolved external symbol _theorapackB_read referenced in function _oc_dec_frame_header_unpack
3>theora_static_d.lib(decinfo.obj) : error LNK2001: unresolved external symbol _theorapackB_read
3>theora_static_d.lib(huffdec.obj) : error LNK2001: unresolved external symbol _theorapackB_read
3>theora_static_d.lib(dequant.obj) : error LNK2001: unresolved external symbol _theorapackB_read
3>theora_static_d.lib(decode.obj) : error LNK2019: unresolved external symbol _theorapackB_read1 referenced in function _oc_dec_frame_header_unpack
3>theora_static_d.lib(huffdec.obj) : error LNK2001: unresolved external symbol _theorapackB_read1
3>theora_static_d.lib(dequant.obj) : error LNK2001: unresolved external symbol _theorapackB_read1
3>theora_static_d.lib(decinfo.obj) : error LNK2019: unresolved external symbol _theorapackB_bytes referenced in function _oc_comment_unpack
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: Ressurecting the Theora Plugin project
« Reply #24 on: August 02, 2008, 07:22:14 AM »

I suggest you search the theora code for those function. Likely, there is some define you need to add to there build file to compile properly (there windows project files are not always so perfect - which is why I included theora for windows users :)).
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #25 on: August 02, 2008, 01:09:32 PM »

I finally managed to get everything compiled and working (I had to start with a fresh demo, the current demo is for dagon)


anyway, I'm streaming a large ogg and my framerate drops to ~20, how come? the theora code is executing in a diferent thread, and I am calling blitFrameCheck once a frame. it shouldn't affect the main program (I have a quad-core computer which makes it even weirder)
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: Ressurecting the Theora Plugin project
« Reply #26 on: August 02, 2008, 06:45:46 PM »

Not sure. I've gotten much better framerates than that. However, size of the movie will drag everything down. As I've said, libTheora is not very optimized.
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #27 on: August 03, 2008, 12:35:05 AM »

it's probably something related to threads. in my aplication I've got hundreds of frames, because the plugin ran in a seprate thread. No idea why this happens. will investigate.
Logged

Kreso

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 42
    • View Profile
Re: Ressurecting the Theora Plugin project
« Reply #28 on: August 03, 2008, 04:20:02 AM »

it was Debug/Release related, should've figured it would be it :)

Anyway, my first step will be to benchmark the current plugin on various machines and movies of diferent resolutions and bitrates, to see which part of the plugin takes the most time.

I'm open for bets, the losers have to contribute random patches :D
But seriosly, I think the biggest bottleneck is YUV->RGB conversion, at least on hi-res videos.


@pjcast: I havent tried it yet, how well does seeking work in the current plugin?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: Ressurecting the Theora Plugin project
« Reply #29 on: August 03, 2008, 06:36:11 AM »

Seeking is experimental, and relatively approximate. Also, it creates a bit of distortion as playback does not always start on a keyframe. So, until the keyframe is hit, video looks a little messed up. A work around would be hit the exact byte location in the file of the keyframe so seeking goes right there (if possible) or discard image data until the frame is a keyframe.
Logged
Pages: 1 [2] 3 4 5