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
  • #204
Closed
Open
Issue created May 09, 2019 by Administrator@rootContributor

Keeping track of audio stream when none exists

Created by: ingles98

Hey!

So i am keeping track of the audio stream like i = ffmpeg.input(self.video_input, **self.args) self.audio_input = i["a"] The issue is when the video doesn't have a audio stream... What happens is that ffmpeg will throw Stream map '0:a' matches no streams. To ignore this, add a trailing '?' to the map. In the end where I concat my audio input back in for the output.

The program i am making should be able to accept any video files of any format in and so far it is doing its job, except when the audio stream is non existent heh. Is it possible to add the trail to the thing ?

The concat is done here ffmpeg.output(stream, self.audio_input, self.output, **self.args)

Assignee
Assign to
Time tracking