Hacker Public Radio

HPR3641: Turntable audio capture Part 2


Listen Later

Update to HPR 3507
hpr3507 :: USB Turntable fix and sound journey
record_capture_wav.sh
#!/bin/bash
echo "Record name?"
read record
echo "Which side is this?"
read side
arecord --device='hw:CARD=CODEC,DEV=0' --rate=96000 --channels=2 --vumeter=stereo --duration=1500 --format=dat --file-type wav $record"_Side_"$side.wav
record_capture_flac.sh
#!/bin/bash
echo "Record name"
read record
echo "Which side is this?"
read side
arecord --device='hw:CARD=CODEC,DEV=0' --rate=96000 --channels=2 --vumeter=stereo --duration=1500 --format=dat --file-type wav - | flac - -o $record"_Side_"$side.flac
Used hw:CARD=CODEC,DEV=0 derived from 'arecord -L'
hw:CARD=CODEC,DEV=0 USB Audio CODEC, USB Audio Direct hardware device without any conversions
arecord manpage
...
-f --format=FORMAT
Sample format
Recognized sample formats are: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE
FLOAT64_LE FLOAT64_BE IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM SPECIAL S24_3LE S24_3BE U24_3LE U24_3BE S20_3LE
S20_3BE U20_3LE U20_3BE S18_3LE S18_3BE U18_3LE
Some of these may not be available on selected hardware
The available format shortcuts are:
-f cd (16 bit little endian, 44100, stereo) [-f S16_LE -c2 -r44100]
-f cdr (16 bit big endian, 44100, stereo) [-f S16_BE -c2 -f44100]
-f dat (16 bit little endian, 48000, stereo) [-f S16_LE -c2 -r48000]
If no format is given U8 is used.
-d, --duration=#
Interrupt after # seconds. A value of zero means infinity. The default is zero, so if this option is omitted then the arecord process will run until it is killed.
-t, --file-type TYPE
File type (voc, wav, raw or au). If this parameter is omitted the WAVE format is used.
...
hpr2881 :: Automatically split album into tracks in Audacity
Changes as of 5-20-2022
Old way : Select the entire track and select Analyze > Silence Finder
Update : Select the entire track and select Analyze > Label Sounds
Label sounds menu
Click the thumbnail to see the full-sized image
Silence detection options
HowTo: Split MP3s by silence detection using mp3splt
https://blog.dornea.nu/2012/04/01/howto-split-mp3s-by-silence-detection-using-mp3splt/
mp3splt -s -p th=-40,min=6,rm
Parameters explanation:
'-s': silence mode; activate silence detection
'-p': specify arguments for the silence mode
'th=-40': threshold level (dB) to be considered silence
'min=6': minimum number of seconds to be considered as splitpoint
'rm': remove silence from splitted files
What worked for me
mp3splt -s -p th=-30,min=0.5,rm $1
Fix tracks not splitting
Manually seek the silence in mplayer/mpv
Note the silent areas
Cut with ffmpeg ie.
ffmpeg -i track.flac -ss 00:03:05 -to 00:06:00 -acodec copy track-cut1.flac
References
How to
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

290 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

372 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

268 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

651 Listeners

Curious Cases by BBC Radio 4

Curious Cases

822 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

422 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,056 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

181 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

42 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,807 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

98 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

140 Listeners

What the Hack? by DeleteMe

What the Hack?

228 Listeners