HydrogenAudio

Lossy Audio Compression => Opus => Topic started by: Jetro on 2021-08-22 15:00:39

Title: Opustags.exe?
Post by: Jetro on 2021-08-22 15:00:39
Hello

Where I can find, how can I compile or can someone make opustags.exe?
https://github.com/fmang/opustags

The goal is to import tags from file, same way than "metaflac.exe --import-tags-from=Tags.txt" and "vorbiscomment.exe -a -c Tags.txt".

Long time ago, there was discussion about this same thing.
Do you remember what happened, @skamp or @Brazil2?

I have never compiled anything, so I probably need lots of help or a good and simple guide.

Or are there other similar Windows command line -tools I can use?


MOD edit: fix github link
Title: Re: Opustags.exe?
Post by: tousealypo on 2021-12-03 05:35:08
According to the README, it requires a POSIX-compliant system so it won't work on Windows.
Title: Re: Opustags.exe?
Post by: Jetro on 2021-12-09 09:37:12
According to the README, it requires a POSIX-compliant system so it won't work on Windows.
I think it means that only compiling needs POSIX -system.
If so, I can use virtual machine.
Output should still be Windows compatible opustags.exe.

I still haven't found the solution to my first post, so any help or tips are welcome.
I read this forum sometimes and tell you if problem is solved.

Once again, the goal is to import tags to .opus -files from tags.txt -file, same way than ogg and flac does.
And with Windows command line.
Title: Re: Opustags.exe?
Post by: Octocontrabass on 2021-12-10 04:58:54
You can build it using MSYS2 in the MSYS (Cygwin) environment, but you'll also have to build libogg from source.

Which I found out by building it myself. I think everything you need is included, but I haven't checked to see if it works.
Title: Re: Opustags.exe?
Post by: Jetro on 2021-12-13 19:04:10
Thanks @Octocontrabass
Now my problem is solved :)

For archiving purposes, this is what I have done.
If somebody knows better ways, you can tell it.
Especially, my importing tags from file -method might be "quick and dirty".

Flac to opus:
Code: [Select]
opusenc.exe --bitrate 256 --music --discard-comments --discard-pictures input.flac output.opus
opusenc.exe (https://archive.mozilla.org/pub/opus/win32/opus-tools-0.2-opus-1.3.1.zip)

Delete one tag from opus:
Code: [Select]
opustags.exe --in-place --delete ARTIST=Abc audio.opus
opustags.exe (https://hydrogenaud.io/index.php?action=dlattach;topic=121444.0;attach=21546)

Delete all tags from opus:
Code: [Select]
opustags.exe --in-place --delete-all audio.opus

Add one tag to opus:
Code: [Select]
opustags.exe --in-place --add ARTIST=Abc audio.opus

Edit one tag at opus:
Code: [Select]
opustags.exe --in-place --set ARTIST=Abc audio.opus

Add tags from file to opus:
Code: [Select]
type tags.txt | opustags.exe --in-place --set-all --raw audio.opus
type (https://ss64.com/nt/type.html)
Title: Re: Opustags.exe?
Post by: Marsu42 on 2023-04-30 13:08:50
You can build it using MSYS2 in the MSYS (Cygwin) environment, but you'll also have to build libogg from source. Which I found out by building it myself. I think everything you need is included, but I haven't checked to see if it works.

I tried to compile it myself, but failed - I simply haven't been using MSYS2/Cygwin/... a lot lately. The release posted above is 1.6 which is lacking some vital bug fixes and cover picture support.

=> Can anyone please post a Windows binary of the latest opustags.exe, ie. 1.8 or more recent?

Thanks!

Title: Re: Opustags.exe?
Post by: Octocontrabass on 2023-05-01 03:37:44
The current version of opustags relies on at least two POSIX functions - getline() and mkstemps() - that haven't been implemented in Mingw-w64 yet, so I can't build a native Windows version under MSYS2.

I haven't yet tried building a Cygwin version under MSYS2...
Title: Re: Opustags.exe?
Post by: Marsu42 on 2023-05-01 19:27:00
The current version of opustags relies on at least two POSIX functions - getline() and mkstemps() - that haven't been implemented in Mingw-w64 yet, so I can't build a native Windows version under MSYS2. I haven't yet tried building a Cygwin version under MSYS2...

Right, I suspeced as much seeing how compilation failed. I guess a native Cygwin version could very well be possible (that's what I did with WebP because the MinGW version lacks some features), but I don't know when I'll have time to give it a try - so anyone, please be my guest :-)

In the meantime, I've added a bug ticket - even though no dev has to love or support Windows, it's an important platform nevertheless and not bing able to tag Opus files with the command line is a pity. https://github.com/fmang/opustags/issues/61

Title: Re: Opustags.exe?
Post by: Octocontrabass on 2023-05-01 20:09:10
And here's the Cygwin version. Like last time, it required building libogg from source.
Title: Re: Opustags.exe?
Post by: Marsu42 on 2023-05-01 20:14:25
And here's the Cygwin version. Like last time, it required building libogg from source.

Great, thanks a lot! I I'll stumble upon any regressions I'll report back, but I'm keeping my fingers crossed.