superstreamerapp / superstreamer

An open, scalable, online streaming setup. All-in-one toolkit from ingest to adaptive video playback. Built for developers in need of video tooling.
https://superstreamer.xyz
Mozilla Public License 2.0
972 stars 28 forks source link

Use ffprobe to add sane defaults #10

Open matvp91 opened 3 months ago

matvp91 commented 3 months ago

Eg; we're not probing the input so if we use a 720p input file and specify 1080p, it'll upscale for no reason. We should ffprobe the input files in order to adjust the output streams accordingly.

matvp91 commented 1 month ago

Now that we have support for channels in audio, these should be optional. The same goes for language, we'd rather read it from ffprobe by looping over the different streams. If there's metadata or channels num in the input metadata, we'd rather pick that one.

Default to 2 channels num, and language equals "unk" when it could not be extracted. We don't want to be too harsh on throwing exceptions when input metadata is not available.