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
  • #166
Closed
Open
Issue created Feb 02, 2019 by Administrator@rootContributor

Library problem under python 2.7

Created by: eeerrrwwwuuu

Hello, I'm trying to import ffmpeg into python script, but it looks like I have syntax problem.

import ffmpeg
stream = ffmpeg.input('input.mp4')
stream = ffmpeg.hflip(stream)
stream = ffmpeg.output(stream, 'output.mp4')
ffmpeg.run(stream)

I get syntax error

  File "pipe_stream.py", line 29, in <module>
    import ffmpeg
  File "/home/nvidia/.local/lib/python2.7/site-packages/ffmpeg/__init__.py", line 1, in <module>
    from .ffmpeg import FFmpegError
  File "/home/nvidia/.local/lib/python2.7/site-packages/ffmpeg/ffmpeg.py", line 52
    self._input_files.append(FFmpeg._File(url=url, options={**options, **kwargs}))
                                                             ^
SyntaxError: invalid syntax
Assignee
Assign to
Time tracking