How to Make Custom Overlays for OBS
In this article
- Preparing Your Design Files Before OBS
- Choosing the Right Image Format and Size
- Creating Transparent Backgrounds in Photoshop or GIMP
- Exporting the Overlay as a PNG Sequence or WebM
- Adding the Overlay to OBS as a Media Source
- Testing the Overlay in a Live Preview
- Common Issue: Overlay Appears Black or Missing Transparency
- Before‑You‑Start Checklist
- Worked Example: Building a 1280×720 Webcam Frame
- How to Verify the Overlay Works During a Live Stream
- One Failure Most Streamers Hit and Its Fix
To create a custom overlay for OBS you design an image with a transparent background, export it in a format OBS understands, and then add it as a source in your scene. The basic workflow works for static PNG graphics as well as animated WebM files; the only time the method changes is when you need live‑updating data such as follower counts, which requires a browser source instead of a simple image.
- Measure the resolution of your streaming canvas (commonly 1920×1080 or 1280×720) and note it down.
- Open your graphics editor, set the canvas size to the measured resolution, and enable a transparent background layer.
- Design the overlay elements—frames, alerts, text boxes—keeping all important graphics at least 5 px away from the edge to avoid clipping.
- When the design is complete, export the file as a PNG with "Alpha channel" enabled, or as a WebM if animation is required, using a bitrate of about 2 Mbps for smooth playback.
- Launch OBS, select the scene where the overlay will appear, and choose Add ► Image (for PNG) or Media Source (for WebM).
- Browse to the exported file, ensure "Loop" is checked for animated sources, and set the source size to "Match output resolution".
- Lock the source position, test the scene, and save the collection.
To confirm the overlay is working, preview the scene in OBS and look for the transparent areas showing your game or webcam feed beneath the graphics; any solid white or black block where transparency should be indicates a problem.
The most common snag is a missing alpha channel, which makes the overlay appear as a solid rectangle. Fix it by reopening the source file in your editor, confirming that the background layer is truly transparent, and re‑exporting with the "Save Transparency" option turned on.
Preparing Your Design Files Before OBS
Before you open OBS, gather all visual assets you plan to use—logos, icons, and background patterns—and store them in a single folder. Keeping assets together prevents broken links later when you move the project to another computer.
Make a short list of the overlay elements you need: a webcam frame, a chat box placeholder, a recent follower banner, and any static branding. Write down the pixel dimensions for each element; for example, a webcam frame that fits a 640×480 source should be exactly 640×480 with a transparent interior.
Choosing the Right Image Format and Size
OBS accepts PNG for static graphics and WebM for animated clips. PNG preserves lossless quality and supports full alpha transparency, making it ideal for crisp logos and borders. WebM uses VP8/VP9 video compression; set the resolution to match your canvas and keep the file size under about 5 MB to avoid lag.
When deciding on size, always match the canvas resolution. A 1920×1080 canvas requires a 1920×1080 PNG if the overlay covers the entire screen; smaller elements can be sized independently but should retain the same pixel density to avoid blurry edges.
Creating Transparent Backgrounds in Photoshop or GIMP
In Photoshop, start with File ► New, enter the canvas width and height, and set "Background Contents" to Transparent. In GIMP, use File ► New, then under Advanced Options choose "Fill with: Transparency". Both programs let you toggle the checkerboard background to verify transparency.
Place each graphic element on its own layer. For a webcam frame, draw a rectangle that matches the video size, then use the Eraser tool or a layer mask to cut out the inner area, leaving only the border. Save the project file before exporting so you can make quick edits later.
Exporting the Overlay as a PNG Sequence or WebM
For a static overlay, choose File ► Export ► Export As… and select PNG. Ensure the "Transparency" box is checked and set the color profile to sRGB. The file size for a full‑screen PNG at 1920×1080 typically ranges from 300 KB to 1 MB depending on the amount of detail.
For animation, go to File ► Export ► Render Video (Photoshop) or File ► Export ► As WebM (GIMP). Set the frame rate to 30 fps, bitrate to 2 Mbps, and enable "Loop". A ten‑second animated alert will usually produce a 2‑3 MB WebM file, which OBS can handle without dropping frames.
Adding the Overlay to OBS as a Media Source
Open OBS and navigate to the scene where the overlay belongs. Click the "+" under Sources, pick Image for PNG or Media Source for WebM, and give the source a descriptive name like "Webcam Frame".
In the source properties, browse to the exported file. For PNG, leave "Linear Alpha" unchecked unless you need color‑space correction. For WebM, tick "Loop" and "Restart playback when source becomes active" to ensure the animation runs continuously during the stream.
Testing the Overlay in a Live Preview
Click "Start Virtual Camera" or "Start Recording" in OBS to see the overlay in action. Verify that the transparent sections reveal the underlying game capture or webcam feed. Adjust the source order if the overlay is hidden behind another source.
If the overlay looks offset, right‑click the source, choose Transform ► Edit Transform, and fine‑tune the Position X and Y values until the graphics line up perfectly with your video feeds. Lock the source after positioning to prevent accidental movement.
Common Issue: Overlay Appears Black or Missing Transparency
When an overlay shows as a solid black rectangle, the most likely cause is that the PNG was saved without an alpha channel. Re‑open the file in your graphics editor, confirm the background layer shows the checkerboard pattern, and re‑export with transparency enabled.
If the problem persists, check OBS's color format settings under Settings ► Advanced ► Video. Ensure "YUV Color Space" is set to "709" and "YUV Color Range" to "Partial"; mismatched settings can cause transparency to render incorrectly on some capture cards.
Before‑You‑Start Checklist
- Canvas resolution recorded (e.g., 1920×1080).
- All assets placed in a single folder.
- Graphics editor set to transparent background.
- Export format chosen (PNG for static, WebM for animated).
- OBS source type matched to file format.
- Alpha channel verified in exported file.
- Scene layout tested in OBS preview.
Worked Example: Building a 1280×720 Webcam Frame
Suppose you stream at 1280×720 and want a sleek webcam frame that adds a 10 px white border around a 640×480 webcam feed. First, create a new canvas in Photoshop sized 640×480 with a transparent background. Use the Rectangle Tool to draw a 660×500 rectangle (adding 10 px on each side), set the fill to none, and the stroke to 10 px white.
Next, select the inner rectangle (640×480) and delete it, leaving only the border. Export the result as "webcam_frame.png" with transparency. In OBS, add a Media Source, browse to the PNG, set the size to "640×480", and position it over the webcam capture source. The final preview shows the webcam video framed by a crisp white border, while the rest of the scene remains unobstructed.
How to Verify the Overlay Works During a Live Stream
During a test broadcast, watch the stream on a secondary device or in the OBS preview window. Confirm that the overlay stays in place when you switch scenes, that animated elements loop without stutter, and that no unexpected black boxes appear.
Record a short 30‑second clip and replay it; look for any frame drops or flickering around the overlay edges. If you notice desynchronization, lower the WebM bitrate to 1 Mbps or reduce the animation length to keep CPU usage manageable.
One Failure Most Streamers Hit and Its Fix
Many new creators forget to enable "Render Transparency" when using a Media Source for a WebM file, resulting in a solid background behind the animation. Open the source properties, tick the "Alpha Channel" or "Render Transparency" box, and click OK. The animation will now blend seamlessly with the rest of the scene.
If the overlay still blocks the view, double‑check that the source order places the overlay above the game capture but below any text sources that need to appear on top. Reordering sources is as simple as dragging them up or down in the Sources list.