Skip to content

Commit 6ce8e0a

Browse files
committed
MP4_resizer_release
1 parent e13eacf commit 6ce8e0a

16 files changed

+1122
-307
lines changed

mp4-converter/.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,69 @@ Thumbs.db
4848

4949
# Logs and Debug
5050
*.log
51+
debug.log
52+
error.log
53+
54+
# Video Files (optional - uncomment if you don't want to track video files)
55+
# *.mp4
56+
# *.avi
57+
# *.mkv
58+
# *.mov
59+
# *.wmv
60+
# *.flv
61+
# *.webm
62+
63+
# Codec Files
64+
# openh264*.dll # Keep codec files tracked for distribution
65+
openh264*.bz2
66+
67+
# Output Files
68+
*_resized.*
69+
*_converted.*
70+
*_1080p_*
71+
*_720p_*
72+
*_480p_*
73+
74+
# Temporary Files
75+
temp/
76+
tmp/
77+
*.tmp
78+
*.temp
79+
80+
# OS generated files
81+
.DS_Store
82+
.DS_Store?
83+
._*
84+
.Spotlight-V100
85+
.Trashes
86+
ehthumbs.db
87+
Thumbs.db
88+
89+
# Windows
90+
desktop.ini
91+
92+
# macOS
93+
.AppleDouble
94+
.LSOverride
95+
96+
# Thumbnails
97+
._*
98+
99+
# Files that might appear in the root of a volume
100+
.DocumentRevisions-V100
101+
.fseventsd
102+
.Spotlight-V100
103+
.TemporaryItems
104+
.Trashes
105+
.VolumeIcon.icns
106+
.com.apple.timemachine.donotpresent
107+
108+
# Directories potentially created on remote AFP share
109+
.AppleDB
110+
.AppleDesktop
111+
Network Trash Folder
112+
Temporary Items
113+
.apdisk
51114
*.out
52115
*.err
53116
debug.log

mp4-converter/get_dll_path.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import openH264_setup
2+
dll = openH264_setup.find_openh264_dll_silent()
3+
if dll: print(dll.absolute())
4+
else: print("")

mp4-converter/install.bat

Lines changed: 121 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,133 @@
11
@echo off
2-
chcp 65001
2+
chcp 65001 >nul 2>&1
3+
title Video Resizer Tool - Installation
34

5+
REM Script dizinine geç
6+
set SCRIPT_DIR=%~dp0
7+
cd /d "%SCRIPT_DIR%"
48

9+
echo.
10+
echo ================================================================
11+
echo VIDEO RESIZER TOOL
12+
echo Installation
13+
echo ================================================================
14+
echo.
15+
echo Mevcut klasor: %CD%
16+
echo.
517
echo REQUIRED FILES:
6-
echo - main.py : Video işleme ve dönüştürme
7-
echo - requirements.txt : Gerekli bağımlılıkları içerir
8-
echo - toExe.bat : EXE dosyası oluşturma scripti
9-
echo - README.md : Kullanım talimatları
10-
echo - install.bat : Kurulum scripti (bu dosya)
11-
echo - icon.ico : Kurulum scripti (bu dosya)
18+
echo - main.py : Video işleme ve dönüştürme
19+
echo - requirements.txt: Gerekli bağımlılıkları içerir
20+
echo - openH264_setup.py: H264 codec kurulum desteği
21+
echo - install.bat : Kurulum scripti (bu dosya)
22+
echo.
23+
echo DOCUMENTATION:
24+
echo - README.md : Kullanım talimatları
25+
echo.
26+
echo FOR PUBLIC:
27+
echo - toExe.bat : EXE dosyası oluşturma scripti
28+
echo - icon.ico : Uygulama ikonu
29+
echo.
30+
echo.
31+
echo.
32+
timeout /t 2 >nul
1233

34+
:: Python version check
35+
echo [1/7] Python kontrolu yapiliyor...
36+
python --version >nul 2>&1
37+
if errorlevel 1 (
38+
echo ❌ HATA: Python bulunamadi!
39+
echo Python 3.8+ yuklu oldugundan emin olun
40+
echo https://python.org adresinden indirebilirsiniz
41+
pause
42+
exit /b 1
43+
)
44+
python --version
45+
echo ✅ Python bulundu
46+
echo.
47+
echo.
48+
echo.
49+
timeout /t 2 >nul
1350

1451
:: Create and navigate to the converter directory
15-
:: mkdir -p "converter"
16-
:: cd "converter"
52+
echo [2/7] Virtual environment olusturuluyor...
53+
if exist ".venv\" (
54+
echo ⚠️ Mevcut virtual environment bulundu, yeniden kullanilacak
55+
call .venv\Scripts\activate.bat
56+
) else (
57+
echo 🔧 Yeni virtual environment olusturuluyor...
58+
python.exe -m venv .venv
59+
call .venv\Scripts\activate.bat
60+
echo ✅ Virtual environment olusturuldu
61+
)
62+
echo.
63+
echo Python and venv directory:
64+
python.exe -m pip -V
65+
echo.
66+
echo.
67+
echo.
68+
timeout /t 2 >nul
1769

70+
echo [3/7] Pip guncelleniyor...
71+
python.exe -m pip install --upgrade pip
72+
if errorlevel 1 (
73+
echo ⚠️ Pip guncellenemedi, mevcut surum kullanilacak
74+
) else (
75+
echo ✅ Pip guncellendi
76+
)
77+
echo.
78+
echo.
79+
echo.
80+
timeout /t 2 >nul
1881

19-
:: Create a virtual environment
20-
python.exe -m venv .venv
21-
call .venv\Scripts\deactivate.bat
82+
echo [4/7] Dependencies yukleniyor...
83+
python.exe -m pip install -r requirements.txt
84+
if errorlevel 1 (
85+
echo ❌ HATA: Bağımlılıklar kurulamadi!
86+
echo requirements.txt dosyasini kontrol edin
87+
pause
88+
exit /b 1
89+
) else (
90+
echo ✅ Tum bagimliliklar basariyla kuruldu
91+
)
92+
echo.
93+
echo.
94+
echo.
95+
timeout /t 2 >nul
2296

97+
echo [5/7] OpenH264 codec kontrol ediliyor...
98+
python openH264_setup.py
99+
echo ✅ OpenH264 kurulum kontrol edildi
100+
echo.
23101

24-
:: Upgrade pip and install required packages
25-
:: python.exe -m pip install -U pip
26-
::python.exe -m pip install -U opencv-python argparse
27-
python.exe -m pip install -U -r requirements.txt
28-
102+
echo [6/7] Test calistiriliyor...
103+
python main.py --version >nul 2>&1
104+
if errorlevel 1 (
105+
echo ⚠️ Test tamamlanamadi, ancak kurulum devam ediyor
106+
) else (
107+
echo ✅ Sistem testi basarili
108+
)
109+
echo.
110+
echo.
111+
echo.
112+
timeout /t 2 >nul
29113

114+
echo [7/7] Kurulum tamamlaniyor...
115+
echo.
116+
echo ================================================================
117+
echo KURULUM BASARILI!
118+
echo ================================================================
119+
echo.
120+
echo Video Resizer Tool basariyla kuruldu.
121+
echo.
122+
echo Kullanim ornekleri:
123+
echo python main.py
124+
echo python main.py video.mp4
125+
echo python main.py video.mp4 -y 1080 -f 30
126+
echo python main.py --help
127+
echo.
128+
echo EXE dosyasi olusturmak icin: toExe.bat
129+
echo.
130+
echo Kurulum klasoru : %CD%
131+
echo Virtual environment: %CD%\.venv
132+
echo.
133+
pause

0 commit comments

Comments
 (0)