Hi there … is there any function that can be used in order to delete content from nDVR?
For instance, I’m recording live events, which we keep in nDVR for a while (not fixed time). Once in a while, to do clear on content, I’d like to trigger a deletion for instance, all content of day X/Y/Z or something like that
We do that manually thorugh server admin now, and some complex scripts, but it’d be better to control it through some http providers
thanks
Wowza nDVR does not provide this type of file management functionality. You’ll need to write your own scripts for this kind of cleanup. The only deletion that can be configured is if you set DVR/ArchiveStrategy property in Application.xml to: delete, then if the stream is disconnected and then re-started, the previous recording will be deleted and replaced with the new recording.
-Lisa
The Wowza nDVR feature does not record .flv or .mp4 files that are transportable and re-usable outside of the nDVR system.
The Live Stream Record feature will do what you describe: record .flv (or .mp4) files in segments by time, and other methods. Here is the basic guide for Livestream Record
Richard
IDvrFileSystem fs = dvrStore.getFileSystem();
if(fs.doesFileSystemExist()) {
fs.deleteFileSystem();
}
Hi,
Is it possible to split the ndvr recording video file (*.flv) based on timings, so that I can delete the files and save some disk space. Let say, I would like to split the recording file for every hour. Is it possible ? If yes, could you please tell me how to do that ?
I have checked the ndvr advanced configuration https://www.wowza.com/docs/how-to-do-advanced-configuration-for-wowza-ndvr and I couldn’t figure out the right one! I’m using Wowza - 3.6 version on ubuntu linux.
Thanks in advance,
Just checking in on this old thread to see if it’s yet possible to automatically delete old DVR files.
I’m recording my live streams and using the moduleS3Upload to move them to S3 after the stream ends. I’d like to delete the DVR for a stream 24 hours after it ends, is there a setting anywhere that would do that?
Can you add this functionality to REST API? I need that urgently.
Thanks to Jin-mo Kang, I could solve it by adding this code to a listener “onUnPublish” of IMediaStreamActionNotify2
public void onUnPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {
logger.info("onUnpublish [" + streamName + "] - CLEANING DVR STORE");
// Cleaning DVR store
ILiveStreamDvrRecorder dvrRecorder = stream.getDvrRecorder(IDvrConstants.DVR_DEFAULT_RECORDER_ID);
IDvrStreamStore dvrStore = dvrRecorder.getDvrManager().getDefaultStreamingStore();
IDvrFileSystem fs = dvrStore.getFileSystem();
if (fs.doesFileSystemExist()) {
fs.deleteFileSystem();
}
}
This is deleting the dvr store when the stream is finished.