Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Bleep instead of mute #6

Open
TheTawnyFool opened this issue Mar 28, 2024 · 5 comments
Open

[Feature Request] Bleep instead of mute #6

TheTawnyFool opened this issue Mar 28, 2024 · 5 comments

Comments

@TheTawnyFool
Copy link

I was wondering if you could add a flag to add a generic cursing BLEEP sound, perhaps allow a custom .wav to be used, instead of muting?

@mmguero
Copy link
Owner

mmguero commented Mar 28, 2024

I appreciate the suggestion, but with the way I'm handling the processing of the audio file (using a volume envelope, not splitting together and reassembling an audio file) I just don't see how it would work without major rewriting that I'm not interested in taking on right now. If somebody else wanted to tackle this I'd consider reviewing it as a PR, but otherwise I think I'll have to decline this one.

@mmguero mmguero closed this as completed Mar 28, 2024
@mmguero mmguero closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
@TheTawnyFool
Copy link
Author

Thank you for taking the time to respond. I beleive it can be done with fmpeg -i input.mp3 -af "volume=enable='between(t,5,10)':volume=0[main];sine=d=5:f=800,adelay=5s,pan=stereo|FL=c0|FR=c0[beep];[main][beep]amix=inputs=2,
volume=enable='between(t,15,20)':volume=0[main];sine=d=5:f=800,adelay=15s,pan=stereo|FL=c0|FR=c0[beep];[main][beep]amix=inputs=2, volume=enable='between(t,40,50)':volume=0[main];sine=d=10:f=800,adelay=40s,pan=stereo|FL=c0|FR=c0[beep];[main][beep]amix=inputs=2" output.wav

FFmpeg sine. I might fork the project and see if I can get it working. If I can, I will submit it for submission into your code. Again, thank you so much for responding and the code for this utility.

@mmguero
Copy link
Owner

mmguero commented Mar 28, 2024

Ah, I didn't realize it could be done inline like that with that sine filter. In that case, I don't see why not. It wouldn't support the custom .wav file, but for a beep it should be doable. Thanks for the suggestion. Reopening.

@mmguero mmguero reopened this Mar 28, 2024
@TheTawnyFool
Copy link
Author

Awesome, excited to see it! I am not sure about custom .wav also, I just really need the Beeping, so this will be great for my needs. Thank you so much!

@mmguero
Copy link
Owner

mmguero commented Mar 28, 2024

Things are pretty busy for me right now but I'll try to get to it as soon as I can, probably in the next couple of weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants