This commit is contained in:
douzeb 2023-03-01 11:45:35 +01:00
parent 6d8a6d694e
commit 627f238551

View file

@ -4,7 +4,7 @@ DURATION=300
RESOLUTION=1280x720
VBITRATE=2048
ABITRATE=128
V4LDEVICE=/dev/video0
V4LDEVICE=0
if [[ $# -lt 3 ]] ; then
echo "Not enough arguments supplied" >&2
@ -50,7 +50,7 @@ then
fi
FILENAME=live-v4l-${1}-${V4LDEVICE}-${RESOLUTION}p-${DURATION}s-${VBITRATE}kbps-${ABITRATE}kbps-${2}.mkv
FILENAME=live-v4l-${1}-cam${V4LDEVICE}-${RESOLUTION}p-${DURATION}s-${VBITRATE}kbps-${ABITRATE}kbps-${2}.mkv
echo " "
echo Will stream to $URL for $DURATION seconds
echo and save a copy of the data sent to the peertube server to file :
@ -77,7 +77,7 @@ ffmpeg \
-loglevel level \
-y \
-f v4l2 -framerate 25 -video_size ${RESOLUTION} -i ${V4LDEVICE} \
-f alsa -ac 2 -i hw:CARD=CAMERA,DEV=0 \
-f alsa -ac 2 -i hw:CARD=CAMERA,DEV=${V4LDEVICE} \
-channel_layout stereo \
-ar 48000 \
-pixel_format yuv420p \