- Linux-based OS
- Installed ffmpeg tool
- Installed java
Mixtool може працювати в трьох режимах:
- ONLY AUDIO
- ONLY VIDEO
- VIDEO&AUDIO
Key | Description | Value |
---|---|---|
-asrc |
Audio source. The absolute file path to which you want to apply effects. | /path/to/source/file.wav |
-d |
Duration. Create silent file with duration of N seconds. | 60 |
-se |
Sound effect. The absolute file paths to sound effects you want to apply. | /sound_efects/ahem_x.wav /sound_efects/bee.wav |
-t |
Time line. Time in milliseconds when to apply the effect. If adding tag 'L' effect will be loops. | 1000 or 1000L |
-out |
Output. The absolute file path where you want to save mixed audio file. | /path/to/output/file.wav |
Impotant:
- You can choose only
-asrc
or-d
key. - Number of effects and time stamps in time line should be the same.
java -jar mixtool.jar -asrc /home/user/source.wav \
-se /sound_efects/ahem_x.wav \
/sound_efects/ahem_x.wav \
/sound_efects/ahem_x.wav \
-t 0 5000L 18000 \
-out /home/ygrigortsevich/Documents/SpilnaSprava/ffmpeg/output/filename.wav
What command do:
- Audio source file is /home/user/source.wav
- Uses three /sound_efects/ahem_x.wav effect.
- Effects applies to 0, 5, 18 seconds. On the fifth second effect repeats.
- Mixed file saved in /home/ygrigortsevich/Documents/SpilnaSprava/ffmpeg/output/filename.wav
java -jar mixtool.jar -d 60 \
-se /sound_efects/ahem_x.wav \
/sound_efects/ahem_x.wav \
/sound_efects/ahem_x.wav \
-t 0 5000L 18000 \
-out /home/ygrigortsevich/Documents/SpilnaSprava/ffmpeg/output/filename.wav
What command do:
- Create silent audio file with duration of 60 seconds
- Uses three /sound_efects/ahem_x.wav effect.
- Effects applies to 0, 5, 18 seconds. On the fifth second effect repeats.
- Mixed file saved in /home/ygrigortsevich/Documents/SpilnaSprava/ffmpeg/output/filename.wav
Key | Description | Value |
---|---|---|
-fm |
Frame mask. | /create_video/frame_%06d.png |
-CBR |
Constant bitrate. | 2000k |
-ABR |
Average bitrate. | 200k |
-VBR |
Variable bitrate. | 100k 300k |
-fps |
Framerate. | 24 |
-out |
Output. The absolute file path where you want to save mixed video file. | /path/to/output/file.mp4 |
Impotant:
- You can choose only
-CBR
or-ABR
or-VBR
key.
java -jar mixtool \
-fm /create_video/frame_%06d.png \
-ABR 1000k \
-fps 24 \
-out /SpilnaSprava/mixtool/output/ideaVideoAndAudio.mp4
What command do:
- Video will created from images with mask frame_%06d.png that located in folder create_video.
- Set average bitrate to 1000k.
- Set framerate to 24 frames per second.
- Mixed file saved in /SpilnaSprava/mixtool/output/ideaVideoAndAudio.mp4
Для того щоб згенерувати відео, що містить в собі аудіо потрібно вказати всі параметри.
java -jar mixtool \
-d 30 \
-se /sound_efects/car_x.wav \
/sound_efects/ahem_x.wav \
/sound_efects/applause_y.wav \
-t 0 5000L 10000 \
-fm /create_video/frame_%06d.png \
-ABR 1000k \
-fps 24 \
-out /SpilnaSprava/mixtool/output/ideaVideoAndAudio.mp4
What command do:
- Create silent audio file with duration of 30 seconds
- Uses three effects: car_x.wav, ahem_x.wav, applause_y.wav.
- Effects applies to 0, 5, 10 seconds. On the fifth second effect repeats.
- Video will created from images with mask frame_%06d.png that located in folder create_video.
- Set average bitrate to 1000k.
- Set framerate to 24 frames per second.
- Mixed file saved in /SpilnaSprava/mixtool/output/ideaVideoAndAudio.mp4