Replies: 3 comments 7 replies
-
Linking the API PR that somewhat relates to this: WordPress/openverse-api#266. |
Beta Was this translation helpful? Give feedback.
-
My thought is that we come up with a standardized list of formats, skip bitrate, and show people our 'pretty' names and the filesize. I think the fileformat gives enough assurance for most users and is the easiest for us to implement. We can use the bitrate as an input to determine which pretty name to use, but I don't think we need to display it. |
Beta Was this translation helpful? Give feedback.
-
I think a mapping of filetype to human readable that's been suggested would be fine... but we should segment it by provider, which means there will inevitably be a lot of repetition. I think we should do this because Jamendo is likely not the only provider that has multiple MP3 bitrates and if they all used mp31/mp32 but had different bit rates for each one then the keys would clash. On the other hand, we could do the mapping of |
Beta Was this translation helpful? Give feedback.
-
Based on the discussion in the PR adding Download button to Audio single result page.
We currently don't have a standard for audio file types and extension across the repositories.
The audio database in the catalog includes columns for
url
[for download and playback on the frontend] andfiletype
for the main audio file, as well as a JSONalt_files
column with an array of different formats available for the same file. The information that is currently saved in the following shape:On the front end, we need to join the information for the main file (file type, size, download url) with the information for alternative files (file type, size and download url) to show the Download button. Here, we also need to convert the technical filetype name into a user-friendly label text (eg.
mp31
from Jamendo's 96kbs mp3 file becomesMP3 96kbs
).Another point: do we want to display
{filetype} {bitrate}
for the filetype on the frontend, or something else? What if the bitrate is not available?For context, here are the file types available for the providers we are currently working on integrating:
Jamendo: mp31 (96kbs), mp32 (VBR, good quality), ogg, flac
Wikimedia: mid, flac, wav, mp3, ogg
Freesound: wav, aif, aiff, mp3, m4a, flac
What is the best way of encoding
mp3
format in our database?Jamendo's distinction between 96kbs mp3 and a VBR mp3 complicates this as we either need to introduce two mp3 formats, and select which of them to apply to the generic mp3 format from other providers, or keep the single mp3, and rely on the
bit_rate
column to create the distinction on the front end. Which probably means that we need to set thebit_rate
column type to string and haveVBR
as an option there.Beta Was this translation helpful? Give feedback.
All reactions