Sie sind auf Seite 1von 3

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100

-ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset veryslow -f flv rtmp://150.107.149.43:2935/group?
streamKey=KcO4tdsj4raUmxQ2P2GG/test

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 1280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset fast -f flv rtmp://192.168.12.15/test/live

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 1280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset fast -f flv rtmp://150.107.149.43:2935/group?
streamKey=KcO4tdsj4raUmxQ2P2GG/test

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f alsa -ac 2 -i hw:1,0 -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 1280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset fast -f flv rtmp://150.107.149.43:2935/group?
streamKey=KcO4tdsj4raUmxQ2P2GG/test

ffmpeg -f alsa -ac 2 -ar 48000 -i hw:1,0

/root/yavta/yavta --capture=1000 -n 3 --encode-to=pipe:0 -f UYVY -m -T /dev/video0


| omxplayer pipe:0

/root/yavta/yavta --capture=1000 -n 3 --encode-to=file.h264 -f UYVY -m -T


/dev/video0

v4l2-ctl --set-edid=file=/boot/1080P50EDID.txt --fix-edid-checksums


v4l2-ctl --query-dv-timings

v4l2-ctl --list-dv-timings

v4l2-ctl --set-dv-bt-timings index=6

v4l2-ctl --set-dv-bt-timings index=4

gst-launch-1.0 flvmux streamable=true name=mux ! rtmpsink


location="rtmp://150.107.149.43:2935/group?streamKey=KcO4tdsj4raUmxQ2P2GG/test"
v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! identity sync=true !
v4l2h264enc extra-
controls="controls,h264_profile=4,h264_level=10,video_bitrate=256000;" ! video/x-
h264,profile=high ! h264parse ! queue ! mux. alsasrc device=hw:1 ! audio/x-
raw,rate=48000,channels=2 ! identity sync=true ! audioconvert ! avenc_aac !
aacparse ! queue ! mux
gst-launch-1.0 flvmux streamable=true name=mux ! rtmpsink
location="rtmp://live.justin.tv/app/[STREAMKEY]" v4l2src ! "video/x-
raw,framerate=30/1,format=UYVY" ! identity sync=true ! v4l2h264enc extra-
controls="controls,h264_profile=4,h264_level=10,video_bitrate=256000;" ! video/x-
h264,profile=high ! h264parse ! queue ! mux. alsasrc device=hw:1 ! audio/x-
raw,rate=48000,channels=2 ! identity sync=true ! audioconvert ! avenc_aac
bitrate=48000 ! aacparse ! queue ! mux.

librtmp-dev
gst-libav

docker cp tmp:/opt/gstreamer /opt/gstreamer

gst-launch-1.0 flvmux streamable=true name=mux ! rtmpsink


location="rtmp://150.107.149.43:2935/group?streamKey=KcO4tdsj4raUmxQ2P2GG/test"
v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! identity sync=true !
v4l2h264enc extra-
controls="controls,h264_profile=4,h264_level=10,video_bitrate=256000;" ! video/x-
h264,profile=high ! h264parse ! queue ! mux. alsasrc device=hw:1 ! audio/x-
raw,rate=4000,channels=2 ! identity sync=true ! audioconvert ! avenc_aac ! aacparse
! queue ! mux

gst-launch-1.0 flvmux streamable=true name=mux ! rtmpsink


location="rtmp://live.justin.tv/app/live_424407399_xTrHueE5rjBdKrk2zhdG51chDNwVuJ"
v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! identity sync=true !
v4l2h264enc extra-
controls="controls,h264_profile=4,h264_level=10,video_bitrate=256000;" ! video/x-
h264,profile=high ! h264parse ! queue ! mux. alsasrc device=hw:1 ! audio/x-
raw,rate=48000,channels=2 ! identity sync=true ! audioconvert ! avenc_aac !
aacparse ! queue ! mux.

gst-launch-1.0 audiotestsrc is-live=true ! audio/x-raw, format=\(string\)S16LE,


endianness=\(int\)1234, signed=\(boolean\)true, width=\(int\)16, depth=\(int\)16,
rate=\(int\)16000, channels=\(int\)1 ! queue ! voaacenc bitrate=128 ! aacparse !
audio/mpeg,mpegversion=4,stream-format=raw ! queue ! mux. rpicamsrc keyframe-
interval=2 ! video/x-h264,width=1280,height=720,framerate=25/1 ! h264parse !
queue ! flvmux streamable=true name=mux ! queue ! rtmpsink location='rtmp://
$STREAM_URL/$STREAM_KEY live=1 flashver=FME/3.0%20(compatible;%20FMSc%201.0)'

! 'audio/x-raw-int,rate=(int)48000,channels=(int)2'

gst-launch-1.0 flvmux streamable=true name=mux ! rtmpsink


location="rtmp://115.124.72.84/live/rpi live=1" v4l2src ! "video/x-
raw,framerate=25/1,format=UYVY,width=1280,height=720" ! identity sync=true !
v4l2h264enc extra-
controls="controls,h264_profile=2,h264_level=10,video_bitrate=1024000;" ! video/x-
h264 ! h264parse ! queue ! mux. alsasrc device=hw:1 ! audio/x-
raw,rate=48000,channels=2 ! volume volume='1' ! identity sync=true ! audioconvert !
avenc_aac bitrate=48000 ! aacparse ! queue ! mux.

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset veryslow -f flv rtmp://150.107.149.43:2935/group?
streamKey=KcO4tdsj4raUmxQ2P2GG/test

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 1280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset fast -f flv rtmp://192.168.12.15/test/live

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 1280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset fast -f flv rtmp://150.107.149.43:2935/group?
streamKey=KcO4tdsj4raUmxQ2P2GG/test

ffmpeg -f video4linux2 -framerate 25 -video_size 1280x720 -i /dev/video0 -ar 44100


-ac 2 -acodec pcm_s16le -f alsa -ac 2 -i hw:1,0 -acodec aac -ab 128k -strict
experimental -vcodec h264_omx -s 1280x720 -r 25 -g 50 -vb 2500k -maxrate 2500k
-preset fast -f flv rtmp://150.107.149.43:2935/group?
streamKey=KcO4tdsj4raUmxQ2P2GG/test

ffmpeg -f alsa -ac 2 -ar 48000 -i hw:1,0

/root/yavta/yavta --capture=1000 -n 3 --encode-to=pipe:0 -f UYVY -m -T /dev/video0


| omxplayer pipe:0

v4l2-ctl --query-dv-timings

v4l2-ctl --set-edid=file=1080P50EDID.txt --fix-edid-checksums

gst-launch-1.0 flvmux streamable=true name=mux ! rtmpsink


location="rtmp://150.107.149.43:2935/group?streamKey=KcO4tdsj4raUmxQ2P2GG/test"
v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! identity sync=true !
v4l2h264enc extra-
controls="controls,h264_profile=4,h264_level=10,video_bitrate=256000;" ! video/x-
h264,profile=high ! h264parse ! queue ! mux. alsasrc device=hw:1 ! audio/x-
raw,rate=48000,channels=2 ! identity sync=true ! audioconvert ! avenc_aac !
aacparse ! queue ! mux.

Das könnte Ihnen auch gefallen