mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Add sampleRate and profile extraction for audio files
- Extract sampleRate and profile from audio streams in ffprobe output - Store sampleRate and profile in AudioFile objects - Expose sampleRate and profile through API endpoints - Add JSDoc documentation for new fields
This commit is contained in:
parent
122fc34a75
commit
fadd14484e
4 changed files with 18 additions and 5 deletions
|
|
@ -114,6 +114,7 @@ function parseMediaStreamInfo(stream, all_streams, total_bit_rate) {
|
|||
info.channels = stream.channels || null
|
||||
info.sample_rate = tryGrabSampleRate(stream)
|
||||
info.channel_layout = tryGrabChannelLayout(stream)
|
||||
info.profile = stream.profile || null
|
||||
}
|
||||
|
||||
return info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue