#Smoothie on Fedora
364 messages · Page 1 of 1 (latest)
wait no i cant send files
hm
okay heres the script
and heres the error
wait no
incorrect screenshot
okay this is the correct screenshot
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i - -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
this is the run command
here
nope
just the stuff you learn in school
which is basically bullshit
the file is here
yeh remove .decode('utf-8')
okay lets see
just keep video = video
okay we got further thanks
Deprecated option --y4m specified, use -c y4m instead
it spitted out this
i think i can figure it out
yep i am
heres the thingus
maybe you can correct it cause it seems im not fixing it correctly
you can ignore that
cause if i correct it there is no error
it just says invalid data
is there any way i can catch the error?
it means that something broke
no clue what tho
you can try removing the ffmpeg part
ie everything after the pipe
oh okay
HOLY FUCK
ITS SPAMMING LIKE SHIT
i force closed the terminal
vspipe blend.vpy - -c y4m -a video="video.mp4"
well i did this which means that it probably wasnt outputting anything
and i am too dumb to actually write the output
well it did it correctly i presume
but
the file size increased from 5.3MB to 1.2GB
try playing the video
it outputted everything to stdout
yeah the video looks cool and smooth and everything
just as i would expect it to be
failed while processing args?
i dont rememberus anymore
dis thing
idk try running this again
well something in the ffmpeg part
isnt there something obvious?
what about the args at start
-i - -i
replace the lone - in the ffmpeg command with the filename of this
and run the ffmpeg command by itself
after vspipe
see if that works
vspipe blend.vpy output.y4m -c y4m -a video="video.mp4"
ffmpeg -i output.y4m -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
yes this worked
the file is now 992KB
and looks just a tiny bit worse than the 1.2GB file
@empty quartz atzurus and how do i make it so that it only blends, doesnt interpolate
cause just removing the newnum doesnt make it smooth cause it just cuts the frames down to 60
pretty sure it doesnt blend
comment this out
and replace every instance of ìnterp after that with src
actually thats complicated
just replace this with interp = src
what
import vapoursynth as vs
from os import path
import havsfunc as haf
import weighting
core = vs.core
video = video
src = core.ffms2.Source(path.abspath(path.expanduser(video)))
interp = src
blended_frames = int(interp.fps / 60 * 1.27) # change 60 and 1.27 to fit your output fps / blur amount
if blended_frames % 2 == 0: blended_frames += 1
weights = weighting.equal(blended_frames)
blended = core.frameblender.FrameBlend(interp, weights)
out = haf.ChangeFPS(blended, 60) # again, change to fit output fps
out.set_output()
okay thanks ima see
okay this is super fast and really good
atzurus ur da chadus
super epik 
but
how do i make it so that both commands the ffmpeg and da other thingus run at the same time
no clue
you can delete it after
well yes
but for a 887MB video that has 36 secs
its gonna be about 213GB file size
which is brutal
thats why i stopped my terminal
you could cut it up into parts and render them separately ig
no 
but well at least its kinda working thanks
epik

@empty quartz i think i got it running
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i video.mp4 -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
nice
well im testing the frame blending now
coz it doesnt seem smoothus at first
but at least it worke
thanks a lot atzurus 
wait no
it dont worke WHAT
dunno if i did something inkorrectly
but
the fps are set to 30
and the file size is identical to the one with 60fps and its also the same smoothness
doesnt look to me like 30fps
@empty quartz kan ya supportus now ples? 
check the fps
yeah i think i broke something
i replaced the blend.vpy file with the one from last time
and the output is still 380.3MB
and looks the same as everything else
sooooo there is something wrong
with this
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i video.mp4 -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
.
where do i do that tho
are you checking the right video
well there are 3 videos that are the same
are you editing the right blend.vpy
meanwhile the blend.vpy file has changed 3 times
ohhhhh
well that was the issue
im frikkin dumb
well lets rename stuff ig
i knew this must have been a simple issue
okay there is a bunch of weirdness in my terminal now but it looks like its working idk
youre outputting to stdout again
FUk
but
there is an output.mp4 file being generated
so whats wrong
ima wait for it to complete i think xD
occasionally it shows this
but yeah, its really fast
i guess thats the output to stdout
vspipe .blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i video.mp4 -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
well i did this
so where is the part that i should fix
that prints out stuff into stdout
that dash
what
like is the video going to be blended and stuff like it should be
even if the command is broken
that - indicates vspipe to pipe into stdin
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i video.mp4 -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
okay thangus
the | tells the terminal to redirect the stdin to ffmpeg
except weve tried that like 6 times and it hasnt worked

idk im tired and wanna play ow you deal with this topito
well this looks to be working
my cpu fan is skreamingus
pog
i have and offtopik question
kan i somehow figure out my cpu tdp in linux?
okay thangus
i googled a bunch of times inb4
dats why i asked you
me when .blend.py
idk
maybe if you had a better solutionus
cpupower-monitor reports processor topology, frequency and idle power state statistics. Either command is forked and statistics are printed upon its ...
cpupower-monitor
i removed that
thats why it worked
no
cause my blend.vpy file is called .blend.vpy
so dunno
ima rename it just in case
well lets rerun
cant you just create a bash file
and pass input vid and output vid to the commands
now its doing this stuff again when its using blend.vpy
iiim too dumb to do that
just use the fuckin command i gave you
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i video.mp4 -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4 well this one
and?
yes
yeah so what do i do
i know you wanna play halo
i also wanna play minekraftus
but i kant do this stuff myself
thanks a lot xD
by running the command
check this
well they should
they are working but only partially
they do everything but they dont interpolate nor blend the video
it basically just runs the ffmpeg command
if i understand it correctly
config issue then
basically how blur frames are generated
(interpolation fps/output fps) * blur intensity
use that equation
use where
if my interpolation fps is 960 and output is 60 and intensity is 1
then blurframes generated are 16
okay so what do i do
yep
just copy and paste the contents here
import vapoursynth as vs
from os import path
import havsfunc as haf
import weighting
# Config
# Set this value to your input video FPS.
Input_FPS = 240
# Interpolation
Use_GPU=True
Interpolation_FPS=960
Interpolation_Preset='medium'
Interpolation_Tuning='weak'
Interpolation_Algo=23
# Frameblending
Frameblend_FPS=60
Frameblend_Intensity=1.27
# Don't touch anything beyond this point unless you need to
core = vs.core
video = video
src = core.ffms2.Source(path.abspath(path.expanduser(video)))
interp = haf.InterFrame(src,
GPU=Use_GPU,
NewNum=Interpolation_FPS, # interp fps
Preset=Interpolation_Preset, # speed
Tuning=Interpolation_Tuning, # quality
OverrideAlgo=Interpolation_Algo
)
blended_frames = int((interp.fps / Input_FPS) * Frameblend_Intensity) # change 60 and 1.27 to fit your output fps / blur amount
if blended_frames % 2 == 0: blended_frames += 1
weights = weighting.equal(blended_frames)
blended = core.frameblender.FrameBlend(interp, weights)
out = haf.ChangeFPS(blended, Frameblend_FPS) # again, change to fit output fps
out.set_output()
is this readable now
OHH
now ik why
niiiice
wait don't copy yet
read the comments
configure Input_FPS
set to whatever fps you record at
okay kool
thanks so ima test
nope still not doink it
its just doing da ffmpeg thingus
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i video.mp4 -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
i think dis is incorrect
well i cant really do a proper screenshot
but i guess ima do a few
gimme a sec
i guess this should be enough, if you want more just tell me
and this is also doing the print to stdout thing
but ima tell you what works
but it makes files immensely big
vspipe .blend.vpy .output.y4m -c y4m -a video="video.mp4"
ffmpeg -i .output.y4m -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
but the y4m file can be 1.2GB for a 5MB video.mp4
which means for a 800MB 30 second video, its gonna be about 200GB
and i think thats unusable
thats raw interpolation
frameblending occurs
reducing the filesize
yeah i know but how do i run 2 commands at once
i mean atzur said he has no idea
because the double thingus command was working inb4
vspipe blend.vpy - --y4m -a video="video.mp4" | ffmpeg -i - -i video.mp4 -map 0:v -map 1:a -c:v libx264 -preset medium -crf 17 -c:a copy output.mp4
this was working this summer
but now it doesnt work unless i replace ffmpeg -i - -i video.mp4 with fffmpeg -i video.mp4 -i video.mp4 and when it does work, it doesnt do anything other than the ffmpeg command
@empty quartz
its fixed
i just had to put Use_GPU=False
instead of True
frikuus
and its working with the old command
and not being big
and stuff like that
my bad
oh
extra good news guys
wait i should probably post this in a different channel
but i gotta say its working EPIKUS
wdym this one xD
cause the input fps is set to 60
ye but i wont use this script anyway
cause it hasnt got the uhm
forgor how they are called
masks
yes masks
this also doesn't have the masks 
but ya dont need them cause just the frame blending doesnt kause artifakting of the hearts
i can add those if u want
wait whaaaaaaa
thats super epikus
that would be like
official smoothie level
no?
i think so at least
what
cause like thats everything that i needed from smoothie
smoothie is just a frontend for vapoursynth
