- Umstellung auf Andrea
geändert: src/Makefiles/Makefile.ftpUpload geändert: src/Makefiles/Makefile.vidstabTest - kleinere Korrekturen geändert: src/galleryHelper/getVideoDurationJson.py geändert: src/galleryHelper/vidGalInsert.py
This commit is contained in:
4
homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py
Normal file → Executable file
4
homepage/redesign2018/markdownExperiment/src/galleryHelper/getVideoDurationJson.py
Normal file → Executable file
@@ -21,7 +21,7 @@ def probe(vid_file_path):
|
||||
@vid_file_path : The absolute (full) path of the video file, string.
|
||||
'''
|
||||
if type(vid_file_path) != str:
|
||||
raise Exception('Gvie ffprobe a full file path of the video')
|
||||
raise Exception('Give ffprobe a full file path of the video')
|
||||
return
|
||||
|
||||
command = ["ffprobe",
|
||||
@@ -34,7 +34,7 @@ def probe(vid_file_path):
|
||||
|
||||
pipe = sp.Popen(command, stdout=sp.PIPE, stderr=sp.STDOUT)
|
||||
out, err = pipe.communicate()
|
||||
return json.loads(out)
|
||||
return json.loads(out.decode('utf-8'))
|
||||
|
||||
|
||||
def duration(vid_file_path):
|
||||
|
||||
0
homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py
Normal file → Executable file
0
homepage/redesign2018/markdownExperiment/src/galleryHelper/vidGalInsert.py
Normal file → Executable file
Reference in New Issue
Block a user