Skip to content
GitLab
    • Explore Projects Groups Snippets
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
  • Merge requests
  • !311
An error occurred while fetching the assigned milestone of the selected merge_request.

Fix conflicts between the format option and some codec options

  • Review changes

  • Download
  • Email patches
  • Plain diff
Naoto Kondo requested to merge github/fork/buresu/fix-format-option into master 5 years ago
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 11

Environments

ffmpeg 4.2.2
ffmpeg-python 0.2.0

Details

The ffmpeg-python's format option conflicts with some ffmpeg codec options. https://www.ffmpeg.org/ffmpeg-codecs.html#Hap https://www.ffmpeg.org/ffmpeg-codecs.html#jpeg2000

For instance,

ffmpeg.input('test.mp4').output('out.mov', vcodec='hap', format='hap_q').run()

the above code returns the following error.

[NULL @ 0x7fc69c80ea00] Requested output format 'hap_q' is not a suitable output format
out.mov: Invalid argument
Traceback (most recent call last):
  File "encoder.py", line 180, in <module>
    ffmpeg.input('test.mp4').output('out.mov', vcodec='hap', format='hap_q').run()
  File "/usr/local/lib/python3.7/site-packages/ffmpeg/_run.py", line 325, in run
    raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)

Looking at the ffmpeg documentation, the format option is -f and -fmt. https://www.ffmpeg.org/ffmpeg.html#toc-Main-options

I think it's better to use the same option as ffmpeg. But this PR breaks old code, so we should to be careful.

Could not retrieve the pipeline status. For troubleshooting steps, read the documentation.

Approval is optional
The target branch master does not exist. Please restore it or use a different target branch.
Loading

Activity


  • Administrator restored source branch github/fork/buresu/fix-format-option 2 years ago

    restored source branch github/fork/buresu/fix-format-option

Please register or sign in to reply
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: github/fork/buresu/fix-format-option

Menu

Explore Projects Groups Snippets