Last active
May 8, 2019 14:41
-
-
Save phedoreanu/fc85521134c37da5bb87b3b86e111f60 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
raspivid -o - -t 0 -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/$KEY | |
./mjpg_streamer -o "output_http.so" -i "input_raspicam.so -x 1920 -y 1080 -fps 30" | |
sudo ./mjpg_streamer -i "input_uvc.so -d /dev/video1 -r 1280x720 -f 30 -q 85" -o "output_http.so" | |
sudo ffmpeg -f v4l2 -video_size 1920x1080 -i /dev/video0 -f v4l2 -video_size 1920x1080 -i /dev/video1 -filter_complex "[0:v]setpts=PTS-STARTPTS[background];[1:v]setpts=PTS-STARTPTS,scale=iw/2:-1[foreground];[background][foreground]overlay=main_w-overlay_w-10:main_h-overlay_h-10" -c:v libx264 -crf 18 -preset ultrafast -c:a copy output.mkv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment