|
|
|
@ -11,14 +11,14 @@ input=/home/kuba/Downloads/podcast-01-after-effects.mp3 # tutaj dajemy ścieżk
|
|
|
|
|
aresample=8000 # to bez zmian
|
|
|
|
|
|
|
|
|
|
echo dzielimy mp3 na dwa osobne wav
|
|
|
|
|
#ffmpeg -i $input -map_channel 0.0.0 /tmp/left.wav -map_channel 0.0.1 /tmp/right.wav
|
|
|
|
|
ffmpeg -i $input -map_channel 0.0.0 /tmp/left.wav -map_channel 0.0.1 /tmp/right.wav
|
|
|
|
|
|
|
|
|
|
echo na dwóch wątkach generujemy surowe pliki
|
|
|
|
|
#ffmpeg -i /tmp/left.wav -ac 1 -filter:a aresample=$aresample -map 0:a -c:a pcm_u8 -f data - > /tmp/leftraw &
|
|
|
|
|
#ffmpeg -i /tmp/right.wav -ac 1 -filter:a aresample=$aresample -map 0:a -c:a pcm_u8 -f data - > /tmp/rightraw &
|
|
|
|
|
ffmpeg -i /tmp/left.wav -ac 1 -filter:a aresample=$aresample -map 0:a -c:a pcm_u8 -f data - > /tmp/leftraw &
|
|
|
|
|
ffmpeg -i /tmp/right.wav -ac 1 -filter:a aresample=$aresample -map 0:a -c:a pcm_u8 -f data - > /tmp/rightraw &
|
|
|
|
|
|
|
|
|
|
# czekamy aż obydwa wątki się zakończą
|
|
|
|
|
#wait;
|
|
|
|
|
wait;
|
|
|
|
|
|
|
|
|
|
echo "generating the demuxers...";
|
|
|
|
|
|
|
|
|
|