{"id":104,"date":"2007-03-28T20:07:29","date_gmt":"2007-03-28T19:07:29","guid":{"rendered":"http:\/\/blog.pczone.be\/?p=104"},"modified":"2007-04-04T09:18:50","modified_gmt":"2007-04-04T08:18:50","slug":"streaming-media-youtube-style","status":"publish","type":"post","link":"http:\/\/blog.pczone.be\/?p=104","title":{"rendered":"Streaming media -> youtube style"},"content":{"rendered":"<p>Wouldn&#8217;t it be nice to create your own youtube movies and host them on your own private server? Why you ask, well maybe it&#8217;s content you don&#8217;t want others to view. Prolly this can be done using youtube, but hey I have my own servers and I want it where I have full access! (as do many companies actually).<\/p>\n<p>So how do you do this using opensource tools? Actually very, very simple<\/p>\n<p>I started from <a href=\"http:\/\/blog.kovyrin.net\/2006\/10\/08\/lighttpd-memcoder-flvtool-for-streaming\/\">this blog entry<\/a>. But as I&#8217;m using ubuntu dapper, I have the nice debian apt tool \ud83d\ude42<\/p>\n<p>So in short here is what you do:<\/p>\n<p><code><br \/>\napt-get install mencoder<br \/>\napt-get install ruby<br \/>\napt-get install flvtool2<br \/>\n<\/code><\/p>\n<p>And I had my tools install (maybe you need some extra depencies here) don&#8217;t know actually.<br \/>\nThen the commands like in the previous posts<\/p>\n<p><code><br \/>\nmencoder \\<br \/>\norig_file.ext \\<br \/>\n-ofps 25 \\<br \/>\n-o dest_file.flv \\<br \/>\n-of lavf \\<br \/>\n-oac mp3lame \\<br \/>\n-lameopts abr:br=64 \\<br \/>\n-srate 22050 \\<br \/>\n-ovc lavc \\<br \/>\n-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \\<br \/>\n-lavcopts vcodec=flv:keyint=50:vbitrate=300:mbd=2:mv0:trell:\\<br \/>\nv4mv:cbp:last_pred=3 -vop scale=320:240<br \/>\n<\/code><\/p>\n<p>and<\/p>\n<p><code><br \/>\nflvtool2 -UP dest_file.flv<br \/>\n<\/code><\/p>\n<p>And you have your <strong>indexed<\/strong> flash movie. And may I note the importance of the indexed in the sentence once more. In the past I tried this with a long avi and believe me its no fun if you can&#8217;t forward or rewind!!<\/p>\n<p>So then you put the flv file on your server. Now all you need is a flash movie player for playing your content. And I like the <a href=\"http:\/\/flowplayer.sourceforge.net\/\">flowplayer<\/a>. You download it, setup a small page like this<\/p>\n<p><code><br \/>\n&lt;object type=\"application\/x-shockwave-flash\" data=\"FlowPlayer.swf\"<br \/>\n\twidth=\"320\" height=\"263\" id=\"FlowPlayer\"><br \/>\n\t&lt;param name=\"allowScriptAccess\" value=\"sameDomain\" \/><br \/>\n\t&lt;param name=\"movie\" value=\"FlowPlayer.swf\" \/><br \/>\n\t&lt;param name=\"quality\" value=\"high\" \/><br \/>\n\t&lt;param name=\"scale\" value=\"noScale\" \/><br \/>\n\t&lt;param name=\"wmode\" value=\"transparent\" \/><br \/>\n\t&lt;param name=\"flashvars\" value=\"videoFile=dest_file.flv\"\/><br \/>\n&lt;\/object><br \/>\n<\/code><\/p>\n<p>Et voila, you have your own streaming video. Now put it into a web application and you have your own streaming media center!!<\/p>\n<p><strong>OSS == SWEET<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wouldn&#8217;t it be nice to create your own youtube movies and host them on your own private server? Why you ask, well maybe it&#8217;s content you don&#8217;t want others to view. Prolly this can be done using youtube, but hey I have my own servers and I want it where I have full access! (as &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.pczone.be\/?p=104\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Streaming media -> youtube style&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[4,7,12],"tags":[],"class_list":["post-104","post","type-post","status-publish","format-standard","hentry","category-informatics","category-linux","category-web"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3U9nk-1G","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":0,"href":"http:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}