Skip to content

Keeping track of audio stream when none exists #204

Open
@ingles98

Description

@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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions