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
b077a48a
Commit
b077a48a
authored
Sep 15, 2017
by
Carlos Remuzzi
Committed by
Carlos Remuzzi
Dec 07, 2017
Browse files
testeando h264
parent
67cd0c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
librecast
View file @
b077a48a
...
...
@@ -62,7 +62,7 @@ main() {
CROP_STRING_Y
=
"starty=0 endy=1079"
fi
curl
--connect-timeout
3
-s
-k
-X
GET https://
$AP_ADDRESS
:5443/player/start |
grep
'Player iniciado'
#
curl --connect-timeout 3 -s -k -X GET https://$AP_ADDRESS:5443/player/start | grep 'Player iniciado'
if
[
$?
-eq
0
]
;
then
pacmd unload-module module-null-sink
...
...
@@ -70,7 +70,8 @@ main() {
pacmd update-sink-proplist libreCast device.description
=
libreCast
pacmd set-default-sink libreCast
gst-launch-1.0 ximagesrc use-damage
=
false
$CROP_STRING_X
$CROP_STRING_Y
!
videoconvert
!
videoscale
!
video/x-raw,format
=
I420,width
=
$SCREEN_WIDTH
,height
=
$SCREEN_HEIGHT
,framerate
=
24/1,bitrate
=
6000
!
jpegenc
quality
=
80
!
rtpjpegpay
!
udpsink
host
=
$AP_ADDRESS
port
=
1234
sync
=
false
&
gst-launch-1.0 ximagesrc use-damage
=
false
$CROP_STRING_X
$CROP_STRING_Y
!
videoconvert
!
videoscale
!
video/x-raw,format
=
I420,width
=
$SCREEN_WIDTH
,height
=
$SCREEN_HEIGHT
,framerate
=
24/1,bitrate
=
6000
!
vaapih264enc
!
rtph264pay config-interval
=
1
pt
=
96
!
udpsink
host
=
$AP_ADDRESS
port
=
1234
sync
=
false
&
# gst-launch-1.0 ximagesrc use-damage=false $CROP_STRING_X $CROP_STRING_Y ! videoconvert ! videoscale ! video/x-raw,format=I420,width=$SCREEN_WIDTH,height=$SCREEN_HEIGHT,framerate=24/1,bitrate=6000 ! jpegenc quality=80 ! rtpjpegpay ! udpsink host=$AP_ADDRESS port=1234 sync=false &
gst-launch-1.0
-v
pulsesrc
device
=
"libreCast.monitor"
!
"audio/x-raw,rate=11500,channels=2,depth=16"
!
udpsink
host
=
$AP_ADDRESS
port
=
5678
sync
=
false
&
exit
0
else
...
...
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