Videos in Spring?

Videos in Spring?

Requests for features in the spring code.

Moderator: Moderators

Post Reply
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Videos in Spring?

Post by gajop »

Would anyone else care to see Spring being capable of supporting videos?
As far as use cases go, I'm mostly thinking about missions/scenarios, as I can't really recall any game that extensively uses videos in skirmish mode (RA3 sometimes has AI videos appear in skirmish once you explore them/defeat them).

I've found this: http://stackoverflow.com/questions/6495 ... gl-texture, which doesn't seem all that complex to do.

I'd mostly like to know, from a dev perspective, is there any known issue that may make this much harder?

I could potentially try to do this myself, although probably won't be able to prioritize on it for this/next month, but I'd like to see if anyone would care for this.

I assume adding some unsynced lua read&control wouldn't be too hard, either. f.e

Code: Select all

Spring.LoadVideo(path, x, y, width, height) -> videoId
Spring.StartVideo(videoId)
Spring.StopVideo(videoId)
Spring.GetCurrentVideoPosition(videoId)
...
etc.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Videos in Spring?

Post by Forboding Angel »

Spring used to have a built in recorder thingy (does it still?).

Tbh, fraps and spring don't get along well at all. Using fraps with spring tanks fps (even though you can't tell from the resulting video) and I would like to see it fixed.

I can record full 1080p in nuclear dawn without any noticeable performance hit. For some reason, in spring, I'll get maybe 15 fps (even though fraps and spring both display 30+ on the meters).

Imo, I think it's an issue with spring more than anything.
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Videos in Spring?

Post by gajop »

This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Videos in Spring?

Post by FLOZi »

gajop wrote:This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.
Forb is is illiterate, give him a break. :P
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Videos in Spring?

Post by Forboding Angel »

gajop wrote:This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.
It would have been clearer had you actually said that. Lurker has done it. You should talk to him.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Videos in Spring?

Post by knorke »

lurkers thread:
http://springrts.com/phpbb/viewtopic.ph ... =video+lua
not much info though and links are dead.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Videos in Spring?

Post by Forboding Angel »

Well he had it all written, and the framework for it was in evo at one point. Shoot him a message, I imagine he prolly still has it lying around. Lurker isn't generally one to be careless with things he has created.
User avatar
albator
Posts: 866
Joined: 14 Jan 2009, 14:20

Re: Videos in Spring?

Post by albator »

as far as i remember Floris did some nice videos with fraps and got no pb with fps and afair when I talk about it about the fps issue, he manage to find a nice codec to solve the issue.

Maybe you should ask him
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Videos in Spring?

Post by smoth »

knorke wrote:lurkers thread:
http://springrts.com/phpbb/viewtopic.ph ... =video+lua
not much info though and links are dead.
Lurkers stuff worked but had serious issues, IIRC a massive hang and all the frames were stored as images.
User avatar
Floris
Posts: 611
Joined: 04 Jan 2011, 20:00

Re: Videos in Spring?

Post by Floris »

I didn used Fraps but "Taksi Desktop Video Recorder". (and FFDSHOW codec, but that aint that important I guess)

And... because I didnt have an uber pc I only set to record with 6..7 fps and then speed that up to x4 to make it around 25..30 fps.
I guess I also could record at say 10...15fps fairly well, but gamespeed x3...x4 is more interresting for a full game to view anyway.

Also because I was live playing myself too, and with slightly higher quality settigns too. Make sure to put smoothScroll and smoothCamera widgets on.


(my laptop specs: i7 1.6Ghz, HD4670, 4 GB ram, SSD)
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Videos in Spring?

Post by Funkencool »

gajop wrote:This has nothing to do with recording, it's about the ability to embed and play videos inside of spring.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Videos in Spring?

Post by Forboding Angel »

I told you, the original post is poorly worded.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Videos in Spring?

Post by knorke »

nonsense. people just do not read before posting.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Videos in Spring?

Post by Forboding Angel »

I read it and I still misunderstood what he was saying.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Videos in Spring?

Post by AF »

I would like to see Lurkers work
Post Reply

Return to “Feature Requests”