From d15ee877cb49f90c49d574b08cde5d86ff35246e Mon Sep 17 00:00:00 2001 From: Haoming Chen Date: Mon, 23 Jul 2018 18:22:03 -0700 Subject: [PATCH] Add an example command for using trick play. Change-Id: Ibf1f455355f72f703e7732833a7a11d99874ce31 --- docs/source/tutorials/dash.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/source/tutorials/dash.rst b/docs/source/tutorials/dash.rst index 65b3f135ad..951bd8284e 100644 --- a/docs/source/tutorials/dash.rst +++ b/docs/source/tutorials/dash.rst @@ -44,7 +44,23 @@ applied to VP9 in the same way. --mpd_output h264.mpd The above packaging command creates five single track fragmented mp4 streams -(4 video, 1 audio) and a manifest, which describes the streams. +(4 video, 1 audio), a subtitle file and a manifest, which describes the streams. + +* on-demand with trick-play tracks:: + + $ packager \ + in=h264_baseline_360p_600.mp4,stream=audio,output=audio.mp4 \ + in=input_text.vtt,stream=text,output=output_text.vtt \ + in=h264_baseline_360p_600.mp4,stream=video,output=h264_360p.mp4 \ + in=h264_main_480p_1000.mp4,stream=video,output=h264_480p.mp4 \ + in=h264_main_720p_3000.mp4,stream=video,output=h264_720p.mp4 \ + in=h264_high_1080p_6000.mp4,stream=video,output=h264_1080p.mp4 \ + in=h264_main_480p_1000.mp4,stream=video,output=h264_480p.mp4,trick_play_factor=1 \ + in=h264_high_1080p_6000.mp4,stream=video,output=h264_1080p.mp4,trick_play_factor=1 \ + --mpd_output h264.mpd + +The above packaging command creates two extra trick play tracks, besides the files +genereated with the previous command. * static-live::