I'm using DRM for Fairplay system and able to generate encrypted segments using **mp4hls** using the below command and it also works as expected for multilingual tracks.
`mp4hls --verbose \
    --master-playlist-name=hls.m3u8 \
    --encryption-mode=SAMPLE-AES \
    --encryption-key=cb75f1394a3e13a5cbfb95f347350d335a8b7e330fea45d4765b6a89c9559331 \
    --encryption-iv-mode=fps \
    --encryption-key-format=com.apple.streamingkeydelivery \
    --encryption-key-uri=skd://80ceb435d360174a6b94f232b5ed4f7c \
    --output-dir=/Users/ramanpandey/Desktop/testvideos/hls_enc \
    --audio-format=ts \
    --segment-duration 10 /Users/ramanpandey/Desktop/testvideos/sample_trl_videos/sample_trl_vid_950x540.mp4
`
I need to embed subtitles as sidecar but I couldn't find any way to add subtitles in the track. please help me with the solution to add subtitles as a sidecar. 

I tried using mp4dash as well but it's failing with an error. ERROR: file /Users/ramanpandey/Desktop/testvideos/multilingual/test_eng_5_1_vid_1920x1080.mp4 is not fragmented (use mp4fragment to fragment it)

below is the mp4dash command i tried.
`mp4dash --verbose \
    --hls \
    --hls-master-playlist-name=hls.m3u8 \
    --encryption-key=2018bb3ee84ae9c6b95900d277eb4ae7:5e7a2bb3dd6e25a87185cc262db1b9bd \
    --encryption-cenc-scheme=cbcs \
    --fairplay-key-uri=skd://28fcb76031d755491db54ff97372cf19 \
    --output-dir=/Users/ramanpandey/Desktop/testvideos/hls_mp4dash_enc /Users/ramanpandey/Desktop/testvideos/multilingual/test_eng_5_1_vid_1920x1080.mp4`

Please someone suggest how can I add a subtitle sidecar for HLS playback?
How to add subtitle sidecar with mp4hls for HLS ?
This is a GitHub Issue
repo:Bento4
owner:axiomatic-systems
Title : How to add subtitle sidecar with mp4hls for HLS ?
Issue date:

--- start body ---
I'm using DRM for Fairplay system and able to generate encrypted segments using **mp4hls** using the below command and it also works as expected for multilingual tracks.
`mp4hls --verbose \
    --master-playlist-name=hls.m3u8 \
    --encryption-mode=SAMPLE-AES \
    --encryption-key=cb75f1394a3e13a5cbfb95f347350d335a8b7e330fea45d4765b6a89c9559331 \
    --encryption-iv-mode=fps \
    --encryption-key-format=com.apple.streamingkeydelivery \
    --encryption-key-uri=skd://80ceb435d360174a6b94f232b5ed4f7c \
    --output-dir=/Users/ramanpandey/Desktop/testvideos/hls_enc \
    --audio-format=ts \
    --segment-duration 10 /Users/ramanpandey/Desktop/testvideos/sample_trl_videos/sample_trl_vid_950x540.mp4
`
I need to embed subtitles as sidecar but I couldn't find any way to add subtitles in the track. please help me with the solution to add subtitles as a sidecar. 

I tried using mp4dash as well but it's failing with an error. ERROR: file /Users/ramanpandey/Desktop/testvideos/multilingual/test_eng_5_1_vid_1920x1080.mp4 is not fragmented (use mp4fragment to fragment it)

below is the mp4dash command i tried.
`mp4dash --verbose \
    --hls \
    --hls-master-playlist-name=hls.m3u8 \
    --encryption-key=2018bb3ee84ae9c6b95900d277eb4ae7:5e7a2bb3dd6e25a87185cc262db1b9bd \
    --encryption-cenc-scheme=cbcs \
    --fairplay-key-uri=skd://28fcb76031d755491db54ff97372cf19 \
    --output-dir=/Users/ramanpandey/Desktop/testvideos/hls_mp4dash_enc /Users/ramanpandey/Desktop/testvideos/multilingual/test_eng_5_1_vid_1920x1080.mp4`

Please someone suggest how can I add a subtitle sidecar for HLS playback?
--- end body ---
