question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keeping track of audio stream when none exists

See original GitHub issue

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)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ingles98commented, Mar 2, 2020

Sorry, I had some other issue on the line. You could have simply recorded something with CMD+Shift+5 if you are on a Mac.

I’ll test it later or tomorrow, thanks in advance!

Yeah the issue is that i am on Windows heh. I’m glad it worked !

1reaction
muuvmuuvcommented, Mar 2, 2020

That worked! Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Record HTTP Audio stream to file - Stack Overflow
@bep: saving an uncompressed audio stream to a WAV file is a pretty trivial task, but nobody does it because nobody streams uncompressed...
Read more >
Audio and Video Delivery - Developer guides - MDN Web Docs
We can deliver audio and video on the web in a number of ways, ranging from 'static' media files to adaptive live streams....
Read more >
Media Capture and Streams - W3C
Returns a sequence of MediaStreamTrack objects representing the audio tracks in this stream. The getAudioTracks method MUST return a sequence ...
Read more >
How do I name an audio track with ffmpeg - Super User
This example will add title and language metadata to audio streams/tracks 1 & 2 (note ffmpeg starts counting from 0). ffmpeg -i input.mp4...
Read more >
Platform Loudness and Normalization Explained - Sage Audio
Loudness normalization is the process of a computer program turning a track up or down prior to streaming; this is done to match...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found