Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
aa
indexalist
Commits
622450e3
Commit
622450e3
authored
Dec 18, 2020
by
Michael Murtaugh
Browse files
ffmpeg decode replace non utf8
parent
2cd36747
Changes
1
Hide whitespace changes
Inline
Side-by-side
indexalist/ffmpeginfo.py
View file @
622450e3
...
...
@@ -42,7 +42,7 @@ def extract_duration (text):
def
get_info
(
url
,
data
=
None
):
popen
=
subprocess
.
Popen
([
"ffmpeg"
,
"-i"
,
url
],
stderr
=
subprocess
.
PIPE
)
o
=
popen
.
communicate
()[
1
].
decode
(
"utf-8"
)
o
=
popen
.
communicate
()[
1
].
decode
(
"utf-8"
,
errors
=
"replace"
)
if
data
==
None
:
data
=
{}
dur
=
extract_duration
(
o
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment