{"id":337,"date":"2009-01-04T13:55:28","date_gmt":"2009-01-04T20:55:28","guid":{"rendered":"http:\/\/chriscarey.com\/blog\/?p=337"},"modified":"2009-01-04T13:57:12","modified_gmt":"2009-01-04T20:57:12","slug":"streaming-a-webcam-in-linux-with-vlc","status":"publish","type":"post","link":"https:\/\/chriscarey.com\/blog\/2009\/01\/04\/streaming-a-webcam-in-linux-with-vlc\/","title":{"rendered":"Streaming a webcam in Linux with VLC"},"content":{"rendered":"<p>I wanted a simple way to make my Linux security camera server stream live video to my TV.<\/p>\n<p>The server ususally runs &#8220;motion&#8221;. I disable motion, and launch this command on the server:<\/p>\n<blockquote><p>vlc v4l:\/dev\/video0:size=640&#215;480:channel=1:norm=ntsc:fps=12 &#8211;sout &#8216;#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=mmsh,mux=asfh,dst=:8080}}&#8217; -v &#8211;noaudio<\/p><\/blockquote>\n<p>and this on a Linux client to test:<\/p>\n<blockquote><p>mmsh:\/\/10.4.4.25:8081\/<\/p><\/blockquote>\n<p>Then, once that is all working, I use VLC on the AppleTV to play the video to the TV. I used iScripts to get it launching.<\/p>\n<p>The only problem I have right now is a 8 or so second delay.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted a simple way to make my Linux security camera server stream live video to my TV. The server ususally runs &#8220;motion&#8221;. I disable motion, and launch this command on the server: vlc v4l:\/dev\/video0:size=640&#215;480:channel=1:norm=ntsc:fps=12 &#8211;sout &#8216;#transcode{vcodec=mp4v,vb=768,scale=1}:duplicate{dst=std{access=mmsh,mux=asfh,dst=:8080}}&#8217; -v &#8211;noaudio and this on a Linux client to test: mmsh:\/\/10.4.4.25:8081\/ Then, once that is all working, I [&hellip;]<\/p>\n","protected":false},"author":2,"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,"font":"","enabled":false},"version":2}},"categories":[17],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-appletv"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/prpYG-5r","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":4,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":341,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/posts\/337\/revisions\/341"}],"wp:attachment":[{"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chriscarey.com\/blog\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}