Skip to content

Instantly share code, notes, and snippets.

@44213
44213 / VolumeDetect.md
Created September 18, 2021 08:43 — forked from xycui/VolumeDetect.md
Use ffmpeg to detect audio volume level. bat file included for easier interaction.

Detect the audio file volume with ffmpeg.

Require tools

  • ffmpeg: [Official site][1], [Download][2]

How to use

  1. Download ffmpeg from [link][2]
  2. Extract the ffmpeg.exe from zip package and copy to the directory contain the audio file
  3. Copy the volumeDetect.bat into the folder. (Just make sure the bat file and ffmpeg.exe are in the same directory)
  4. Doulbe click volumeDetect.bat and drag the file into the window.
  5. Press enter and get the result.

Install ffmpeg with ALL includes

brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')

Cut video from 00:00:43 sec to 00:00:58 sec (15 sec duration).
Resize it to 720p.
Max quality options, but small size.

MP4

With audio:

@44213
44213 / Links.txt
Created September 18, 2021 13:26
Open Directories
@44213
44213 / ffmpeg-commands.sh
Created September 17, 2021 19:51 — forked from rowe-morehouse/ffmpeg-commands.sh
ffmpeg commands.
# To extract the sound from a video and save it as MP3:
ffmpeg -i <video.mp4> -vn <sound>.mp3
# To convert frames from a video or GIF into individual numbered images:
ffmpeg -i <video.mpg|video.gif> <frame_%d.png>
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF:
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif>
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image:
@44213
44213 / music.sh
Created September 18, 2021 13:37 — forked from fabriziogiordano/music.sh
Tmux to record and play a streaming radio
#!/bin/sh
SESSION_NAME=Music
STREAMRIPPER="streamripper 'http://www.pulsradio.com/pls/puls-adsl.m3u' -d ~/Downloads/streamripper -s -r 9090 -o larger -M 500"
PLAY="clear && sleep 5s && mpg321 http://localhost:9090"
tmux has-session -t $SESSION_NAME 2>/dev/null
if [ $? -eq 1 ]
# Music session does not exist so create a new one
then
@44213
44213 / programm.rb
Created September 18, 2021 13:37 — forked from mro/programm.rb
#
# Bayern2 Programmseite abgrasen
#
require 'time'
# sudo gem install scrapi
#
# http://exceptionz.wordpress.com/2009/11/03/scrapi-on-snow-leopard/
require 'scrapi'
require 'cgi'
require 'sqlite3'
@44213
44213 / command.sh
Created September 18, 2021 13:35 — forked from bluvertigo/command.sh
Stream ripper - Radio Record / Registrare radio
streamripper http://ice1.somafm.com/missioncontrol-128-mp3 -q 33
@44213
44213 / Bashtuner
Created September 18, 2021 13:35 — forked from bashtuner/Bashtuner
Ein Script zum abspielen, verwalten und zeitgesteuertem aufnehmen von Internetradio Stationen.
#!/bin/bash
# Programm Bashtuner
# Autor Karsten Weidenfeld
# OS Linux Mint 14, Ubuntu 12.04
# Abhängigkeiten curl, vlc, zenity, streamripper, at
# Bashtuner ist ein Radio Abspielprogramm das wahlweise Sender aus einer lokalen Favouritenliste
# oder einer Onlineliste abspielt. Es können auch Sender aus der Onlineliste übernommen werden.
@44213
44213 / winy-capture.sh
Created September 18, 2021 13:34 — forked from jbuchbinder/winy-capture.sh
Streamripper audio stream capture for WINY 1350 AM, Putnam, CT
#!/bin/bash
# winy-capture.sh
streamripper "http://18783.live.streamtheworld.com/WINYAMAAC.aac?pname=StandardPlayerV4&pversion=4.19.0-003&tdsdk=js-2.9&banners=none&sbmid=fe526fc8-ee41-4b27-fb09-dbff4ac11f99" -A -t -a $(date +"%Y_%a_%b_%d_%H%M%P")
#!/bin/bash
# Programm Bashtuner
# Autor Karsten Weidenfeld
# OS Linux Mint 14, Ubuntu 12.04
# Abhängigkeiten curl, vlc, zenity, streamripper
# Bashtuner ist ein Radio Abspielprogramm das wahlweise Sender aus einer lokalen Favouritenliste
# oder einer Onlineliste abspielt. Es können auch Sender aus der Onlineliste übernommen werden.