mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:19:40 +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
|
|
@ -17,6 +17,7 @@ class MediaProbeData {
|
|||
this.channelLayout = null
|
||||
this.channels = null
|
||||
this.sampleRate = null
|
||||
this.profile = null
|
||||
this.chapters = []
|
||||
|
||||
this.audioMetaTags = null
|
||||
|
|
@ -58,6 +59,7 @@ class MediaProbeData {
|
|||
this.channelLayout = this.audioStream.channel_layout
|
||||
this.channels = this.audioStream.channels
|
||||
this.sampleRate = this.audioStream.sample_rate
|
||||
this.profile = this.audioStream.profile
|
||||
this.chapters = data.chapters || []
|
||||
|
||||
this.audioMetaTags = new AudioMetaTags()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue