-
-
Notifications
You must be signed in to change notification settings - Fork 75
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 reading the audio track of the video file as #MP3 #272
Comments
Sadly, getting an AudioClip from an mp4 file is not as easy with Unity as I expected. |
Interesting, I would as well have thought that this would be a rather easy feature to implement. Thanks for following up on it in the unity forums. |
This would be (a) the most complicated and (b) inefficient approach.
Thus, I argue that it's better to use a separate audio file in the first place if we cannot use the video file's audio "on the fly". |
I close this as won't fix. Workaround: Songs have to be created with a separate audio file. |
To be more specific: it is not supported to get an AudioClip from a video file. The AudioClip is expected in the current implementation. However, it might be possible to add an abstraction and make it work with a VideoPlayer as well (one VideoPlayer for the video, other VideoPlayer for the audio). Need to look into this again. |
Issue type: Feature request
Actual behaviour
USDX supports reading the audio track from the video file by setting, e.g.
If the video contains audio and is synchronous (this is probably the default), then a single video file with audio track is sufficient without the need to extract the audio track from the video file into a separate mp3 file.
UltraStar Play currently does not support this, resulting in an error:
[WRN] Unsupported audio format: videofile.mp4
Expected behaviour
It would be great if that feature was supported by UltraStar Play as well.
The text was updated successfully, but these errors were encountered: