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
  • Merge requests
  • !45

Stream selectors, `.map` operator (audio support)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/depau-forks/stream_selectors into master Dec 21, 2017
  • Overview 31
  • Commits 41
  • Pipelines 0
  • Changes 8

Created by: depau

Implements stream selection and mapping multiple streams to one output.

Example:

i = ffmpeg.input("video_with_sound.mp4")
audio = i[:"a"].filter_("aecho", 0.8, 0.9, 1000, 0.3)
video = i[:"v"].hflip().vflip()
single_output = ffmpeg.output(video, audio, "my_output.mp4")
# or
single_output = video.output("my_output.mp4")
single_output = single_output.map(audio)

Imgur

ffmpeg -i video_with_sound.mp4
-filter_complex
'[0:v]hflip[s0];[s0]vflip[s1];[0:a]aecho=0.8:0.9:1000:0.3[s2]'
-map '[s1]' -map '[s2]' my_output.mp4

Closes #26 (closed) and #42 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/depau-forks/stream_selectors