Forum

Delete DVR video after 2 days automatically

Joël 2016-02-25 21:47:18 UTC in WMSPanel functionality

Hi,
With dvr recording you can set the time in wmspanel for overwriting a the recorded video after a few hours or minutes etc.
But is it also possible to delete a dvr video after a period of time, say 2 days automatically with wmspanel?
Now I trie it with a Cronjob, but people get a http 404 error in the player, because the content is deleted.

The purpose is to clear the dvr folder before the next live event start.

Joël 2016-02-29 11:13:10 UTC 

Hi,
of course, after 2 days you can delete manually the video of the recorded dvr stream in the WMSPanel under DVR streams.
But is it possible That I can make a Cronjob for this to send a command to Nimble, to do the same as I can do in the WMSPanel, deleting a recorded DVR stream?

Joël 2016-03-03 08:49:23 UTC 

Hi,
any idea or suggestions, to delete the recorded dvr video the right way, automatically?

Max 2016-03-03 12:52:32 UTC 

Hello Joël,

Currently it is not possible to command Nimble to delete an archive via API, we'll consider implementing it.

As a workaround I'd suggest using "Update a DVR setting" WMSPanel API (https://wmspanel.com/api_info#toggler=dvr4), you can update a DVR archive path to a new one (e.g. live/stream-20160303) and delete an existing (previous) path.

Joël 2016-03-03 16:14:22 UTC 

all right, I'll trie that. I have sent a request to eable pull api for my account.

Joël 2016-03-04 12:15:31 UTC 

Hi,

Api function works great to update the dvr settings of a stream.
But I can not use a variable path as recording path.
/var/cache/nimble/dvr/1-`date +%V_%d-%m-%Y`
the directory will be the same.

Max 2016-03-04 12:43:58 UTC 

Hi Joël,

It will be the same if you run updating the same day as previous archive is updated. If you're planning to delete/update it more often you can use hour/minute/seconds argument (%H-%M-%S).

Joël 2016-03-04 13:42:03 UTC 

All right I can use the same path and folder name again, and it will empty the dvr folder for me!? that will be perfect!
I also tried with %H-%M-%S
But is will give me the same folder name on the server: /var/cache/nimble/dvr/%H-%M-%S

Max 2016-03-04 13:51:19 UTC 

No, it should not empty it for you if you just update it to the same name.

I meant using something like app/stream-`date +%F_%H-%M-%S` as a new folder name so you can delete older one (or keep it for history, it is up to you, actually).

Post a reply


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRRTMPhlsnimble streamerABRcachewmsauthNimbleAPItranscoderSRTdvrapirtmpffmpegVODsrtfailoverDASHsldpstreamingrtspwmspanellivevodudppaywallsubtitlesDispersaRTSPvideoSLDPyoutubeabrlivestreamingmp4WMSAuthMPEG-DASHpay-per-viewgeodashstreamerWMSPaneledgebandwidthWindowsencryptionUDPhttpswhite labelconfigsmilmulticastFFMPEGsslMPEG-TSaudioCORSchunksraspberry pire-streamingmpeg-dashperformancecorsadvertizervlcrepublishingS3cloudfrontDRMuser agentandroidNDILarixrules.confplaylistadvertisingipv6MPEGTSFastSpringRAMthumbnailFMLEVATcrossdomainmpegtsSMILRecordingaespushakamaiwowzaserversPullmobilecodecerrorSSLbalanceTranscodem3u8chromecastplaylist_dvrWowzaIDreportingconfigurationbugdownloadpublish controlRepublishingnimblestreamerdomainLarix Broadcastermpeg-tsraspianloopVidillionHttpschunkAWSawsoriginCDNwms panelroutesamazonIPscte35ipupdatenimble webcam html5UIbitrateRegistration Issuedirect link32-bit Windowstwitchcache_controlitworkmelive abr support mpeg-dashwmspanelapiresumertmp abrbeirutWWDCdubaideep statsCentOS v6.4hls to multicast udpnooblogWowza AgentRemote StorageIIS Smooth StreamingcloudmediaAbrHTTPSHot-linking protectionHDSvaddioalertsjwplayer websitewhmcsbaselineAuthentication in HLSPi4nginx rtmp nimbleAV BridgepricelimitOld logsVaddioscte-35screencastPI3 Ubuntuview timeattaching domainscontainerinterfacesDVRRecordingloadbalancingmod_rewritemetadatadatmessageWMSCONFIG_HOMEprofileID3 tagsgbpsAxisrestreamcostwmsauthsignhighhds streamlocalciscohls restreaming.net hotlinkVLCniblergentoo install server nimblePublic Iptranscoding using NvidiaPaywall Authdecodertransocding republishingVideo PlayerofflinedocumentationNimble streamer upgradeTrancoderconcurrent-connectionsAliasfilelost trafficServer-sideicecast urlstoppedNimble Streamer versionrulemainhot linkingchangelebanonlocationmanifestMP4 not playedspaceLarix Groveamfpay per viewseekingdvr_archivesmpeg dashonSteam stopped workingobsTCORaspian BusternginxPlayReadyamazon web servicelimuxopensslHLS voddvr stream twicesdpshoutcasthot-linkAXVVGanalyticspaywalapplicationblocknvencExpression Encoder7brandingtrialHLS PlayerDASH Playerdebianmicrosoft streamMP4errorsrocksoftlog traffic statslive video on demandbandwithservernimblesessionidFFmpegmultiple originsscreen freezecan't registerprogressive downloadABR DASHprivate networkLarge DVR filessourceheaderno WMSPanelSnapshotslive videolog nimble analysertmp playbackinterleavingvideojsmac osx installvideo stopwotermarkadaptiveAV1 codecvimeohelp errorstreamsNGINX-RTMPJWPLAYERload balanceattachmentcache expiryvod no soundconcurrent connectioncdnvsomdvr streamconnectivityUbuntu 20 ARM - AWSunique visitor4Kcrossdomain more then 1 domainlive streamViewer StatscpuWidevineDelaympeg2tsFairplayServer-Side-Task-Controldisk migrationAWS 3buttnot foundCPU Loadscreen capturestereo to monopullAS3drmresourceaes encryptionTranscoderLive streamingsubscriptionsecurityinstall players setup ready to goDVRSettingstwitch larix broadcaster androidAppleDelete recordsABR HLS Bitrateslive pull settingsWMSPanel settingsrtmp for YouTubevideo loopicecastudp streamingoutratestarttime duration seekpointrebootmonitornimble streamer vod hls transmuxinglogginglearnerapi accessDeep statsloadbalancernimble.confrtmp republishing transcodeIIS Media Servicsweb playerinsert logodvr streamsautomationnimble streamer web server php script pageNimble Streamer APIlivestreamcontent-dispositionAVCaptureMovieFileOutputblock downloadNimble CapacityABR DVR problemLive SwitcherPost processingadd_chunk failedfake extensionMPEG DASHUbuntu artful 17.10Transcoder MPEG DASHNimble Servernot to stealLive Broadcaststatus:errorFFMPEG;RTMP;I/O errortranscodingRTMP republishHotlinking ProtectionStreaming routefacebookPIDMPEG-Dashlarix broadcasterbroadcasterOSXpaymentstatsreloadpremium featureserver incorrect timeThumbnailsLiveLIVEadvp9contentRTMP RepublishssaiDVR Setting limitdemandHow to do live stream with multiple audio trackrmtpno internetIOSProgressivenimble aliasesHLS Streamingthumbnail dvr-thumbnailLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignreportsavoid refreshraspberrysoundHLS Meta Tag editing.transcoder nimbleSecureJetson Nanotranscodevbv-maxratedvr on wmspanelVideo cant be playedS3 AWSuser_agentautomateAndroidVR-360Failoverdockerlivestream bitrateABR bitratesPacketizingbuildpublish streamStream Delaytraffichd25AArch64delaympeg4.movalias routestoragedomain lockVOD HLS streaming on public IPoutputUsers limitcloudflareanalisysscteno soundInvalid frame headerincoming streamHTML5 playerGopwirecasta recordhttp serverNimbleStreamerav1 codecabr fallbackNimble connectionsdistributionfastspringNimble streamermp2 audiodata slicesaliasplayer sldpqataritworkscdnvideo.jsspeedup my videoiOSissuepricinggoogle cloud storagedissapointmentpay-per-minuteRAM LoadlivestreamintransocderPaywallvideo and audio not matchdiskstorage space available3.6.1-1SO_RCVBUFbuffering videocompatibility protocolsMax connectionUDP MulticastgpurestarthelpFallbackError when installinghow-tomanage_dvrrulesDVRStreamsaws amazonserver ip21SSL requestMPEG2 Videologo in streamVP9sha265nimble on cloudprerollDVR SettingPORTanalyseStreamIDcredentialsincomingmulti-viewervideo audioCross DomainSRT protocolmd5nimble dvrrtpdurationBandwidthbufferRIST BondingplayoutControl APIfallbackQuickTimevideo streamingartifactsrtsp push androidtuningactionscript 3server ssl errorCSSRistwebhookdvr to liveprogressivebroadcast videoRTMP to SRTubuntu 18Teradek DecoderlatencyNimble_Crushdynamic linksTLSV 1.2 Certificatefairplayre-publishingSRT RTMPsoftware versionadjustBroadcasthotlink protectionultra low latencyRaspberryPi4Raspberrytasks-control

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.