Add new stuff
This commit is contained in:
parent
8d1e62eadc
commit
d97efcce4f
2 changed files with 14 additions and 11 deletions
|
|
@ -234,19 +234,22 @@ alias hosts="sudo vim /etc/hosts"
|
|||
# INRES="1920x1080" # input resolution
|
||||
# OUTRES="1920x1080" # output resolution
|
||||
INRES="$(xdpyinfo | awk '/dimensions/{print $2}')"
|
||||
OUTRES="$(xdpyinfo | awk '/dimensions/{print $2}')"
|
||||
FPS="24" # target FPS
|
||||
GOP="48" # i-frame interval, should be double of FPS,
|
||||
# OUTRES="$(xdpyinfo | awk '/dimensions/{print $2}')"
|
||||
# OUTRES="1280x720"
|
||||
OUTRES="2560x1440"
|
||||
# OUTRES="3840x2160"
|
||||
FPS="15" # target FPS
|
||||
GOP="29" # i-frame interval, should be double of FPS,
|
||||
GOPMIN="15" # min i-frame interval, should be equal to fps,
|
||||
THREADS="2" # max 6
|
||||
CBR="1000k" # constant bitrate (should be between 1000k - 3000k)
|
||||
QUALITY="slow" # one of the many FFMPEG preset
|
||||
THREADS="0" # max 6
|
||||
CBR="4000k" # constant bitrate (yuvj444p)
|
||||
QUALITY="ultrafast" # one of the many FFMPEG preset
|
||||
AUDIO_RATE="44100"
|
||||
# STREAM_KEY="$1" # use the terminal command Streaming streamkeyhere to stream your video to twitch or justin
|
||||
|
||||
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -f alsa -i pulse -f flv -ac 2 -ar $AUDIO_RATE \
|
||||
-vcodec libx264 -g $GOP -keyint_min $GOPMIN -b:v $CBR -minrate $CBR -maxrate $CBR -pix_fmt yuv420p\
|
||||
-s $OUTRES -preset $QUALITY -tune film -acodec libmp3lame -threads $THREADS -strict normal \
|
||||
ffmpeg -thread_queue_size 512 -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -f alsa -i pulse -f flv -ac 2 -ar $AUDIO_RATE \
|
||||
-vcodec libx264 -g $GOP -keyint_min $GOPMIN -b:v $CBR -minrate $CBR -maxrate $CBR -pix_fmt yuv444p\
|
||||
-s $OUTRES -preset $QUALITY -tune zerolatency -acodec libmp3lame -threads $THREADS -strict normal \
|
||||
-bufsize $CBR $STREAM_URI
|
||||
}
|
||||
alias gg="xset dpms force off"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue