-
Notifications
You must be signed in to change notification settings - Fork 155
Description
D:\video\main>python ffmpeg-split.py -f video.mp4 -s 10
Traceback (most recent call last):
File "D:\video\main\ffmpeg-split.py", line 224, in
main()
File "D:\video\main\ffmpeg-split.py", line 220, in main
split_by_seconds(video_length=video_length, **options.dict)
File "D:\video\main\ffmpeg-split.py", line 96, in split_by_seconds
video_length = get_video_length(filename)
File "D:\video\main\ffmpeg-split.py", line 77, in get_video_length
output = subprocess.check_output(("ffprobe", "-v", "error", "-show_entries", "format=duration", "-of",
File "C:\Python310\lib\subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Python310\lib\site-packages\run_init_.py", line 145, in new
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "C:\Python310\lib\site-packages\run_init_.py", line 121, in create_process
shlex.split(command),
File "C:\Python310\lib\shlex.py", line 315, in split
return list(lex)
File "C:\Python310\lib\shlex.py", line 300, in next
token = self.get_token()
File "C:\Python310\lib\shlex.py", line 109, in get_token
raw = self.read_token()
File "C:\Python310\lib\shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'
Is there a fix for this?