mdr2.encode
Create DAISY Talking Books for recorded productions
clean-up
(clean-up production)
Clean up temporary files of a production, namely the mp3 encoded DTB and the iso
create-iso
(create-iso {:keys [title publisher], :or {title "FIXME:", publisher "FIXME:"}, :as production} & [volume])
Pack a production in an iso file
encode
(encode production bitrate)
(encode production bitrate sample-rate)
Encode a production
with the given bitrate
and optional sample-rate
encode-or-split
(encode-or-split {:keys [volumes state], :as production})
(encode-or-split {:keys [state], :as production} bitrate sample-rate)
Encode a production
if it either fits on one volume or it has been split into multiple volumes already. Otherwise forward it to manual splitting. If bitrate
and sample-rate
are given it is expected that the production is in state “split”
encode-production
(encode-production production bitrate volume sample-rate)
Encode a production
using the given bitrate
, volume
and sample-rate
, i.e. convert the wav files to mp3
ideal-bitrate
(ideal-bitrate production)
Calculate the ideal bitrate based on the size of a production and how much will generally fit on a CD-ROM. It will first try a higher bitrate (see bitrates
). If the production still doesn’t fit on one CD it will subsequently try lesser bitrates. Return 0 if the content doesn’t even fit on one CD with the lowest bitrate.
sampling-rate
(sampling-rate production)
Return the sampling rate that should be used for the given production
. By default 22050.0 is used but for stereo productions we use 44100.0