Commit 062a307d authored by fred's avatar fred

add intermediate sound quality

parent 8e465650
......@@ -124,8 +124,10 @@ class Command(BaseCommand):
orig_bitrate = get_bitrate(soundfile.file.path)
vorbis_q = 5
if orig_bitrate is not None:
if soundfile.episode.emission.podcast_sound_quality == 'high':
if soundfile.episode.emission.podcast_sound_quality == 'highest':
vorbis_q = 9
elif soundfile.episode.emission.podcast_sound_quality == 'high':
vorbis_q = 7
# cap quality to original bitrate (using vorbis quality mapping)
for i, rate in enumerate(vorbis_rates):
if orig_bitrate < rate:
......
......@@ -35,6 +35,7 @@ LICENSES = (
PODCAST_SOUND_QUALITY_LIST = (
('standard', _('Standard')),
('high', _('High')),
('highest', _('Highest')),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment