Author Topic: Set an Avi/Mp4 intro by ruleset  (Read 5593 times)

Offline Angelus_EV

  • Colonel
  • ****
  • Posts: 181
  • Trust no one
    • View Profile
Set an Avi/Mp4 intro by ruleset
« on: August 13, 2015, 04:05:10 pm »
is too much to ask the ability to play a video, as intro?

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #1 on: August 13, 2015, 04:57:12 pm »
It would require additional dependencies and some coding. Current focus is on vanilla TFTD.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #2 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 ;)

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #3 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.

Offline Angelus_EV

  • Colonel
  • ****
  • Posts: 181
  • Trust no one
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #4 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!

Offline sylandro

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #5 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.

Offline Angelus_EV

  • Colonel
  • ****
  • Posts: 181
  • Trust no one
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #6 on: August 14, 2015, 05:19:29 am »
« Last Edit: August 14, 2015, 05:21:32 am by Angelus_EV »

Offline sylandro

  • Sergeant
  • **
  • Posts: 18
    • View Profile
Re: Set an Avi/Mp4 intro by ruleset
« Reply #7 on: August 14, 2015, 05:46:13 am »
Try this site then tell me...

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.