Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
agetic
librecast
Commits
5d2143fe
Commit
5d2143fe
authored
Aug 14, 2017
by
Carlos Remuzzi
Browse files
aumentando script librecast
parent
9832699e
Changes
2
Hide whitespace changes
Inline
Side-by-side
README
→
README
.md
View file @
5d2143fe
File moved
librecast
0 → 100755
View file @
5d2143fe
#!/usr/bin/env bash
if
[
-z
`
pidof gst-launch-1.0
`
]
;
then
nmcli con up sala-1
if
[
$?
-eq
0
]
;
then
echo
"nmcli ok"
else
exit
1
fi
# se deberia testear este script
pacmd load-module module-null-sink
sink_name
=
Pantalla
pacmd update-sink-proplist Pantalla device.description
=
Pantalla
# a transmission is not running yet from this machine
curl
--connect-timeout
3
-s
-k
-X
GET https://192.168.12.1:5443/player/start |
grep
'Player iniciado'
if
[
$?
-eq
0
]
;
then
gst-launch-1.0 ximagesrc use-damage
=
false
!
videoconvert
!
videoscale
!
video/x-raw,format
=
I420,width
=
1920,height
=
1080,framerate
=
24/1,bitrate
=
6000
!
jpegenc
quality
=
80
!
rtpjpegpay
!
udpsink
host
=
192.168.12.1
port
=
1234
sync
=
false
&
gst-launch-1.0
-v
pulsesrc
device
=
"Pantalla.monitor"
!
"audio/x-raw,rate=11500,channels=2,depth=16"
!
udpsink
host
=
192.168.12.1
port
=
5678
sync
=
false
&
exit
0
else
# the player is already running or the player is not reachable
exit
1
fi
else
# a transmission is already running from this machine
curl
--connect-timeout
3
-s
-k
-X
GET https://192.168.12.1:5443/player/stop
pkill
-15
gst-launch-1.0
nmcli con down sala-1
pacmd unload-module module-null-sink
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment