Skip to content

Instantly share code, notes, and snippets.

@ArneAnka
Last active May 25, 2020 10:05
Show Gist options
  • Select an option

  • Save ArneAnka/29edc60a5f286404de40bdf352a3eaf3 to your computer and use it in GitHub Desktop.

Select an option

Save ArneAnka/29edc60a5f286404de40bdf352a3eaf3 to your computer and use it in GitHub Desktop.

Revisions

  1. ArneAnka revised this gist May 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion How to pingpong
    Original 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. normalize audio?? (https://superuser.com/a/323127/643639, https://stackoverflow.com/a/58997035/4892914)
    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

  2. ArneAnka revised this gist May 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion How to pingpong
    Original 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¨
    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
  3. ArneAnka revised this gist May 6, 2020. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions How to pingpong
    Original 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
    (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, https://stackoverflow.com/a/58997035/4892914)
    6. PROFIT??
    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
  4. ArneAnka revised this gist May 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion How to pingpong
    Original 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)
    5. normalize audio?? (https://superuser.com/a/323127/643639, https://stackoverflow.com/a/58997035/4892914)
    6. PROFIT??
  5. ArneAnka revised this gist May 6, 2020. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions How to pingpong
    Original 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)
    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)
    (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??
  6. ArneAnka revised this gist May 6, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion How to pingpong
    Original 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
    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??
  7. ArneAnka revised this gist May 6, 2020. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions How to pingpong
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    1. youtube-dl -a lista.txt
    2. for f in *.mp4; do ffmpeg -i "$f" -vn "$(basename "$f" .mp4).mp3"; done
    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
    4. ffmpeg -i output_clean.mp3 -af silenceremove=1:0:-50dB output_stripped.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
  8. ArneAnka revised this gist May 6, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion How to pingpong
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    1. youtube-dl -a lista.txt
    2. ffmpeg -i input.mp4 -f mp3 -ab 192000 -vn output.mp3
    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
  9. ArneAnka created this gist May 6, 2020.
    4 changes: 4 additions & 0 deletions How to pingpong
    Original 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