Commit da6e9c7b authored by Шилова Светлана Евгеньевна's avatar Шилова Светлана Евгеньевна
Browse files

разработчикам

No related merge requests found
Showing with 31 additions and 48 deletions
+31 -48
# CompGr
# Компьютерная графика
[Папка с материалами для задания "Простой монтаж"](https://drive.google.com/drive/folders/1uve4IqGORCEtpaAGCBIEgrv7_Eq7Vd9m)\
Ниже представлен код для склейки n видео в одинаковых видео и аудио кодеков
```python
import os
import shutil
path=input('Введите путь к папке(используя \\ или /): \n')
os.chdir(path)
a=os.listdir()
if not os.path.isdir('dop'):
os.mkdir('dop')
for ii in a:
if(ii[ii.find(".") + 1 : ] !='txt'):
file=ii
namefile=ii[:ii.find(".")]
p='dop\\'+namefile
os.system(f'"ffmpeg -i {file} -c:v copy -c:a copy {p}.ts"')
ii=namefile+'.ts'
b=os.listdir('dop')
f = open('dop\\init.txt', 'w')
for i in b:
f.write(f"file '{i}'\n")
f.close()
os.chdir(path+'\dop')
os.system('"ffmpeg -f concat -i init.txt -c copy ouzz.mp4"')
os.replace('ouzz.mp4',path+'\\output.mp4')
os.chdir(path)
shutil.rmtree('dop')
```
<h1 align="center">
<br>
<a href="https://git.miem.hse.ru/seshilova/compgr/-/archive/master/compgr-master.zip">Простой монтаж</a>
......@@ -41,8 +12,8 @@ shutil.rmtree('dop')
<p align="center">
<a href="#О проекте">О проекте</a>
<a href="#Установка и запуск">Установка и запуск</a>
<a href="#updating">Updating</a>
<a href="#features">Features</a>
<a href="#Результат">Результат</a>
<a href="#Разработчикам">Разработчикам</a>
<a href="#binds">Binds</a>
<a href="#wiki">Wiki</a>
<a href="#contributing">Contributing</a>
......@@ -92,7 +63,7 @@ python3 temp.py
* All the SteamIDs versions will be shown. You need **SteamID3**.
* The format: `[X:Y:ZZZZZZZZ]` - where your *install path id* is the whole `Z` code.
## Updating
## Результат
When a **new version** is out, you have **two methods** to _update_:
......@@ -106,22 +77,34 @@ When a **new version** is out, you have **two methods** to _update_:
This _config_ is **updated** (at a random time), so make sure you **come back** here to **check** for **updates**.
## Features
| | 🔰 ArminC AutoExec | ◾ Other Configs |
| -------------------------- | :----------------: | :-------------: |
| Optimized values | ✔️ | ❌ |
| Useful scripts | ✔️ | ❌ |
| Documented commands | ✔️ | ❌ |
| Enabled in-game advantages | ✔️ | ❌ |
| No misconcepted commands | ✔️ | ❌ |
| Professional info sources | ✔️ | ❌ |
| Clean sheet/template | ✔️ | ❌ |
| Easy to customize | ✔️ | ❌ |
| Categorized by functions | ✔️ | ❌ |
| New commands/values | ✔️ | ❌ |
| No old command leftovers | ✔️ | ❌ |
## Разработчикам
Ниже представлен код для склейки n видео в одинаковых видео и аудио кодеков
```python
import os
import shutil
path=input('Введите путь к папке(используя \\\\ или /): \n')
os.chdir(path)
a=os.listdir()
if not os.path.isdir('dop'):
os.mkdir('dop')
for ii in a:
file=ii
namefile=ii[:ii.find(".")]
p='dop\\'+namefile
os.system(f'"ffmpeg -i {file} -c:v copy -c:a copy {p}.ts"')
ii=namefile+'.ts'
b=os.listdir('dop')
f = open('dop\\init.txt', 'w')
for i in b:
f.write(f"file '{i}'\n")
f.close()
os.chdir(path+'\dop')
os.system('"ffmpeg -f concat -i init.txt -c copy ouzz.mp4"')
os.replace('ouzz.mp4',path+'\\output.mp4')
os.chdir(path)
shutil.rmtree('dop')
```
## Symbols
*: Multiple commands under a category
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment