mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Compare commits
4 commits
fe20c7f123
...
8d87ec678c
Author | SHA1 | Date | |
---|---|---|---|
|
8d87ec678c | ||
|
29860d7237 | ||
|
2aedc3e861 | ||
|
7474d46743 |
6 changed files with 276 additions and 239 deletions
|
@ -13,7 +13,7 @@ Move-Item $file $temp
|
|||
|
||||
# video stub logic was implicitly deprecated, so we start processing at once
|
||||
ffmpeg -i $temp -ss 00:00:01.000 -vframes 1 "$dir$hashT/$hash.gif"
|
||||
ffmpeg -i $temp -c:v libx264 -q:v 7 -c:a libmp3lame -q:a 4 -tune zerolatency -vf "scale=640:480:force_original_aspect_ratio=decrease,pad=640:480:(ow-iw)/2:(oh-ih)/2,setsar=1" -y $temp2
|
||||
ffmpeg -i $temp -c:v libx264 -q:v 7 -c:a libmp3lame -q:a 4 -tune zerolatency -vf "scale=480:-1,setsar=1" -y $temp2
|
||||
|
||||
Move-Item $temp2 "$dir$hashT/$hash.mp4"
|
||||
Remove-Item $temp
|
||||
|
|
|
@ -3,7 +3,7 @@ tmpfile="$RANDOM-$(date +%s%N)"
|
|||
cp $2 "/tmp/vid_$tmpfile.bin"
|
||||
|
||||
nice ffmpeg -i "/tmp/vid_$tmpfile.bin" -ss 00:00:01.000 -vframes 1 $3${4:0:2}/$4.gif
|
||||
nice -n 20 ffmpeg -i "/tmp/vid_$tmpfile.bin" -c:v libx264 -q:v 7 -c:a libmp3lame -q:a 4 -tune zerolatency -vf "scale=640:480:force_original_aspect_ratio=decrease,pad=640:480:(ow-iw)/2:(oh-ih)/2,setsar=1" -y "/tmp/ffmOi$tmpfile.mp4"
|
||||
nice -n 20 ffmpeg -i "/tmp/vid_$tmpfile.bin" -c:v libx264 -q:v 7 -c:a libmp3lame -q:a 4 -tune zerolatency -vf "scale=480:-1,setsar=1" -y "/tmp/ffmOi$tmpfile.mp4"
|
||||
|
||||
rm -rf $3${4:0:2}/$4.mp4
|
||||
mv "/tmp/ffmOi$tmpfile.mp4" $3${4:0:2}/$4.mp4
|
||||
|
|
|
@ -205,6 +205,9 @@ window.player = new class {
|
|||
if(!this.context.object) {
|
||||
return
|
||||
}
|
||||
if(this.context.playedPages.indexOf(page) != -1) {
|
||||
return
|
||||
}
|
||||
|
||||
const form_data = new FormData
|
||||
switch(this.context.object.name) {
|
||||
|
|
|
@ -2362,6 +2362,7 @@ async function __processPaginatorNextPage(page)
|
|||
|
||||
if(window.player && window.player.isAtAudiosPage() && window.player.isAtCurrentContextPage()) {
|
||||
window.player.loadContext(page)
|
||||
window.player.__highlightActiveTrack()
|
||||
}
|
||||
|
||||
/*if(window.router) {
|
||||
|
|
|
@ -91,6 +91,10 @@ window.router = new class {
|
|||
u('.page_header #search_box select').nodes[0].value = page_header.find('#search_box select').nodes[0].value
|
||||
}
|
||||
|
||||
if(u('.page_header #search_box input').length > 0 && page_header.find('#search_box input').length > 0) {
|
||||
u('.page_header #search_box input').nodes[0].value = page_header.find('#search_box input').nodes[0].value
|
||||
}
|
||||
|
||||
if(page_header.hasClass('search_expanded_at_all')) {
|
||||
u('.page_header').addClass('search_expanded_at_all').addClass('search_expanded')
|
||||
} else {
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue