OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Angelus_EV on August 13, 2015, 04:05:10 pm

Title: Set an Avi/Mp4 intro by ruleset
Post by: Angelus_EV on August 13, 2015, 04:05:10 pm
is too much to ask the ability to play a video, as intro?
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: AndO3131 on August 13, 2015, 04:57:12 pm
It would require additional dependencies and some coding. Current focus is on vanilla TFTD.
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: Hobbes on August 13, 2015, 06:51:40 pm
is too much to ask the ability to play a video, as intro?

Try bribing the developers ;)
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: Warboy1982 on August 13, 2015, 07:36:10 pm
mostly it depends what SDL supports i'd say. you can always convert it to flv, it may be outdated but it still exists.
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: Angelus_EV on August 14, 2015, 03:21:58 am
mostly it depends what SDL supports i'd say. you can always convert it to flv, it may be outdated but it still exists.
can i convert any video to flv and it will be played by the game...???
if i modify the ruleset of course!
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: sylandro on August 14, 2015, 04:48:50 am
mostly it depends what SDL supports i'd say. you can always convert it to flv, it may be outdated but it still exists.

What software is recommended to convert videos to FLC with audio (like the ones from TFTD, i'm guessing FLX)?

I tried using RAD Video Tools but it only converts to FLC without audio, and when tested ingame the frame rate is about 2x faster than the source. When I play the FLC through QuickTime, the video plays with the proper frame rate. I think the same happened on this thread:  https://openxcom.org/forum/index.php/topic,3639.0.html

I also tried converting to FLC/FLX through Autodesk Animator Studio and Ulead Video Studio on a legacy virtual machine, but apparently they encode the chunks in a way that isn't recognized by the video player, because the videos are skipped as soon as they are loaded. I believe the original videos were recorded using EGI.

As for the intro, right now it seems that only FLI is supported, because you need to rename your file exactly to UFOINT.FLI if you want to override it (if you specify another video in the ruleset, it is played after the original intro because it only adds it to the video array), and if you just rename the extension of a FLC file the game crashes.
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: Angelus_EV on August 14, 2015, 05:19:29 am
Try this site then tell me...

https://video.online-convert.com/convert-to-flv (https://video.online-convert.com/convert-to-flv)
Title: Re: Set an Avi/Mp4 intro by ruleset
Post by: sylandro on August 14, 2015, 05:46:13 am
Try this site then tell me...

https://video.online-convert.com/convert-to-flv (https://video.online-convert.com/convert-to-flv)

As expected, FLV files do not work, I believe Warboy meant FLC files...

This is the log output:

Code: [Select]
[13-08-2015 21:42:44] [ERROR] Flx file failed header check.