Skip to content

Fix "ValueError" when Parsing Data && add recginzing "ffmpeg.exe" on Windows OS#128

Open
iWangJiaxiang wants to merge 5 commits intoagermanidis:masterfrom
iWangJiaxiang:pr_1
Open

Fix "ValueError" when Parsing Data && add recginzing "ffmpeg.exe" on Windows OS#128
iWangJiaxiang wants to merge 5 commits intoagermanidis:masterfrom
iWangJiaxiang:pr_1

Conversation

@iWangJiaxiang
Copy link

My PR has following changes:

except (ValueError, IndexError):   
  • Add recginzing "ffmpeg.exe" on Windows OS. Now you do not need any operation about ffmpeg.exe on Windows. The codes are as fsollowed:
def ffmpeg_check():
    """
    Return the ffmpeg executable name. "null" returned when no executable exsits.
    """
    if which("ffmpeg"):
        return "ffmpeg"
    elif which("ffmpeg.exe"):
        return "ffmpeg.exe"
    else:
        return None

Enjoy! :D

@BingLingGroup
Copy link

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