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:
Quentin King 2026-01-03 01:19:05 -06:00
parent 122fc34a75
commit fadd14484e
4 changed files with 18 additions and 5 deletions

View file

@ -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()