Hi,

I'm looking for a way to add new segment to `mp4dash` encrypted (PlayReady) output without re-generating everything from scratch.
My approach was to use `mp4encrypt` with the same key used in `mp4dash` and then to update the `mediaPresentationDuration` field in `stream.mpd` but it does not work - the player detects the new video length but fails to play the last segment and just skips it.
The new segment I'm trying to append is the same size as the ones in the original encrypted video.

My steps are:
1. `mp4dash.bat --encryption-key=09e367028f33436ca5dd60ffe6671e70:b42ca3172ee4e69bf51848a59db9cd13 --playready-header=LA_URL:http://playready.directtaps.net/pr/svc/rightsmanager.asmx video_clear.mp4`

2. `mp4encrypt.exe --method MPEG-CENC --key 1:09e367028f33436ca5dd60ffe6671e70:b42ca3172ee4e69bf51848a59db9cd13 --fragments-info init-enc.mp4 seg-xyz-clear.m4s seg-xyz-enc.m4s`

What is the correct way of doing this? any help appreciated.
Append new segment to existing mp4dash output
This is a GitHub Issue
repo:Bento4
owner:axiomatic-systems
Title : Append new segment to existing mp4dash output
Issue date:

--- start body ---
Hi,

I'm looking for a way to add new segment to `mp4dash` encrypted (PlayReady) output without re-generating everything from scratch.
My approach was to use `mp4encrypt` with the same key used in `mp4dash` and then to update the `mediaPresentationDuration` field in `stream.mpd` but it does not work - the player detects the new video length but fails to play the last segment and just skips it.
The new segment I'm trying to append is the same size as the ones in the original encrypted video.

My steps are:
1. `mp4dash.bat --encryption-key=09e367028f33436ca5dd60ffe6671e70:b42ca3172ee4e69bf51848a59db9cd13 --playready-header=LA_URL:http://playready.directtaps.net/pr/svc/rightsmanager.asmx video_clear.mp4`

2. `mp4encrypt.exe --method MPEG-CENC --key 1:09e367028f33436ca5dd60ffe6671e70:b42ca3172ee4e69bf51848a59db9cd13 --fragments-info init-enc.mp4 seg-xyz-clear.m4s seg-xyz-enc.m4s`

What is the correct way of doing this? any help appreciated.
--- end body ---

None