-
Notifications
You must be signed in to change notification settings - Fork 0
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
opus streams embedded into mp4 containers support #3
Comments
Would be nice indeed, Unfortunately it would require a lot of work because in_opus is based on the libopusfile library that can only handle ogg container. For now when I encounter such files I use ffmpeg to fix it:
With the latest version of ffmpeg even tags get converted properly so this is what I use. It is perfectly lossless as well. If I get more time for this project I might support more containers in the future. |
That would be nice. I save some opus alone into mp4 container since it is allowing to keep both thumbnail and chapters time positions+chapters titles from youtube videos for instance. I did not tried ogg container yet, will try ASAP. (edit: does not work with ogg or ogm containers) |
.opus files are ogg containing opus stream so it must work. Use the above command line and it should work as long as the extension is |
Keep in mind that for a Winamp plugin the file filter is only based on file extension so if the extension is not |
The problem is the thumnail PNG seems to be lost at the conversion mp4 to opus. Is there a way to preserve it? |
Try to add -map 0 so that all channels are kept. |
-map 0 seems to convert the thumbail from png to video stream, which makes it hard to read on some player like MPV It seems that there is a fix available for ffmpeg to force it to keep the png format but no idea how to compile it: https://trac.ffmpeg.org/ticket/4448#comment:6 |
more info about this: https://stackoverflow.com/questions/64561570/ffmpeg-convert-audio-to-ogg-and-keep-album-cover Actually try with:
EDIT:
EDIT2: Sorry I hand not seen your latest post |
Well indeed it is a shame that such a simple matter of embedding a cover image in an ogg stream is not supported. |
I think I will keep for now the current format of opus into mp4 container and keep playing them with MPV, since it mainly allows me to keep everything into one file while being able to save youtube streams+posted dates using yt-dlp_x86.exe and youtube-dl-FE.exe(a frontend i wrote for the first one) But thank you for your efforts, having an opus plugin for winamp is great :) |
Please support opus streams embedded into mp4 containers like in this sample:
https://www49.zippyshare.com/v/VP3KEjwX/file.html (opus_stream_in_mp4_container.zip)
The text was updated successfully, but these errors were encountered: