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

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