projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b487fc
)
Note possible future steps for Python 3 audio thumbnailing.
author
Ben Sturmfels
<ben@sturm.com.au>
Thu, 2 Apr 2020 06:18:39 +0000
(17:18 +1100)
committer
Ben Sturmfels
<ben@sturm.com.au>
Thu, 2 Apr 2020 06:18:39 +0000
(17:18 +1100)
mediagoblin/media_types/audio/transcoders.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/media_types/audio/transcoders.py
b/mediagoblin/media_types/audio/transcoders.py
index f78cbf288a941af376f9e925a7c8f19b8f4bf7b7..445ede5103c2c3289259d331038daaa161cb07bb 100644
(file)
--- a/
mediagoblin/media_types/audio/transcoders.py
+++ b/
mediagoblin/media_types/audio/transcoders.py
@@
-121,6
+121,10
@@
class Python3AudioThumbnailer(Python2AudioThumbnailer):
MediaGoblin. Until the feature is rewritten, this thumbnailer class simply
provides a generic image.
+ TODO: Consider Python 3 compatible interfaces to libsndfile, such as
+ https://pypi.python.org/pypi/PySoundFile/0.9.0.post1 as discussed here
+ https://issues.mediagoblin.org/ticket/5467#comment:6
+
"""
def spectrogram(self, src, dst, **kw):
# Using PIL here in case someone wants to swap out the image for a PNG.