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
d2e9e16c
Commit
d2e9e16c
authored
2 years ago
by
Шилова Светлана Евгеньевна
Browse files
Options
Download
Patches
Plain Diff
удаление лишних комментариев
parent
3e2ad9d8
master
test
tetetet
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
temp.py
+1
-3
temp.py
with
1 addition
and
3 deletions
+1
-3
temp.py
+
1
−
3
View file @
d2e9e16c
...
...
@@ -18,8 +18,7 @@ os.system('"ffmpeg -ss 00:00:00 -i 3.mp4 -to 00:00:06 -c copy dop\\31.ts"')
os
.
system
(
'"ffmpeg -ss 00:00:17 -i 3.mp4 -to 00:19:16 -c copy dop
\\
32.ts"'
)
#os.system('"ffmpeg -i "concat:11.ts|12.ts|21.ts|22.ts|31.ts|32.ts" -c copy 123.ts"')
#конкретно для данного случая
delet
=
[]
for
ii
in
a
:
if
(
ii
[
ii
.
find
(
"."
)
+
1
:
]
!=
'mp4'
and
ii
[
ii
.
find
(
"."
)
+
1
:
]
!=
'txt'
and
ii
[
ii
.
find
(
"."
)
+
1
:
]
!=
'avi'
):
...
...
@@ -28,7 +27,6 @@ for ii in a:
p
=
'dop
\\
'
+
namefile
os
.
system
(
f
'"ffmpeg -i
{
file
}
-c:v copy -c:a copy
{
p
}
.ts"'
)
ii
=
namefile
+
'.ts'
delet
.
append
(
ii
)
os
.
system
(
'"ffmpeg -i viedo1.avi -acodec aac -vcodec libx264 dop
\\
vid.ts"'
)
#time.sleep(305)
...
...
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