Last active
December 8, 2017 04:15
-
-
Save crossan007/547bdb0a3776b5f80dd10fcf4dc61c09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#WORKING | |
gst-launch-1.0 tcpclientsrc host=127.0.0.1 port=15000 ! queue ! matroskademux name=d ! videoconvert ! videorate ! videoscale ! video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc bitrate=4000 key-int-max=2 speed-preset=veryfast ! video/x-h264,profile=baseline ! h264parse ! queue ! flvmux name=mux d. ! audioresample ! audio/x-raw,rate=44100 ! queue ! voaacenc bitrate=128000 ! queue ! mux. mux. ! rtmpsink location="rtmp://rtmp-api.facebook.com:80/rtmp/<KEY>" | |
gst-launch-1.0 compositor name=comp sink_1::xpos=640 sink_1::ypos=0 ! \ | |
videoconvert ! jpegenc ! matroskamux ! queue ! tcpserversink host=0.0.0.0 port=8675 \ | |
\ | |
videotestsrc pattern=snow timestamp-offset=3000000000 ! \ | |
"video/x-raw,format=AYUV,width=640,height=480,framerate=(fraction)30/1" ! \ | |
timeoverlay ! queue2 ! comp. \ | |
\ | |
videotestsrc pattern=smpte ! \ | |
"video/x-raw,format=AYUV,width=640,height=480,framerate=(fraction)30/1" ! \ | |
timeoverlay ! queue2 ! comp. | |
gst-launch-1.0 compositor name=comp sink_1::xpos=640 sink_1::ypos=0 ! queue ! \ | |
videoconvert ! jpegenc ! matroskamux streamable=false ! queue ! filesink location=test.mkv sync=false \ | |
\ | |
rpicamsrc bitrate=1000000 sensor-mode=6 use_stc=false do_timestamp=true ! h264parse ! queue ! avdec_h264 ! \ | |
videoconvert ! videorate ! videoscale ! \ | |
"video/x-raw,format=AYUV,width=640,height=480,framerate=(fraction)30/1" ! \ | |
timeoverlay ! queue2 ! comp. \ | |
\ | |
v4l2src do_timestamp=true ! jpegparse ! queue ! jpegdec ! videoconvert ! videorate ! videoscale ! \ | |
"video/x-raw,format=AYUV,width=640,height=480,framerate=(fraction)30/1" ! \ | |
timeoverlay ! queue2 ! comp. | |
gst-launch-1.0 matroskamux name=mux ! queue ! filesink location=test.mkv \ | |
\ | |
rpicamsrc bitrate=1000000 sensor-mode=6 use_stc=false do_timestamp=true ! h264parse ! queue ! mux. \ | |
\ | |
v4l2src do_timestamp=true ! jpegparse ! queue ! mux. | |
gst-launch-1.0 flvmux name=mux streamable=true ! rtmpsink location="<rtmp_url_for_fblive>" videotestsrc is-live=true ! "video/x-raw,width=1280,height=720,framerate=30/1" ! identity sync=true ! x264enc bitrate=2500 key-int-max=60 ! video/x-h264,profile=high ! h264parse ! queue ! mux. audiotestsrc is-live=true ! audio/x-raw,rate=44100,channels=2 ! identity sync=true ! voaacenc bitrate=128000 ! queue ! mux. | |
###### WORKING ################# | |
gst-launch-1.0 tcpclientsrc host=127.0.0.1 port=11000 ! queue ! matroskademux name = d \ | |
\ | |
d. ! voaacenc bitrate=128000 ! queue ! aacparse ! queue ! mux. \ | |
\ | |
d. ! x264enc bitrate=2500 key-int-max=10 ! video/x-h264,profile=high ! h264parse ! queue ! mux. \ | |
\ | |
flvmux name=mux ! \ | |
rtmpsink location="rtmp://live-api-a.facebook.com:80/rtmp/ | |
" | |
################################## | |
gst-launch-1.0 v4l2src ! "video/x-raw,width=1280,height=720,framerate=30/1" ! x264enc bitrate=2500 key-int-max=10 ! video/x-h264,profile=high ! h264parse ! queue ! flvmux name=mux alsasrc device=hw:1 ! audioresample ! audio/x-raw,rate=44100 ! queue ! voaacenc bitrate=128000 ! queue ! mux. mux. ! rtmpsink location=\"rtmp://rtmp-api.facebook.com:80/rtmp/xxxxxxxxxxxxxxx?ds=1\&a=xxxxxxxxxxxxxxx\" | |
gst-launch-1.0 flvmux name=mux streamable=true ! rtmpsink location="rtmp://live-api-a.facebook.com:80/rtmp/" videotestsrc is-live=true ! "video/x-raw,width=1280,height=720,framerate=30/1" ! identity sync=true ! x264enc bitrate=2500 key-int-max=60 ! video/x-h264,profile=high ! h264parse ! queue ! mux. audiotestsrc is-live=true ! audio/x-raw,rate=44100,channels=2 ! identity sync=true ! voaacenc bitrate=128000 ! queue ! mux. | |
https://mikeymalone.com/2017/05/08/raspberry-picam-facebook-live-streaming-guide-automation/ | |
gst-launch-1.0 | |
videotestsrc do-timestamp=true ! | |
x264enc bitrate=2500 key-int-max=10 ! | |
video/x-h264,width=1280,height=720,framerate=60/1,profile=high ! | |
h264parse ! | |
queue ! | |
flvmux name=mux streamable=true | |
audiotestsrc ! | |
audio/x-raw,rate=44100,channels=2 ! | |
queue! | |
voaacenc ! | |
queue ! | |
aacparse ! | |
queue ! | |
mux. | |
mux. ! rtmpsink location="rtmp://live-api-a.facebook.com:80/rtmp/" | |
https://mikeymalone.com/2017/05/08/raspberry-picam-facebook-live-streaming-guide-automation/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment