chore: add alsa test sounds
This commit is contained in:
parent
64830b0ba1
commit
6d3c3dbf3b
13 changed files with 74 additions and 0 deletions
38
Earthfile
38
Earthfile
|
@ -32,6 +32,44 @@ avsync-video:
|
||||||
RUN ffmpeg -r $FPS -f concat -i /final-frames.txt -i track.wav -c:v libvpx-vp9 -pix_fmt yuva420p -shortest avsync.webm
|
RUN ffmpeg -r $FPS -f concat -i /final-frames.txt -i track.wav -c:v libvpx-vp9 -pix_fmt yuva420p -shortest avsync.webm
|
||||||
SAVE ARTIFACT avsync.webm
|
SAVE ARTIFACT avsync.webm
|
||||||
|
|
||||||
|
audio-channel-tracks:
|
||||||
|
FROM debian:bookworm
|
||||||
|
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
|
||||||
|
RUN mkdir -p /output
|
||||||
|
COPY assets/audio/channels /channels
|
||||||
|
WORKDIR /channels
|
||||||
|
RUN mkdir -p /output/wav/stereo /output/wav/5.1 /output/wav/7.1
|
||||||
|
RUN ffmpeg -i Left.wav -af "pan=stereo|FL=c0" /output/wav/stereo/Left.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Right.wav -af "pan=stereo|FR=c0" /output/wav/stereo/Right.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Center.wav -af "pan=stereo|FL=c0|FR=c0" /output/wav/stereo/Center.wav -hide_banner -loglevel error && \
|
||||||
|
# 5.1
|
||||||
|
ffmpeg -i Front_Left.wav -af "pan=5.1|FL=c0" /output/wav/5.1/Front_Left.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Front_Right.wav -af "pan=5.1|FR=c0" /output/wav/5.1/Front_Right.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Front_Center.wav -af "pan=5.1|FC=c0" /output/wav/5.1/Front_Center.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Noise.wav -af "pan=5.1|LFE=c0" /output/wav/5.1/LFE_Noise.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Rear_Left.wav -af "pan=5.1|BL=c0" /output/wav/5.1/Rear_Left.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Rear_Right.wav -af "pan=5.1|BR=c0" /output/wav/5.1/Rear_Right.wav -hide_banner -loglevel error && \
|
||||||
|
# 7.1
|
||||||
|
ffmpeg -i Front_Left.wav -af "pan=7.1|FL=c0" /output/wav/7.1/Front_Left.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Front_Right.wav -af "pan=7.1|FR=c0" /output/wav/7.1/Front_Right.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Front_Center.wav -af "pan=7.1|FC=c0" /output/wav/7.1/Front_Center.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Noise.wav -af "pan=7.1|LFE=c0" /output/wav/7.1/LFE_Noise.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Side_Left.wav -af "pan=7.1|SL=c0" /output/wav/7.1/Side_Left.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Side_Right.wav -af "pan=7.1|SR=c0" /output/wav/7.1/Side_Right.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Rear_Left.wav -af "pan=7.1|BL=c0" /output/wav/7.1/Rear_Left.wav -hide_banner -loglevel error && \
|
||||||
|
ffmpeg -i Rear_Right.wav -af "pan=7.1|BR=c0" /output/wav/7.1/Rear_Right.wav -hide_banner -loglevel error
|
||||||
|
SAVE ARTIFACT /output/wav
|
||||||
|
RUN mkdir -p /output/ogg/stereo /output/ogg/5.1 /output/ogg/7.1
|
||||||
|
RUN for file in /output/wav/stereo/*.wav; do ffmpeg -i $file -c:a libvorbis /output/ogg/stereo/$(basename $file .wav).ogg -hide_banner -loglevel error; done && \
|
||||||
|
for file in /output/wav/5.1/*.wav; do ffmpeg -i $file -c:a libvorbis /output/ogg/5.1/$(basename $file .wav).ogg -hide_banner -loglevel error; done && \
|
||||||
|
for file in /output/wav/7.1/*.wav; do ffmpeg -i $file -c:a libvorbis /output/ogg/7.1/$(basename $file .wav).ogg -hide_banner -loglevel error; done
|
||||||
|
SAVE ARTIFACT /output/ogg
|
||||||
|
RUN mkdir -p /output/mp3/stereo /output/mp3/5.1 /output/mp3/7.1
|
||||||
|
RUN for file in /output/wav/stereo/*.wav; do ffmpeg -i $file -c:a libmp3lame /output/mp3/stereo/$(basename $file .wav).mp3 -hide_banner -loglevel error; done && \
|
||||||
|
for file in /output/wav/5.1/*.wav; do ffmpeg -i $file -c:a libmp3lame /output/mp3/5.1/$(basename $file .wav).mp3 -hide_banner -loglevel error; done && \
|
||||||
|
for file in /output/wav/7.1/*.wav; do ffmpeg -i $file -c:a libmp3lame /output/mp3/7.1/$(basename $file .wav).mp3 -hide_banner -loglevel error; done
|
||||||
|
SAVE ARTIFACT /output/mp3
|
||||||
|
|
||||||
site:
|
site:
|
||||||
RUN npm install -g pnpm
|
RUN npm install -g pnpm
|
||||||
COPY package.json pnpm-lock.yaml /site
|
COPY package.json pnpm-lock.yaml /site
|
||||||
|
|
BIN
assets/audio/channels/Center.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Center.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Front_Center.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Front_Center.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Front_Left.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Front_Left.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Front_Right.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Front_Right.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Left.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Left.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Noise.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Noise.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Rear_Center.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Rear_Center.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Rear_Left.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Rear_Left.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Rear_Right.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Rear_Right.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Right.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Right.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Side_Left.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Side_Left.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/audio/channels/Side_Right.wav
(Stored with Git LFS)
Normal file
BIN
assets/audio/channels/Side_Right.wav
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in a new issue