Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---trsnslate subs---
- F1 run "/bin/bash" "-c" "echo \"${sub-text}\" | tr -s ' ',',','!','?','.','-','—',':' '\\n' > /tmp/sub; ~/.bin/words.sh \"${time-pos}\""
- F2 run "/bin/bash" "-c" "echo \"${sub-text}\" | tr -s ' ',',','!','?','.','-','—',':' '\\n' > /tmp/sub; ~/.bin/words2.sh \"${time-pos}\""
- #google_translate
- F3 run "/bin/bash" "-c" "echo \"${sub-text}\" | tr -s ' ',',','!','?','.','-','—' '\\n' > /tmp/sub; ~/.bin/words3.sh \"${time-pos}\""
- #escape brackets
- F4 run "/bin/bash" "-c" "echo ${sub-text} | tr -s '\'',' ',',','!','?','.','-','—',':' '\\n' > /tmp/sub; ~/.bin/words2.sh \"${time-pos}\""
- #------
- #---encode video---
- #start point
- F5 run "/bin/bash" "-c" "echo \"${=time-pos}\" > /tmp/webm_start"; show-text "start \"${time-pos}\""
- #stop point
- F6 run "/bin/bash" "-c" "echo \"${=time-pos}\" > /tmp/webm_end"; show-text "end \"${time-pos}\""
- #PV
- F7 run "/bin/bash" "-c" "mpv --title='PREVIEW' --geometry=640x360 --no-resume-playback --start=`cat /tmp/webm_start` --end=`cat /tmp/webm_end` --loop=no \"${filename}\" "
- #cut webm
- F8 run "/usr/bin/xterm" "-e" "mpv_webm \"${filename}\" \'${sid}\' \'${aid}\' \"$HOME/Desktop/cut\" "; show-text "webm encode (sub: \"${sid}\")"
- #F9 run get_mouse_coord.lua
- #cut cropped webm
- F10 run "/usr/bin/xterm" "-e" "mpv_crop \"${filename}\" \'${aid}\' \"$HOME/Desktop/cut\" "; show-text "mpv crop webm"
- #cut mp4
- F11 run "/usr/bin/xterm" "-e" "mpv_mp4cut \"${filename}\" \'${aid}\' \"$HOME/Desktop/cut\" "; show-text "mp4_cut"
- #test or clear points
- F12 run "/bin/bash" "-c" "rm /tmp/webm_* &>/dev/null"; show-text " clear "
- #------
- #MOUSE_BTN0_DBL cycle fullscreen
- MOUSE_BTN2_DBL cycle sub
- #MOUSE_BTN0 cycle pause
- MOUSE_BTN1 screenshot
- ENTER cycle pause
- ESC quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement