Skip to content

Conversation

ZippyBagi
Copy link

On Arch linux moviepy.video.io.ffmpeg_tools.tools.ffplay_versions() always returned an error - this made it so that the preview function of clips wasn't working. On arch ffmpeg versions start with an "n" and then the version number. I have fixed this, now it works. This bug only occured on arch linux as far as I can tell.

  • [YES ] I have properly explained unusual or unexpected code in the comments around it

On Arch linux ffplay_versions always return an error since on arch ffmpeg versions start with an "n" and then the version number. I have fixed this, now it works
result = subprocess.run(cmd, capture_output=True, text=True, check=True)
# Extract the version number from the first line of output
full_version = result.stdout.splitlines()[0].split()[2]
#On Arch linux ffmpeg versions start with n, then the version number, this makes sure that no errors occur.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't comment on the code side of this, but would ask you clean up the comment. Spelling of proper names and punctuation should be fixed (missing whitespace after # for consistency with other comments; use full stop or semi-colon to split the sentence in two for readability).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants