Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Шилова Светлана Евгеньевна
CompGr
Commits
da6e9c7b
Commit
da6e9c7b
authored
2 years ago
by
Шилова Светлана Евгеньевна
Browse files
Options
Download
Patches
Plain Diff
разработчикам
parent
68bf73cc
master
test
tetetet
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+31
-48
README.md
with
31 additions
and
48 deletions
+31
-48
README.md
+
31
−
48
View file @
da6e9c7b
#
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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets