Sunday 6 May 2012

VLC stream

  1. Connect to [EeePC] using SSH. If you're using PuTTY, make sure to set "Connection > SSH > Tunnels" to:
    Source port = 9091
    Destination = localhost:9091
    'Local' and 'Auto' selected
    If you're using the command line it looks like this:
    ssh user@[EeePC] -L 9091:localhost:9091
    ... isn't that much easier?
  2. Once you've connected to your [EeePC], run the following command:
    vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-adev=/dev/dsp :v4l2-standard=0 
    :sout="#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128, channels=2}
    :duplicate{dst=std{access=http,mux=ts,dst=localhost:9091}}"
    It's a beast, I konw, just copy/paste it into the terminal window of your [EeePC], or better yet, put it in a script on your [EeePC]!
  3. You'll see a lot of text scroll across your screen. When it stops, you'll want to open up your local copy of VLC player
  4. In VLC go to:
    Media > Open Network > Protocol = HTTP > Address = localhost:9091
    and again, if you're using the command line
    vlc http://localhost:9091
    starting to understand why geeks like the command line?

No comments:

Post a Comment