Do audio formats still matter for Ren'Py? [Solved]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
XenoStaR
Newbie
Posts: 8
Joined: Fri Jan 19, 2018 4:08 pm
Contact:

Do audio formats still matter for Ren'Py? [Solved]

#1 Post by XenoStaR » Tue Jun 23, 2020 6:33 pm

Hey all,

So before ogg was always best to use for Ren'Py and to use any other audio format was not recommended, is this still the case? If so then could someone give an explanation as to why this is the case and the negatives of using other formats such as wav or mp3, if it is not the case then are formats such as mp3 or wav entirely fine now?

I have looked at the documentation which says mp3 and wav are supported, yet I have seen many times over the years that you should only use ogg which puzzled me.

Obviously I am not a music composer of any kind and the last post I could find that actually explained why only ogg could be used was 8 years ago so I was hesitant to rely on the information.

Any help would be greatly appreciated, thenks!
Last edited by XenoStaR on Wed Jun 24, 2020 8:35 am, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3038
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Do audio formats still matter for Ren'Py?

#2 Post by Imperf3kt » Tue Jun 23, 2020 7:03 pm

The short explanation is that MP3 used to require a license and the file size of LPCM wav is too large to make sense.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

User avatar
PyTom
Ren'Py Creator
Posts: 15478
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Do audio formats still matter for Ren'Py?

#3 Post by PyTom » Tue Jun 23, 2020 11:39 pm

I'd recommend opus for new audio, if you can support it. Otherwise, ogg vorbis and mp3 are both good choices.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

XenoStaR
Newbie
Posts: 8
Joined: Fri Jan 19, 2018 4:08 pm
Contact:

Re: Do audio formats still matter for Ren'Py?

#4 Post by XenoStaR » Wed Jun 24, 2020 8:32 am

Thanks for the clarification! :)

BlackRose4eva
Newbie
Posts: 22
Joined: Wed Jul 08, 2015 6:34 am
Contact:

Re: Do audio formats still matter for Ren'Py?

#5 Post by BlackRose4eva » Sun Aug 30, 2020 8:11 am

PyTom wrote:
Tue Jun 23, 2020 11:39 pm
I'd recommend opus for new audio, if you can support it. Otherwise, ogg vorbis and mp3 are both good choices.
I've just tried converting one of the mp3 tracks we're using in our project to ogg vorbis but it's much heavier (mp3 = 2mb & ogg = 5mb)

The game that we're making has a lot of music in it so what would be recommend in our circumstance? Is the sound quality of .ogg worth it? Or can we still manage with mp3? I just found it a little odd as I thought the advantage to ogg was that the file size would be smaller?

Also what is meant but "opus for new audio"?

Thanks for your help on this.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3038
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Do audio formats still matter for Ren'Py? [Solved]

#6 Post by Imperf3kt » Sun Aug 30, 2020 5:15 pm

You converted a lossy file to a lossy file. That's not recommended, only really convert lossless to lossy unless you have no other source.

One reason the ogg file may have been larger would be your settings, how much you want to compress the file and how the bits are distributed from the bit rate.
The main advantage of ogg is not file size, but patent free file format.
MP3s patent expired some time ago though, so it's probably your better choice now.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

BlackRose4eva
Newbie
Posts: 22
Joined: Wed Jul 08, 2015 6:34 am
Contact:

Re: Do audio formats still matter for Ren'Py? [Solved]

#7 Post by BlackRose4eva » Mon Aug 31, 2020 5:29 am

Imperf3kt wrote:
Sun Aug 30, 2020 5:15 pm
You converted a lossy file to a lossy file. That's not recommended, only really convert lossless to lossy unless you have no other source.

One reason the ogg file may have been larger would be your settings, how much you want to compress the file and how the bits are distributed from the bit rate.
The main advantage of ogg is not file size, but patent free file format.
MP3s patent expired some time ago though, so it's probably your better choice now.
I see, I may have been mixing the advantages of ogg with the opus then. I just assumed everything was mp3 (although I have played some VNs with those audio file types too).

Thank you very much for clarifying though that mp3 is still fine. I just wanted to make sure that I wasn't compromising on anything audio wise. MP3 is definitely easier now that the patent has expired so I'll stick to that.

Thanks again :)

Post Reply

Who is online

Users browsing this forum: Google [Bot]