Skip to content

Commit

Permalink
remove PCM options from transcode packages
Browse files Browse the repository at this point in the history
as it turns out we won't need it
  • Loading branch information
sentriz committed Nov 16, 2022
1 parent 7ab1612 commit ec97289
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions transcode/transcode.go
Expand Up @@ -41,11 +41,9 @@ var (
Opus128 = NewProfile("audio/ogg", "opus", 128, `ffmpeg -v 0 -i <file> -ss <seek> -map 0:a:0 -vn -b:a <bitrate> -c:a libopus -vbr on -f opus -`)
Opus128RG = NewProfile("audio/ogg", "opus", 128, `ffmpeg -v 0 -i <file> -ss <seek> -map 0:a:0 -vn -b:a <bitrate> -c:a libopus -vbr on -af "volume=replaygain=track:replaygain_preamp=6dB:replaygain_noclip=0, alimiter=level=disabled, asidedata=mode=delete:type=REPLAYGAIN" -metadata replaygain_album_gain= -metadata replaygain_album_peak= -metadata replaygain_track_gain= -metadata replaygain_track_peak= -metadata r128_album_gain= -metadata r128_track_gain= -f opus -`)
Opus128RGLoud = NewProfile("audio/ogg", "opus", 128, `ffmpeg -v 0 -i <file> -ss <seek> -map 0:a:0 -vn -b:a <bitrate> -c:a libopus -vbr on -af "aresample=96000:resampler=soxr, volume=replaygain=track:replaygain_preamp=15dB:replaygain_noclip=0, alimiter=level=disabled, asidedata=mode=delete:type=REPLAYGAIN" -metadata replaygain_album_gain= -metadata replaygain_album_peak= -metadata replaygain_track_gain= -metadata replaygain_track_peak= -metadata r128_album_gain= -metadata r128_track_gain= -f opus -`)

PCM16le = NewProfile("audio/wav", "wav", 0, `ffmpeg -v 0 -i <file> -ss <seek> -c:a pcm_s16le -ac 2 -f s16le -`)
)

type BitRate int // kb/s
type BitRate uint // kilobits/s

type Profile struct {
bitrate BitRate // the default bitrate, but the user can request a different one
Expand All @@ -68,6 +66,7 @@ func WithBitrate(p Profile, bitRate BitRate) Profile {
p.bitrate = bitRate
return p
}

func WithSeek(p Profile, seek time.Duration) Profile {
p.seek = seek
return p
Expand Down

0 comments on commit ec97289

Please sign in to comment.