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 for configuring the output format #31

Open Romantic-LiXuefeng opened 5 years ago

Romantic-LiXuefeng commented 5 years ago

In my user case, we don't need to output DASH. Just need to output HLS with TS, so hope to support to configure the output container format.

Angels-group commented 5 years ago

In my user case, we don't need to output DASH. Just need to output HLS with TS, so hope to support to configure the output container format.

You can configure in pipeline config:

# Manifest format (dash, hls or both)
manifest_format:
  - dash
  - hls

https://github.com/google/shaka-streamer/blob/master/config_files/pipeline_vod_config.yaml

Romantic-LiXuefeng commented 5 years ago

To clear that, just need to output HLS with TS container, now the pipeline config default support to output with m4s.

ismena commented 5 years ago

@Romantic-LiXuefeng Thanks for bringing this up, we don't have support for configuring container yet (we only do mp4 now, as you've noticed).

Having this is a great idea, though, so I'm tagging this as an enhancement, and we'll work on it.

If you're interested in mp4/HLS in the meantime, @Angels-group's advice is spot on, just set the manifest_format field to hls and we'll do it.

joeyparrish commented 5 years ago

Until we offer a configuration for this, you can check out the source code and change "mp4" to "ts" in both get_output_format methods in streamer/bitrate_config.py. That should allow to you test your workflow in the mean time.