ArtBox is a tool set for handling multimedia files.
- Documentation: https://ggpedia.games
- License: BSD-3 Clause
TBD
For the following examples, create the a temporary folder for artbox:
$ mkdir /tmp/artbox
$ echo "I love artbox!" > /tmp/artbox/text.md
$ artbox voice text-to-audio \
--title artbox \
--text-path /tmp/artbox/text.md \
--output-path /tmp/artbox/voice.mp3
If you need to generate the audio for different language, you can use
the flag --lang
:
$ echo "Bom dia, mundo!" > /tmp/artbox/text.md
$ artbox voice text-to-audio \
--title artbox \
--text-path /tmp/artbox/text.md \
--output-path /tmp/artbox/voice.mp3 \
--lang pt
$ artbox video download-from-youtube \
--url https://www.youtube.com/watch?v=zw47_q9wbBE \
--output-path /tmp/artbox/
# json format
echo '["E", "D#", "E", "D#", "E", "B", "D", "C", "A"]' > /tmp/artbox/notes.txt
$ artbox sound notes-to-audio \
--input-path /tmp/artbox/notes.txt \
--output-path /tmp/artbox/music.mp3 \
--duration 2
First, download the youtube video https://www.youtube.com/watch?v=zw47_q9wbBE
as explained before.
Next, run the following command:
$ artbox video remove-audio \
--input-path "/tmp/artbox/The Legend of Zelda Breath of the Wild - Nintendo Switch Presentation 2017 Trailer.mp4" \
--output-path /tmp/artbox/botw.mp4
First, download the youtube video https://www.youtube.com/watch?v=zw47_q9wbBE
as explained before.
Next, run the following command:
$ artbox video extract-audio \
--input-path "/tmp/artbox/The Legend of Zelda Breath of the Wild - Nintendo Switch Presentation 2017 Trailer.mp4" \
--output-path /tmp/artbox/botw-audio.mp3
First, execute the previous steps:
- Download a youtube video
- Remove the audio from a video
- Extract the audio from a video
Next, run the following command:
$ artbox video combine-video-and-audio \
--video-path /tmp/artbox/botw.mp4 \
--audio-path /tmp/artbox/botw-audio.mp3 \
--output-path /tmp/artbox/botw-combined.mp4
If you want to use Python to play your audio files, you can install playsound
:
$ pip wheel --use-pep517 "playsound (==1.3.0)"
After installing with poetry install
:
- Patch
pytube
(ref: pytube/pytube#1773):sed -i 's/(r"^$\\w+\\W")/(r"^\\w+\\W")/' $CONDA_PREFIX/lib/python3.*/site-packages/pytube/cipher.py