Imagine a picture, you try to stretch it, do you expect it to increase quality or decrease?

|
thecatvoid 2022-07-30 17:34:14
siduck 2022-07-30 17:29:49
ffmpeg -vf scale=-1:2160:flags=lanczos -video_size 1920×1080 -framerate 60 -f x11grab -i :1 -c:v libx264rgb -crf 0 -preset ultrafast -color_range 2 output.mp4

would the -video_size arg here mess with the scale arg?

ffmpeg -i ‘video.mp4’ -vf scale=3840×2560:flags=lanczos output_4k.mp4

alexmb7 2022-07-30 17:34:56
no wonder its slow
alexmb7 2022-07-30 17:35:06
u need gpu accel activated
Crypto0DaySTA 2022-07-30 17:35:14
\\\\///////\\\\///////\\\\///////\\\\///////
alexmb7 2022-07-30 17:35:15
if available in compile time
thecatvoid 2022-07-30 17:35:28
alexmb7 2022-07-30 17:35:06
u need gpu accel activated

i have, and it lags more

alexmb7 2022-07-30 17:35:35
hm
thecatvoid 2022-07-30 17:35:45
siduck 2022-07-30 17:33:26
ok i moved the scale arg after the input arg. The recording is laggy and my system lags when recording too

use -threads argument

thecatvoid 2022-07-30 17:35:51
set it to low
alexmb7 2022-07-30 17:35:52
well i dunno all these in practice,
alexmb7 2022-07-30 17:36:08
i used multimedia creation on mac os 9
siduck 2022-07-30 17:38:56
thecatvoid 2022-07-30 17:34:14
ffmpeg -i ‘video.mp4’ -vf scale=3840×2560:flags=lanczos output_4k.mp4

i already use it, its decreases my 60FPS recording to below 20 FPS :/

siduck 2022-07-30 17:39:15
i tried hardware accel with cuda too, does nothing xD
thecatvoid 2022-07-30 17:40:12
siduck 2022-07-30 17:38:56
i already use it, its decreases my 60FPS recording to below 20 FPS :/

add -r 60 -framerate 60

alexmb7 2022-07-30 17:41:48
siduck 2022-07-30 17:39:15
i tried hardware accel with cuda too, does nothing xD

bad linux porting i guess

alexmb7 2022-07-30 17:41:56
or try otherffmpeg sw
alexmb7 2022-07-30 17:42:13
i mean other, not some specific thingy
siduck 2022-07-30 17:42:15
thecatvoid 2022-07-30 17:40:12
add -r 60 -framerate 60

linux_group-1388733.jpg
tried this already, look

alexmb7 2022-07-30 17:42:33
siduck 2022-07-30 17:42:15
tried this already, look

no wonder to me

alexmb7 2022-07-30 17:42:35
:/
thecatvoid 2022-07-30 17:42:56
siduck 2022-07-30 17:42:15
tried this already, look

what if you also add -crf 0

thecatvoid 2022-07-30 17:43:12
ah you already did that
siduck 2022-07-30 17:44:27
linux_group-1388738.jpg
also ffmpeg took around 4GB+ ram 🤯
thecatvoid 2022-07-30 17:44:47
imagine a picture, you try to stretch it, do you expect it to increase quality or decrease?
thecatvoid 2022-07-30 17:45:14
siduck 2022-07-30 17:44:27
also ffmpeg took around 4GB+ ram 🤯

check cpu usage and temperature, it will be like 90 C

siduck 2022-07-30 17:46:36
thecatvoid 2022-07-30 17:45:14
check cpu usage and temperature, it will be like 90 C

yea its worse and the result video FPS is 3x lower than before 🙁

thecatvoid 2022-07-30 17:47:10
siduck 2022-07-30 17:46:36
yea its worse and the result video FPS is 3x lower than before 🙁

is it really unusable?

siduck 2022-07-30 17:47:39
yes, looks soo laggy
thecatvoid 2022-07-30 17:48:39
siduck 2022-07-30 17:47:39
yes, looks soo laggy

all you can do is, try different options in ffmpeg and hack the video

thecatvoid 2022-07-30 17:49:56
have you tried
-pix_fmt yuv420p -s 3840×2560
?
siduck 2022-07-30 17:50:18
linux_group-1388746.jpg
i wouldnt care much about youtube compressing my vid unless it didnt mess up with the colors

youtube compression

siduck 2022-07-30 17:50:23
linux_group-1388747.jpg
original colors
siduck 2022-07-30 17:50:50
thecatvoid 2022-07-30 17:49:56
have you tried
-pix_fmt yuv420p -s 3840×2560
?

that will result in washed out colors ._.

siduck 2022-07-30 17:51:21
and that wont work with libx264rgb either
thecatvoid 2022-07-30 17:52:34
siduck 2022-07-30 17:51:21
and that wont work with libx264rgb either

ffmpeg -pix_fmts

|