Replace pydub for preview generation
|Assignee:||Thomas Mielke||% Done:|
|Category:||-||Estimated time:||5.00 h|
|Target version:||Repertoire 3) Testing phase III|
Maybe a combination of direct calls to ffmpeg for compression/conversion and sox for the preview composition (fadein/crossfades/fadeout) could be reasonable.
#1 Updated by Thomas Mielke over 6 years ago
- Assignee changed from Thomas Mielke to Alexander Blum
Another option would be to first create a temporary mono/16bit/11.025Hz wav file using ffmpeg or sox. Then we use this to
a) cut out the excerpt
b) create the preview and
c) create the fingerprint.
This should notably increase processing speed. I suggest we change the preview format from 8.000 to 11.025 Hz to avoid a resampling step.
#2 Updated by Alexander Blum over 6 years ago
- Assignee changed from Alexander Blum to Thomas Mielke
Thomas Mielke wrote:
first create a temporary mono/16bit/11.025Hz wav
using ffmpeg or sox
then ffmpeg. sox is currently not installed.
preview format from 8.000 to 11.025 Hz to avoid a resampling step.
right now it's 16000
if the quality is acceptable, then I'm fine, but it could happen, that we need a bit more to comfort the ears of the web users.
the estimate of the preview size should also be included in Estimates.