VP
Size: a a a
VP
F
F
Лс
️
mpv --ytdl-format="best[height<1081]" https://www.youtube.com/watch\?v\=2bko5GgK5v8 | grep -P -o "\d*x\d*" |xargs -I % notify-send "Playing video at % resolution"
(mpv ... &) | xargs ...
Лс
(mpv ... &) | xargs ...
F
F
Лс
Лс
Лс
mpv --ytdl-format="best[height<1081]" https://www.youtube.com/watch\?v\=2bko5GgK5v8 | stdbuf -i0 -o0 -e0 grep -P -o -m 1 "\d+x\d+" |xargs -I % notify-send "Playing video at % resolution"
F
mpv --ytdl-format="best[height<1081]" https://www.youtube.com/watch\?v\=2bko5GgK5v8 | stdbuf -i0 -o0 -e0 grep -P -o -m 1 "\d+x\d+" |xargs -I % notify-send "Playing video at % resolution"
️
mpv --ytdl-format="best[height<1081]" https://www.youtube.com/watch\?v\=2bko5GgK5v8 | stdbuf -i0 -o0 -e0 grep -P -o -m 1 "\d+x\d+" |xargs -I % notify-send "Playing video at % resolution"
'\d+x\d+'
Лс
Лс
mpv --ytdl-format="best[height<1081]" $video | stdbuf -i0 -o0 -e0 grep -P -o "(?<!\[gpu\])\W\d*x\d*" |xargs -I % notify-send -t 700 "Playing video at % resolution"Вот, в итоге, финальная версия. -m 1 у грепа так же убивает трубу и видео.
n
term-playing-msg=INFO_VIDEO_WIDTH=${=width} INFO_VIDEO_HEIGHT=${=height}