HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: NetRanger on 2022-09-22 16:16:15

Title: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 16:16:15
Is there a way to get OptimFROG encoded files (*.ofr) to play in foobar2000 v2 x64?

Out of the box so is it not possible and i haven't found a component for it neither.
Title: Re: OptimFROG encoded files and foobar2000
Post by: The Link on 2022-09-22 16:19:52
Did you try the component from the homepage? http://losslessaudio.org/Downloads.php at the bottom
It's really old though, not sure if it works.
Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 16:42:38
Should have said that it was for v2 x64..... that component doesn't work

Title: Re: OptimFROG encoded files and foobar2000
Post by: Bogozo on 2022-09-22 16:59:52
You can use Command-Line Decoder Wrapper (https://www.foobar2000.org/components/view/foo_input_exe)
Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 17:37:21
You can use Command-Line Decoder Wrapper (https://www.foobar2000.org/components/view/foo_input_exe)

Looking at the FFmpeg Decoder Wrapper component now to see if i can get it to work.

Will have a look at Command-Line Decoder Wrapper if i can't get it to work with the above.
Title: Re: OptimFROG encoded files and foobar2000
Post by: Bogozo on 2022-09-22 17:52:46
There is no OptimFrog decoder in ffmpeg.
Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 17:59:24
There is no OptimFrog decoder in ffmpeg.
Just noticed that. :(
Title: Re: OptimFROG encoded files and foobar2000
Post by: Gus. on 2022-09-22 18:07:15
FFmpeg Decoder Wrapper was the first thing I tried, and even added .OFR to the config:
https://github.com/GyanD/codexffmpeg/releases
XMPlay with OptimFROG plugin will play a sample I found (luckynight.ofr):
https://www.un4seen.com/
AIMP x64 also plays it out of the box (aimp.ru)
Title: Re: OptimFROG encoded files and foobar2000
Post by: marc2k3 on 2022-09-22 18:29:21
Did you try the component from the homepage? http://losslessaudio.org/Downloads.php at the bottom

Looks like the source code is there so porting to 64bit could be possible?? I'm not even trying though. I'm certain input components are beyond me.
Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 18:56:44
Just emailed Florin and asked him to update his official component to support v2 x64
Title: Re: OptimFROG encoded files and foobar2000
Post by: marc2k3 on 2022-09-22 19:33:35
I'm not even trying though. I'm certain input components are beyond me.

So I changed my mind and had a go. I have the sample file from here playing in 64bit fb2k...

http://samples.mplayerhq.hu/A-codecs/lossless/

I ran in to one sticking point. New input components are supposed to implement a remove_tags function but I have no idea what to do with it so it does nothing.

edit: a screenshot of my changes, I'm not uploading to github...

https://i.imgur.com/8iGdpwo.png

TEST WITH EXTREME CAUTION (64bit only)
Title: Re: OptimFROG encoded files and foobar2000
Post by: Gus. on 2022-09-22 20:52:23
It plays luckynight.ofr, clean portable Foobar 2.0 x64 beta 9, even shows OptimFROG under playlist "Codec" header.
Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 21:12:06
@marc2k3 - Thanks a lot for the updated component. It works fine. Have tested with  5+ OFR encoded files.
Title: Re: OptimFROG encoded files and foobar2000
Post by: marc2k3 on 2022-09-22 21:22:44
I have an updated version.

This correctly displays OptimFROG Decoder under Preferences>Playback>Decoding. Previously, it just displayed OptimFROG
Remove tags has been implemented. It seems writing an empty file_info object does the job.



Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-22 21:45:35
@mark2k3 -  Thanks for the updated version. :)
Title: Re: OptimFROG encoded files and foobar2000
Post by: marc2k3 on 2022-09-22 23:25:04
ARGH. Another update, hopefully the last.

Includes x86 and x64 dlls with embedded art reading/writing. fb2k v2 only.



Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-09-23 00:46:24
ARGH. Another update, hopefully the last.

Includes x86 and x64 dlls with embedded art reading/writing. fb2k v2 only.

Keep 'em coming. ;)
Title: Re: OptimFROG encoded files and foobar2000
Post by: marc2k3 on 2022-11-14 09:21:10
I've stuck the source on github.

https://github.com/marc2k3/foo_input_ofr

There are no downloads - the attachment 2 posts above is still the latest.


Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-11-14 13:42:56
@mark2k3
Maybe you should make it available on your github foobar2k components page also
Title: Re: OptimFROG encoded files and foobar2000
Post by: marc2k3 on 2022-11-16 01:14:35
It's hardly worth it. This component doesn't need a page to describe how to use it.

Anyway, I've posted an updated release here....

https://github.com/marc2k3/foo_input_ofr/releases

I just tidied up some dead code. No real changes.
Title: Re: OptimFROG encoded files and foobar2000
Post by: NetRanger on 2022-11-16 10:22:52
@mark2k3

Thnx for making it available on your Github. A description is not needed as u say.