Oddworld Forums

Oddworld Forums (http://www.oddworldforums.net/index.php)
-   Oddworld Mods & Hacks (http://www.oddworldforums.net/forumdisplay.php?f=24)
-   -   Help with adding subtitles to all FMVs + more (http://www.oddworldforums.net/showthread.php?t=22036)

Paul 09-23-2015 08:56 AM

Help with adding subtitles to all FMVs + more
 
Wondering if anyone wants to help out with these tasks:

Add srt subtitles for all DDV/MOVs
https://github.com/paulsapps/alive/issues/7

Map MOV's to individual DDV files
https://github.com/paulsapps/alive/issues/6

And generally test each FMV plays correctly, this means enduring watching each FMV quite a few times which is sending me round the bend at the moment.

Therefore L1+Circle of a possessed slig in AO demo.

Paul 12-19-2015 03:49 AM

https://www.youtube.com/watch?v=IWX8YbHrFfk

Some progress if it adds more motivation for anyone to help with these tedious tasks ;)

Varrok 12-19-2015 05:12 AM

Does the sprite system support partially transparent pixels? It looks kinda like it, but I'm not sure.

At some point there was a sprite extractor app and it didn't support it and the results looked kinda crappy

Phylum 12-19-2015 05:19 AM

If I recall the original sprites didn't have semi-transparent pixels as such. As in, the actual data didn't contain literal information about it. I think the pixel transparency was done with some DX blending that I could never quite replicate perfectly.

Varrok 12-19-2015 05:31 AM

I can add subtitles to the movies some time within the following days. I don't have the PSX version of AO, though. Will the PC version suffice? What do I have to use to convert DDV to whatever watchable format I need?

Paul 12-19-2015 07:05 AM

:

()
I can add subtitles to the movies some time within the following days. I don't have the PSX version of AO, though. Will the PC version suffice? What do I have to use to convert DDV to whatever watchable format I need?

The masher.exe lets you save in some old AVI format. Or you can play them with the new engine and just record the screen with OBS and then load that into the subtitling tool. Another option is to download a youtube recording of them, that's what I did for the INGRDNT.DDV or whatever it is.

The sprites do support semi transparency now - the decoder app didn't get this info correctly. Also some other sprites have additional blending modes that are not supported yet. E.g explosions, electric walls and shadows etc.

The semi trans stuff is done here:

https://github.com/paulsapps/alive/b.../anim.cpp#L393

Still needs a refactoring once its all working, should ideally be its own object that deals with palts/blending modes.

Varrok 12-19-2015 07:08 AM

Do you want subtitles for AO? The example file https://github.com/paulsapps/alive/b...NGRDNT.DDV.SRT is from AE

Varrok 12-19-2015 07:09 AM

:

()
Do you want subtitles for AO? The example file https://github.com/paulsapps/alive/b...NGRDNT.DDV.SRT is from AE

. Also, do you have working mirror of that masher app?

Edit: Strange. I am almost sure I clicked "Edit" instead of "Reply". What the hell

Paul 12-19-2015 07:15 AM

Ideally AO and AE DDV's. They'll both need subbing eventually.

Edit: You can grab a copy of masher here: https://github.com/paulsapps/MasherReversing

But I just remembered it only plays AE DDVs. So probably better to turn to youtube for the AO ones.

Varrok 12-19-2015 07:42 AM

I can confirm it can't read AO movies.

Youtube is inaccurate, it uses youtube codecs and doesn't always start perfectly from the 0:00 start of FMV

Paul 12-19-2015 07:59 AM

The other option is to use https://obsproject.com/ and record it out of the new engine.

Paul 12-26-2015 05:57 AM

You doing anything with this or gave up? :P

Varrok 12-26-2015 06:09 AM

Is there no another way? I don't feel like compiling anything from source code, and I don't want to make inaccurate subtitles with timing issues like those based on youtube vids

Paul 12-26-2015 02:57 PM

You can grab a CI build for Windows here to save having to compile anything:

https://ci.appveyor.com/project/paul...gqdg/artifacts

If you record the FMV from playing it in the engine itself using OBS then that should eliminate any timing issues.

Varrok 12-27-2015 01:16 AM

Ok, I'll try

Edit:

The videos don't render properly on my end.

Paul 12-27-2015 03:10 AM

Sorry, I'm so used to running this I forgot to tell you that you need to edit "resource_paths.json" in "C:\Program Files (x86)\ALIVE 0.1.0\data". Just point this to bin files of the PSX games or the install dir of the PC games.

Additionally I forgot to add main.lua to the installer, will be fixed in next build. I'll post the link when its compiled.

Varrok 12-27-2015 03:52 AM

Yeah, I already figured this out. It's not it. It plays the correct ddv movie from AO steam, but the video renders as small flashes of green-blue and a black screen. The audio is heard though.

Paul 12-27-2015 04:10 AM

Hmm might be worth trying this build anyway: https://ci.appveyor.com/project/paul...4dtp/artifacts

What GPU do you have? Does the path/animations viewer work? Sounds like its failing to render textures on your GPU for some reason. Maybe your GFX drivers are out of date?

Edit: Opps, this should be the fixed one: https://ci.appveyor.com/project/paul...tu3w/artifacts

Then you can check if there are any errors without the lua spam.

Varrok 12-27-2015 12:48 PM

No change in FMVs in the https://ci.appveyor.com/project/paul...tu3w/artifacts build.

This version crashes when I try opening levels or animation browser. Reverting back to x64 version I used before. At least it opens levels (buggy)



My GPU is Radeon HD5770, it's not a top-tier GPU but come on it should be able to handle it effortlessly. The drivers are fine.

Paul 12-27-2015 02:38 PM

Crash seems to be because BA.LVL isn't found.. behavior is just to blow up at the moment. You say the level browser opens? The textured quad rendering there is the same as what the FMV player does so if one works then they should both probably work.

x64 build isn't too well tested, I'll try the latest x64 build with AO and AE FMV's.

Edit: Seems to work, perhaps AMD issue as I think everyone who used it so far had NVIDIA cards.

Edit x2: Perhaps you could try a debug build - that has checking on every openGL call.

Created an issue for this here: https://github.com/paulsapps/alive/issues/54

Varrok 12-28-2015 02:27 AM

The animation browser tab started to work after I installed AE -_- Don't make it a requirement. The movies didn't fix in the debug version. The animations don't show at all, I click one and the item just checks. Nothing else happens. When I say the level browser works (barely) I mean the geometry shows on a black/colorful background. Or sometimes even somewhere else, like partially out of the window.


Paul 12-28-2015 04:31 AM

I see - so rendering a textured quad of any description isn't working on AMD for some reason. AE will be optional eventually, I'm in the middle of rewriting the FS stuff after which it will become more robust.

No one in the dev team has an AMD GPU so not sure what the best way to debug this is.

Maybe try this build: https://ci.appveyor.com/project/paul...semr/artifacts

Switched to SDL_GL_CONTEXT_PROFILE_CORE which is a stab in the dark fix :P

Varrok 12-28-2015 04:46 AM



Visual Studio C++ redistr 2015 and 2013 are installed. It won't let me install 2012

Paul 12-28-2015 05:06 AM

That error is STATUS_INVALID_IMAGE_FORMAT, usually when a 64bit .NET app trys to load a 32bit native DLL. Dunno why you've started getting this error :S.

The 64bit one worked previously? Maybe try the 64bit build: https://ci.appveyor.com/project/paul...5kfk/artifacts

Varrok 12-28-2015 05:10 AM

The x64 app works. The movies still don't.

Paul 12-28-2015 07:00 AM

Hmm without AMD hardware to test on I'm not sure what else to try, do you get any errors during startup in the Console window related to gfx?

Varrok 12-28-2015 08:50 AM

Nope, nothing of the sort.

Technically the movies "play", something flashes in the place the video is supposed to be. But it's hardly the movie.

RoryF 12-28-2015 09:23 AM

This is what I get when playing any .ddv:

http://i.imgur.com/Eyi6pMQ.png

Video card is AMD Radeon HD 7310.

Varrok 12-28-2015 09:57 AM

That's exactly what I have, too.

Paul 12-28-2015 10:10 AM

I've just thrown loads of "stab in the dark" fixes to OddMan360 via IRC and managed to fix it. Seems the graphics dude forgot to bind some shader attributes, so it only works by chance on Nvidia hardware :S.

This one should work:

https://ci.appveyor.com/project/paul...t3xk/artifacts

Varrok 12-28-2015 11:18 AM

The movies work now.

FrustratedAssassin 12-29-2015 12:52 AM

http://i.imgur.com/sY3ydWM.png

Help?

Varrok 12-29-2015 02:18 AM

search for versions with artifacts compiled?

FrustratedAssassin 12-29-2015 07:10 AM

How do I do that? I've never used this website before. And I've never seen the word "artifact" refer to a build/branch/whatever before.

Varrok 12-29-2015 08:10 AM

You can say artifacts are builds.

https://ci.appveyor.com/project/paulsapps/alive just choose a version and artifact.

Paul 12-29-2015 08:20 AM

You can see previous builds here:

https://ci.appveyor.com/project/paulsapps/alive/history

The "dev" branch has the gfx fixes/latest of everything merged. So pick the last "dev" build and then click the artifacts tab to download the published msi (provided its green build else it failed hence wont be any artifacts).

FrustratedAssassin 12-29-2015 08:44 AM

Thanks. Is there any way to make it remember the paths to the games, or do I have to type them in every time I start it?

Varrok 12-29-2015 08:50 AM

There's none, unless Paul adds auto registry search to the installer.

Paul 12-29-2015 09:07 AM

:

()
Thanks. Is there any way to make it remember the paths to the games, or do I have to type them in every time I start it?

If you edit the resource_paths.json and save that it will persist. Will add auto detection to the todo list.

Varrok 12-29-2015 09:49 AM

Something like this?
https://dl.dropboxusercontent.com/u/...s/ABEMORPH.srt