Наработки за 5 лет
This commit is contained in:
4
HXcam/audio
Executable file
4
HXcam/audio
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# Logitec C920 mic
|
||||
# RTSP
|
||||
cvlc -v 'alsa://hw:0,0' --sout '#transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8556/audio}'
|
||||
19
HXcam/mainCam
Executable file
19
HXcam/mainCam
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Logitec C920
|
||||
# 1280x800:30
|
||||
|
||||
# RTSP
|
||||
cvlc 'v4l2:///dev/video0:chroma=H264:width=1280:height=720:fps=15' --sout '#rtp{sdp=rtsp://:8554/video}' -v --live-caching 50
|
||||
|
||||
# MP4
|
||||
#cvlc 'v4l2:///dev/video0:chroma=H264:width=1280:height=720:fps=15' --sout '#http{mux=ts,dst=:8080/main.mp4}' -v --live-caching 50
|
||||
|
||||
# OGG
|
||||
#cvlc 'v4l2:///dev/video0:chroma=H264:width=1280:height=720:fps=15' --sout '#transcode{vcodec=theora}:http{mux=ogg,dst=:8080/main.ogg}' -v --live-caching 50
|
||||
|
||||
# ASF
|
||||
#cvlc 'v4l2:///dev/video0:chroma=H264:width=1280:height=720:fps=15' --sout '#http{mux=asf,dst=:8080/}' -v --live-caching 50
|
||||
|
||||
#v4l2-ctl --device=/dev/video1 --set-fmt-video=width=1280,height=720,pixelformat=1
|
||||
|
||||
#ffmpeg -r 15 -use_wallclock_as_timestamps 1 -copytb 0 -f v4l2 -vcodec h264 -i /dev/video1 -vcodec copy -f rtsp rtsp://:8554/video
|
||||
5
HXcam/rearCam
Executable file
5
HXcam/rearCam
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
# RPI Camera
|
||||
# 1280x800:30
|
||||
# RTSP
|
||||
raspivid -t 0 -n -w 1280 -h 720 -fps 15 -o - | cvlc -v stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8555/video}' :demux=h264
|
||||
Reference in New Issue
Block a user