Video turns grey in AGS

Started by Shiloh, Sat 07/09/2024 02:45:32

Previous topic - Next topic

Shiloh

As far as I can tell, I'm doing everything right.
Code: ags
PlayVideo("Animation1.ogv", eVideoSkipAnyKey, 0);
The video plays when I want it to, correct speed and all that.
My only issue is that it loses colour only when played through AGS.
The video is rendered through Krita with ffmpeg version 7.0.2
I have tried changing the bitrate from 2mbs to 8mbs, nothing I can think of seems to be the right answer.
Any advice would be helpful, Thanks for your time.
I am  existing

Crimson Wizard

I'd like to clarify: you are running the Animation1.ogv file in a video player and it displays correct colors?
Which export settings (encoding etc) do you use to convert this video to OGV?

Shiloh

QuoteI'd like to clarify: you are running the Animation1.ogv file in a video player and it displays correct colors?
Yes, Video runs fine in VLC and the built in windows player.

QuoteWhich export settings (encoding etc) do you use to convert this video to OGV?
No export or conversion options as far as I know, Krita just has a render to OGV option.
Model is RGB/Alpha
Depth I've tried 8bit, 16bit, and 32bit channels.
Profile is SRGB.
At first I thought it may be a Krita issue but as I said, video runs fine everywhere else.
The only thing it lets me change on the render menu is bitrate.
I am  existing

Crimson Wizard

Could you open a video in VLC and look for "Tools -> Codec information", what does that page sais?

Which version of Krita do you use? I never used it myself, but I found documentation here:
https://docs.krita.org/en/reference_manual/render_animation.html
and it mentions that it may have extra options for each render type opened by [...] button.

Shiloh

I found a semi work around.
If I render as MP4 then convert to OGV through VLC it works, it looks worse and for some reason runs at a slower frame rate, but it runs and is in colour.
I am  existing

Shiloh

QuoteCould you open a video in VLC and look for "Tools -> Codec information
This says:
Codec: xiph.orgs Theora Video
Type: Video
Resolution: 320x240
Buffer Dimensions: 320x240
Frame Rate: 60
Decoder format: Planar 4:4:4 YUV
Orientation: Top Left
encoder: Lavc61.3.100 libtheora

QuoteWhich version of Krita do you use? I never used it myself, but I found documentation here:
https://docs.krita.org/en/reference_manual/render_animation.html
and it mentions that it may have extra options for each render type opened by [...] button.

Currently using 5.2.3 The most recent I think, and yeah, clicking that button only gives the option to change bitrate.
I am  existing

eri0o

@Shiloh can you share copy of the video that causes the issue or make one that has the same issue and share a link to it here or through dm? It would make it easier to debug.

SMF spam blocked by CleanTalk