Created
May 22, 2019 03:32
-
-
Save ibejohn818/ffef672632822a116fcc745b84027f6d to your computer and use it in GitHub Desktop.
shaka packager dash/hls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -it -v ${PWD}:/vids google/shaka-packager \ | |
| 'in=misc1.mp4,stream=audio,init_segment=audio_init.mp4' \ | |
| 'in=misc1.mp4,stream=video,init_segment=h264_360p_init.mp4' \ | |
| --mpd_output h264.mpd \ | |
| --base_urls https://example.org/ \ | |
| --hls_base_url https://example.org/ \ | |
| --generate_static_mpd | |
| packager \ | |
| 'in=h264_baseline_360p_720.mp4,stream=audio,init_segment=audio_init.mp4,segment_template=audio_$Number$.m4s,playlist_name=audio.m3u8,hls_group_id=audio,hls_name=ENGLISH' \ | |
| 'in=h264_baseline_360p_720.mp4,stream=video,init_segment=h264_360p_init.mp4,segment_template=h264_360p_$Number$.m4s,playlist_name=h264_360p.m3u8' \ | |
| 'in=h264_main_480p_1400.mp4,stream=video,init_segment=h264_480p_init.mp4,segment_template=h264_480p_$Number$.m4s,playlist_name=h264_480p.m3u8' \ | |
| 'in=h264_high_720p_2400.mp4,stream=video,init_segment=h264_720p_init.mp4,segment_template=h264_720p_$Number$.m4s,playlist_name=h264_720p.m3u8' \ | |
| --hls_master_playlist_output h264_master.m3u8 \ | |
| --mpd_output h264.mpd \ | |
| --base_urls https://example.org/ \ | |
| --hls_base_url https://example.org/ \ | |
| --generate_static_mpd | |
| docker run --rm -it -v ${PWD}:/vids -w /vids google/shaka-packager packager \ | |
| 'in=misc1.mp4,stream=audio,init_segment=audio_init.mp4,segment_template=audio_$Number$.m4s,playlist_name=audio.m3u8,hls_group_id=audio,hls_name=ENGLISH' \ | |
| 'in=misc1.mp4,stream=video,init_segment=h264_360p_init.mp4,segment_template=h264_360p_$Number$.m4s,playlist_name=h264_360p.m3u8' \ | |
| --hls_master_playlist_output h264_master.m3u8 \ | |
| --mpd_output h264.mpd \ | |
| --base_urls https://jch-test-vids.s3-us-west-2.amazonaws.com/test/ \ | |
| --hls_base_url https://jch-test-vids.s3-us-west-2.amazonaws.com/test/ \ | |
| --generate_static_mpd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment