Compare commits
3 Commits
5e428f503a
...
1001d6d8a0
Author | SHA1 | Date |
---|---|---|
pta | 1001d6d8a0 | |
pta | 775e2af1de | |
pta | c6389456ba |
|
@ -4,7 +4,7 @@ Includes lua scripts for dumping portions of network streams to files, cropping
|
|||
videos, and, to your clipboard, copying ffmpeg command lines for making webms.
|
||||
|
||||
Also, some shell aliases and functions for:
|
||||
- making audioless copies of webms
|
||||
- making audioless copies of webms, optionally at a lower framerate
|
||||
- concatenating video files that use webm-compatible codecs
|
||||
- converting youtube live stream URLs into their chat window URLs and placing in clipboard
|
||||
- taking screenshots with ffmpeg
|
||||
|
@ -47,6 +47,11 @@ skip frames to the exact loop points you want for the webm, then hit ~l~ to set
|
|||
points. Points can be reset separately with ~a~ or ~b~ keys. On cache dump clips, set the
|
||||
b-point on the frame AFTER the intended last frame of the webm.
|
||||
|
||||
[[https://tools.suckless.org/dmenu/][dmenu]] is required to input an optional scale filter parameter. Leave it empty to not apply
|
||||
a scale filter. See ffmpeg-all(1) line 30945 for valid input rules. I usually do "-1:720"
|
||||
to scale a large input down to 720 pixels tall: the "-1" automatically scales the width to
|
||||
maintain the aspect ratio.
|
||||
|
||||
- ~Ctrl-s~: get ffmpeg command for single-pass encoding. Works only on files
|
||||
- ~Ctrl-d~: get ffmpeg command for dual-pass encoding. Works only on files
|
||||
- ~Ctrl-t~: like ~Ctrl-d~ but covers the ticker on 1080p WNI clips
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
# aqstream tv channel aliases
|
||||
alias tbs='mpv https://tbs4.mov3.co/hls/tbs.m3u8' \
|
||||
tbsaudio='mpv --no-initial-audio-sync https://tbs3.mov3.co/hls/tbs.m3u8' \
|
||||
tbsaudio='mpv --no-initial-audio-sync https://tbs4.mov3.co/hls/tbs.m3u8' \
|
||||
ntv='mpv https://ntv4.mov3.co/hls/ntv.m3u8' \
|
||||
ntvaudio='mpv --no-initial-audio-sync https://ntv4.mov3.co/hls/ntv.m3u8' \
|
||||
fujitv='mpv https://fujitv4.mov3.co/hls/fujitv.m3u8' \
|
||||
|
@ -29,15 +29,20 @@ alias sc='ffmpeg -y -f x11grab -video_size 1920x1080 -select_region 1 -i $DISPLA
|
|||
|
||||
# Makes an audio-less webm of a saved webm or mkv and puts it in /tmp for uploading to /jp/
|
||||
# An mkv has to contain a vp8/vp9 encoded video
|
||||
# Optional second, integer parameter to set a lower framerate
|
||||
rma() {
|
||||
local FPSOPT
|
||||
local FPS
|
||||
local N
|
||||
|
||||
[ $# -eq 0 ] && echo enter filename && return 1
|
||||
if [ $# -eq 2 ] && (($2)); then
|
||||
local FPSOPT="-bsf:v setts=ts=STARTPTS+N/TB_OUT/$2"; FPS=${2}fps
|
||||
FPSOPT="-bsf:v setts=ts=STARTPTS+N/TB_OUT/$2"; FPS=${2}fps
|
||||
else
|
||||
local FPSOPT=""; local $FPS=""
|
||||
FPSOPT=""; FPS=""
|
||||
fi
|
||||
local N=$( basename $1 | sed -e 's/.webm$//' -e 's/.mkv$//' -e "s/$/${FPS}/").webm
|
||||
ffmpeg -an -i $1 -c copy $FPSOPT /tmp/$N
|
||||
N=$( basename "$1" | sed -e 's/.webm$//' -e 's/.mkv$//' -e "s/$/${FPS}/").webm
|
||||
ffmpeg -an -i "$1" -c copy $FPSOPT /tmp/"$N"
|
||||
}
|
||||
# Converts youtube stream url into the chat-only url
|
||||
ytchat() {
|
||||
|
|
Loading…
Reference in New Issue