Skip to content

Commit 9d665eb

Browse files
fix: pointed ffmpeg to new correct relative path
1 parent 82918c7 commit 9d665eb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

reference_importer/imageSequence.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ def __init__(self, video_file="",
2121
self.encoding = 'cp1252'
2222
self.ffmpeg_path = os.path.abspath(os.path.dirname(__file__)
2323
).decode(self.encoding)
24-
self.ffmpeg_path = os.path.join(self.ffmpeg_path,'lib\\ffmpeg\\',
25-
'ffmpeg'
26-
).replace("\\","/")
24+
self.ffmpeg_path = os.path.join(self.ffmpeg_path,
25+
'..',
26+
'lib',
27+
'ffmpeg',
28+
'ffmpeg')
2729

2830
def getDuration(self, video_file):
2931
command = (u'"%s" -i "%s" 2>&1 | findstr "Duration"' %(self.ffmpeg_path,video_file)).encode(self.encoding)

0 commit comments

Comments
 (0)