1ère Générale NSI

 

Term. Générale NSI

 

Terminale STI2D SIN

Bts Ccst

Technico-commercial 3.0

https://docs.pinokio.computer/download/

https://docs.pinokio.computer/download/intelmac.html

 

La librairie FFmpeg est une collection de logiciels libres destinés au traitement de flux audio ou vidéo (enregistrement, lecture ou conversion d'un format à un autre). Elle est utilisée par de nombreux autres logiciels ou services comme VLC, iTunes ou YouTube.

Voici quelques-unes des tâches que la librairie FFmpeg permet d'effectuer :

  • Enregistrer et lire des fichiers audio ou vidéo dans une grande variété de formats, y compris les formats les plus courants tels que MP3, WAV, AVI, MP4, etc.
  • Convertir des fichiers audio ou vidéo d'un format à un autre.
  • Extraire l'audio ou la vidéo d'un fichier multimédia.
  • Fusionner plusieurs fichiers audio ou vidéo en un seul.
  • Appliquer des effets audio ou vidéo à un fichier.
  • Éditer des fichiers audio ou vidéo.

La librairie FFmpeg est un outil puissant et polyvalent qui peut être utilisé pour une variété de tâches liées au traitement audio et vidéo. Elle est utilisée par des professionnels et des amateurs du monde entier.

Voici quelques exemples concrets d'utilisation de la librairie FFmpeg :

  • Un vidéaste peut utiliser FFmpeg pour convertir une vidéo enregistrée dans un format non compatible avec son logiciel de montage.
  • Un musicien peut utiliser FFmpeg pour extraire l'audio d'une vidéo afin de la réutiliser dans un projet musical.
  • Un développeur peut utiliser FFmpeg pour créer un logiciel de streaming vidéo.

La librairie FFmpeg est disponible gratuitement sous licence GPL. Elle est compatible avec de nombreux systèmes d'exploitation, notamment Windows, macOS, Linux et Android.

 

brew install ffmpeg 

# for Mac
brew install ffmpeg
# for Windows and Linux
pip install ffmpeg


Search
Write

Richard GAUTHIER
Get unlimited access to the best of Medium for less than $1/week.
Become a member


How to Set Up Meta’s AudioCraft Locally on your Computer to Generate Free Unlimited Music
Sharath Ravi
Sharath Ravi

·
Follow

3 min read
·
Sep 10
20

 

 

 

What if we can generate enchanting music for free within minutes?

What if we can generate soulful music from texts?

What if we don’t need any of the music instruments to generate a full length song music by using only a computer?

What if we could run a DJ using computer?

I always believe that “Nothing is impossible”. And now, the times are here. We need to be more ambitious, more vigilant and more intelligent!!!

In this blog, I’m going to explain how to install Meta’s AudioCraft in your local computer and create music using texts.

What is Meta’s AudioCraft?
AudioCraft is a AI research project done by Meta. They released the project to the public recently. AudioCraft is a single-stop code base for all your generative audio needs: Music, Sound Effects and Compression after training on raw audio signals.

What are the main features?
Text-to-music generation.
Text-to-sound generation.
How to install Text-to-music generation on your local computer?
Create a new conda environment (If you didn’t install anaconda in your computer then please do that by checking this link — https://docs.anaconda.com/free/anaconda/install/)
# code for creating a new conda environment.
# You can mention the python version as well.
# you can give any name to the new environment. I've given "new_env_name"
conda create -n new_env_name python=3.9
2. Activate the newly created conda environment.

conda activate new_env_name
3. Make sure that you have installed ffmpeg library for playing the audio/music using Gradio ( web interface ).

# for Mac
brew install ffmpeg
# for Windows and Linux 
pip install ffmpeg
4. Clone the Meta’s AudioCraft from GitHub.

# make sure that you have installed git.
# if no, then check - https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
git clone https://github.com/facebookresearch/audiocraft.git
5. Get into “audiocraft” folder and install all the requirements.

# change directory to audiocraft
cd audiocraft
# install all the requirements
python -m pip install -r requirements.txt
6. If you didn’t install torch ( library ) then please do it.

# code for installing torch
pip install torch
7. Activate Music-Gen app.

# run the following code
python -m demos.musicgen_app --share
8. Copy public/local URL and paste it to web browser. Then you can see a Gradio UI coming up on your browser.


Gradio UI for Music gen app
9. Now you can try some texts like “Rock Music and add some Piano” or something you wish to generate music.

10. You can select the model, decoder and duration and click on “Submit”. This may take time depending on your computer configuration. After few minutes you can hear the music generated by your texts!!!!

In this blog, I only explained “how to create music”. I’ll be explaining “how to create sound effects” in my next blog.

I’ve explained the same thing on this Youtube Video — https://www.youtube.com/watch?v=2xVzOh9hvZ0&t=197s

If you have any doubts or comment please feel free to ask directly or post a comment. Here are my details.

X(Twitter) — https://twitter.com/sharathravi88

LinkedIn — https://www.linkedin.com/in/sharathravi/

I hope you found this article helpful! If you have any questions, please feel free to leave a comment below. And if you enjoyed the article, please consider following me on Medium for more content on AI, Games, digital marketing etc

AI
Artificial Intelligence
Music
Machine Learning
Learning
20

 

 

Sharath Ravi
Written by Sharath Ravi
199 Followers
Passionate about tech, AI, and gaming. Avid traveller, music lover, movie buff, and seeker of new experiences. Join me on the journey of discovery!

 

En poursuivant votre navigation sur mon site, vous acceptez l’utilisation des Cookies et autres traceurs  pour réaliser des statistiques de visites et enregistrer sur votre machine vos activités pédagogiques. En savoir plus.