Results 1 to 2 of 2

Thread: VLC won't start automatically at Lubuntu boot

  1. #1
    Join Date
    Jan 2013
    Beans
    1

    VLC won't start automatically at Lubuntu boot

    Hello,

    I am trying to configure VLC to start streaming two streams automatically on boot with Upstart.
    Here is my upstart script stored in /etc/init/stream.conf:
    Code:
    description "VLC streams" 
    start on (local-filesystems and net-device-up IFACE!=lo) 
    stop on runlevel [016] 
    exec /home/streamer/stream.sh
    and stream.sh:
    Code:
    #!/bin/bash
    cvlc -v "/home/streamer/Videos/first/first.xspf" --sout '#std{access=udp{ttl=2},mux=ts,dst=239.220.220.31:9200}' --sout-keep --loop & 
    cvlc -v "/home/streamer/Videos/second/second.xspf" --sout '#std{access=udp{ttl=2},mux=ts,dst=239.220.220.2:9200}' --sout-keep --random &
    exit 0
    However, after the computer boots, there is no stream and VLC process is not running. When I run stream.sh manually, it works with no problem.

    Does anybody know what mistake am I doing? Should I register upstart script somewhere?

    I am using Lubuntu 12.10 and VLC 2.0.5.

    Thank you in advance for any help.
    Milan

  2. #2
    Join Date
    Mar 2008
    Location
    London
    Beans
    87
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: VLC won't start automatically at Lubuntu boot

    hi Mimac - I know its been six months since your posting but wondered whether you had come right yet?

    Just checking that the interface you are intending to use in your /etc/init/streams.conf is lo and not eth0?
    and your user is called /home/streamer? where you put the stream.sh file?

    Regards
    0,= ,-_-. =.
    ((_/)o o(\_))
    ` `-'(. .)`-'
    000\_/

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •