-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomands
More file actions
25 lines (15 loc) · 1.03 KB
/
comands
File metadata and controls
25 lines (15 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
youtube-dl -J 'https://www.youtube.com/watch?v=-H2PCK7DJsQ' | grep -Po '"title":.*?[^\\]",'
youtube-dl -J 'https://www.youtube.com/watch?v=cyq5-StPISU&list=RDCLAK5uy_k_OEunzsOIJ_BOfbbTDgYN253bcPItURY&start_radio=1&rv=-H2PCK7DJsQ' | grep -Po '"playlist":.*?[^\\]",'
# video portion
youtube-dl --ignore-errors --extract-audio --audio-format mp3 --audio-quality 0 --add-metadata --no-playlist --embed-thumbnail -o "%(title)s.%(ext)s" --postprocessor-args "-ss 0:0:00 -t 0:8:35" 'https://www.youtube.com/watch?v=wPjHuvulivM'
mogrify -format png -path ../telegram -resize "512x512<" -background transparent -gravity center -extent 512x512 *.png
montage -density 300 -tile 2x0 -geometry +0+0 * out.png
xev | grep --color=auto -A 3 -B 3 keysym
#clear ram
sync; echo 1 > /proc/sys/vm/drop_caches
sync; echo 2 > /proc/sys/vm/drop_caches
sync; echo 3 > /proc/sys/vm/drop_caches
#cut video
ffmpeg -i vid -ss 00:00:00 -t 01:08:00 -c:v copy -c:a copy output.mp4
#embeb music
ffmpeg -i video.mp4 -i audio.wav -map 0:v -map 1:a -c:v copy -shortest output.mp4