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

Support video and others audio formats #11

Open
Daniel20Ultrastar-es opened this issue Feb 6, 2018 · 8 comments
Open

Support video and others audio formats #11

Daniel20Ultrastar-es opened this issue Feb 6, 2018 · 8 comments
Assignees

Comments

@Daniel20Ultrastar-es
Copy link
Collaborator

This is a hard one. Currently yass doesn't have video support. As ultrastar can reproduce the audio stream from the video. Yass should do the same.

It will be a huge progress to creators, if they could create a song without a mp3 track, just with the video. Specially with the new formats mp4 & webm

Would be nice also the support of other audio streams such as ogg, flac, acc...

@SarutaSan72
Copy link
Owner

I started implementing this, but gave up. Not easy to do this properly with Java, at least back in 2010. If someone wants to follow up: you can still find video playback in the code, I have just deactived it.

IMO it is easier to include a third-party tool to extract audio and convert it to mp3, on-the-fly. Same for ogg, flac, acc.

@Daniel20Ultrastar-es
Copy link
Collaborator Author

extracting audio and convert to mp3 is not a nice solution because mp3 ALWAYS loss the quality.

Syncronize a song with the maximum quality is essential for creators. Some songs are hard to follow the rythm.

Also, you have to delete the audio from video, because if you don't do it, you'll need more space (mp3 file + audio track from video).

Let's see if we can do something with this.


I was going to open another issue, but I'll ask you here, do you think is it easy to implement a new feature to slow down the speed of the mp3? (for example in youtube, you can play a video at 0.75 / 0.50 speed.) This would be an awesome feature too for creators.

@SarutaSan72
Copy link
Owner

True :)

As for the speed-slowdown, see the recording function (press Ctrl+R).
There I use YassPlayer.playSelection(in, out, clicks, timebase)
with timebase = 1,2,3,4 for speed = 100%, 50%, 33%, 25%.
Seems doable. I've opened an issue for this.

@SarutaSan72
Copy link
Owner

I labeled this issue with "help wanted", since it is very unlikely that I will spend more time with this.

@TeLiXj
Copy link
Collaborator

TeLiXj commented Jan 3, 2021

I have an idea about this: if you open a song that are using the video's audio you can use ffmpeg library to create a temp mp3 file and internally use it. I found some java wrappers to use it. Load a video -> export to mp3: easy :D
How do you think about this?

@SarutaSan72
Copy link
Owner

Ten years ago, I had many problems with integrating ffmpeg and had to drop it. I tried to show video while editing. If we limit ourselves to extracting a temp mp3 file for internal use, and if today there is a stable java wrapper that supports the various video/audio formats, this might be doable.

Personally, I'd prefer to dodge that challenge. For now, I'll switch back from wontfix to helpwanted.

@TeLiXj TeLiXj self-assigned this May 4, 2021
@TeLiXj
Copy link
Collaborator

TeLiXj commented May 4, 2021

I'm going to try to do it... I'll need some luck ;D

@Tuupertunut
Copy link

Ogg Vorbis support for Java seems to be quite complete.

https://github.com/Trilarion/java-vorbis-support

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

No branches or pull requests

4 participants