Forum

How do I delete or clear out existing dvr streams?

Ricardo 2016-08-05 01:31:18 UTC in Nimble Streamer

Is there a URL API for doing this?

I deleted content (the UTC directories) off the server but that kind of messes things up. Probably nimble streamer keeps state information.

But I need to be able to keep unique dvr streams, but seeming as that is not possible, at a minimum I need to clear out previous content in order to have a new stream recorded.

Max 2016-08-05 07:50:11 UTC 

Hello Ricardo,

You can delete archive content clicking "Remove" button for the corresponding archive on https://wmspanel.com/nimble_live_streams/dvr page or you can use Nimble management API (https://wmspanel.com/nimble/api) posting to /manage/dvr/cleanup_archive/<stream_name> (e.g. /manage/dvr/cleanup_archive/live/stream to cleanup DVR archive for /live/stream).

Please note that this interface is currently not described on https://wmspanel.com/nimble/api page, we'll update the page in couple of days.

Ricardo 2016-08-05 16:16:45 UTC 

Thanks Max.

Is there a way to do this programatically, via PHP?

Ricardo 2016-08-05 16:23:18 UTC 

Actually, not even php, I would be using a perl script server-side to automatically do the cleanup

Max 2016-08-05 18:16:33 UTC 

In order to clear DVR archive you need to make a HTTP POST request to Nimble, e.g. you can do that from command line using "curl -X POST http://server:management_port/manage/dvr/cleanup_archive/live/stream" command.

Please check documentation or google how to do that on PHP or Perl.

Ricardo 2016-08-05 21:23:24 UTC 

Hi Max,

I tried that from the command line (the stream name is test),

curl -X POST http://localhost:8080/manage/dvr/cleanup_archive/live/test

And I get a not implemented error

<html><head><title>Not Implemented</title></head><body>Not Implemented</body></html>

Max 2016-08-05 21:34:44 UTC 

Ricardo,

This POST should be send to management interface, please read documentation about it on https://wmspanel.com/nimble/api#toggler=0 page.

Ricardo 2016-08-05 21:46:01 UTC 

Thanks for the clarification!

On a different subject (I know I do have another post on this, sorry to bring it up here ) do you happen to have any experience with the MP4 conversion of playlist_dvr?

Yury Udovichenko 2016-08-08 01:51:33 UTC 

Hi Ricardo,

Have you seen this discussion? https://wmspanel.com/forum/question/DVR-to-MP4

Ricardo 2016-08-08 04:23:37 UTC 

Hi,

Yes I have. The only way to properly do it is to use the play_dvr_range when there are multiple sessions.

If I attempt to do the full playlist_dvr.m3u8 into ffmpeg when there are multiple sessions it encounters continuity errors and doesn't work properly

Max 2016-08-08 07:01:23 UTC 

Hello Ricardo,

You can get DVR archive timeline using /manage/dvr_status Nimble API with timeline parameter, e.g. "curl -v http://localhost:8080/manage/dvr_status?timeline=true" and use this timeline to get archive segments separately using EPG requests.

Ricardo 2016-08-08 17:42:28 UTC 

Oh, that's great information... thanks Max!

Is that an output that I can parse using an xml parser?

Max 2016-08-08 18:49:04 UTC 

Nimble sends response in json format, not xml, you can parse it using json parser.

Joël 2016-08-25 21:16:35 UTC 

Hi, I had same challenge to start with an empty DRV folder, with live streaming every time.
I do it with a cronjob, so you can easily schedule, the api function and erase the folder at any moment you want.
because the delete function, curl -X DELETE, for DVR by api wasn't available for a long time, I used the update function for dvr (-X PUT -H)
here a little example:

Update the DVR settings to a different path
* 6 * * 1 /usr/bin/curl -X PUT -H 'Content-Type: application/json' -d '{"application":"application-name","stream":"stream-name","path":"/path-to-original-folder
* 6 * * 2 /usr/bin/curl -X PUT -H 'Content-Type: application/json' -d '{"application":"application-name","stream":"stream-name","path":"/path-to-second-folder
* 6 * * 3 /usr/bin/curl -X PUT -H 'Content-Type: application/json' -d '{"application":"application-name","stream":"stream-name","path":"/path-to-third-folder
* 6 * * 4 /usr/bin/curl -X PUT -H 'Content-Type: application/json' -d '{"application":"application-name","stream":"stream-name","path":"/path-to-original-folder
etc

* 5* * 1 rm -rf //dvr-path-to-original-folder/* (delete dvr folder at monday 5am)
* 5* * 2 rm -rf //dvr-path-to-second-folder/* (delete dvr folder at tuesday 5am)
* 5* * 3 rm -rf //dvr-path-to-third-folder/* (delete dvr folder at wednesday 5am)
* 5* * 4 rm -rf //dvr-path-to-original-folder/* (delete dvr folder at thursday 5am)
etc.

Post a reply


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRRTMPhlsnimble streamerABRwmsauthcacheNimbleffmpegdvrAPIapitranscoderfailoverVODstreamingDASHwmspanelrtmpvodudprtsppaywallsubtitlesDispersaRTSPyoutubelivelivestreamingmp4MPEG-DASHWMSAuthgeopay-per-viewdashstreamervideoabrWindowsencryptionUDPhttpswhite labelconfiguser agentsmilFFMPEGmulticastsslaudioMPEG-TSedgere-streamingCORSchunksraspberry piandroidsldpbandwidthmpeg-dashadvertizercorsvlcDRMS3rules.confadvertisingipv6FastSpringRAMwms panelthumbnailFMLEVATcrossdomainupdatempegtsRecordingplaylistSMILaespushakamaiserversSRTwowzam3u8TranscodeerrorSSLbalanceplaylist_dvrWowzachromecastconfigurationreportingsrtbugIDdownloadnimblestreamerdomainperformancempeg-tsraspianpublish controlcodecVidillionHttpsloopAWSIPWMSPanelmobilerepublishingawschunknimble webcam html5UIRegistration Issuedirect link32-bit Windowstwitchanalysecache_controlitworkmelive abr support mpeg-dashrtmp abrbeirutWWDCdubaideep statshls to multicast udplogIIS Smooth StreamingcloudmediaCDNHTTPSAbrHot-linking protectionHDSvaddioMPEGTSalertsNDIViewer Statsjwplayer websitewhmcsbaselineAuthentication in HLSCentOS v6.4nginx rtmp nimbledurationpriceAV BridgelimitOld logsVaddioscreencastPI3 Ubuntuview timewmspanelapiattaching domainsinterfacesWMSCONFIG_HOMEmessageDVRRecordingloadbalancingrestreamcostoriginmetadatamod_rewriteprofileAxisgbpsID3 tagswmsauthsignhighhds streamhls restreamingciscolocalVLCresumenibler.net hotlinkVideo Playertransocding republishingdecodergentoo install server nimbleAliaslost traffictranscoding using NvidiaPublic IpPaywall Authdocumentationofflineconcurrent-connectionsTrancoderfilelebanonlocationmanifestipMP4 not playedspaceicecast urlruleServer-sidehot linkingseekingtasks-controlchangeamfstoppedmainplayoutPlayReadylimuxamazon web servicedvr stream twicedvr streamconnectivityunique visitoronAXVVGhot-linkpay per viewaliasdata slicesblockHLS vod7mpeg dashanalyticsapplicationpaywalbrandingTCOtrialopensslMP4microsoft streamerrorsrocksoftlog traffic statsExpression EncoderdebianABR DASHprogressive downloadmultiple originsFFmpegnimblesessionidHLS PlayerDASH Playerlive video on demandbandwithheaderserverlog nimble analysertmp playbackvideojsbitrateadaptiveAV1 codecJWPLAYERNGINX-RTMPprivate networkSnapshotsno WMSPanelPulllive videosourcecrossdomain more then 1 domain4Kmac osx installsoundHLS Meta Tag editing.streamswotermarkattachmenthelp errorvimeoconcurrent connectionvod no soundload balanceAWS 3buttFairplaycdnvsomfallbackamazonControl APIlive streamRemote StorageWowza AgentTranscoderLive streamingWidevinenot foundsecuritypullAS3mpeg2tsServer-Side-Task-Controldisk migrationstereo to monoscreen captureinstall players setup ready to goDVRSettingstwitch larix broadcaster androidAppleDelete recordsicecastdrmresourceaes encryptionsubscriptionvideo looplive pull settingsABR HLS Bitratesrtmp for YouTubestarttime duration seekpointrebootmonitordvr streamsIIS Media Servicsrtmp republishing transcodenimble.confnimble streamer web server php script pageautomationNimble Streamer APIlivestreamoutrateDeep statsapi accessinterleavingweb playerNimble CapacityABR DVR problemnimble streamer vod hls transmuxingloggingLive Switcherlearnerscreen freezecan't registercontent-dispositionCross Domainactionscript 3not to stealLive Broadcastinsert logoDVRStreamsNimble Serverblock downloadAVCaptureMovieFileOutputbroadcasterUbuntu artful 17.10Transcoder MPEG DASHMPEG DASHadd_chunk failedPost processingfake extensiontranscodingFFMPEG;RTMP;I/O errorstatus:errorHotlinking ProtectionStreaming routeMPEG-Dashlarix broadcasternimble on cloudroutesprerollThumbnailsserver incorrect timepremium featureLIVELivepaymentHow to do live stream with multiple audio trackstatsnimble aliasesProgressivereloadRTMP republishrmtpno internetvp9addemandSecureAndroiduser_agentdvr on wmspanelS3 AWSreportsraspberryavoid refreshrestartIOSPIDHLS Streamingthumbnail dvr-thumbnailwmsAuthSignnimble streamer mpeg-ts multiple inputsLoad-BalancingcredentialslatencyDVR SettingPORTtranscodeRepublishingadjustHTML5 playerdelaympeg4transcoder nimbleBroadcastLarixbuildABR bitratesPacketizingVR-360Failoverubuntu 18Teradek DecoderSLDPav1 codechttp servera record21server ipNimble connectionsabr fallbackssaiDVR Setting limitbufferlogo in streamMPEG2 Videolivestream bitrateUDP Multicastprogressivewebhookdvr to livefastspringmp2 audiospeedup my videoiOSdistributionstoragealias route.movnimble dvroutputcloudflareVOD HLS streaming on public IPdomain lockRTMP RepublishcontentanalisysscterulesError when installingvideo and audio not matchcloudfrontbuffering videoSO_RCVBUFdissapointmentpay-per-minuteCSSartifactsrtsp push androidcache expiryQuickTimevideo streamingincoming streamInvalid frame headerno soundtraffichd25publish streamAArch64storage space availabledisk3.6.1-1livestreamintransocderqataritworkscdnvideo.jsgoogle cloud storageissuepricing

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.