[Ffmpeg-devel-irc] ffmpeg.log.20180909
burek
burek021 at gmail.com
Mon Sep 10 03:05:02 EEST 2018
[00:17:44 CEST] <GuiToris> do I have to write python scipts to use vapoursynth?
[00:18:15 CEST] <furq> yes
[00:18:20 CEST] <furq> it's pretty simple though
[00:18:22 CEST] <JEEB> use vapoursynth editor
[00:18:27 CEST] <JEEB> for preview and editing of scripts
[00:18:32 CEST] <furq> well you still have to write python scripts in vsedit
[00:18:35 CEST] <furq> but yeah, vsedit is nice
[00:19:07 CEST] <GuiToris> I'll try it
[00:19:28 CEST] <furq> http://vpaste.net/gqf2h
[00:19:30 CEST] <furq> that's pretty much it
[00:20:42 CEST] <GuiToris> I just don't know python
[00:21:59 CEST] <furq> well if nothing else it's easier than writing avisynth scripts
[00:23:21 CEST] <GuiToris> while it's installing, I use VidStab to stabilize my videos, it's a decent filter, isn't it?
[00:23:29 CEST] <GuiToris> I shouldn't find another tool
[00:24:26 CEST] <GuiToris> I'm not sure if there's a better tool underlinux
[00:25:31 CEST] <GuiToris> I tried another tool 'deshaker' with virtualdub, but it was under Win
[00:26:31 CEST] <nicolas17> I used vidstab via ffmpeg's filter
[00:26:46 CEST] <nicolas17> it works well, but it's slow, and for my use case I spent a while tweaking parameters
[00:27:52 CEST] <GuiToris> I was worrying that I'm the only one who use it
[00:28:30 CEST] <GuiToris> just because I didn't know -deinterlace paramater is not that great everything is suspicious now
[00:30:37 CEST] <durandal_1707> GuiToris: -deinterlace is alias for yadif
[00:31:30 CEST] <GuiToris> can I make such aliases? if I'd like to use nnedi I don't want to specify the weights everytime
[00:32:04 CEST] <durandal_1707> GuiToris: with your shell, yes
[00:45:45 CEST] <GuiToris> is butterflow better than minterpolate?
[01:05:55 CEST] <GuiToris> thank you for your help, I'm leaving, see you later
[10:39:17 CEST] <ren0v0> Hi, I'm using zoneminder but ffmpeg is crashing when i try to capture audio also. Would someone here be able to give me a command to record a snippet manually from my IPcam to test this theory with more verbosity ?
[14:00:48 CEST] <durandal_1707> just tried vs timecube and its much slower than lavfi one
[14:00:59 CEST] <durandal_1707> so much about skills
[15:52:44 CEST] <kerio> durandal_1707: EARTH HAS 4 CORNER SIMULTANEOUS 4-DAY TIME CUBE WITHIN SINGLE ROTATION. 4 CORNER DAYS PROVES 1 DAY 1 GOD IS TAUGHT EVIL
[16:01:23 CEST] Action: DHE medically treats kerio for having a seizure
[16:23:15 CEST] <analogical> how do I use ffplay to play a live stream?
[16:23:36 CEST] <kerio> you don't, and use mpv instead
[16:24:21 CEST] <ChocolateArmpits> analogical, ffplay [url]
[16:25:25 CEST] <ChocolateArmpits> kerio, you mean streamlink+mpv
[16:28:55 CEST] <furq> what does this do that youtube-dl doesn't
[16:29:07 CEST] <ChocolateArmpits> play twitch streams?
[16:29:12 CEST] <DHE> works for me...
[16:29:34 CEST] <DHE> mpv will use youtube-dl on any URL it gets by default, and youtube-dl handles a LOT of streams. pretty sure live twitch is in there
[16:29:48 CEST] <furq> i've never tried it but it claims to support twitch
[16:29:57 CEST] <furq> twitch went to hls ages ago didn't it
[16:30:02 CEST] <DHE> 100% twitch vods... 95% sure twitch live
[16:31:04 CEST] <furq> but how am i going to send tuna treats to my boys through mpv
[16:31:25 CEST] Action: DHE medically treats furq for having a seizure
[16:33:26 CEST] <kerio> you mean how are you going to send tokens to the twitch camgirls
[20:51:19 CEST] <GuiToris> hey, havsfunc includes qtgmc, doesn't it?
[20:52:27 CEST] <JEEB> yes, that's a collection of vapoursynth scripts IIRC
[20:52:35 CEST] <JEEB> which probably indeed contains a port of QTGMC
[20:55:55 CEST] <GuiToris> JEEB, didn't you say qtgmc uses nnedi3? will I get different result from ffmpeg -vf nnedi?
[20:56:18 CEST] <JEEB> internally nnedi3 (which is what the 'nnedi' filter in FFmpeg is) as one of the things
[20:56:29 CEST] <JEEB> it then has a random amount of various stuff stuffed among it
[21:00:31 CEST] <GuiToris> do vapoursynth's scripts differ from avisynth's?
[21:02:17 CEST] <JEEB> yes, avisynth has its own scripting language, and then vapoursynth is functionality on top of python
[21:02:50 CEST] <GuiToris> JEEB, where can I find working QTGMC templates?
[21:02:57 CEST] <GuiToris> -I've installed the editor-
[21:11:23 CEST] <ChocolateArmpits> GuiToris, for vapoursynth or avisynth ?
[21:11:48 CEST] <GuiToris> ChocolateArmpits, for vapoursynth, qtgmc website is about avisynth, if I'm not mistaken
[21:12:18 CEST] <GuiToris> the editor gives me 2 lines in the beginning
[21:13:16 CEST] <ChocolateArmpits> the vapoursynth port has same commands as the avisynth page
[21:14:15 CEST] <ChocolateArmpits> what you need is a source import plugins, either lsmash or ffms2
[21:15:25 CEST] <GuiToris> I have import vapoursynth as vs and core = vs.get_core() so far
[21:15:30 CEST] <ChocolateArmpits> I'll post a dirty example
[21:15:38 CEST] <GuiToris> that would be great
[21:16:08 CEST] <furq> http://vpaste.net/gqf2h
[21:16:19 CEST] <furq> ignore the croprel, that's just a script i had lying around
[21:16:37 CEST] <ChocolateArmpits> that one works too
[21:16:49 CEST] <ChocolateArmpits> I find lsmash to be more stable
[21:16:56 CEST] <furq> well this isn't an mp4 source
[21:17:18 CEST] <ChocolateArmpits> lsmash can import non-mp4/mov sources as well, there's a separate function for that
[21:17:25 CEST] <furq> i normally use the d2v source anyway
[21:17:29 CEST] <furq> on account of old habits and all that
[21:17:33 CEST] <ChocolateArmpits> core.lsmas.LWLibavSource
[21:17:36 CEST] <GuiToris> my source is always MTS, should I change it?
[21:17:41 CEST] <furq> doesn't really matter
[21:17:54 CEST] <furq> also as i've said, qtgmc is amazing for dirty sd mpeg2 sources
[21:17:57 CEST] <ChocolateArmpits> the import filters will handle that
[21:17:59 CEST] <furq> if you have one of those then great
[21:18:07 CEST] <furq> but i wouldn't bother with it for anything else
[21:19:28 CEST] <ChocolateArmpits> GuiToris, the "set_output" method is an indication that the frames behind that variable will get exported
[21:20:41 CEST] <durandal_1707> using and installing vapoursynth is never ending pain
[21:20:53 CEST] <furq> using it is fine
[21:20:56 CEST] <furq> getting it set up is a bastard
[21:21:05 CEST] <furq> and kept up to date
[21:21:19 CEST] <furq> but on the other hand, it's not avisynth
[21:21:25 CEST] <ChocolateArmpits> portable vapoursynth is much easier to handle
[21:21:28 CEST] <GuiToris> furq, should I leave out the croprel line?
[21:21:31 CEST] <furq> yes
[21:21:34 CEST] <furq> unless you want to crop
[21:22:17 CEST] <GuiToris> so I have 8 lines now, am I ready?
[21:22:30 CEST] <furq> sure
[21:23:05 CEST] <GuiToris> so I saved the script in the same folder as the video, named Untitled.vpy
[21:23:09 CEST] <GuiToris> what's the next step
[21:23:11 CEST] <GuiToris> I have no idea
[21:23:44 CEST] <furq> vspipe foo.vpy -y - | ffmpeg -i - ...
[21:23:54 CEST] <GuiToris> :O
[21:24:06 CEST] <GuiToris> that surprised me
[21:24:20 CEST] <GuiToris> I thought it's a python script and I just have to make it executable
[21:24:54 CEST] <durandal_1707> it is script - but it is not actually script
[21:25:13 CEST] <furq> idk what would even happen if you ran it standalone
[21:25:14 CEST] <GuiToris> oh okay, I'm really bad at programming languages
[21:27:49 CEST] <GuiToris> so what I've done; I've changed the core.ffms2... line to match the actual filename and $ vspipe Untitled.py -y - | ffmpeg -i <samefilename> -crf 0 output.mp4
[21:27:59 CEST] <GuiToris> is that what you meant?
[21:28:16 CEST] <durandal_1707> no
[21:28:24 CEST] <durandal_1707> input to ffmpeg must be pipe
[21:28:24 CEST] <ChocolateArmpits> I'd probably try previewing the script in the editor beforehand
[21:28:42 CEST] <ChocolateArmpits> would be more straightforward for debug purposes
[21:29:03 CEST] <durandal_1707> doesnt editor have muxing/encoding capability already by this time?
[21:29:59 CEST] <ChocolateArmpits> my version is a year old, can't tell
[21:30:25 CEST] <GuiToris> it's my fault, I didn't know how the editor works
[21:30:37 CEST] <GuiToris> I got an error message
[21:30:49 CEST] <ChocolateArmpits> what does it say
[21:31:29 CEST] <durandal_1707> Failed to initialize VapourSynth environment
[21:31:43 CEST] <durandal_1707> that says for me, always
[21:31:52 CEST] <GuiToris> https://ptpb.pw/3ucs
[21:32:20 CEST] <ChocolateArmpits> you need to install ffms2 plugin
[21:32:32 CEST] <ChocolateArmpits> that one that provides the video loading functionality in your script
[21:32:39 CEST] <ChocolateArmpits> there's nothing out of the box to do that
[21:33:06 CEST] <GuiToris> I hope it'll be easier than havsfunc
[21:33:22 CEST] <ChocolateArmpits> it's just a couple of files with no dependencies
[21:35:09 CEST] <GuiToris> A libav/ffmpeg based source library and Avisynth plugin for easy frame accurate access
[21:35:17 CEST] <GuiToris> are you refering to this?
[21:35:25 CEST] <ChocolateArmpits> ye
[21:35:46 CEST] <ChocolateArmpits> it should contain two binaries, one for avisynth other for vapoursynth, install the vapoursynth in under plugins folder
[21:36:17 CEST] <ChocolateArmpits> one*
[21:36:19 CEST] <GuiToris> it works
[21:36:33 CEST] <GuiToris> oh it's an actual preview
[21:36:34 CEST] <ChocolateArmpits> you have a visual output?
[21:36:40 CEST] <GuiToris> yes, amazing
[21:37:18 CEST] <ChocolateArmpits> ok I think there's an encode option somewhere in the menus, my version is probably too busted it crashed when I tried opening the menu
[21:37:29 CEST] <ChocolateArmpits> can't guide you there
[21:37:34 CEST] <ChocolateArmpits> otherwise use vspipe as suggested before
[21:38:19 CEST] <GuiToris> this preview is suprisingly sharp
[21:39:24 CEST] <GuiToris> I found the encode option
[21:39:34 CEST] <durandal_1707> because you are not transcoding
[21:40:02 CEST] <GuiToris> should I extend the script if I'd like lossless output?
[21:40:11 CEST] <GuiToris> I'll edit these videos
[21:40:21 CEST] <ChocolateArmpits> the script doesn't define the output format
[21:40:28 CEST] <ChocolateArmpits> except for pixel format
[21:40:34 CEST] <ChocolateArmpits> so it's always uncompressed
[21:41:31 CEST] <GuiToris> I'm trying this 'encode' option now, this is just a test anyways
[21:44:51 CEST] <GuiToris> it says Encoder wouldn't start. is $vspipe Untitled.vpy -y - | ffmpeg -i - -crf 0 output.mp4 valid?
[21:46:57 CEST] <ChocolateArmpits> should be
[21:48:31 CEST] <GuiToris> it's working now
[21:48:48 CEST] <GuiToris> so I have a question about this
[21:49:27 CEST] <GuiToris> if I specify the source in the vapoursynth script, can't I encode multiple sources?
[21:49:51 CEST] <GuiToris> I usually use $for when I use ffmpeg
[21:49:59 CEST] <durandal_1707> no, this is not vs channel, go to some other place
[21:50:18 CEST] <GuiToris> what does 'vs' stand for?
[21:51:10 CEST] <ChocolateArmpits> GuiToris, vspipe has arguments that can be passed to the script but I'm not sure about how that work
[21:51:11 CEST] <ChocolateArmpits> s
[21:51:59 CEST] <GuiToris> I'll try some wildcards then
[21:52:06 CEST] <GuiToris> thank you for your awesome help!
[22:00:55 CEST] <GuiToris> 100FPS??? :O what sort of magic is that?
[22:07:07 CEST] <GuiToris> furq, where does 'TFF=True' come from? I can't find it anywhere
[22:08:16 CEST] <durandal_1707> GuiToris: 100FPS? With QTGMC? something is fishy there
[22:10:57 CEST] <GuiToris> durandal_1707, something was wrong indeed, I'm rerunning the script, I've increased the crf number since then, the video wasn't even a second long
[22:12:33 CEST] <furq> GuiToris: it's not listed in the avisynth qtgmc docs because avisynth has a way to set field order globally
[22:12:37 CEST] <furq> https://forum.doom9.org/showthread.php?t=166582
[22:12:42 CEST] <furq> it's mentioned in there
[22:13:20 CEST] <GuiToris> got it, thanks :)
[22:14:58 CEST] <ChocolateArmpits> GuiToris, I'm guessing ffms2 is marking the video as 50fps as if 50 fields per second wa an indication
[22:18:01 CEST] <ChocolateArmpits> GuiToris, you can comment out the qtgmc filter and see what framerate the editor reports
[22:18:10 CEST] <ChocolateArmpits> with just the input filter alone
[22:18:18 CEST] <ChocolateArmpits> to adjust fps you can use this filter http://www.vapoursynth.com/doc/functions/assumefps.html
[22:18:46 CEST] <ChocolateArmpits> it'll just mark the frames as different framerate, no frames no are removed or added otherwise
[22:19:44 CEST] <GuiToris> Frames: 210 | Time: 0:00:04.200 | Size: 1920x1080 | FPS: 50/1 = 50 | Format: YUV420P8
[22:21:08 CEST] <ChocolateArmpits> GuiToris, yeah to need to previous filter and set it to 25
[22:21:37 CEST] <GuiToris> should I touch the parameters? like Preset="Very Slow", TR2=3, SourceMatch=3?
[22:22:11 CEST] <ChocolateArmpits> you can try it to see what it produces and at what cost
[22:22:32 CEST] <furq> ^
[22:22:53 CEST] <furq> tr2 and sharpness are worth messing around with
[22:23:06 CEST] <furq> and preset obviously
[22:23:14 CEST] <GuiToris> I'll give it a try
[22:23:31 CEST] <furq> those and inputtype are the only ones i've ever touched
[22:23:42 CEST] <furq> and denoiser
[22:24:09 CEST] <GuiToris> yes, denoiser also looks promising
[22:24:24 CEST] <furq> vs supports knlmeans for denoising which is opencl-based
[22:27:53 CEST] <GuiToris> furq, I assume you tried dfttest
[22:28:06 CEST] <GuiToris> I also need to install this in order to use it
[22:28:11 CEST] <furq> idk it's been a while since i messed with it
[22:28:17 CEST] <furq> i normally don't denoise anyway
[22:28:17 CEST] <GuiToris> oh okay
[22:28:30 CEST] <furq> but i had good results with knlmeans and it doesn't hit the cpu
[22:28:39 CEST] <furq> which is nice because that's at a premium if nnedi is running
[22:31:18 CEST] <GuiToris> furq, can you recommend me a good 'slowmo' filter? I wanted to try butterflow but I just can't install it
[22:32:12 CEST] <furq> i've never used one
[22:32:17 CEST] <furq> presumably minterpolate can do it
[22:33:06 CEST] <GuiToris> I don't know why I haven't tried it yet, thank you for the hint
[22:41:53 CEST] <GuiToris> ahh shoot he left
[22:42:05 CEST] <GuiToris> furq, do you know how this assumefps works?
[22:42:14 CEST] <GuiToris> I've tried std.AssumeFPS(25)
[23:42:19 CEST] <cc0> k;ijik,ik
[00:00:00 CEST] --- Mon Sep 10 2018
More information about the Ffmpeg-devel-irc
mailing list