Last active
May 25, 2020 10:05
-
-
Save ArneAnka/29edc60a5f286404de40bdf352a3eaf3 to your computer and use it in GitHub Desktop.
Revisions
-
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done // convert all mp4 to mp3 3. for f in *.mp3; do ffmpeg -i "$f" -af "highpass=f=200, lowpass=f=3000" "$(basename "$f" .mp3)_noice.mp3"; done 4. for f in *_noice.mp3; do ffmpeg -i "$f" -af silenceremove=1:0:-50dB "$(basename "$f" .mp3)_silence.mp3"; done 5. ffmpeg-normalize *.mp3 -c:a libmp3lame -b:a 192k -ext mp3 (https://superuser.com/a/323127/643639, https://stackoverflow.com/a/58997035/4892914) 6. ???? 7. PROFIT -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ 1. youtube-dl -a lista.txt // Download all lectures with youtube-dl from file `lista.txt` 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done // convert all mp4 to mp3 3. for f in *.mp3; do ffmpeg -i "$f" -af "highpass=f=200, lowpass=f=3000" "$(basename "$f" .mp3)_noice.mp3"; done 4. for f in *_noice.mp3; do ffmpeg -i "$f" -af silenceremove=1:0:-50dB "$(basename "$f" .mp3)_silence.mp3"; done 5. normalize audio?? (https://superuser.com/a/323127/643639, https://stackoverflow.com/a/58997035/4892914) 6. ???? 7. PROFIT -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,11 @@ 1. youtube-dl -a lista.txt // Download all lectures with youtube-dl from file `lista.txt` 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done // convert all mp4 to mp3 3. for f in *.mp3; do ffmpeg -i "$f" -af "highpass=f=200, lowpass=f=3000" "$(basename "$f" .mp3)_noice.mp3"; done 4. for f in *_noice.mp3; do ffmpeg -i "$f" -af silenceremove=1:0:-50dB "$(basename "$f" .mp3)_silence.mp3"; done¨ 5. normalize audio?? (https://superuser.com/a/323127/643639, https://stackoverflow.com/a/58997035/4892914) 6. ???? 7. PROFIT (2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3) (3. ffmpeg -i output.mp3 -af "highpass=f=200, lowpass=f=3000" output_clean.mp3) // reduce noice (https://superuser.com/questions/733061/reduce-background-noise-and-optimize-the-speech-from-an-audio-clip-using-ffmpeg) (4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3) // remove silent bits from the mp3 -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,5 +6,5 @@ (4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3) // remove silent bits from the mp3 4. for f in *_noice.mp3; do ffmpeg -i "$f" -af silenceremove=1:0:-50dB "$(basename "$f" .mp3)_silence.mp3"; done¨ 5. normalize audio?? (https://superuser.com/a/323127/643639, https://stackoverflow.com/a/58997035/4892914) 6. PROFIT?? -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,10 @@ 1. youtube-dl -a lista.txt // Download all lectures with youtube-dl from file `lista.txt` 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done // convert all mp4 to mp3 (2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3) (3. ffmpeg -i output.mp3 -af "highpass=f=200, lowpass=f=3000" output_clean.mp3) // reduce noice (https://superuser.com/questions/733061/reduce-background-noise-and-optimize-the-speech-from-an-audio-clip-using-ffmpeg) 3. for f in *.mp3; do ffmpeg -i "$f" -af "highpass=f=200, lowpass=f=3000" "$(basename "$f" .mp3)_noice.mp3"; done (4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3) // remove silent bits from the mp3 4. for f in *_noice.mp3; do ffmpeg -i "$f" -af silenceremove=1:0:-50dB "$(basename "$f" .mp3)_silence.mp3"; done¨ 5. normalize audio?? (https://superuser.com/a/323127/643639) 6. PROFIT?? -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,7 @@ 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done // convert all mp4 to mp3 (2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3) 3. ffmpeg -i output.mp3 -af "highpass=f=200, lowpass=f=3000" output_clean.mp3 // reduce noice (https://superuser.com/questions/733061/reduce-background-noise-and-optimize-the-speech-from-an-audio-clip-using-ffmpeg) 4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3 // remove silent bits from the mp3 5. normalize audio?? (https://superuser.com/a/323127/643639) 6. PROFIT?? -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ 1. youtube-dl -a lista.txt // Download all lectures with youtube-dl from file `lista.txt` 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done // convert all mp4 to mp3 (2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3) 3. ffmpeg -i output.mp3 -af "highpass=f=200, lowpass=f=3000" output_clean.mp3 // reduce noice (https://superuser.com/questions/733061/reduce-background-noise-and-optimize-the-speech-from-an-audio-clip-using-ffmpeg) 4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3 // remove silent bits from the mp3 -
ArneAnka revised this gist
May 6, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ 1. youtube-dl -a lista.txt 2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done (2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3) 3. ffmpeg -i output.mp3 -af "highpass=f=200, lowpass=f=3000" output_clean.mp3 4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3 -
ArneAnka created this gist
May 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ 1. youtube-dl -a lista.txt 2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3 3. ffmpeg -i output.mp3 -af "highpass=f=200, lowpass=f=3000" output_clean.mp3 4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.mp3