Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F ffmpeg-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 402
    • Issues 402
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Karl Kroening
  • ffmpeg-python
  • Issues
  • #116
Closed
Open
Issue created Aug 24, 2018 by Administrator@rootContributor

Use with pyinstaller frozen exe results in errors on Windows

Created by: 3ll3d00d

Using this lib (for either ffprobe or ffmpeg) results in the following error when running on Windows

[WinError 6] The handle is invalid

Applying the suggested workaround from https://github.com/pyinstaller/pyinstaller/wiki/Recipe-subprocess to always set stdin resolves the issue for me

i.e.

in _run.py change https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_run.py#L205 to

stdin_stream = subprocess.PIPE

in _probe.py change https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_probe.py#L16 to

p = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

I don't know if this covers all use cases or has any side effects, happy to PR the above though if you want me to.

Assignee
Assign to
Time tracking