{"id":455,"date":"2020-02-07T20:39:15","date_gmt":"2020-02-07T17:39:15","guid":{"rendered":"http:\/\/microimpuls.com\/docs\/micropvr\/%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%b8-%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d1%8c%d0%b7%d0%be%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5\/%d1%83%d1%82%d0%b8%d0%bb%d0%b8%d1%82%d0%b0-micropvr_control"},"modified":"2022-08-17T10:40:01","modified_gmt":"2022-08-17T07:40:01","slug":"micropvr-control","status":"publish","type":"docs","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/micropvr-control","title":{"rendered":"Micropvr_control"},"content":{"rendered":"<p>micropvr_control \u2014 is a standard management and monitoring utility in the micropvr package. Requires the JSON RPC API enabled.<\/p>\n\n\n\n<p>Example of use (getting a list of record files for a channel with ID 4):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">micropvr_control -H 127.0.0.1 -f get_records -a 4 -d<\/pre>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Arguments for launching micropvr_control<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><code>-hh<\/code> \u2014 make a brief reference. <\/li><li><code>-V<\/code> \u2014 output version. <\/li><li><code>-H<\/code> \u2014 API host micropvr. If the option is not set, 127.0.0 will be used. 1. <\/li><li><code>-p<\/code> \u2014 micropvr API port. If the option is not set, 4089 will be used. <\/li><li><code>-q<\/code> \u2014 \u00absilent mode\u00bb: do not output messages to the standard stream. <\/li><li><code>-d<\/code> \u2014 \u00ab debugging mode\u00bb: print the response from the server into a standard stream as JSON documents. <\/li><li><code>-<\/code> \u2014 do not request confirmation for deletion and cancellation operations. <\/li><li><code>-f<\/code> \u2014 name of API function. The list of functions is given below. <\/li><li><code>-<\/code> \u2014 unnamed arguments of the function. Set in a strictly defined order through the space. <\/li><li><code>-AAH<\/code> \u2014 named arguments of the function. Set in any order through a space in the format <code>name_argument=argument<\/code>. For example, <code>-A channel_ID=8 record_location=\/tmp\/pvr<\/code>. Argument names are case sensitive.<\/li><\/ul>\n\n\n\n<p>No more than one option should be indicated <code>-<\/code> or <code>-AAH<\/code>. Otherwise, correct behavior is not guaranteed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Micropvr_control functions<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">List of records<\/h4>\n\n\n\n<p>Command name and parameters: <code>get_records [channel_id]<\/code>.<\/p>\n\n\n\n<p>It displays a list of record files for channel_id. If channel_id is not specified, it displays all records files.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Cancellation of channel recording<\/h4>\n\n\n\n<p>Command name and parameters: <code>cancel_task channel_id [record_location]<\/code>.<\/p>\n\n\n\n<p>Cancels all running tasks for the channel ID channel_id and record_location directory. If record_location is not set, it cancels all tasks for a given channel.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Deletion of records<\/h4>\n\n\n\n<p>Command name and parameters: <code>delete_records [timestamp] [channel_id]<\/code>.<\/p>\n\n\n\n<p>Deletes files that are not actively recorded for channel_id and whose recording was started no later than timestamp. If channel_id and timestamp are not specified, it deletes all records.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Deletion of obsolete records<\/h4>\n\n\n\n<p>Command name and parameters: <code>delete_records_days ndays [channel_id]<\/code>.<\/p>\n\n\n\n<p>Deletes files that are not actively recorded for channel_id in the oldest days. If channel_id is not specified, it deletes all records from the oldest days.<\/p>","protected":false},"featured_media":0,"parent":449,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-455","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 micropvr_control<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/micropvr-control\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0423\u0442\u0438\u043b\u0438\u0442\u0430 micropvr_control\" \/>\n<meta property=\"og:description\" content=\"micropvr_control &#8212; \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 micropvr. \u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e JSON RPC API. \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0434\u043b\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0441 ID 4): micropvr_control -H 127.0.0.1 -f get_records -a 4 -d \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 micropvr_control -h &#8212; \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043a\u0440\u0430\u0442\u043a\u0443\u044e \u0441\u043f\u0440\u0430\u0432\u043a\u0443. -V &#8212; \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0435\u0440\u0441\u0438\u044e. -H &#8212; \u0445\u043e\u0441\u0442 API micropvr. \u0415\u0441\u043b\u0438 \u043e\u043f\u0446\u0438\u044f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/micropvr-control\/\" \/>\n<meta property=\"og:site_name\" content=\"Microimpuls\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-17T07:40:01+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control\",\"url\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control\",\"name\":\"\u0423\u0442\u0438\u043b\u0438\u0442\u0430 micropvr_control\",\"isPartOf\":{\"@id\":\"https:\/\/micro.im\/#website\"},\"datePublished\":\"2020-02-07T17:39:15+00:00\",\"dateModified\":\"2022-08-17T07:40:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/micro.im\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MicroPVR\",\"item\":\"https:\/\/microimpuls.com\/docs\/micropvr\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\",\"item\":\"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u0423\u0442\u0438\u043b\u0438\u0442\u0430 micropvr_control\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/micro.im\/#website\",\"url\":\"https:\/\/micro.im\/\",\"name\":\"Microimpuls\",\"description\":\"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f OTT \u0438 IPTV\",\"publisher\":{\"@id\":\"https:\/\/micro.im\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/micro.im\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/micro.im\/#organization\",\"name\":\"Microimpuls\",\"url\":\"https:\/\/micro.im\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"width\":208,\"height\":219,\"caption\":\"Microimpuls\"},\"image\":{\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Micropvr_control","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/micropvr-control\/","og_locale":"en_US","og_type":"article","og_title":"\u0423\u0442\u0438\u043b\u0438\u0442\u0430 micropvr_control","og_description":"micropvr_control &#8212; \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 micropvr. \u0422\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0433\u043e JSON RPC API. \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f (\u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0434\u043b\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0441 ID 4): micropvr_control -H 127.0.0.1 -f get_records -a 4 -d \u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 micropvr_control -h &#8212; \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043a\u0440\u0430\u0442\u043a\u0443\u044e \u0441\u043f\u0440\u0430\u0432\u043a\u0443. -V &#8212; \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0435\u0440\u0441\u0438\u044e. -H &#8212; \u0445\u043e\u0441\u0442 API micropvr. \u0415\u0441\u043b\u0438 \u043e\u043f\u0446\u0438\u044f [&hellip;]","og_url":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/micropvr-control\/","og_site_name":"Microimpuls","article_modified_time":"2022-08-17T07:40:01+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control","url":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control","name":"Micropvr_control","isPartOf":{"@id":"https:\/\/micro.im\/#website"},"datePublished":"2020-02-07T17:39:15+00:00","dateModified":"2022-08-17T07:40:01+00:00","breadcrumb":{"@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use\/micropvr-control#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/micro.im\/"},{"@type":"ListItem","position":2,"name":"MicroPVR","item":"https:\/\/microimpuls.com\/docs\/micropvr"},{"@type":"ListItem","position":3,"name":"\u0417\u0430\u043f\u0443\u0441\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435","item":"https:\/\/microimpuls.com\/docs\/micropvr\/launch-and-use"},{"@type":"ListItem","position":4,"name":"\u0423\u0442\u0438\u043b\u0438\u0442\u0430 micropvr_control"}]},{"@type":"WebSite","@id":"https:\/\/micro.im\/#website","url":"https:\/\/micro.im\/","name":"Microimpulses","description":"Comprehensive solutions for OTT and IPTV","publisher":{"@id":"https:\/\/micro.im\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/micro.im\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/micro.im\/#organization","name":"Microimpulses","url":"https:\/\/micro.im\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","width":208,"height":219,"caption":"Microimpuls"},"image":{"@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":5,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/455\/revisions"}],"predecessor-version":[{"id":3150,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/455\/revisions\/3150"}],"up":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/449"}],"next":[{"title":"Load balancing","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/load-balancing","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/451"}],"prev":[{"title":"URL format","link":"https:\/\/microimpuls.com\/en\/docs\/micropvr\/launch-and-use\/url-format","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/928"}],"wp:attachment":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/doc_tag?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}