Others Project My project is basically done. Project name: "Advanced Audio Compression Algorithms with the OGG Vorbis Codec"

  • Thread starter Thread starter FamVanHa
  • Start date Start date
  • Views Views 567
  • Replies Replies 0
  • Likes Likes 1

FamVanHa

Active Member
Newcomer
Joined
Apr 29, 2024
Messages
33
Reaction score
31
Trophies
1
Age
18
XP
346
Country
Vietnam
After some tweaking, the Vorbis:X codec (based on the "Advanced Audio Compression Algorithms with the OGG Vorbis Codec" project) is essentially complete.

The software is free and open source, using FFprobe to determine the necessary information, FFmpeg to encode and decode the audio, and FFplay to play the PCM stream decoded from the OGG Vorbis:X stream.

The software adjusts the encoding and decoding methods to produce higher audio quality (and possibly lower latency [theoretically]) than traditional encoding/decoding methods.

There are two versions of the Vorbis:X codec: one that prioritizes audio quality and bandwidth, and the other that is the standard version, which has higher bitrate stability. The version included in this article is the first version.

I ran the code and it worked fine in most cases. Audio encoding, playback and decoding are all relatively smooth. As for the remaining issues that I haven't been able to resolve:

1/ The biggest issue: For some reason, the software only runs with some older versions of FFmpeg (the one I'm using is FFmpeg 4.3.1), some newer versions can cause the software to crash and become useless (I tried running Vorbis:X with FFmpeg 7.0 and 7.1 and it crashed as soon as I entered the information needed to run the software). I'm guessing that the command syntax or functionality in FFmpeg/FFplay/FFprobe has changed over the versions. If you know of a version of FFmpeg newer than 4.3.1 that makes Vorbis:X run without crashing or any lines of code in the source code that are invalid for newer versions of FFmpeg/FFplay/FFprobe, please let me know.

2/ Cannot fast forward/backward when playing audio from an OGG Vorbis:X file.

3/ I tried to compile the source code into binary code so that it can be executed without a Python environment but failed. The code can run fine in interpreted mode, but when compiled into binary code, although it compiles successfully, the executable cannot be launched.

HOW TO RUN?

Requirements:

Python or similar development environment.

Install FFmpeg 4.3.1 (newer versions may not be compatible at this time) and set the path to the PATH variable in System Environment Variables.

Then launch VorbisX__beta_312_en.py.

When you start the software, you will be asked to enter one of three corresponding values:

If you enter value 1:

The task you will perform is to encode/compress audio.

If the value is 2:

You will play audio from an OGG Vorbis:X file.

If the value is 3:

You can decode an OGG Vorbis:X file to uncompressed WAV format for playback on other devices.

The encoder configuration parameters will be provided soon.
 

Attachments

Last edited by FamVanHa,
  • Like
Reactions: IC

Site & Scene News

Popular threads in this forum