Skip to content

AttributeError: 'tuple' object has no attribute 'read' #31

@ghost

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions