Blame

c5163d Tebby Dog 2025-07-06 22:29:58
Skip
1
# 🚄 Subway Surfers Text-to-Video Converter
2
3
Skip the fairy-tale, just give me the code already --> [Click Here](https://teb.codes/2-Code/Docker/Subway-Surfers#using-docker-compose-like-a-true-king)
4
8181d1 Tebby Dog 2025-07-06 22:24:48
Updated with Satire
5
Inspired by the absolute legend [danielbonkowsky/subwaysurfers-text](https://github.com/danielbonkowsky/subwaysurfers-text), this project throws some sauce on the original concept. If this container saves you time (or your sanity), go drop a star on his project already, damn it.
6
7
## 🚀 What the Hell Is This?
8
You ever try to focus on an article and your brain taps out after the second paragraph? Same. This little monster extracts text from a webpage and slaps it onto hyperactive **Subway Surfers** gameplay footage—turning dry, boring content into something your scrolling-addicted brain can actually sit through. Perfect for TikTok, ADHD, or just making studying suck less.
9
10
You get:
11
🧠 smart content + 🎮 mindless gameplay = ✅ actual retention (probably)
12
d44433 Tebby Dog 2025-07-06 22:27:36
Screenie
13
## 📸 Screenshot
14
Add a screenshot here dumbass
c55bfa Tebby Dog 2025-07-13 01:36:10
Adding Screenshots
15
![](./Screenshot_2025-07-12_at_5.17.25_PM.png)
16
![](./Screenshot_2025-07-12_at_5.17.41_PM.png)
17
![](./Screenshot_2025-07-12_at_9.11.06_PM.png)
18
![](./Screenshot_2025-07-12_at_9.12.03_PM.png)
19
![](./Screenshot_2025-07-12_at_9.14.47_PM.png)
20
![](./Screenshot_2025-07-12_at_9.29.02_PM.png)
21
8181d1 Tebby Dog 2025-07-06 22:24:48
Updated with Satire
22
23
## 🎯 Oh Hell Yeah, Features
24
- Converts your average web article into a **Subway Surfers-screaming-TikTok-style video**
25
- Rips text straight from URLs
26
- Slaps it on top of fast-ass gameplay
27
- Bonus points: **speech-to-text powered by Vosk API**
28
- Built with **Flask + OpenCV + goose3 + Python + zero chill**
29
30
---
31
32
## 🐳 Running This Beast with Docker
33
34
**Step 1:** Pull the image, because we’re not building this crap from scratch:
35
```sh
36
docker pull tebwritescode/subwaysurfers-text20:latest
37
```
38
39
**Step 2:** Get the Vosk brain model and unzip it:
40
```sh
41
wget https://alphacephei.com/vosk/models/vosk-model-en-us-0.22.zip
42
unzip vosk-model-en-us-0.22.zip -d ./
43
rm vosk-model-en-us-0.22.zip
44
```
45
46
**Step 3:** Drop a gameplay video into `./sources` — any `.mp4` will do. More videos = more fun. Only one? It'll reuse that sucker on every run.
47
48
**Step 4:** Let’s ride:
49
```sh
50
docker run -d --name subwaysurfers-text \
51
-v ./subwaysurfers/sources:/app/sources \
52
-v ./subwaysurfers/vosk-model-en-us-0.22:/app/static/vosk-model-en-us-0.22 \
53
-p 5000:5000 \
54
tebwritescode/subwaysurfers-text20:latest
55
```
56
57
**Step 5:** Fire up your browser and hit:
58
```
59
http://localhost:5000
60
```
61
62
Get ready to weep tears of productivity as your article runs across a CGI train track.
63
64
---
65
229f24 Tebby Dog 2025-07-06 22:28:20
Crown
66
## 🛠 Using Docker Compose Like a True King 👑
8181d1 Tebby Dog 2025-07-06 22:24:48
Updated with Satire
67
Replace `<HOSTPATH>` with the full path to where your god-tier video and Vosk model live.
68
69
```yaml
70
services:
71
subwaysurfers-text:
72
image: tebwritescode/subwaysurfers-text20:latest
73
volumes:
74
- <HOSTPATH>/sources:/app/sources
75
- <HOSTPATH>/vosk-model-en-us-0.22:/app/static/vosk-model-en-us-0.22
76
ports:
77
- "5000:5000"
78
```
79
80
Start it up:
81
```sh
82
docker-compose up -d
83
```
84
85
Fun fact: if you only mount one `.mp4`, the app will always use that. Mount a folder of them? It picks a random vid each time. 🎲
86
87
---
88
89
## 🐍 The Dockerfile Straight-Up Breakdown
90
91
- Uses a slimmed-down official Python image
92
- Installs all the nasty dependencies (yes, even ffmpeg and build tools)
93
- Brings in Homebrew in case you're feeling fancy
94
- Copies the app, installs Python and brew packages
95
- Runs Flask like it means it
96
- Your container, your rules
97
98
---
99
100
## 🔮 Shit I Still Wanna Add
101
- Drop-down to select different AI voices (because not every AI wants to sound like Siri on Ambien)
102
- NVIDIA GPU acceleration (because some of you have beefy rigs)
103
- Fix that annoying subtitle-stuck bug nobody asked for
104
105
---
106
107
## 🧠 Want to Run It Without Docker?
108
You rebel. Here’s the repo for bare-metal installs:
109
👉 https://github.com/tebwritescode/subwaysurfers-text-multi
110
111
---
112
113
## 🏆 Big-Ass Credit Section
114
Massive props to [danielbonkowsky](https://github.com/danielbonkowsky/subwaysurfers-text) for the core idea. This is just a remixed, Dockerized, slightly louder sibling. Go say thanks.
115
116
---
117
118
## ⚠️ Final Note from His Royal Freshness™
119
Yeah, the container works. It does the job. But it's packing a little extra weight and could use a clean-up. If trimming containers gives you a tech boner, PRs are wide open.
120
121
Enjoy learning like a hyper-caffeinated teenager on TikTok 🚀