A full quality-of-life tool that detects broken MP4 files for Vein and auto-fixes them by converting them to the exact codec Vein currently requires.
This is not an ad, not promoting anything, and not distributing any copyrighted content.
This repo only contains my Python tool and instructions explaining how to fix your own files on your own system.
Vein currently only plays MP4 files that use:
- H.264 video codec
- AAC audio codec
If your file uses HEVC (H.265) or anything else, Vein won’t play it.
It won’t load, won’t start, and may even crash the game if you add too many broken files.
I tested:
- Full seasons of South Park
- Full seasons of The Walking Dead
- Movies
- YouTube videos (yes, URLs work 100%)
- Local files, remote files, and shortened links
After a ton of testing, I confirmed:
File size doesn’t matter.
Length doesn’t matter.
Folder structure doesn’t matter.
Just the codec.
So I wrote this tool to fix that.
This Python script:
Detects if it's “GOOD” or “BAD” for Vein.
HEVC/H.265 = BAD
H.264 = GOOD
Using:
- libx264 (video)
- aac (audio)
After conversion, every episode/movie works flawlessly.
To use this tool, you need:
- Python 3.10+
- Basic programming comfort (copy/paste commands)
- FFmpeg installed
- Windows recommended (works on Mac/Linux too)
Download from:
https://www.python.org/downloads/
Make sure to check:
✔ “Add Python to PATH”
Download FFmpeg from:
https://ffmpeg.org/download.html
Add it to PATH or place ffmpeg.exe next to your script.
Run in CMD or PowerShell:
pip install ffmpeg-python
pip install pillowExamples:
SouthPark/
S01E01.mp4
S01E02.mp4
...
WalkingDead/
Movies/
python VeinCodecScanner.pyThe tool will:
- Scan your folder
- Label each file GOOD or BAD
- Allow you to fix all BAD files with one button
The script converts this:
❌ HEVC + AAC → Does NOT work in Vein
to this:
✔ H.264 + AAC → Works PERFECTLY
Conversion uses:
-vcodec libx264
-acodec aac
Balanced quality, great size, and compatible with Vein.
I discovered the smoothest method for Vein is using local URLs instead of direct files.
In the folder with your MP4s:
python -m http.server 8000Now open:
http://localhost:8000
This shows a webpage listing all your episodes.
Vein accepts this URL perfectly.
- Super clean
- Fully organized
- Easy to switch between episodes
- Zero crashes
- No limits
- Best performance
You can also watch YouTube videos in Vein using a simple 3-step method:
(Use any YouTube-to-MP4 site)
Using any URL shortener (tinyurl, shorturl, etc.)
Boom — YouTube videos play fine.
This is extremely immersive for:
- Podcasts
- Shows
- Vein videos
- Music
- Background entertainment
If you want your friends to access your files or you want to stream your videos from anywhere:
ngrok http 8000It will give you:
https://something.ngrok-free.app
This is now a public URL for all your MP4s.
Paste it into Vein → it works instantly.
Your PC becomes a temporary media server in one command.
Completely free.
Media/
SouthPark/
Season1/
Season2/
WalkingDead/
Season1/
Movies/
Keeps everything clean and easy to navigate inside Vein.
The game engine currently:
- Only accepts H.264 + AAC
- Loads MP4s through a web viewer internally
- Treats URLs and local URLs the exact same way
Until Vein universally supports all MP4 formats, this tool is the only reliable way to fix incompatible files.
- I do not provide copyrighted content
- I do not provide download links
- I do not host or distribute media
- Everything here is strictly educational
- You are responsible for any content you use
This repo only exists to fix codec incompatibility issues for Vein.
I love this game and I want to see it succeed.
The media feature is one of my absolute favorites, and fixing these codec issues boosts immersion like crazy.
VeinCodecScanner.py is my personal QoL solution until the game eventually supports all MP4 formats natively.
Enjoy, stay safe, and keep surviving.
This project is released under the MIT License.
You can copy it, fork it, modify it, or use it anywhere — just don’t blame me if anything breaks.