Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
a9a8220e
"docs/vscode:/vscode.git/clone" did not exist on "12e8cb976c027aecb0411657f705dd2d42aa4898"
Unverified
Commit
a9a8220e
authored
Oct 02, 2020
by
Francisco Massa
Committed by
GitHub
Oct 02, 2020
Browse files
Print FFmpeg location in setup.py (#2734)
parent
a98e17e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
setup.py
setup.py
+2
-0
No files found.
setup.py
View file @
a9a8220e
...
@@ -331,11 +331,13 @@ def get_extensions():
...
@@ -331,11 +331,13 @@ def get_extensions():
ffmpeg_exe
=
distutils
.
spawn
.
find_executable
(
'ffmpeg'
)
ffmpeg_exe
=
distutils
.
spawn
.
find_executable
(
'ffmpeg'
)
has_ffmpeg
=
ffmpeg_exe
is
not
None
has_ffmpeg
=
ffmpeg_exe
is
not
None
print
(
"FFmpeg found: {}"
.
format
(
has_ffmpeg
))
if
has_ffmpeg
:
if
has_ffmpeg
:
ffmpeg_bin
=
os
.
path
.
dirname
(
ffmpeg_exe
)
ffmpeg_bin
=
os
.
path
.
dirname
(
ffmpeg_exe
)
ffmpeg_root
=
os
.
path
.
dirname
(
ffmpeg_bin
)
ffmpeg_root
=
os
.
path
.
dirname
(
ffmpeg_bin
)
ffmpeg_include_dir
=
os
.
path
.
join
(
ffmpeg_root
,
'include'
)
ffmpeg_include_dir
=
os
.
path
.
join
(
ffmpeg_root
,
'include'
)
print
(
"ffmpeg include path: {}"
.
format
(
ffmpeg_include_dir
))
# TorchVision base decoder + video reader
# TorchVision base decoder + video reader
video_reader_src_dir
=
os
.
path
.
join
(
this_dir
,
'torchvision'
,
'csrc'
,
'cpu'
,
'video_reader'
)
video_reader_src_dir
=
os
.
path
.
join
(
this_dir
,
'torchvision'
,
'csrc'
,
'cpu'
,
'video_reader'
)
...
...
Write
Preview
Markdown
is supported
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