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: Changing audio format for the output #11

Open
everythingnew1 opened this issue Aug 20, 2023 · 3 comments
Open

Feature Request: Changing audio format for the output #11

everythingnew1 opened this issue Aug 20, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@everythingnew1
Copy link

Hello and thank you for your script,it works without problems in normal use.I wonder if there is a way to change the audio format from "vorbis" to "aac" or "mp3" because I also use some older hardware that unfortunately does not support "vorbis".I looked into the script for a mention of 'vorbis" but did not find anything to change.
All I could find is a mention of an audio filter but I do not know where that filter resides and how I can edit it,I am a newb unfortunately.Any kind of help is appreciated.

@DarkTrick
Copy link
Owner

I don't use vorbis specifically. It's possibly just the default of ffmpeg (which the script uses under the hood).
It might also be possible that your input source uses vorbis/ogg.

I guess it could be possible to change the output audio format to something else. Feel free to submit a patch. Unfortunately I won't have time to fix it in near future.

@DarkTrick DarkTrick changed the title Changing audio format for the output Feature Request: Changing audio format for the output Aug 20, 2023
@DarkTrick DarkTrick added the enhancement New feature or request label Aug 20, 2023
@everythingnew1
Copy link
Author

No problem,take as much time as you need,there is no reason to hurry working on the script.I think vorbis is indeed the default for ffmpeg.I will try to find a way to change the default,I will search for a solution.Thank you for your answer

@mrfragger
Copy link

for f in .$typeaudio ; do python3 source/silence_cutter.py "$f" output/$dt/"${f%.}.opus" $setdBsilence ; done

for f in .mp3 ; do python3 source/silence_cutter.py "$f" output/"${f%.}.opus" -35 ; done

it sets the output to opus or whatever you specify

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

No branches or pull requests

3 participants