Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Searching for a way to loop tracks based on OGG metadata. (Read 1133 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Searching for a way to loop tracks based on OGG metadata.

Hello

I have a bunch of tracks from some videogames.
They all are OGG format and have <LOOPSTART> and <LOOPEND> tags with sample values.

The default Repeat (Track) playback option loops the tracks from the start always, ruining the playback.

Is there any component or other method to have these tracks loop correctly?

Re: Searching for a way to loop tracks based on OGG metadata.

Reply #1
Hi there,

I guess you could get Skip Track component and format a SKIP tag with the two values from your loop tags. Then just play the track on Repeat (track) and it should skip the unwanted parts.

Once installed check in Preferences > Components > right-click Skip Track > About for timecode examples. Probably the one you'd want is -

Quote
SKIP=-<a>;<b>-     to skip from start to <a> and from <b> to next track.

You can select tracks and use right-click Properties > Tools > Automatically Fill Values to batch write the SKIP tag, i.e. -

Source: Other (and enter your tags in the format above): -%loopstart%;%loopend%-
Pattern: %skip%

Depending what the loop tags look like exactly...? Might have to do extra formatting... (the timecodes would have to match what Skip Track expects)

Cheers

Re: Searching for a way to loop tracks based on OGG metadata.

Reply #2
Try VGMStream, which supports Ogg, Opus, and FLAC with loop tags. You need to rename your files to .logg, .lopus, or .lflac, or move VGMStream to the top of the priority list, which I don't recommend.

It will always output 16 bit samples, regardless of the format.

Re: Searching for a way to loop tracks based on OGG metadata.

Reply #3
I honestly never thought of that. Though I guess making a general (not input-proxy) component that does loops based on external metadata regardless wouldn't be a problem.

Re: Searching for a way to loop tracks based on OGG metadata.

Reply #4
It would have to be an input proxy type input. It would take a path (and subsong) to an existing file supported by the player, and read tags from it to control looping. It would otherwise forward all implementation details directly to the input that handles the original file.

Re: Searching for a way to loop tracks based on OGG metadata.

Reply #5
@kode54  and @mudlord , if one of you can do this (a new component for looping), pls do it :)