Best audio/video codec / container for Ren'py

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
User avatar
uyjulian
Regular
Posts: 128
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Best audio/video codec / container for Ren'py

#1 Post by uyjulian »

What's the best codec and container for Ren'py?

I'm using mkv container with flac audio codec for lossless audio;
mkv container with ogg audio codec for lossy audio;
webm container with x264 video codec, flac audio codec for FMVs.

I'm just wondering what is the best optimized combination for Ren'py?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Best audio/video codec / container for Ren'py

#2 Post by PyTom »

We like the webm format, except on iOS. It constrains both the container and available codecs to be something we can easily deal with.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
uyjulian
Regular
Posts: 128
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Best audio/video codec / container for Ren'py

#3 Post by uyjulian »

I noticed that opus does not play in Ren'py. I haven't tried VP9 yet.

So
VP8/Vorbis in webm for video
and
Vorbis in webm for lossy audio
are the best formats for Ren'py?

Are there any best practices for lossless audio? I notice flac is supported in Ren'py but will it continue to be supported?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Best audio/video codec / container for Ren'py

#4 Post by PyTom »

Yeah, we're set up for the old webm. I haven't looked into opus/vp9 yet.

Flac will continue to be supported, but it's probably a bad idea for game audio. It's more of a production format, isn't it?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
uyjulian
Regular
Posts: 128
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Best audio/video codec / container for Ren'py

#5 Post by uyjulian »

It seems like libavcodec included with Ren'py6.99.6 is outdated.

libavcodec with Ren'py is libavcodec.54; latest version is libavcodec.56 (ffmpeg release 2.8) and includes decoding opus support.

The other options for lossless audio is ape (takes a lot of cpu time, has controversial license), tak (closed source), and of course, wav (uncompressed, uses a lot of space). flac and wav can go into Matroska container.

Post Reply

Who is online

Users browsing this forum: Silac