shaka-project / shaka-streamer

A simple config-file based approach to preparing streaming media, based on FFmpeg and Shaka Packager.
https://shaka-project.github.io/shaka-streamer/
Apache License 2.0
198 stars 62 forks source link

Add support to multiple channel output options #38

Closed avelad closed 3 years ago

avelad commented 5 years ago

I want to be able to generate an output with audio 2.0 and 5.1.

Now, only one channel configuration is supported.

joeyparrish commented 5 years ago

To clarify, do you want to have one 2-channel input and one 6-channel input and have those turn into 2-channel and 6-channel output, respectively? Or do you want one 6-channel input turned into both a 6-channel input and a 2-channel output (downmixed)?

avelad commented 5 years ago

I want the second option.

Eg: input

output

Note: It would also be nice to be able to select the bitrate of the audio. Eg: AAC 96kbps and AAC 128kbps

joeyparrish commented 5 years ago

You can already change the output bitrates and redefine the resolutions with today's master branch, and in the upcoming v0.3.0 release. It's done through an additional config file. See config_files/bitrate_config.yaml and the -b option on the command-line.

The downmixing of input to various output channels isn't supported yet, but I'll add this as an enhancement for v1.0.

avelad commented 5 years ago

Yes it is true that this configuration exists, but I think that in my previous comment I was not clear.

I wish I could configure this:

In the configuration example, it is only possible to establish an stereo configuration, or at least I understood that. I need 2 configurations for stereo

joeyparrish commented 5 years ago

Ah, I see. Let's make that a separate feature request.