your current location:首页 > news>Regarding how to process audio files as available OGG format files to customize records

Regarding how to process audio files as available OGG format files to customize records

2024-12-10 17:57:33|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC By-NC-ND protocol.

Former situation, the tools used in this tutorial are FFMPEG, you can also choose the audio editor you are familiar with, but that is not within the scope of this tutorial discussion.


P1: Download and configure FFMPEG

You can find tutorials on how to install FFMPEG on video websites such as Bilibili, which may be more helpful to you. Here you can only use Windows as an example. If you only need to view some audio processing tutorials, just decline to check P2.

1. Open the official download page of FFMPEG, find the download link corresponding to your operating system in "

You should click on the order below. The first link download is slower, and the second link may not be able to access it directly.

If you choose the first link, you should find "Release Builds" on the jump page, and select a download in "ffmpeg-release-full.7z", "ffmpeg-release-fild.7z".

If you choose the second link, you can see "FFMPEG-MASTER-LATESTEST-WIN64-GPL.ZIP", "ffmpeg-amaster-latest-win64-sHARED.ZIP" after jumpingChoose one to download.

2. After that, select a position to decompress and open the compressed package you downloaded, add the BIN directory to the environment variable path.

Example: If this is his directory,

Then you should right -click this computer, select the attribute, find "Advanced System Settings" in the pop -up page, select "Environment variable ..." in the lower right corner of the pop -up window, and then find "PATH" in the system variable, click and select and selectEdit-New, Enter the field "D: FMPEG FMPEG-MASTER-LATEST-WIN64-GPL IN", press Enter, select "OK" Application Two times.

3. In this way, you complete the installation of FFMPEG, then check P2, edit your audio files.


P2: Processing audio files.

1. First find the directory where you store the audio file, click the address bar to enter "CMD" and press Enter.

Audio file directory

Click the address bar

Enter CMD and Enter the car

2. Enter the following code in the pop -up black window and press Enter to convert the file to OGG format.

 ffmpeg -I file output files you want to process .Gg 

3. After waiting for the process processing, check the CMD window and check whether the OGG file contains a cover of the video stream.

Example:

It is not difficult to find that the red line part is difficult to find. Stream #0: 0 is a video stream (Video), which contains information related to the cover of the song, which will make the game cannot correctly read audio and play. Stream #0: 1 is what we needAudio, let us continue to operate to extract the audio stream.

Enter the following code and press Enter, extract the audio stream #0: 1 to another file.

 FFMPEG -I that the files just output .Gg -map 0: 1 -c Copy audio file .Gg 

In the example just now, we should do this:

After waiting for the process processing, we have a audio file with only audio stream.

4. Finally, you get a available OGG format audio file, you can add it into the game! (Remember not to have a lowercase letter, number, "-._" character)

5. In addition: If you need stereo sounds, distance attenuation and other playback effects, you need to convert audio files to single channels, and the operation method is as follows

 FFMPEG -i input file .ogg-AC 1 output file .Ogg