PDA

View Full Version : webm and webp resources?



Farnaby
June 14th, 2023, 08:03
Now that we have these fantastic new possibilities in FGU does anyone have any links to free or paid resources?
E.g. animated birds, waves, bushes, etc. as seen in Doug's video.

I can pep up my maps so quickly.

Farnaby
June 14th, 2023, 08:15
Here's a start: https://forge-vtt.com/bazaar#search=%5B%22animated%22%5D

ianril
June 14th, 2023, 14:12
It looks like without having Foundry set up for running games, it won't let me download a bunch of them, do you know if those foundry specific resources are available elsewhere?

Muagen
June 14th, 2023, 14:28
The map-making software Dungeon Alchemist (https://www.dungeonalchemist.com/) allows you to create and export webm video maps with lighting and LoS, but I haven't gotten one to successfully load in Fantasy Grounds Unity yet. I'm sure my inability to load the maps is user-error somehow, but definitely check that out if you need a map fast.

Zacchaeus
June 14th, 2023, 15:02
The map-making software Dungeon Alchemist (https://www.dungeonalchemist.com/) allows you to create and export webm video maps with lighting and LoS, but I haven't gotten one to successfully load in Fantasy Grounds Unity yet. I'm sure my inability to load the maps is user-error somehow, but definitely check that out if you need a map fast.

This will be because the codec used will be codec 9. You'll need to find a utility that can convert the files from codec 9 to codec 8 -which is the only one supported by FGU.

Farnaby
June 14th, 2023, 15:09
It looks like without having Foundry set up for running games, it won't let me download a bunch of them, do you know if those foundry specific resources are available elsewhere?

I don't have Foundry.
I just created a login, purchased one of the packs to try out and it downloaded a zip file containing .webm files which I could use in FGU.

Trenloe
June 14th, 2023, 15:26
The map-making software Dungeon Alchemist (https://www.dungeonalchemist.com/) allows you to create and export webm video maps with lighting and LoS, but I haven't gotten one to successfully load in Fantasy Grounds Unity yet. I'm sure my inability to load the maps is user-error somehow, but definitely check that out if you need a map fast.
As mentioned by Zacchaeus - FG supports the WEBM VP8 codec, not VP9. Unfortunately, Dungeon Alchemist exports in VP9 codec. As they already support a Fantasy Grounds Unity export for a static map, they may be able to add WEBM VP8 support - if you asked nicely! :D

Or, find a reliable low-cost converter...

Muagen
June 14th, 2023, 15:40
As mentioned by Zacchaeus - FG supports the WEBM VP8 codec, not VP9. Unfortunately, Dungeon Alchemist exports in VP9 codec. As they already support a Fantasy Grounds Unity export for a static map, they may be able to add WEBM VP8 support - if you asked nicely! :D

Or, find a reliable low-cost converter...

Just asked nicely! Fingers crossed.

Lo Zeno
June 14th, 2023, 15:41
Or, find a reliable low-cost converter...
Very few things are more reliable and more low-cost than FFMPEG (https://trac.ffmpeg.org/wiki/Encode/VP8)

Trenloe
June 14th, 2023, 15:43
Very few things are more reliable and more low-cost than FFMPEG (https://trac.ffmpeg.org/wiki/Encode/VP8)
I tried that when v4.4 first went into test and couldn't get a good quality conversion. Maybe someone in the community can come up with some good conversion options that we could use to convert VP9 WEBM files to VP8.

Lo Zeno
June 14th, 2023, 15:54
I tried that when v4.4 first went into test and couldn't get a good quality conversion. Maybe someone in the community can come up with some good conversion options that we could use to convert VP9 WEBM files to VP8.
Low-cost and reliable unfortunately does not guarantee easy... using ffmpeg works wonders if you can match the bitrate to the correct values, if you do not specify -b:v or -crf the quality of the output will be pretty low.
There isn't a magic string of parameters unfortunately, because it all depends on the bitrate and quality of the input. The only way is... trial and error, for each file you want to convert. A good first step is to set bitrate to 1 megabit/second (-b:v 1M), set the CRF to a middle point (-crf 30), and minimum quantizer to 15 (-qmin 15); see what the output looks like, then try to increase or decrease either the bitrate or the crf; if only a few frames look blurry, increase qmin.

It takes time because vp8 conversion is very slow, but eventually you get something good. I just finished converting my two favourite animated maps and they look just like the original VP9.

Farnaby
June 14th, 2023, 16:41
It takes time because vp8 conversion is very slow, but eventually you get something good. I just finished converting my two favourite animated maps and they look just like the original VP9.

Where did you get the maps from? I really am looking for good sources.

Trenloe
June 14th, 2023, 16:46
Where did you get the maps from? I really am looking for good sources.
I get a lot from Patreon. Dynamic Dungeons is the one that's been around (and stayed around) the longest, a lot of other cartographers do some form of animated maps - Living Realms, Advanced Battlemaps, Mad Cartographer, Domille's Wondrous Works are a few I support.

Lo Zeno
June 14th, 2023, 16:54
Where did you get the maps from? I really am looking for good sources.
Same as what Trenloe said, Patreon. The two maps I mentioned were made by Epic Quest and Moving Dungeons, but I have a few from other creators like Living Realms.

Neovirtus
June 14th, 2023, 16:59
Out of curiosity, the devs on the Dungeon Alchemist discord have asked why FGU doesn't support VP9. Do you happen to know if there was a specific criteria that caused the support for codec 8 but not 9?

Trenloe
June 14th, 2023, 17:03
... Epic Quest and Moving Dungeons ...
Dammit!

ju95
June 14th, 2023, 17:04
Out of curiosity, the devs on the Dungeon Alchemist discord have asked why FGU doesn't support VP9. Do you happen to know if there was a specific criteria that caused the support for codec 8 but not 9?

It is a Unity limitation, they don't support VP9 currently.

Trenloe
June 14th, 2023, 17:04
Out of curiosity, the devs on the Dungeon Alchemist discord have asked why FGU doesn't support VP9. Do you happen to know if there was a specific criteria that caused the support for codec 8 but not 9?
No idea. Maybe there were issues during dev, or maybe the libraries being used don't support it, or maybe something else... Sorry, I know this wasn't exactly helpful - but I haven't seen anything posted regarding this.

EDIT: Thanks @ju95!

Neovirtus
June 14th, 2023, 17:07
Thanks for the info!

Moon Wizard
June 14th, 2023, 17:23
I believe it's a limitation from Unity engine at this point.
https://docs.unity3d.com/Manual/VideoSources-FileCompatibility.html

Regards,
JPG

Temmpest
June 14th, 2023, 17:32
Just asked nicely! Fingers crossed.

Let's hope!

Lo Zeno
June 14th, 2023, 17:49
Dammit!

I'm sorry, I didn't mean to cause pain to your wallet, honest!

Trenloe
June 14th, 2023, 18:01
I'm sorry, I didn't mean to cause pain to your wallet, honest!
I can give 'em up...

Laerun
June 14th, 2023, 21:40
https://www.fantasygroundsacademy.com/post/fantasy-grounds-unity-vtt-platform-embracing-the-future-with-version-4-4-4
58090

Trenloe
June 14th, 2023, 21:52
https://www.fantasygroundsacademy.com/post/fantasy-grounds-unity-vtt-platform-embracing-the-future-with-version-4-4-4
57731
Nice one!

It may be worth adding a footnote as to why VP9 isn't supported - it's due to Unity not supporting it (yet). I've seen a few people asking about this, and the more we start asking third party publishers to support VP8 WEBM for FG, the more they'll ask "why can't *you* support VP9?"

LordEntrails
June 14th, 2023, 21:55
https://www.fantasygroundsacademy.com/post/fantasy-grounds-unity-vtt-platform-embracing-the-future-with-version-4-4-4
57731
Note, the release is 4.4.0, not 4.4.4 :)
Fantasy Grounds v4.4.0 (https://www.fantasygrounds.com/forums/showthread.php?78080-Fantasy-Grounds-v4-4-0)

Farnaby
June 14th, 2023, 22:06
https://www.fantasygroundsacademy.com/post/fantasy-grounds-unity-vtt-platform-embracing-the-future-with-version-4-4-4
57731
Thanks for that

Mytherus
June 15th, 2023, 00:11
Hey all. I was pleased to learn that this 4.4 update added so many features, especially .webm support.

But am I missing something, I have a map that is in .webm format --- I created a folder in my FGU campaign (as I always do) called "Homebrew Art". That's where I add maps I make or that I downloaded from google etc. Keeps it seperate from the ones in purchased map packs or modules.

Anyway the point -- I copy the map to this folder and when I load FGU it doesn't show in the folder at all.

So is there a unique matter of getting .webm maps into FGU? What's the secret I'm missing?

Sulimo
June 15th, 2023, 00:17
Hey all. I was pleased to learn that this 4.4 update added so many features, especially .webm support.

But am I missing something, I have a map that is in .webm format --- I created a folder in my FGU campaign (as I always do) called "Homebrew Art". That's where I add maps I make or that I downloaded from google etc. Keeps it seperate from the ones in purchased map packs or modules.

Anyway the point -- I copy the map to this folder and when I load FGU it doesn't show in the folder at all.

So is there a unique matter of getting .webm maps into FGU? What's the secret I'm missing?

See the post here (https://www.fantasygrounds.com/forums/showthread.php?78086-webm-and-webp-resources&p=689359&viewfull=1#post689359).

The .webm files have to use the VP8 Codec, if they use VP9, FG won't be able to use them (this is a limitation of the Unity Engine at the moment).

Trenloe
June 15th, 2023, 00:17
Hey all. I was pleased to learn that this 4.4 update added so many features, especially .webm support.

But am I missing something, I have a map that is in .webm format --- I created a folder in my FGU campaign (as I always do) called "Homebrew Art". That's where I add maps I make or that I downloaded from google etc. Keeps it seperate from the ones in purchased map packs or modules.

Anyway the point -- I copy the map to this folder and when I load FGU it doesn't show in the folder at all.

So is there a unique matter of getting .webm maps into FGU? What's the secret I'm missing?
It's the same method as for any images. Use one of the three methods described here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996640166/Working+with+Images+as+the+GM#Importing-Images-into-Fantasy-Grounds

In v4.4 the "Import Files" button is now a small blue up arrow in the bottom right of the images window.

Plus - only VP8 codec WebM files can be used in FG - but this wouldn't be your issue with them not showing in the Images list at all, VP9 codec WEBM files will show in the list, but will be blank when opened.

Mytherus
June 15th, 2023, 01:04
Thanks. The theme I was using the little import button was hard to see (it blends into the frame of the window its on..same color).
So anyway didn't matter in the end based on what you said the test webm I have is apparently VP9. Got the map showing in the list but you double click and its just blank....figures.


So I hope VP8 isn't rare . I just want to test the thing for myself and can't even find a single map that works.

Lo Zeno
June 15th, 2023, 10:07
So I hope VP8 isn't rare . I just want to test the thing for myself and can't even find a single map that works.
Unfortunately I suspect that VP8 is becoming rare, because VP9 has a much better compression ratio than VP8 (at equal resolution/framerate), and it's already supported by almost every browser (which is the main target of the webm format) so everyone is switching to that codec when creating .webm files. For the time being it's advisable to make use of video converters.

WinterSoldier7
June 15th, 2023, 12:29
Does anyone have any favourite Patreons or websites they can link me with animated tokens/maps that work well on FGU?

Had a look at DynamicDungeons and found some other, not very good, ones online... are their any others come recommended?

Trenloe
June 15th, 2023, 13:01
Does anyone have any favourite Patreons or websites they can link me with animated tokens/maps that work well on FGU?

Had a look at DynamicDungeons and found some other, not very good, ones online... are their any others come recommended?
See posts #13 and #14 in this very thread.

Nylanfs
June 15th, 2023, 13:09
Maybe start a favorites thread in the Non-FG gaming section?

Mytherus
June 15th, 2023, 14:25
I joined a patreon creator before I knew of the vp8 vs vp9 thing. I might stay a member as his maps I just really like. But it was kind of funny I asked him what codec he uses for his webm maps. He said I have no idea ..the one I’m using.

So even the creators of the maps don’t even know what version they use in some cases. But I’m mostly joking here I get it. You are just doing your thing with your talent ..doesn’t mean you care much about the tools just that they do the job.

Anyway animated dungeons is the patreon I’m talking about. I’m going to try a conversion tool on his webm maybe that will work.

scoot138
June 15th, 2023, 15:23
Handbrake from handbrake.fr can convert to vp8 from vp9 m4v mp4 etc takes a minute or so and can be batch queued if you have lot of files to convert.

EDIT
Forgot to add it is FREE

WinterSoldier7
June 15th, 2023, 15:35
See posts #13 and #14 in this very thread.

Ah, brill. Missed those!

Expensive hobby for GM's this fantasy roleplay lark, innit

LordEntrails
June 15th, 2023, 15:37
For converting vp9 to vp8 see this post; https://www.fantasygrounds.com/forums/showthread.php?78124-WEBM-converter-to-vp8-for-Dungeon-Alchemist-with-instructions&goto=newpost

rigerco
June 15th, 2023, 16:29
Found some free older stuff here:
https://github.com/jackkerouac

They're 3 years old so I assume it will all be in the older codec. The few I've played with all work.

Lo Zeno
June 15th, 2023, 16:43
Found some free older stuff here:
https://github.com/jackkerouac

They're 3 years old so I assume it will all be in the older codec. The few I've played with all work.

Nice!
I don't want to shoot down your contribution, many of the maps in that repo seem to be indeed encoded VP8; but for reference for everyone, VP9 is 10 years old, and VP9 adoption has surpassed VP8 in 2016 (according to Google developers blogs) so something as recent as 3 years ago still has more chances of being encoded in VP9

scoot138
June 15th, 2023, 16:49
Found some free older stuff here:
https://github.com/jackkerouac

They're 3 years old so I assume it will all be in the older codec. The few I've played with all work.

Nice find!

Temmpest
June 15th, 2023, 17:27
Awesome find!

Jesse0317
June 15th, 2023, 17:33
I for one will be opening my wallet for more tokens from Devin Night, I love the animated maps....but I would rather have animated assets, tokens, Spell tokens...Now I would pay for animated Maps that are made for say Rise of the Runelords, etc.

Zacchaeus
June 15th, 2023, 18:29
I for one will be opening my wallet for more tokens from Devin Night, I love the animated maps....but I would rather have animated assets, tokens, Spell tokens...Now I would pay for animated Maps that are made for say Rise of the Runelords, etc.

See Doug's video here. Coming soon will be some art assets that you can add to existing maps to add 'animation' to them. This is better than using purely animated maps since the file sizes will be much smaller.

https://www.fantasygrounds.com/forums/showthread.php?78080-Fantasy-Grounds-v4-4-0

Jesse0317
June 15th, 2023, 18:36
See Doug's video here. Coming soon will be some art assets that you can add to existing maps to add 'animation' to them. This is better than using purely animated maps since the file sizes will be much smaller.

https://www.fantasygrounds.com/forums/showthread.php?78080-Fantasy-Grounds-v4-4-0

I can't wait!!!

WinterSoldier7
June 15th, 2023, 18:40
So, silly question alert considering this chat but I'm a bit confused... I can basically use animated maps now?

I only double-check because I thought the vfx on maps were the best we were going to get and this comes as a surprise. Unless these maps are not fully animated ones or something? I dunno..

Edit: also, I'm about to drop a lot of money on some animated maps and don't want to make a mistake

Jesse0317
June 15th, 2023, 18:44
So, silly question alert considering this chat but I'm a bit confused... I can basically use animated maps now?

I only double-check because I thought the vfx on maps were the best we were going to get and this comes as a surprise. Unless these maps are not fully animated ones or something? I dunno..

Edit: also, I'm about to drop a lot of money on some animated maps and don't want to make a mistake

You should check out the Youtube vid Doug did on the new features. One of the best updates to date in my opinion...

Zacchaeus
June 15th, 2023, 19:32
So, silly question alert considering this chat but I'm a bit confused... I can basically use animated maps now?

I only double-check because I thought the vfx on maps were the best we were going to get and this comes as a surprise. Unless these maps are not fully animated ones or something? I dunno..

Edit: also, I'm about to drop a lot of money on some animated maps and don't want to make a mistake

Yes, FG now supports webp and webm image formats. The only caveat is that only VP8 format webm images are supported (not VP9 - which you'll find is what most of the images you'll find are). So you may need to pass the images through a converter to get FGU to recognise them. I'd also recommend watching the video Doug put out.

Agamon
June 15th, 2023, 22:18
https://jb2a.com/ looks like a good place for animated assets. They focus on Foundry, with scripts and macros, but the assets are VTT agnostic, of course, and are made in VP8 (they say on the site that they find VP9 has consistancy problems)

Zacchaeus
June 15th, 2023, 23:56
https://jb2a.com/ looks like a good place for animated assets. They focus on Foundry, with scripts and macros, but the assets are VTT agnostic, of course, and are made in VP8 (they say on the site that they find VP9 has consistancy problems)
Thanks for that link. I reached out to them on their Discord asking them to update their site to include installation instructions for Fantasy Grounds, and alerting them to the fact that FG now supports webm.

Griogre
June 16th, 2023, 01:08
So, silly question alert considering this chat but I'm a bit confused... I can basically use animated maps now?

I only double-check because I thought the vfx on maps were the best we were going to get and this comes as a surprise. Unless these maps are not fully animated ones or something? I dunno..

Edit: also, I'm about to drop a lot of money on some animated maps and don't want to make a mistake

You might want to let things play out a bit before investing a lot of money on animated maps. One of the issues with fully animated maps is they are large since each frame of animation is a whole map in size. What Doug says is coming is assets you can put on a map that are animated. This would allow the map to come "alive" but not require the whole map to be used as an animation frame.

Gawain the Great
June 16th, 2023, 03:16
Just asked nicely! Fingers crossed.

Can you let us know if you hear back from Dungeon Alchemist on that question re exporting to FGU VP8? I'm on the verge of buying it because it looks like it rocks.

WinterSoldier7
June 16th, 2023, 08:16
Yes, FG now supports webp and webm image formats. The only caveat is that only VP8 format webm images are supported (not VP9 - which you'll find is what most of the images you'll find are). So you may need to pass the images through a converter to get FGU to recognise them. I'd also recommend watching the video Doug put out.

Thanks! I had watched the video, a few times as it happens, but the penny has now dropped. I glossed over all of the VP8/9 chat in this thread because I didn't understand it, but it makes sense now.

Also, makes sense not to drop too much money yet as Griogre says - thanks for the advice.

Either way, an exciting feature that I look forward to learning more about :)

Lo Zeno
June 16th, 2023, 10:22
Can you let us know if you hear back from Dungeon Alchemist on that question re exporting to FGU VP8? I'm on the verge of buying it because it looks like it rocks.

Dungeon Alchemist has a wishlist similar to what FantasyGrounds uses, so I'd suggest: throw your vote in there while the discussion on their Discord channel goes on
https://dungeonalchemist.upvoty.com/b/feature-requests/fantasy-ground-unity-webm-vp8-export-option

EDIT:
for those interested, this is the thread in their support forum on Discord:
https://discord.com/channels/802094386858819594/1118550111971196959

Trenloe
June 16th, 2023, 10:45
Dungeon Alchemist has a wishlist similar to what FantasyGrounds uses, so I'd suggest: throw your vote in there while the discussion on their Discord channel goes on
https://dungeonalchemist.upvoty.com/b/feature-requests/fantasy-ground-unity-webm-vp8-export-option
Voted!

eriktedesco
June 17th, 2023, 08:08
Dungeon Alchemist has a wishlist similar to what FantasyGrounds uses, so I'd suggest: throw your vote in there while the discussion on their Discord channel goes on
https://dungeonalchemist.upvoty.com/b/feature-requests/fantasy-ground-unity-webm-vp8-export-option

EDIT:
for those interested, this is the thread in their support forum on Discord:
https://discord.com/channels/802094386858819594/1118550111971196959

Voted!

devilspork
June 17th, 2023, 14:12
Found some free older stuff here:
https://github.com/jackkerouac

They're 3 years old so I assume it will all be in the older codec. The few I've played with all work.

I found the same repo. It's a mixed bag of VP8 & VP9. It's also how I learned Handbrake doesn't handle transparency when converting to VP8.

Egheal
June 17th, 2023, 19:04
I found the same repo. It's a mixed bag of VP8 & VP9. It's also how I learned Handbrake doesn't handle transparency when converting to VP8.

I have a solution for the transparency problem https://www.fantasygrounds.com/forums/showthread.php?78175-Converting-VP9-To-VP8-WebM-Tokens-with-Shutter-Encoder

shezingzh
June 19th, 2023, 21:06
Nero is a German made software that can do 99% of the codecs and conversions. You can usually get it on sale or wait for it to go on sale. It also has software that allows for video downloads and you can convert those. You can also download sounds with it an convert it using its software and it comes with a ton of software. The video downloader is sold separately.

Lo Zeno
June 20th, 2023, 10:38
Nero is a German made software that can do 99% of the codecs and conversions
Oh boy
I remember the old days of Nero burning rom (with the brilliant icon of the Colosseum in flames)

Egheal
June 20th, 2023, 11:16
wahooo! I remember Nero Burning Rom and the logo but I never made the connection between the App name and the historical fact... Thanks for telling that the logo was indeed Rome's burning Colosseum !

Trenloe
June 20th, 2023, 11:25
Nero is a German made software that can do 99% of the codecs and conversions.
Have you tried it specifically for Fantasy Grounds? The Nero Recode web page doesn't list WebM as a supported video format: https://www.nero.com/eng/products/nero-recode/?vlang=gb

Lo Zeno
June 22nd, 2023, 12:29
https://jb2a.com/ looks like a good place for animated assets. They focus on Foundry, with scripts and macros, but the assets are VTT agnostic, of course, and are made in VP8 (they say on the site that they find VP9 has consistancy problems)

I have been using JB2A's animated spell assets in the last few days, and while it's true that the webm assets are indeed all encoded in VP8 there are some that for some reason do not "appear" on FGU - or rather, they show up as simply transparent images.
No idea why, no idea if it's a FGU issue or a JB2A encoding error, but since they play normally with any videoplayer my guess would be that the library used by FGU is limited even in regards of VP8 and can't play VP8 videos with certain resolutions/framerates/bitrates or some other specific characteristic, but that's a very wild guess

WinterSoldier7
June 22nd, 2023, 12:59
I have been using JB2A's animated spell assets in the last few days, and while it's true that the webm assets are indeed all encoded in VP8 there are some that for some reason do not "appear" on FGU - or rather, they show up as simply transparent images.
No idea why, no idea if it's a FGU issue or a JB2A encoding error, but since they play normally with any videoplayer my guess would be that the library used by FGU is limited even in regards of VP8 and can't play VP8 videos with certain resolutions/framerates/bitrates or some other specific characteristic, but that's a very wild guess

I saw the same issue but used the advice in this thread to fix it; https://www.fantasygrounds.com/forums/showthread.php?78142-How-to-Convert-animated-maps-to-VP8-WEBM-using-Handbrake

Assuming our issue is one and the same.

Lo Zeno
June 22nd, 2023, 15:33
I saw the same issue but used the advice in this thread to fix it; https://www.fantasygrounds.com/forums/showthread.php?78142-How-to-Convert-animated-maps-to-VP8-WEBM-using-Handbrake

Assuming our issue is one and the same.

I'm not so sure: even after using handbrake, or ffmpeg, or shutter encoder, or vlc, to encode things in VP8 some of JB2A's free assets (particularly the Magic Missile ones) still are not rendered correctly by FGU.

EDIT: I'm starting to suspect it's some weird thing to do with the alpha channel set in the original files, because the files that do not render correctly in FGU are the only files that do not show a transparent background when I open them with vlc, Chrome or Firefox.

Gawain the Great
June 25th, 2023, 18:14
I'm not so sure: even after using handbrake, or ffmpeg, or shutter encoder, or vlc, to encode things in VP8 some of JB2A's free assets (particularly the Magic Missile ones) still are not rendered correctly by FGU.

EDIT: I'm starting to suspect it's some weird thing to do with the alpha channel set in the original files, because the files that do not render correctly in FGU are the only files that do not show a transparent background when I open them with vlc, Chrome or Firefox.

This is a very good discussion of the issue, and I’ve had the same issues. One related issue is the way that the webm elements display (or don’t) in the Assets window. I have to adjust the size and aspect of the Assets window just to see the “thumbnail” of some of the webm tokens (or files). It seems that aspect ratio is a critical part of this equation, which might explain some of the problems with the magic missile files that we all seem to have. Those seem to have a different ratio than many of the others.

I just finished a 9 month long homebrew campaign last night, so now I can (and will) focus more intently on upgrading my maps and using all the new animated tools from 4.4.

Very cool stuff. Thanks to the FGU community for all the work in posting resources and ideas to address all of this.

Laerun
June 26th, 2023, 08:27
Looking at other creators and not very much consistency in how the assets are created across the board. On top of that, several authors have optimized for mostly Foundry or Roll20. I have also come across files with audio channels, both silent and movie sounds. WebM version 9 vs 8 is a lot different and it's likely the conversion and output is not one for one in half the cases.

rhagelstrom
June 26th, 2023, 16:36
I posted a bash script in Armory/Tokens forum that'll convert JB2A correctly as well as any other webm you may come across.

Jiminimonka
June 26th, 2023, 22:44
I posted a bash script in Armory/Tokens forum that'll convert JB2A correctly as well as any other webm you may come across.

Nice one!

Lo Zeno
June 27th, 2023, 13:07
This is a very good discussion of the issue, and I’ve had the same issues. One related issue is the way that the webm elements display (or don’t) in the Assets window. I have to adjust the size and aspect of the Assets window just to see the “thumbnail” of some of the webm tokens (or files). It seems that aspect ratio is a critical part of this equation, which might explain some of the problems with the magic missile files that we all seem to have. Those seem to have a different ratio than many of the others.

I just finished a 9 month long homebrew campaign last night, so now I can (and will) focus more intently on upgrading my maps and using all the new animated tools from 4.4.

Very cool stuff. Thanks to the FGU community for all the work in posting resources and ideas to address all of this.

So, I had a bit of time to do some experimentation with Windows, WSL and a Mac computer:
I made a powershell version of rhagelstrom's script, and used it to convert JB2A's free assets. To remove as many random elements as possible, I made sure I was using the same version of ffmpeg on all three environments, I installed pwsh on both the Mac and on WSL, then I used the powershell script on all three to convert the assets. Then I repeated the same experiment, but this time I used the original bash script by rhagelstrom, and on windows I ran it using git-bash.

I got a funny but consistent result: most tokens are converted the same way and without issues, EXCEPT for a few tokens (e.g. Magic Missiles and Sleep), which lose the transparency despite the fact that the script explicitely sets the alpha channel to be preserved.

Here's the result of the conversion run on windows:
57973
Note how the background of the sleep cloud is black.

And here's the result of the conversion run on WSL (running in on mac has the same result):
57974
The background of the sleep clouds, as you can see, is transparent, as per the original file.

So, unless it's my windows machine that is borked somehow, and I'm not ruling that out completely, this would suggest that the transparency problem is either a Windows related problem or a ffmpeg problem. Since the transparency issue happened to me using other conversion tools as well (e.g. shutter encoder), either all these tools use ffmpeg (which is possible) or it's a windows OS problem.

Raddu
June 27th, 2023, 14:36
Can you share your powershell version?

Lo Zeno
June 27th, 2023, 14:48
Can you share your powershell version?

Sure, I've posted it in rhagelstrom's thread in the Armory/Tokens forum (https://www.fantasygrounds.com/forums/showthread.php?78320-Bash-Batch-convert-webm-VP9-to-webm-VP8-using-ffmpeg&p=691177&viewfull=1#post691177), since it's just a line-by-line conversion of his bash script.

rhagelstrom
June 27th, 2023, 15:35
So, unless it's my windows machine that is borked somehow, and I'm not ruling that out completely, this would suggest that the transparency problem is either a Windows related problem or a ffmpeg problem. Since the transparency issue happened to me using other conversion tools as well (e.g. shutter encoder), either all these tools use ffmpeg (which is possible) or it's a windows OS problem.

When doing the original script, the ffmpeg default decoder wouldn't pass the alpha from the input to output. I had to define the input and use libvpx-vp9. If that is a thing for windows ffmepg I'd try that.
.

Lo Zeno
June 27th, 2023, 15:46
When doing the original script, the ffmpeg default decoder wouldn't pass the alpha from the input to output. I had to define the input and use libvpx-vp9. If that is a thing for windows ffmepg I'd try that.
.

And that is why doing quick conversions of scripts early in the morning is not a guarantee of success. When I formatted the line that executes ffmpeg to follow the powershell format I removed the first parameter by mistake (-c:v libvpx-vp9). I'll add it back and test.
Thanks!

macDsinfo
June 30th, 2023, 04:10
thank you.

Kumajuhl
July 5th, 2023, 02:19
Since I know this is supposed to be a forum for assets, I thought I'd mention that crosshead studios give animated assets if you support at the highest pledge level. They deal mostly with Foundry VTT, but I decided to try and see if they would work and they do if you convert to VP8 using the converter mentioned in this forum post:
https://www.fantasygrounds.com/forums/showthread.php?78359-WebM9-(VP9)-to-WebM8-(VP8)-with-alpha-channel-intact

Their assets include a variety of monster tokens and map assets (such as trees moving with the wind, wind currents, water currents, tombs that open up, farm animals, etc).

You can find their link here:

https://crossheadstudios.com/

rigerco
July 5th, 2023, 15:43
Here's a little trick I've found for creating webp animated tokens:
Log in to your favorite game and create a character that looks like what you want to represent.
Put the character into an area with an interesting background.
In Windows, use Windows Button + Alt + R to start the windows recorder (creates an MP4 file).
Trigger the character to attack something or throw a spell.
Move the camera around or do something dramatic and do stuff for about 30 seconds.
Stop the recording.
Upload recording to ezgif.com.
Use the Crop tool to select just the space around the character (make it square).
Use the Cut tool to edit it down to about 10 seconds that shows the coolest action (ie: a wizard casting a spell with the particle effects surrounding it).
Use the Webp tool to convert the file format.
Throw it in your Tokens folder and refresh the folder to make it available for use.

JuliTutu
October 16th, 2023, 19:05
Hi! I'm using codec 8 for webm and I can't make it works! What can i do?


59069

LordEntrails
October 16th, 2023, 19:30
Hi! I'm using codec 8 for webm and I can't make it works! What can i do?


59069
Please attach the file you are trying to load/use in FG and the steps you have used to import so that others can try to investigate.

Lo Zeno
October 17th, 2023, 12:33
Hi! I'm using codec 8 for webm and I can't make it works! What can i do?


59069
What you can do depends on whether you are creating the video or converting it from an existing video, what tool you are using to generate/convert the image, and in case of a conversion what size, resolution, framerate and compression the original file has. Can you give us these details?

LordEntrails
December 22nd, 2023, 22:30
What about converting to WEBP for JPG and PNG images?
What tools and settings do people use?
I've got tons of jpg images for my Undermountain that I think makes sense to convert to WEBP, but would like suggestions on how to start, what tool(s) to use and what settings.

Jiminimonka
December 22nd, 2023, 22:32
What about converting to WEBP for JPG and PNG images?
What tools and settings do people use?
I've got tons of jpg images for my Undermountain that I think makes sense to convert to WEBP, but would like suggestions on how to start, what tool(s) to use and what settings.

I use mogrify in Linux, simple CLI "mogrify -format webp *.png"

Before I found that I was exporting them all from GIMP 1 image at a time, or using the batch plugin (also for GIMP)

Jiminimonka
December 22nd, 2023, 22:44
check out https://imagemagick.org/script/mogrify.php

Sulimo
December 22nd, 2023, 23:22
I just use GIMP to convert older JPGs and PNGs.

It's free and pretty simple to convert files that way.

Griogre
December 23rd, 2023, 16:52
If the images have no transparency, the free IrfanView has strong batch capabilities including file type conversion and file renaming.

I believe that GIMP also has batch capability through add on(s)?

The free Paint.NET should also have batch capability through add ons.


Edit: typos... :p

LordEntrails
December 23rd, 2023, 17:41
Thanks all. I will let you know what I end up doing.