{"id":52,"date":"2010-10-31T05:44:58","date_gmt":"2010-10-31T05:44:58","guid":{"rendered":"http:\/\/blurrypixel.com\/?p=52"},"modified":"2018-10-06T04:37:05","modified_gmt":"2018-10-06T04:37:05","slug":"http-streaming-to-iphoneipad-part-1","status":"publish","type":"post","link":"https:\/\/blurrypixel.com\/?p=52","title":{"rendered":"HTTP Streaming to iPhone\/iPad part 1"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-159\" style=\"min-width: 100%; height: auto;\" title=\"quicktime\" src=\"http:\/\/blurrypixel.com\/wp-content\/uploads\/2010\/10\/quicktime1.jpg\" alt=\"\" width=\"550\" height=\"81\" srcset=\"https:\/\/blurrypixel.com\/wp-content\/uploads\/2010\/10\/quicktime1.jpg 550w, https:\/\/blurrypixel.com\/wp-content\/uploads\/2010\/10\/quicktime1-300x44.jpg 300w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/p>\n<p style=\"clear: both;\">\nBefore, if you wanted to do any http streaming you&#8217;d need expensive software or an even more expensive subscription to a streaming service. With a little work, you can get http streaming from your home computer.\n<\/p>\n<p><!--more--><\/p>\n<p>\nTo begin with, you&#8217;ll need a couple things. A Mac running Snow Leopard and a web server running on your host or locally on your home network. FTP access won&#8217;t do. There are numerous tutorials on how to get a web server running on a Mac and it&#8217;s easy so do that first.\n<\/p>\n<p>\nOnce you&#8217;re set, customize the following html and make it your web server&#8217;s index page.<\/p>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;html&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;head&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;title&gt;iPhone\/iPodTouch Streaming&lt;\/title&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;\/head&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;body&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;video width=&#8221;320&#8243; height=&#8221;240&#8243; controls=&#8221;&#8221;&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;source src=&#8221;.\/prog_index.m3u8&#8243; \/&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;\/video&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;\/body&gt;<\/div>\n<div id=\"_mcePaste\" style=\"padding-left: 30px;\">&lt;\/html&gt;<\/div>\n<p>If you&#8217;re not already using VLC, then you really should be. It&#8217;s an &#8220;everything&#8221; media player, streaming server, etc&#8230; We&#8217;ll be using it to create the mpeg transport stream that the iPhone\/iPad will use for Http streaming.\n<\/p>\n<p>\nOpen up Terminal and type the following command:<\/p>\n<p style=\"padding-left: 30px;\">\/Applications\/VLC.app\/Contents\/MacOS\/VLC &#8211;intf=dummy &#8211;sout=&#8221;#transcode{vcodec=h264,venc=x264{aud,profile=baseline, level=30,keyint=30,bframes=0,ref=1,nocabac},acodec=mp3, audio-sync,deinterlace}:standard{mux=ts,dst=-,access=file}&#8221; <em><span style=\"color: #808080;\">input.mov<\/span><\/em> | mediastreamsegmenter -b http:\/\/<em><span style=\"color: #808080;\">your-ip<\/span><\/em>\/ -f \/<em><span style=\"color: #808080;\">web-server-directory<\/span><\/em>\/ -t 10 -s 5 -D<\/p>\n<p>Replace <em><span style=\"color: #808080;\">input.mov <\/span><\/em>with the file path of the movie you would like to stream. Replace <em><span style=\"color: #808080;\">your-ip <\/span><\/em>with the ip address of your web server. Replace <em><span style=\"color: #808080;\">web-server-directory <\/span><\/em>to the local file path to your web server. Once you run command and there are no errors, you should start to see a sequence of filesequence.ts files on your web server and a file named prog_index.m3u8. Open up safari on your iPhone\/iPad and type in your ip address and you should see your movie ready to be streamed! Have fun!\n<\/p>\n<p style=\"clear: both;\">\nIn part 2, I will cover streaming your computer Desktop to your iPhone\/iPad using these same techniques.\n<\/p>\n<p style=\"clear: both;\">\n<div><div style=\"padding-top:10px;margin-bottom:10px;font-size:10pt;font-family:arial;font-weight:bold;\">Share this post!<\/div><div class=simplesocial><a href=\"http:\/\/twitter.com\/share\" data-url=\"https:\/\/blurrypixel.com\/?p=52\" data-text=\"HTTP+Streaming+to+iPhone%2FiPad+part+1\" class=\"twitter-share-button\" data-count=\"horizontal\">Tweet<\/a><script type=\"text\/javascript\" src=\"http:\/\/platform.twitter.com\/widgets.js\"><\/script><\/div><div class=simplesocial><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fblurrypixel.com%2F%3Fp%3D52&layout=standard&show_faces=false&width=450&action=like&colorscheme=light&height=35\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:450px; height:25px;\" allowTransparency=\"true\"><\/iframe><\/div><div style=\"clear:both\"><\/div><a class=simplesocial onclick=\"return simplesocial(this,500,400)\" title=\"Share on Facebook\" style=\"background:url(http:\/\/blurrypixel.com\/wp-content\/plugins\/simple-social-sharing-widgets-icons\/icons_32\/facebook.png)\" href=\"http:\/\/www.facebook.com\/share.php?u=https%3A%2F%2Fblurrypixel.com%2F%3Fp%3D52&t=HTTP+Streaming+to+iPhone%2FiPad+part+1\"><\/a><a class=simplesocial onclick=\"return simplesocial(this,435,500)\" title=\"Email a Friend\" style=\"background:url(http:\/\/blurrypixel.com\/wp-content\/plugins\/simple-social-sharing-widgets-icons\/icons_32\/email.png)\" href=\"http:\/\/www.freetellafriend.com\/tell\/?heading=Share+This+Article&bg=1&option=email&url=https%3A%2F%2Fblurrypixel.com%2F%3Fp%3D52\"><\/a><a class=simplesocial onclick=\"return simplesocial(this,700,500)\" title=\"Share on Reddit\" style=\"background:url(http:\/\/blurrypixel.com\/wp-content\/plugins\/simple-social-sharing-widgets-icons\/icons_32\/reddit.png)\" href=\"http:\/\/reddit.com\/submit?url=https%3A%2F%2Fblurrypixel.com%2F%3Fp%3D52&title=HTTP+Streaming+to+iPhone%2FiPad+part+1\"><\/a><a class=simplesocial title=\"RSS Feed\" style=\"background:url(http:\/\/blurrypixel.com\/wp-content\/plugins\/simple-social-sharing-widgets-icons\/icons_32\/rss.png)\" href=\"http:\/\/blurrypixel.com\/?feed=rss2\"><\/a><\/div><div style=\"clear:both;margin-bottom:20px\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Before, if you wanted to do any http streaming you&#8217;d need expensive software or an even more expensive subscription to a streaming service. With a little work, you can get http streaming from your home computer. Share this post!Tweet<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,37],"tags":[12,16,17],"_links":{"self":[{"href":"https:\/\/blurrypixel.com\/index.php?rest_route=\/wp\/v2\/posts\/52"}],"collection":[{"href":"https:\/\/blurrypixel.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blurrypixel.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blurrypixel.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blurrypixel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":47,"href":"https:\/\/blurrypixel.com\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions"}],"predecessor-version":[{"id":2038,"href":"https:\/\/blurrypixel.com\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions\/2038"}],"wp:attachment":[{"href":"https:\/\/blurrypixel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blurrypixel.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blurrypixel.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}