Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Webm help

Hey there, I'm trying to make vfx into webms with v8 and v9 codec for some reason I can not get a lot of them to upload or it stays in upload hell.  Is there a way to optimize this? I'm using ffmpeg and when I use v8 codec a lot of the time it gives me a bitrate error Im testing a hundred different ways to make it work if any of you have a ffmpeg input you're using that works please share. ffmpeg -i input.mov -c:v libvpx -pix_fmt yuva420p -b:v 1M -vf "scale=-1:720" -auto-alt-ref 0 output.webm
So far this is working, just make sure that your video has alpha channels before converting. I have found that some of the video's I've converted were not mov with alphas. Keep that in mind.
These are the ones Im working on. You can test them yourself.  the blaster doesn't work. The portal neither. those are the ones I found out did not have alpha channels.
1703054259

Edited 1703054356
Webms to test
So here's something weird i found. Some of my webms don't work if I drag them out from my recent uploads but if I drag from my recent uploads up to a "animations" folder in the token and art section I can drag it out by double clicking on the folder and dragging out from the popup
Here's some more to test. I made a batch file to convert .mov(s) with alpha channels now it's a breeze. If anyone wants to learn how to do this I don't mind making a workflow tutoria l More
1704181867

Edited 1704182348
I'll break down both of these FFmpeg commands for you, explaining their components and the differences between them. ffmpeg -i input.mov -c:v libvpx -pix_fmt yuva420p -b:v 1M -vf "scale=512:512" -auto-alt-ref 0 output.webm ffmpeg : This is the command line tool you are using for video processing. -i input.mov : Specifies the input file, which in this case is input.mov . -c:v libvpx : Sets the video codec to VP8 (used for WebM files). -pix_fmt yuva420p : Specifies the pixel format. yuva420p means YUV color space with an alpha channel, allowing for transparency. -b:v 1M : Sets the bitrate of the video to 1 Megabit per second, controlling video quality and file size. -vf "scale=512:512" : Applies a video filter to scale the video to a resolution of 512x512 pixels. -auto-alt-ref 0 : Disables a specific VP8 encoding feature ( auto_alt_ref ) that is not compatible with videos that have an alpha channel. output.webm : The name of the output file, which will be saved in WebM format. This command is used to convert a video to WebM format with the VP8 codec, a specific bitrate, and a scaled resolution, while preserving an existing alpha channel. Command 2 ffmpeg -i input.mov -vf "colorkey=0x000000:0.1:0.1,format=yuva420p,scale=512:512" -c:v libvpx-vp9 -b:v 1M output.webm Explanation: ffmpeg : The command line tool for video processing. -i input.mov : Specifies the input file, which you would replace with the name of your video file. -vf "colorkey=0x000000:0.1:0.1,format=yuva420p,scale=512:512" : This is a chain of video filters: colorkey=0x000000:0.1:0.1 : This filter is used to make a specific color (black, in this case) transparent. The values 0.1:0.1 are for similarity and blending settings, which determine how strict the color matching should be. format=yuva420p : Changes the pixel format to include an alpha channel. scale=512:512 : Scales the video to a 512x512 resolution. -c:v libvpx-vp9 : Sets the video codec to VP9, an updated version of VP8, which is better for handling alpha channels. -b:v 1M : Sets the bitrate to 1 Megabit per second. output.webm : The output file in WebM format. This command not only converts a video to WebM format with the VP9 codec and specific settings but also applies color keying to introduce transparency based on color (black in this case). Differences: Codec : Command 1 uses VP8 ( libvpx ), while Command 2 uses VP9 ( libvpx-vp9 ). VP9 is generally more efficient and better at handling alpha channels than VP8. Color Keying : Command 2 includes a colorkey filter to create an alpha channel based on a specific color (black), whereas Command 1 assumes the input video already has an alpha channel. Usage : Command 1 is used when you already have a video with an alpha channel and want to convert it to WebM format. Command 2 is used when you need to create an alpha channel based on a specific color and convert the video to WebM. To modify the second command to use the VP8 codec instead of VP9 while keeping the rest of the functionality intact, you can simply replace the codec specification from libvpx-vp9 to libvpx . Here’s how the updated command would look: ffmpeg -i input.mov -vf "colorkey=0x000000:0.1:0.1,format=yuva420p,scale=512:512" -c:v libvpx -b:v 1M output.webm in this command: -i input.mov : Specifies the input file. -vf "colorkey=0x000000:0.1:0.1,format=yuva420p,scale=512:512" : This is a chain of video filters where colorkey=0x000000:0.1:0.1 makes the black color transparent, format=yuva420p changes the pixel format to include an alpha channel, and scale=512:512 resizes the video. -c:v libvpx : Sets the video codec to VP8. While VP8 supports alpha channels, it's not as efficient or capable as VP9 in handling them. -b:v 1M : Sets the bitrate to 1Mbit/sec. output.webm : Specifies the name of the output file in WebM format. Remember, VP8 is less efficient than VP9, especially for videos with alpha channels. If you encounter any issues with the alpha channel in VP8, consider using v8 in roll20 because r20 is better suited for v8 webms Link to webms
By the gods. I had to make a post then edit it so that I can input all that information. but yeah I made a new folder for webms for roll20 now so you can actually use because i hate making stuff that doesn't work out of the box.