Compare commits
No commits in common. "b4e48a72822bdef2617f338db12a8130d46b3bac" and "2ed24e62a17699dd96349543bc1bbe4d2685e22c" have entirely different histories.
b4e48a7282
...
2ed24e62a1
20
anonradio/README.md
Normal file
20
anonradio/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# aNONradio
|
||||
|
||||
For the coolest DJs on the interwebs.
|
||||
|
||||
The magic values for the encoder? They come from the [Open Mic page][openmic].
|
||||
|
||||
[openmic]: https://anonradio.net/openmic/
|
||||
|
||||
## ffmpeg
|
||||
|
||||
`transcode.ffpreset` shows how you provide arguments to ffmpeg in a file instead of the command line. In preset files, you can also add comments. Anyone who's spent any time with ffmpeg knows the argument list can get out of control quickly. Note this is a "generic" preset example-- you can get fancy by adding per-codec presets. If you want the full story, consult [the documentation][ffpresets].
|
||||
|
||||
`encode.sh` just puts things together, and takes two positional arguments:
|
||||
- input filename
|
||||
- output filename
|
||||
|
||||
Example invocation:
|
||||
- `$ bash encode.sh sintel_trailer-audio.flac trailer.mp3`
|
||||
|
||||
[ffpresets]: https://ffmpeg.org/ffmpeg.html#Preset-files
|
10
anonradio/encode.bash
Normal file
10
anonradio/encode.bash
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: 0BSD
|
||||
|
||||
if [ -z $1 ] || [ -z $2 ]; then
|
||||
echo "ERROR: expecting 2 arguments: input file (1) and output file (2)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
FFMPEG_DATADIR="$PWD" \
|
||||
ffmpeg -i "$1" -fpre transcode.ffpreset "$2"
|
4
anonradio/transcode.ffpreset
Normal file
4
anonradio/transcode.ffpreset
Normal file
|
@ -0,0 +1,4 @@
|
|||
acodec=libmp3lame
|
||||
ac=2
|
||||
ar=44100
|
||||
b=192k
|
Loading…
Reference in New Issue
Block a user