mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Compare commits
4 commits
8d87ec678c
...
6b9cbd5a16
Author | SHA1 | Date | |
---|---|---|---|
|
6b9cbd5a16 | ||
|
530287feed | ||
|
2aedc3e861 | ||
|
7474d46743 |
5 changed files with 273 additions and 240 deletions
|
@ -13,7 +13,7 @@ Move-Item $file $temp
|
||||||
|
|
||||||
# video stub logic was implicitly deprecated, so we start processing at once
|
# 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 -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"
|
Move-Item $temp2 "$dir$hashT/$hash.mp4"
|
||||||
Remove-Item $temp
|
Remove-Item $temp
|
||||||
|
|
|
@ -3,7 +3,7 @@ tmpfile="$RANDOM-$(date +%s%N)"
|
||||||
cp $2 "/tmp/vid_$tmpfile.bin"
|
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 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
|
rm -rf $3${4:0:2}/$4.mp4
|
||||||
mv "/tmp/ffmOi$tmpfile.mp4" $3${4:0:2}/$4.mp4
|
mv "/tmp/ffmOi$tmpfile.mp4" $3${4:0:2}/$4.mp4
|
||||||
|
|
|
@ -62,6 +62,7 @@ window.router = new class {
|
||||||
const page_body = u(parsed_content.querySelector('.page_body'))
|
const page_body = u(parsed_content.querySelector('.page_body'))
|
||||||
const sidebar = u(parsed_content.querySelector('.sidebar'))
|
const sidebar = u(parsed_content.querySelector('.sidebar'))
|
||||||
const page_header = u(parsed_content.querySelector('.page_header'))
|
const page_header = u(parsed_content.querySelector('.page_header'))
|
||||||
|
const page_footer = u(parsed_content.querySelector('.page_footer'))
|
||||||
const backdrop = u(parsed_content.querySelector('#backdrop'))
|
const backdrop = u(parsed_content.querySelector('#backdrop'))
|
||||||
if(page_body.length < 1) {
|
if(page_body.length < 1) {
|
||||||
throw new Error('Invalid page has been loaded')
|
throw new Error('Invalid page has been loaded')
|
||||||
|
@ -78,6 +79,7 @@ window.router = new class {
|
||||||
})
|
})
|
||||||
u('.page_body').html(page_body.html())
|
u('.page_body').html(page_body.html())
|
||||||
u('.sidebar').html(sidebar.html())
|
u('.sidebar').html(sidebar.html())
|
||||||
|
u('.page_footer').html(page_footer.html())
|
||||||
if(backdrop.length > 0) {
|
if(backdrop.length > 0) {
|
||||||
if(u('#backdrop').length == 0) {
|
if(u('#backdrop').length == 0) {
|
||||||
u('body').append(`<div id="backdrop"></div>`)
|
u('body').append(`<div id="backdrop"></div>`)
|
||||||
|
@ -112,6 +114,8 @@ window.router = new class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async __integratePage(scrolling = null) {
|
async __integratePage(scrolling = null) {
|
||||||
|
window.temp_y_scroll = null
|
||||||
|
u('.toTop').removeClass('has_down')
|
||||||
window.scrollTo(0, scrolling ?? 0)
|
window.scrollTo(0, scrolling ?? 0)
|
||||||
bsdnHydrate()
|
bsdnHydrate()
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -548,7 +548,7 @@ input[type="radio"] {
|
||||||
border-bottom-color: #151418 !important;
|
border-bottom-color: #151418 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ajax_audio_player {
|
#ajax_audio_player, #ajloader {
|
||||||
box-shadow: rgb(58 53 73) 0px 0px 2px 3px;
|
box-shadow: rgb(58 53 73) 0px 0px 2px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue