Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #!/bin/bash
  2. # author: Diego 'dragonauta' Rucci
  3. # version 0.2
  4. # CVLC is part of VLC package. It's a CLI tool.
  5. # Some (flash-based) streamings can't be mounted on icecast2.
  6. # solution is to play them with VLC (or cvlc) and redirect output to an icecast2 mountpoint
  7. # ChangeLog
  8. # Added variables to easily reuse script
  9. STREAMING=<put-your-online-streaming-url-here>
  10. USER=<put-your-icecast-user-here>
  11. IP=<put-your-icecast-ip-here_or_localhost_or_127.0.0.1>
  12. PORT=<put-your-icecast-port-here>
  13. MPOINT=<put-your-mount-point-here>
  14. DISPLAY=:0 cvlc $STREAMING --sout "#transcode{vcodec=none,acodec=vorb,ab=128,channels=2,samplerate=44100}:gather:std{access=shout,mux=ogg,dst=source:$USER@$IP:$PORT/$MPOINT}" --sout-keep &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement