Comments (6)
I guess this can happen if we publish on a device that does not have MP3 support when using
audiofile
.
I think it's because of this line: https://github.com/audeering/audb/blob/master/audb/core/dependencies.py#L164 Since we don't know which formats are supported by audiofile
, we are pretty conservative here and only read the meta data if we know a file is WAV or FLAC.
from audb.
OK, so it's not really a bug, but a case where it would make sense to return None
instead of 0
;)
But I still think returning 0
is ok, if we don't know it.
I think one of the other reasons why we didn't included the metadata calculation for formats beside FLAC and WAV is that it can take longer for other formats, compare https://audeering.github.io/audiofile/benchmark.html#id4
So maybe we should just stay with the current behavior?
from audb.
So maybe we should just stay with the current behavior?
I would say so. And we should encourage users to always convert audio files to WAV
and FLAC
.
from audb.
And we should encourage users to always convert audio files to WAV and FLAC
Maybe internally, but for other users there might be good reasons to store the data in the original format.
Also internally we loose the information what was the original format when not storing it in a table (might not be needed, but just wanted to mention it).
from audb.
Maybe internally, but for other users there might be good reasons to store the data in the original format.
At some point I had the idea that a user can register custom functions that read the duration, sampling_rate, etc. for file types that we do not support with audiofile
. But I dropped it as I didn't see a real use-case for the moment.
from audb.
As we will not change this immediately, but we should also revisit it at some point I marked it as wontfix
from audb.
Related Issues (20)
- Attachments are uploaded again when restarting audb.publish()
- Filtering for a list of media files results in an error if the requested media format is not the original one HOT 6
- audb.load() tries to download non-existing table HOT 2
- Split database complete into media and attachment complete?
- Use different name to store dependencies of a database? HOT 1
- Requesting a format in audb.load() might lead to duplicated index entries HOT 3
- Media conversion in audb.load() does not load from cache
- audb.load() fails with JSON error HOT 6
- Document errors due to failed repository access
- Loading a database can fail if a user don't have access to one of the defined repositories HOT 2
- audb might fail to access data if a repo without access is stored on the same host HOT 2
- Use different loader when reading config file
- audb.versions() fails if a user don't have access rights
- Document error behavior of audb.Dependencies methods
- audb.publish() can look for wrong version number when updating existing archives HOT 1
- audb.available() can fail if a dataset is broken/not completely published
- Add polars to the comparison benchmark
- Support to connect to a backend only ones HOT 10
- Error on using `load` with `format` argument HOT 7
- Header as returned by audb.info.header() fails for __eq__()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audb.