{"id":9635,"date":"2021-03-11T10:00:48","date_gmt":"2021-03-11T01:00:48","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=9635"},"modified":"2021-03-10T17:29:16","modified_gmt":"2021-03-10T08:29:16","slug":"unity-%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b9%e6%94%b9%e5%96%84tips","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/9635","title":{"rendered":"[Unity] \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584Tips"},"content":{"rendered":"\n<p>\u4eca\u56de\u306fUnity\u3067\u51e6\u7406\u8ca0\u8377\u3092\u8efd\u6e1b\u3055\u305b\u308b\u305f\u3081\u306b\u52b9\u679c\u304c\u3042\u3063\u305f\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h4>\u7d4c\u7def<\/h4>\n\n\n\n<p>Unity\u3067VR\u30d8\u30c3\u30c9\u30de\u30a6\u30f3\u30c8\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306eIdeaLens\u7528\u306bVR\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u88c5\u3092\u304a\u3053\u306a\u3046\u969b\u306b\u3001PC\u3067\u30d7\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u3044\u308b\u6bb5\u968e\u3067\u306f\u554f\u984c\u304c\u306a\u304b\u3063\u3066\u3082\u3001IdeaLens\u5b9f\u6a5f\u3067\u78ba\u8a8d\u3059\u308b\u3068\u4e0d\u5b9a\u671f\u306b\u52d5\u753b\u304c\u30ab\u30af\u3064\u304d\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u554f\u984c\u304c\u898b\u3089\u308c\u308b\u73fe\u8c61\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br> PC\u306e\u51e6\u7406\u80fd\u529b\u3068\u6bd4\u8f03\u3057\u3066IdeaLens\u306f\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u7528\u306eCPU(Exynos 7420)\u3068GPU(Mali-T760 MP8)\u3092\u642d\u8f09\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u8ca0\u8377\u3092\u5c11\u3057\u3067\u3082\u6e1b\u3089\u3059\u3088\u3046\u5de5\u592b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<br> \u4eca\u56de\u306f\u305d\u306e\u3088\u3046\u306a\u72b6\u6cc1\u306b\u304a\u3044\u3066\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6539\u5584\u3067\u52b9\u679c\u304c\u3042\u3063\u305f\u3068\u601d\u308f\u308c\u308b\u5bfe\u51e6\u65b9\u6cd5\u3092\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4>\u5168\u5929\u7403\u52d5\u753b\u306e\u89e3\u50cf\u5ea6\u304a\u3088\u3073\u30d5\u30ec\u30fc\u30e0\u30ec\u30fc\u30c8\u3092\u8abf\u6574\u3059\u308b<\/h4>\n\n\n\n<p>\u5916\u90e8\u30c4\u30fc\u30eb\u306effmpeg\u3092\u4f7f\u7528\u3057\u3066\u8abf\u6574\u3092\u304a\u3053\u306a\u3044\u307e\u3057\u305f\u3002<br> <a href=\"https:\/\/www.ffmpeg.org\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.ffmpeg.org\/ (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\">https:\/\/www.ffmpeg.org\/<\/a><\/p>\n\n\n\n<p>\u52d5\u753b\u518d\u751f\u6642\u306e\u8ca0\u8377\u304c\u5c11\u306a\u304f\u306a\u308b\u3088\u3046\u306b\u3001\u89e3\u50cf\u5ea6\u3068\u30d5\u30ec\u30fc\u30e0\u30ec\u30fc\u30c8\u3092\u3067\u304d\u308b\u3060\u3051\u4e0b\u3052\u308b\u65b9\u5411\u3067\u8abf\u6574\u3057\u307e\u3059\u3002<br> IdeaLens\u5b9f\u6a5f\u3067\u78ba\u8a8d\u3092\u304a\u3053\u306a\u3044\u306a\u304c\u3089\u3001\u4e0d\u81ea\u7136\u306b\u306a\u3089\u306a\u3044\u7bc4\u56f2\u3067\u3001\u8abf\u6574\u3057\u307e\u3059\u3002<br> \u4eca\u56de\u306e\u4f8b\u3067\u306f\u89e3\u50cf\u5ea6\uff1a2560&#215;1280 \u3001\u30d5\u30ec\u30fc\u30e0\u30ec\u30fc\u30c8\uff1a12 \u304c\u6700\u9069\u306a\u3088\u3046\u3067\u3057\u305f\u3002<br> ffmpeg\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3092\u304a\u3053\u306a\u3046\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u89e3\u50cf\u5ea6\uff1a2560x1280 \u3001\u30d5\u30ec\u30fc\u30e0\u30ec\u30fc\u30c8\uff1a12 \u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\nffmpeg -i original.mp4 -s 2560x1280 -r 12 encorded.mp4<\/code><\/pre>\n\n\n\n<h4>\u5168\u5929\u7403\u52d5\u753b\u306eTranscode\u3092\u6709\u52b9\u306b\u3059\u308b<\/h4>\n\n\n\n<p>Unity\u306e\u52d5\u753b\u30a2\u30bb\u30c3\u30c8\u306e\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u304b\u3089Transcode\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"373\" height=\"136\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2021\/03\/transcode.png\" alt=\"\" class=\"wp-image-9642\"\/><\/figure>\n\n\n\n<p>Transcode\u306b\u30c1\u30a7\u30c3\u30af\u30de\u30fc\u30af\u3092\u3064\u3051\u3066\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<br> Bitrate Mode\u3092\u53ef\u80fd\u306a\u9650\u308a\u4e0b\u3052\u308b\u3053\u3068\u3067\u8ca0\u8377\u3092\u8efd\u6e1b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br> \u305f\u3060\u3057Transcode\u3092\u6709\u52b9\u306b\u3057\u305f\u5834\u5408\u3001\u30d6\u30ed\u30c3\u30af\u30ce\u30a4\u30ba\u304c\u76ee\u7acb\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u7279\u306b\u30ab\u30e1\u30e9\u306e\u30d1\u30f3\u7b49\u304c\u767a\u751f\u3059\u308b\u52d5\u304d\u306e\u6fc0\u3057\u3044\u52d5\u753b\u306e\u5834\u5408\u3001Bitrate Mode\u3092High\u306b\u3057\u3066\u3082\u30d6\u30ed\u30c3\u30af\u30ce\u30a4\u30ba\u304c\u76ee\u7acb\u3061\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u5834\u5408\u306fTranscode\u3092\u6709\u52b9\u306b\u3057\u306a\u3044\u307b\u3046\u304c\u3044\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h4>\u4f7f\u7528\u6e08\u306e\u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc\u306f\u30b7\u30fc\u30f3\u9077\u79fb\u524d\u306b\u7834\u68c4\u3059\u308b\u3088\u3046\u306b\u3059\u308b<\/h4>\n\n\n\n<p>\u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc\u3092\u4f7f\u7528\u3057\u305f\u8907\u6570\u306e\u30b7\u30fc\u30f3\u9593\u3092\u307e\u305f\u3050\u3088\u3046\u306a\u51e6\u7406\u304c\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30b7\u30fc\u30f3\u9077\u79fb\u306e\u524d\u306b\u4f7f\u7528\u6e08\u306e\u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc\u3092\u7834\u68c4\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u307e\u305a\u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nGameObject screen = GameObject.Find(\"Screen\");\n\n\/\/\u6b21\u306b\u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nUnityEngine.Video.VideoPlayer vPlayer = screen.GetComponent&lt;UnityEngine.Video.VideoPlayer>();\n\n\/\/\u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc\u3092\u7834\u68c4\u3057\u307e\u3059\u3002\nDestroy(vPlayer);<\/code><\/pre>\n\n\n\n<h4>\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u30a2\u30bb\u30c3\u30c8\u3092\u30a2\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h4>\n\n\n\n<p>\u30b7\u30fc\u30f3\u306e\u5207\u308a\u66ff\u3048\u6642\u306a\u3069\u3001\u533a\u5207\u308a\u306e\u3088\u3044\u7b87\u6240\u3067\u3001\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u30a2\u30bb\u30c3\u30c8\u3092\u30a2\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u30e1\u30e2\u30ea\u3092\u7bc0\u7d04\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u30a2\u30bb\u30c3\u30c8\u3092\u30a2\u30f3\u30ed\u30fc\u30c9\u3059\u308b\nResources.UnloadUnusedAssets();<\/code><\/pre>\n\n\n\n<h4>\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u4e0d\u8981\u306b\u306a\u3063\u305f\u30e1\u30e2\u30ea\u3092\u89e3\u653e\u3059\u308b<\/h4>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30a2\u30bb\u30c3\u30c8\u3092\u30a2\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u51e6\u7406\u306b\u52a0\u3048\u3066\u3001\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u4e0d\u8981\u306b\u306a\u3063\u305f\u30e1\u30e2\u30ea\u3092\u89e3\u653e\u3059\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u4e0d\u8981\u306b\u306a\u3063\u305f\u30e1\u30e2\u30ea\u3092\u89e3\u653e\nSystem.GC.Collect();<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/9635\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/9635\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"[Unity] \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584Tips\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/9635\" data-text=\"[Unity] \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6539\u5584Tips\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/9635\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/9635\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fUnity\u3067\u51e6\u7406\u8ca0\u8377\u3092\u8efd\u6e1b\u3055\u305b\u308b\u305f\u3081\u306b\u52b9\u679c\u304c\u3042\u3063\u305f\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[84,109,12],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/9635"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=9635"}],"version-history":[{"count":10,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/9635\/revisions"}],"predecessor-version":[{"id":9649,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/9635\/revisions\/9649"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=9635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=9635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=9635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}