Ticket #15581: bin-stream-desktop

File bin-stream-desktop, 701 bytes (added by Enrique Rosas, 20 months ago)
Line 
1#!/bin/bash
2##  -f x11grab -s 1365x767 -show_region 1 -thread_queue_size 32 -video_size "$dimensions" -framerate 30 -i $DISPLAY
3
4config_file=~/.config/stream-desktop
5if [ ! -f "$config_file" ]; then
6  printf "Please create the file %s and set all configuration parameters.\n" "$config_file"
7  exit 1
8fi
9source "$config_file"
10
11ffmpeg -loglevel debug \
12  -f x11grab -show_region 1 -thread_queue_size 32 -video_size "$dimensions" -framerate 30 -i :0.0  \
13  -f pulse  -i "$output" \
14  -f webm -af aresample=async=1 -cluster_size_limit 2M -cluster_time_limit 5100 -content_type video/webm \
15  -c:a libvorbis -b:a 96K \
16  -c:v libvpx -b:v "$video_bits" -crf 30 -g 30 -deadline good -threads 3 \
17  "$server"