Software, Physics, Data, Mountains

...and other random associations

Stream VLC From Hawk

this sets up a remote control on 7001 over an ssh tunnel

hawk:~ $ vlc -Ihttp --http-host :7001 -vvv /tmp/howimetyourmother-S1d1-t1.mp4 --udp-caching 1500 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http{mime=video/x-ms-asf},mux=asf,dst:8080}'

this client hits hawk:8080 which forwards the port to hawk’s vlc process

insecure data stream (control stream still safe) but seems to work better than tunneling over 8080 too

next up is to try it over some other protocol than http… need to set up port forwarding for udp traffic and see fi that’s faster

Stream VLC (Working)

server

vlc -Ihttp --http-host :7000 -vvv ~/Videos/Entourage.S06E10.HDTV.XviD-NoTV.avi --udp-caching 1500 --sout '#standard{access=http{mime=video/x-ms-asf},mux=asf,dst:7070}'

client

from a browser: - localhost:7000 is remote control - localhost:8080 is movie

using vlc works fine too: - open VLC - open Network - protocol http - host localhost:8080

Some More VLC

Following some more stuff from This post.

this was for audio to stream out ogg quality 0

vlc -I http --control http:rc --rc-host :4800 --http-host :7000 --no-rc-show-pos --volume 500 --spdif -vvv /home/laptop/all.m3u --random --sout-keep --sout '#duplicate{dst=display,dst="transcode{acodec=vorb,anc=vorbis{quality=2},ab=64,samplerate=44100,channels=2}:standard{access=http,mux=ogg,url=192.168.3.2:8000}"}'

To explain what’s going on: vlc opens in the background with an http interface available. vlc can be controlled by both the http interface, on port 7000, and a remote control advanced telnet interface on port 4800. It’s playing the all.m3u playlist, at random, and keeps the stream-out alive between tracks. The stream-out (sout) is duplicated: the first stream plays locally (display), whilst the duplicate stream is transcoded via vorbis, to a quality of 2, at a bitrate of 64, 44100 mhz, stereo, with an ogg stream via http on port 8000. (whew)

More VLC

from http://wiki.videolan.org/MosaicExampleSetup