diff --git a/merge.sh b/merge.sh index 9cec0fc..bc939e5 100755 --- a/merge.sh +++ b/merge.sh @@ -2,7 +2,7 @@ processed_intro_path=$PWD/out/intro-processed.mp4 processed_outro_path=$PWD/out/outro-processed.mp4 echo łączenie video z dźwiękiem: -ffmpeg -vaapi_device /dev/dri/renderD128 \ +ffmpeg -y -vaapi_device /dev/dri/renderD128 \ -i out/video.mp4 -i $input_mono \ -video_track_timescale $timescale \ -tune stillimage \ @@ -41,4 +41,4 @@ echo "file $processed_outro_path" >>out/demuxer-branding.txt cat out/demuxer-branding.txt -ffmpeg -f concat -safe 0 -i out/demuxer-branding.txt -c:v copy -b:a 320k "$final_output" +ffmpeg -y -f concat -safe 0 -i out/demuxer-branding.txt -c:v copy -b:a 320k "$final_output" diff --git a/split.sh b/split.sh index c2d8c9f..ae26675 100644 --- a/split.sh +++ b/split.sh @@ -1,9 +1,9 @@ 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 -y -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 -y -i /tmp/left.wav -ac 1 -filter:a aresample=$aresample -map 0:a -c:a pcm_u8 -f data - >/tmp/leftraw & +ffmpeg -y -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