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

Audio support #44

Open
snowway opened this issue Jul 30, 2024 · 5 comments
Open

Audio support #44

snowway opened this issue Jul 30, 2024 · 5 comments

Comments

@snowway
Copy link

snowway commented Jul 30, 2024

This project is great and the API is very user friendly, but when I converted the original video, I found that the audio information was lost. can anyone help me?

@kaixoo
Copy link

kaixoo commented Aug 1, 2024

hi, luckily i am having a similar use case. you have to use ffmpeg4-sys to decode the audio separately. in the midterm, it would be wise to contribute to video-rs to have this functionality. check this blog post: https://subvisual.com/blog/posts/real-time-video-processing-with-rust-ffmpeg-opencv/

unrelated but do you have an idea on how to cut video using this library? would it be possible to preview video in real time? there lacks examples or i lack knowledge.

@kaixoo
Copy link

kaixoo commented Aug 3, 2024

Hi @snowway would you like to collaborate on an audio encoder? I have an 8 day deadline.

@gerwin3
Copy link
Contributor

gerwin3 commented Aug 3, 2024

Unfortunately, audio is not supported right now. Any contributions would be greatly appreciated though.

@gerwin3 gerwin3 changed the title i can not find any solution for audio encoding Audio support Aug 3, 2024
@kaixoo
Copy link

kaixoo commented Aug 3, 2024

Could easily contribute if I get indication on where the change should be made, etc. at least for basic formats like mp3. Do you have Discord or matrix?

@gerwin3
Copy link
Contributor

gerwin3 commented Aug 5, 2024

Probably the easiest way would be to add an AudioDecoder interface next to the existing decoder.

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

3 participants