← Back to team overview

epoptes team mailing list archive

[Bug 1504547] Re: Provide an easy way to multicast videos

 

I've found some errors in the script above. The following one is
functional:

#!/bin/sh

ADDRESS=239.255.100.100
PORT=5004
MRL=$(echo ${1} | perl -MURI::file -e 'print URI::file->new(<STDIN>)."\n"')

ENABLE_LIVE_TRANSCODING=${ENABLE_LIVE_TRANSCODING:-false}
ENABLE_LOCAL_PLAYBACK=${ENABLE_LOCAL_PLAYBACK:-false}

MULTICAST_BASE="rtp{dst=${ADDRESS},port=${PORT},mux=ts}"
MULTICAST_LOCAL_PLAYBACK="duplicate{dst=${MULTICAST_BASE},dst=display}"

if ${ENABLE_LOCAL_PLAYBACK}
then
  MULTICAST="${MULTICAST_LOCAL_PLAYBACK}"
else
  MULTICAST="${MULTICAST_BASE}"
fi

if ${ENABLE_LIVE_TRANSCODING}
then
  LIVE_TRANSCODING="transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:"
else
  LIVE_TRANSCODING=
fi

vlc ${MRL} ":file-caching=300" ":sout=#${LIVE_TRANSCODING}${MULTICAST}"
":sout-keep"

-- 
You received this bug notification because you are a member of Epoptes
Developers, which is subscribed to Epoptes.
https://bugs.launchpad.net/bugs/1504547

Title:
  Provide an easy way to multicast videos

Status in Epoptes:
  New

Bug description:
  One task I do a lot in my lab is video multicast using VLC, but the
  manual setup for multicast always take me some time. I wonder if
  Epoptes could provide an easy way to provide such a fature (e.g. an
  interface to VLC to automate multicast configuration).

To manage notifications about this bug go to:
https://bugs.launchpad.net/epoptes/+bug/1504547/+subscriptions


References