Use direct stream whenever possible to minimize overhead (#411)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 13 Jul 2022 23:21:55 +0000 (01:21 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 23:21:55 +0000 (01:21 +0200)
commit563f54a4e65ab8d71004824c9e3adb4f004ac1f4
tree9a55e5269d457232bc1ae49cbc803fc830b3fab7
parent0e1de4dbc382d874a41d8b6724791b635ea1542e
Use direct stream whenever possible to minimize overhead  (#411)

Use direct stream in ffmpeg if supported by source

Minimize overhead by allowing ffmpeg to consume the file/url directly.
music_assistant/helpers/audio.py
music_assistant/models/media_items.py
music_assistant/models/player_queue.py
music_assistant/music_providers/filesystem.py
music_assistant/music_providers/qobuz.py
music_assistant/music_providers/url.py
music_assistant/music_providers/ytmusic/ytmusic.py