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
Жуков Алексей Андреевич
Computer Graphics Homework
Commits
ec7818be
Commit
ec7818be
authored
2 years ago
by
Жуков Алексей Андреевич
Browse files
Options
Download
Patches
Plain Diff
Update KG.py
parent
224aaaf4
master
1 merge request
!3
Update KG.py
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
KG.py
+1
-1
KG.py
with
1 addition
and
1 deletion
+1
-1
KG.py
+
1
−
1
View file @
ec7818be
...
@@ -23,7 +23,7 @@ if((time_1) > (time_2)):
...
@@ -23,7 +23,7 @@ if((time_1) > (time_2)):
os
.
remove
(
'input2nosound.mp4'
)
os
.
remove
(
'input2nosound.mp4'
)
os
.
remove
(
'input2withsound.mp4'
)
os
.
remove
(
'input2withsound.mp4'
)
else
:
else
:
os
.
system
(
'ffmpeg -i input2.mp4 -c
:v
copy
-ss 00:00:00
-t '
+
str
(
time_1
)
+
' input2short.mp4'
)
os
.
system
(
'ffmpeg
-ss 00:00:00
-i input2.mp4 -c copy -t '
+
str
(
time_1
)
+
' input2short.mp4'
)
os
.
system
(
'ffmpeg -i input2short.mp4 -c copy -an input2nosound.mp4'
)
os
.
system
(
'ffmpeg -i input2short.mp4 -c copy -an input2nosound.mp4'
)
os
.
system
(
'ffmpeg -i input2nosound.mp4 -i sound1.mp3 -c copy input2withsound.mp4'
)
os
.
system
(
'ffmpeg -i input2nosound.mp4 -i sound1.mp3 -c copy input2withsound.mp4'
)
os
.
system
(
'ffmpeg -i input2withsound.mp4 -c:v libx265 -b:v 12M -minrate 12M -maxrate 12M -bufsize 12M -r 48 -aspect 16:9 -ar 96000 output1.mp4'
)
os
.
system
(
'ffmpeg -i input2withsound.mp4 -c:v libx265 -b:v 12M -minrate 12M -maxrate 12M -bufsize 12M -r 48 -aspect 16:9 -ar 96000 output1.mp4'
)
...
...
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