-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: audio #79
base: dev
Are you sure you want to change the base?
feat: audio #79
Conversation
fermionboson101
commented
Dec 9, 2023
•
edited
Loading
edited
- exposed new API for audio
- added new audio bitrate (128K), works for both audio and video conversion.
@fermionboson101 pls check the deepsource check |
Video5M | ||
Video3M | ||
Video1M | ||
Video800K | ||
Video400K | ||
) | ||
|
||
const ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets keep this const in the upper one, else iota value starts at 0, so ImagePng and Audio192K will have same value
return | ||
} | ||
|
||
log.Println("request", request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: printing request twice
@@ -52,6 +56,7 @@ const Scale = "scale" | |||
|
|||
var AudioFileTypeMap = map[FILE_TYPE]string{ | |||
Audio192K: "_audio192k.m4a", | |||
Audio128K: "_audio128k.m4a", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m4a is supported only for dash protocol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let discuss on this
|
||
wg.Add(len(constants.AudioFileTypeMap)) | ||
|
||
go generateAudioFiles(targetFile, outputPath, &wg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets connect once to test