Add new stuff
This commit is contained in:
parent
a706cf103a
commit
69ddfc135f
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"
|
||||
|
|
|
|||
4
.vimrc
4
.vimrc
|
|
@ -359,10 +359,10 @@ let g:SuperTabDefaultCompletionType = "<c-p>"
|
|||
" cd ~/.vim/bundle
|
||||
" git clone git://github.com/davidhalter/jedi-vim.git
|
||||
" let g:jedi#usages_command = "<leader>z"
|
||||
let g:jedi#popup_on_dot = 0
|
||||
let g:jedi#popup_on_dot = 1
|
||||
" let g:jedi#popup_select_first = 0
|
||||
" let g:jedi#force_py_version = 3
|
||||
" let g:jedi#completions_command = '.'
|
||||
let g:jedi#completions_command = '.'
|
||||
" map <Leader>b Oimport ipdb; ipdb.set_trace() # BREAKPOINT<C-c>
|
||||
|
||||
" Map C-a to select entire file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue