🌐 AI搜索 & 代理 主页
Skip to content

Commit 47d7404

Browse files
committed
MP4_resizer | README.md file
1 parent 6ce8e0a commit 47d7404

File tree

9 files changed

+85
-26
lines changed

9 files changed

+85
-26
lines changed

mp4-converter/README.md

Lines changed: 75 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ Tek dosya veya klasör işleme, bozuk frame koruması, gerçek zamanlı ilerleme
88

99
> *last_modify: 2025-08-11*
1010
11-
12-
13-
<br>
11+
<br><br>
1412

1513

1614

@@ -26,9 +24,19 @@ Tek dosya veya klasör işleme, bozuk frame koruması, gerçek zamanlı ilerleme
2624
- **Akıllı Filtreleme:** Bozuk frame'leri tespit etme ve düzeltme
2725
- **Çoklu Platform:** Windows, Linux, macOS desteği
2826

27+
<div align='center'><img src="./ss/pic-3.png" alt="Video Resizer Tool" width="400"></div>
2928

29+
## 📥 Download
3030

31-
<br>
31+
**Windows (.exe):**
32+
- 📺 [VideoResizer-mfmx-720p.exe](./ss/VideoResizer-mfmx-720p.exe) - *HD Sürüm*
33+
- 🎬 [VideoResizer-mfmx-1080p.exe](./ss/VideoResizer-mfmx-1080p.exe) - *Full HD Sürüm*
34+
35+
> 💡 **Not:** EXE dosyaları **Python gerektirmez** ve `doğrudan çalıştırılabilir`.
36+
37+
38+
39+
<br><br>
3240

3341

3442

@@ -42,7 +50,7 @@ Tek dosya veya klasör işleme, bozuk frame koruması, gerçek zamanlı ilerleme
4250

4351

4452

45-
<br>
53+
<br><br><br>
4654

4755

4856

@@ -76,7 +84,7 @@ toExe.bat # Windows için çift tıklayın
7684

7785

7886

79-
<br>
87+
<br><br><br>
8088

8189

8290

@@ -97,16 +105,16 @@ python main.py ./videos/
97105
### Parametreli Kullanım
98106
```bash
99107
# Boyut değiştirme
100-
python main.py video.mp4 -y 1080 # 1080p'ye dönüştür
101-
python main.py video.mp4 -y 480 # 480p'ye dönüştür
108+
python main.py video.mp4 -y 1080 # 1080p'ye dönüştür
109+
python main.py video.mp4 -y 480 # 480p'ye dönüştür
102110

103111
# FPS ayarlama
104-
python main.py video.mp4 -f 24 # 24fps'e düşür
105-
python main.py video.mp4 -f 60 # 60fps'e yükselt
112+
python main.py video.mp4 -f 24 # 24fps'e düşür
113+
python main.py video.mp4 -f 60 # 60fps'e yükselt
106114

107115
# Codec seçimi
108-
python main.py video.mp4 -c H264 # H264 codec kullan
109-
python main.py video.mp4 -c XVID # XVID codec kullan
116+
python main.py video.mp4 -c H264 # H264 codec kullan
117+
python main.py video.mp4 -c XVID # XVID codec kullan
110118

111119
# Kombine kullanım
112120
python main.py video.mp4 -y 720 -f 30 -c mp4v
@@ -131,7 +139,7 @@ VideoResizer.exe --help-me
131139

132140

133141

134-
<br>
142+
<br><br><br>
135143

136144

137145

@@ -238,7 +246,7 @@ QUALITY_PRESETS = {
238246

239247

240248

241-
<br>
249+
<br><br><br>
242250

243251

244252

@@ -263,7 +271,7 @@ EXCLUDE_FILES = [".DS_Store", "*.tmp", "*.log"]
263271

264272

265273

266-
<br>
274+
<br><br><br>
267275

268276

269277

@@ -314,7 +322,7 @@ python main.py .\videos\video.mp4
314322

315323

316324

317-
<br>
325+
<br><br><br>
318326

319327

320328

@@ -347,7 +355,7 @@ pyinstaller --onefile --console --name VideoResizer main.py
347355

348356

349357

350-
<br>
358+
<br><br><br>
351359

352360

353361

@@ -367,7 +375,7 @@ video-resizer-tool/
367375

368376

369377

370-
<br>
378+
<br><br><br>
371379

372380

373381

@@ -402,7 +410,7 @@ python main.py "C:\Users\Username\Videos" -y 1080 -f 30
402410

403411

404412

405-
<br>
413+
<br><br><br>
406414

407415

408416

@@ -415,6 +423,8 @@ python main.py "C:\Users\Username\Videos" -y 1080 -f 30
415423
- **RAM:** 16GB DDR4
416424
- **Video:** 1080p 30fps H264 (100MB)
417425

426+
<br>
427+
418428
### İşlem Süreleri
419429
| Hedef | Codec | Süre | Çıktı Boyutu |
420430
| ----- | ----- | ---- | ------------ |
@@ -423,6 +433,52 @@ python main.py "C:\Users\Username\Videos" -y 1080 -f 30
423433
| 480p | XVID | 32s | 38MB |
424434
| 1080p | HEVC | 125s | 45MB |
425435

436+
<br><br>
437+
438+
### Gerçek Dönüştürme Sonuçları
439+
440+
#### 720p H264 Dönüştürme Örneği
441+
```
442+
🎬 video dosyası: test_video.mp4
443+
📏 boyut : 1440.0 x 2558.0 px
444+
📐 height : 720p ← 1440.0 x 2558.0 px
445+
🎞️ fps : 30.0 ← 30.0
446+
🔧 codec : h264
447+
448+
========================================
449+
DÖNÜŞÜM TAMAMLANDI
450+
Başarılı frame'ler: 1175
451+
Bozuk frame'ler: 0
452+
Başarı oranı: %100.0
453+
💾 71.29 MB → 3.20 MB | -95.52%
454+
========================================
455+
```
456+
457+
<div align='center'><img src="./ss/pic-1.png" alt="FFmpeg Logo" width="400px"/></div>
458+
459+
<br>
460+
461+
#### 1080p H264 Dönüştürme Örneği
462+
```
463+
🎬 video dosyası: test_video.mp4
464+
📏 boyut : 1440.0 x 2558.0 px
465+
📐 height : 1080p ← 1440.0 x 2558.0 px
466+
🎞️ fps : 30.0 ← 30.0
467+
🔧 codec : h264
468+
469+
========================================
470+
DÖNÜŞÜM TAMAMLANDI
471+
Başarılı frame'ler: 1175
472+
Bozuk frame'ler: 0
473+
Başarı oranı: %100.0
474+
💾 71.29 MB → 22.99 MB | -67.76%
475+
========================================
476+
```
477+
<div align='center'><img src="./ss/pic-2.png" alt="FFmpeg Logo" width="400px"/></div>
478+
479+
480+
> **Sıkıştırma Performansı:** 720p dönüştürme %95.52 oranında boyut azaltması sağlarken, 1080p dönüştürme %67.76 oranında azaltma sağlamaktadır. Her iki durumda da %100 başarı oranı ile bozuk frame kaybı yaşanmamıştır.
481+
426482

427483

428484
<br>

mp4-converter/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ def flat_dict(d:dict, title=""):
181181
############### resize CLASS ####################
182182
DEF_CODEC : str = 'mp4v'
183183
DEF_FPS : float = 30.0
184-
DEF_HEIGHT: int = 720
184+
DEF_HEIGHT: int = 1080
185185

186186

187187
def get_user_input():
188188
"""Kullanıcıdan video dönüştürme parametrelerini al"""
189189
for q in bilgilendirme.split("\n"):
190-
print(q)
190+
print(q,flush=True )
191191
sleep(0.03)
192192
sleep(1)
193193
print("\n" + "="*50 + "🎬 VIDEO DÖNÜŞTÜRÜCÜ"+ "="*50+ "\n\n")
-68 Bytes
Binary file not shown.
-792 Bytes
Binary file not shown.

mp4-converter/resize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
DEF_CODEC : str = 'mp4v'
3232
DEF_FPS : float = 30.0
33-
DEF_HEIGHT: int = 720
33+
DEF_HEIGHT: int = 1080
3434

3535
class Resize:
3636
def __init__(self, input_file, height: int = DEF_HEIGHT, fps: float = DEF_FPS, codec: str = DEF_CODEC):
@@ -99,7 +99,7 @@ def _resize_save(self) -> bool:
9999
boyut = None
100100
try: boyut = self.output_file.stat().st_size/(1024*1024)
101101
except: pass
102-
print(f'\rİlerleme: {(frame_idx/total_frames)*100:.2f}% - Bozuk frame: {corrupted_frames} | '+ f'{boyut:.2f} MB' if boyut else "", end="")
102+
print(f'\rİlerleme: {(frame_idx/total_frames)*100:.2f}% - Bozuk frame: {corrupted_frames} | '+ f'{boyut:.2f} MB' if boyut else "", end="", flush=True)
103103
ret, frame = self.clip.read()
104104
if not ret: break
105105
# Frame Kontrolü

mp4-converter/ss/pic-1.png

72.1 KB
Loading

mp4-converter/ss/pic-2.png

70.2 KB
Loading

mp4-converter/ss/pic-3.png

16.6 KB
Loading

mp4-converter/toExe.bat

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ echo.
4646
REM Virtual environment kontrolü
4747
echo [2/10] Virtual environment kontrol ediliyor...
4848
if exist ".venv\" (
49-
echo ✅ Virtual environment bulundu (.venv^)
5049
call .venv\Scripts\activate.bat >nul 2>&1
5150
echo Virtual environment aktif edildi
51+
python.exe -m pip -V
52+
echo ✅ Virtual environment bulundu (.venv^)
5253
) else (
5354
echo ⚠️ Virtual environment bulunamadi
5455
echo Sistem Python kullanilacak
@@ -288,13 +289,15 @@ if exist "dist\VideoResizer.exe" (
288289
echo VideoResizer.exe video.mp4 -y 1080 -f 30
289290
echo VideoResizer.exe --help
290291
echo.
292+
)
291293

292-
) else (
294+
REM Eğer EXE oluşturulamadıysa hata mesajı göster
295+
if not exist "dist\VideoResizer.exe" (
293296
echo ❌ HATA: VideoResizer.exe olusturulamadi!
294297
echo dist klasorunu kontrol edin
298+
echo.
295299
)
296300

297-
echo.
298301
echo Temizlik yapiliyor...
299302
if exist "build\" rmdir /s /q "build"
300303
if exist "*.spec" del /q "*.spec"

0 commit comments

Comments
 (0)