{"id":177,"date":"2015-07-31T09:29:32","date_gmt":"2015-07-31T09:29:32","guid":{"rendered":"http:\/\/www.uptoyou.life\/article\/?p=177"},"modified":"2025-08-15T15:56:22","modified_gmt":"2025-08-15T08:56:22","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%ab%e0%b8%b2%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-mp4-%e0%b8%81%e0%b8%b1%e0%b8%9a-image-%e0%b9%83%e0%b8%99-youtube","status":"publish","type":"post","link":"http:\/\/www.uptoyou.life\/article\/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%ab%e0%b8%b2%e0%b9%84%e0%b8%9f%e0%b8%a5%e0%b9%8c-mp4-%e0%b8%81%e0%b8%b1%e0%b8%9a-image-%e0%b9%83%e0%b8%99-youtube\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e2b\u0e32\u0e44\u0e1f\u0e25\u0e4c MP4 \u0e01\u0e31\u0e1a Image \u0e43\u0e19 Youtube"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/www.uptoyou.life\/article\/wp-content\/uploads\/2015\/07\/youtube.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-178\" src=\"http:\/\/www.uptoyou.life\/article\/wp-content\/uploads\/2015\/07\/youtube.png\" alt=\"youtube\" width=\"256\" height=\"256\" srcset=\"http:\/\/www.uptoyou.life\/article\/wp-content\/uploads\/2015\/07\/youtube.png 256w, http:\/\/www.uptoyou.life\/article\/wp-content\/uploads\/2015\/07\/youtube-150x150.png 150w, http:\/\/www.uptoyou.life\/article\/wp-content\/uploads\/2015\/07\/youtube-60x60.png 60w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/a><\/p>\n<p><strong><span style=\"text-decoration: underline;\">\u0e01\u0e32\u0e23\u0e2b\u0e32\u0e44\u0e1f\u0e25\u0e4c Image<\/span><\/strong><br \/>\n\u0e01\u0e32\u0e23\u0e2b\u0e32\u0e44\u0e1f\u0e25\u0e4c\u0e23\u0e39\u0e1b\u0e02\u0e2d\u0e07 Youtube \u00a0\u0e19\u0e31\u0e48\u0e19\u0e07\u0e48\u0e32\u0e22\u0e21\u0e32\u0e01 \u00a0\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 Youtube \u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e21\u0e32\u0e15\u0e23\u0e10\u0e32\u0e19\u0e21\u0e32\u0e01 \u00a0\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e41\u0e04\u0e48\u0e19\u0e33 ID \u0e02\u0e2d\u0e07 youtube \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e27\u0e32\u0e07\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2b\u0e32\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e20\u0e32\u0e1e\u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27<\/p>\n<pre class=\"lang:php decode:true\">\"default\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/default.jpg\"\n\"medium\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/mqdefault.jpg\"\n\"high\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/hqdefault.jpg\"\n\"standard\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/sddefault.jpg\"<\/pre>\n<p><!--more-->\u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 \u00a0https:\/\/www.youtube.com\/watch?v=brUyoeiEha4 \u00a0\u0e2b\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e23\u0e39\u0e1b\u0e02\u0e19\u0e32\u0e14\u0e01\u0e25\u0e32\u0e07\u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e44\u0e1b\u0e40\u0e2d\u0e32\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48<\/p>\n<blockquote><p>https:\/\/i1.ytimg.com\/vi\/brUyoeiEha4\/mqdefault.jpg<\/p><\/blockquote>\n<hr \/>\n<p><strong><span style=\"text-decoration: underline;\">\u0e01\u0e32\u0e23\u0e2b\u0e32\u0e44\u0e1f\u0e25\u0e4c MP4<\/span><\/strong> \u0e01\u0e32\u0e23\u0e2b\u0e32\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e02\u0e2d\u0e07 MP4 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2b\u0e32\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 \u00a0http:\/\/youtube.com\/get_video_info \u00a0\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e43\u0e2a\u0e48 ID \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b \u00a0\u0e01\u0e47\u0e08\u0e30\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e17\u0e33\u0e01\u0e32\u0e23 parser \u0e2d\u0e2d\u0e01\u0e21\u0e32 \u00a0\u0e43\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07 parser \u00a0\u0e21\u0e35\u0e2b\u0e25\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e47\u0e41\u0e25\u0e49\u0e27\u0e41\u0e15\u0e48\u0e08\u0e30\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u00a0\u0e02\u0e2d\u0e07\u0e1c\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 \u0e02\u0e31\u0e49\u0e19\u0e41\u0e23\u0e01\u0e17\u0e33\u0e01\u0e32\u0e23\u0e19\u0e33 ID \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e08\u0e32\u0e01 URL \u00a0\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e0a\u0e38\u0e14\u0e19\u0e35\u0e49<\/p>\n<pre class=\"lang:php decode:true\">$PathURL = $_REQUEST['URL'];\nif (preg_match('%(?:youtube(?:-nocookie)?\\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&amp;]v=)|youtu\\.be\/)([^\"&amp;?\/ ]{11})%i', $PathURL, $match)) {\n      $IDClipYoutube = $match[1];\n}<\/pre>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e44\u0e14\u0e49 ID \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e01\u0e47\u0e17\u0e33\u0e2a\u0e48\u0e07 ID \u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e43\u0e19 Get info \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2b\u0e32\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e02\u0e2d\u0e07 MP4<\/p>\n<pre class=\"lang:php decode:true\">$content = file_get_contents(\"http:\/\/youtube.com\/get_video_info?video_id=\".$IDClipYoutube);\nparse_str($content, $ytarr);\n$yarr=explode(\",\",$ytarr[\"url_encoded_fmt_stream_map\"]);\n$arrayurl=array();\nfor($i=0; $i&lt;count($yarr);$i++){\n if((strpos($yarr[$i],\"mp4\") !== false)&amp;&amp;(strpos($yarr[$i],\"quality=medium\") !==false)){\n parse_str($yarr[$i],$starray);\n      array_push($arrayurl,$starray[\"url\"]);\n }\n}\nreturn\u00a0$arrayurl[0];<\/pre>\n<p>* \u0e1b\u0e25. \u0e41\u0e15\u0e48\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 \u0e43\u0e19\u0e1a\u0e32\u0e07 Clip \u0e02\u0e2d\u0e07 Youtube \u0e21\u0e35\u0e01\u0e32\u0e23 Set \u0e04\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19 Private \u00a0\u0e2b\u0e23\u0e37\u0e2d\u0e14\u0e39\u0e44\u0e14\u0e49\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e1a\u0e32\u0e07\u0e40\u0e27\u0e1b\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19 get_video_info \u0e08\u0e30\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49 \u00a0\u0e2b\u0e32\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e14\u0e39\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e31\u0e48\u0e19\u0e08\u0e23\u0e34\u0e07\u0e46 \u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49 PHP Command line \u00a0\u0e1c\u0e21\u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 \u00a0<a href=\"https:\/\/rg3.github.io\/youtube-dl\/\" target=\"_blank\" rel=\"noopener\">youtube dl<\/a> \u00a0\u0e41\u0e15\u0e48\u0e01\u0e47\u0e23\u0e30\u0e27\u0e31\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07 \u0e25\u0e34\u0e02\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c\u0e14\u0e49\u0e27\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u00a0\u0e02\u0e2d\u0e43\u0e2b\u0e49\u0e2a\u0e19\u0e38\u0e01\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e14\u0e39\u0e44\u0e1f\u0e25\u0e4c\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a ^^<\/p>\n<hr \/>\n<p><strong>Full Script<\/strong><\/p>\n<pre class=\"lang:php decode:true\">if(isset($_REQUEST['URL'])){\n $PathURL = $_REQUEST['URL'];\n if (preg_match('%(?:youtube(?:-nocookie)?\\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&amp;]v=)|youtu\\.be\/)([^\"&amp;?\/ ]{11})%i', $PathURL, $match)) {\n      $IDClipYoutube = $match[1];\n }\n$content = file_get_contents(\"http:\/\/youtube.com\/get_video_info?video_id=\".$IDClipYoutube);\nparse_str($content, $ytarr);\n$yarr=explode(\",\",$ytarr[\"url_encoded_fmt_stream_map\"]);\n$arrayurl=array();\nfor($i=0; $i&lt;count($yarr);$i++){ if((strpos($yarr[$i],\"mp4\") !== false)&amp;&amp;(strpos($yarr[$i],\"quality=medium\") !==false)){ parse_str($yarr[$i],$starray); array_push($arrayurl,$starray[\"url\"]); } } $array_info[\"body\"][\"items\"] = Array( \"mp4\" =&gt; $arrayurl[0],\n    \"image\" =&gt; Array(\n    \"default\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/default.jpg\",\n    \"medium\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/mqdefault.jpg\",\n    \"high\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/hqdefault.jpg\",\n    \"standard\" =&gt; \"https:\/\/i1.ytimg.com\/vi\/\".$IDClipYoutube.\"\/sddefault.jpg\" \n),\n    \"related\" =&gt; \"getyoutube_related.php?ID=\".$IDClipYoutube\n);\nif(isset($_REQUEST['TYPE'])){\n    $TYPE = $_REQUEST['TYPE'];\n    if($TYPE == \"json\"){\n        echo json_encode($array_info);\n    }\n}else{\n    if(isset($arrayurl[0])){\n        echo $arrayurl[0];\n    }else{\n        echo \"return : \".$content;\n   }\n}\n}else{\n   echo \"Required parameter: URL\";\n}<\/pre>\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c : <a href=\"http:\/\/uptoyou.life\/other\/php\/getyoutube.php\" target=\"_blank\" rel=\"noopener\">getyoutube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e01\u0e32\u0e23\u0e2b\u0e32\u0e44\u0e1f\u0e25\u0e4c Image \u0e01\u0e32\u0e23\u0e2b\u0e32\u0e44\u0e1f\u0e25\u0e4c\u0e23\u0e39\u0e1b\u0e02\u0e2d\u0e07 Youtube \u00a0\u0e19\u0e31\u0e48\u0e19\u0e07\u0e48\u0e32\u0e22\u0e21\u0e32\u0e01 \u00a0\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 Youtube \u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e21\u0e32\u0e15\u0e23\u0e10\u0e32\u0e19\u0e21\u0e32\u0e01 \u00a0\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e41\u0e04\u0e48\u0e19\u0e33 ID \u0e02\u0e2d\u0e07 youtube \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e27\u0e32\u0e07\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2b\u0e32\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e20\u0e32\u0e1e\u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27 &#8220;default&#8221; =&gt; &#8220;https:\/\/i1.ytimg.com\/vi\/&#8221;.$IDClipYoutube.&#8221;\/default.jpg&#8221; &#8220;medium&#8221; =&gt; &#8220;https:\/\/i1.ytimg.com\/vi\/&#8221;.$IDClipYoutube.&#8221;\/mqdefault.jpg&#8221; &#8220;high&#8221; =&gt; &#8220;https:\/\/i1.ytimg.com\/vi\/&#8221;.$IDClipYoutube.&#8221;\/hqdefault.jpg&#8221; &#8220;standard&#8221; =&gt; &#8220;https:\/\/i1.ytimg.com\/vi\/&#8221;.$IDClipYoutube.&#8221;\/sddefault.jpg&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[15,16,14],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-php","tag-mp4","tag-php","tag-youtube"],"_links":{"self":[{"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":9,"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":650,"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/posts\/177\/revisions\/650"}],"wp:attachment":[{"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.uptoyou.life\/article\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}