[00:16:01 CET] <norbert> http://www.norbertdejonge.nl/videos/lemdop.webm [00:16:04 CET] <norbert> done ;) [01:30:12 CET] <MachinaeWolf> How do you check if ffmpeg supports gif? [01:32:05 CET] <klaxa> ffmpeg -codecs | grep gif [01:34:01 CET] <MachinaeWolf> I guess it's good? DEV..S gif GIF (Graphics Interchange Format) [02:22:27 CET] <fahadash> MachinaeWolf: I downloaded FFMPEG 10 months ago, never updated; it does gifs [02:23:06 CET] <MachinaeWolf> nice [03:13:13 CET] <billeh> how come ffplay does weird thigns [04:10:27 CET] <julienbcn> Hello all, i'm looking for a ffmpeg command or a bash script which can extract 15 thumbs from a video mp4 (basing on duration), anyone for help please? [07:33:01 CET] <ferdna> markvandenborre, i had to leave last night [07:33:11 CET] <ferdna> can i priv msg? [08:08:44 CET] <fling> Why is nut seekable after a badly interrupted ffmpeg? [14:21:45 CET] <ice9> how to make video conversions with the same quality? [14:21:54 CET] <ice9> of the original one [14:28:55 CET] <kerio> you likely can't [14:28:58 CET] <kerio> what's the original format? [14:30:02 CET] <wodim> the default quality for vp9 is simply awful... [14:31:09 CET] <ice9> dv4 [14:31:41 CET] <ice9> i need to convert it another playable format without loosing any quality [14:33:19 CET] <wodim> also, why doesn't vp9 use all my cpu? where is it bottlenecking? [14:33:59 CET] <kerio> ice9: can ffmpeg read that? [14:35:03 CET] <ice9> kerio, i think so [14:35:42 CET] <kerio> well, you'll still lose some quality if you recompress it [14:35:59 CET] <kerio> can you pastebin the output of `ffprobe videofile.dv4`? [14:38:12 CET] <thebombzen> wodim: you need to use the -threads option. otherwise it'll use one thread [14:38:30 CET] <wodim> that's dumb [14:38:38 CET] <thebombzen> why is that dumb [14:38:47 CET] <thebombzen> by default it'll use one thread for video and one per audio [14:39:00 CET] <wodim> it's dumb not to use all threads by default [14:39:15 CET] <wodim> (and it's still not using 100% of my cpu) [14:39:17 CET] <thebombzen> well what does it mean to use "all" [14:39:37 CET] <wodim> one thread per core [14:39:59 CET] <thebombzen> because realize that ffmpeg is a pipeline. if you're transcoding a file with two streams into another file with two streams [14:40:07 CET] <thebombzen> you have to demux, transcode each stream and remux [14:40:14 CET] <thebombzen> afaik all this is handled by 1 thread each. [14:40:21 CET] <thebombzen> so there's no obvious way to set the number of threads for encoding [14:40:48 CET] <wodim> x264 can do it. it always uses 100% of each of my cpu cores. so I'm sure vpx can do it if they wanted to implement it [14:40:54 CET] <kerio> ice9 please :c [14:40:58 CET] <thebombzen> well x264 actually uses 12 threads by default. [14:41:03 CET] <thebombzen> which isn't efficient. [14:41:23 CET] <thebombzen> that's also because x264 is an external library [14:41:25 CET] <wodim> then how many threads are needed? [14:41:32 CET] <wodim> I have 8 cores. and I've set 16 threads. still not maxing [14:41:39 CET] <wodim> in fact windows has decided to park some cores [14:41:46 CET] <thebombzen> oh you're on windows? [14:41:50 CET] <thebombzen> windows has a crappy scheduler [14:41:54 CET] <thebombzen> so idk what to tell you [14:41:54 CET] <wodim> if you say so [14:42:07 CET] <thebombzen> I mean it does. I have the same issue on windows but not on linux [14:42:07 CET] <kerio> wodim: are you sure you're not bottlenecking on the input? [14:42:16 CET] <wodim> completely [14:42:33 CET] <thebombzen> no I have experienced that issue with libvpx's vp9 encoder on windows too [14:42:36 CET] <thebombzen> but it's not an ffmpeg issue [14:42:44 CET] <wodim> then it's vpx [14:42:48 CET] <thebombzen> correct [14:42:52 CET] <thebombzen> or windows [14:42:54 CET] <thebombzen> but it's not ffmpeg [14:43:00 CET] <wodim> just because google are fucking idiots and don't want to support x265 [14:43:07 CET] <wodim> for youtube [14:43:41 CET] <thebombzen> google is looking big picture and they want to try to supercede proprietary coding formats with free stuff, like vp9 instead of hevc or vp8 instead of h.264 [14:43:52 CET] <thebombzen> the biggest problem with that is vp9 is worse than hevc. [14:44:07 CET] <thebombzen> if they really cared for the future they'd try to fund something like Daala [14:44:21 CET] <kerio> i thought vp9 development was basically moved to av1 [14:44:33 CET] <thebombzen> also ideally, you should set the threads to be 17 not 16. that allows you to use 16 threads while one is blocking on I/O [14:45:02 CET] <wodim> god [14:45:56 CET] <thebombzen> right now, insisting on free software and formats is a bit of a moot point if they're way worse that then nonfree counterparts [14:45:58 CET] <wodim> well the video was like 15 secs long so it's done. next time I'll use -threads 128 and I'll enjoy seeing my cpu burn [14:46:17 CET] <thebombzen> either way, is there a reason YOU have to encode it to VP9? [14:46:25 CET] <thebombzen> YouTube is going to reencode it anyway [14:46:40 CET] <thebombzen> if I were you I'd just use x264 and save you some time. [14:46:41 CET] <wodim> as far as I know, vp9 is smaller than h264 [14:46:51 CET] <wodim> and I have quite a limited upload bw [14:47:10 CET] <thebombzen> make sense, although vp9 is a better format than h.264 [14:47:21 CET] <thebombzen> but x264 is an incredible encoder and libvpx-vp9 is... not [14:47:25 CET] <wodim> the encoder is not better [14:47:33 CET] <thebombzen> relative to the bitstream? it is [14:47:40 CET] <wodim> isn't libvpx like... the only implementation of vp9 that exists? [14:47:48 CET] <thebombzen> yep. and it's not very good. [14:47:55 CET] <thebombzen> (afaik) [14:48:03 CET] <wodim> it amazes me to see how google is freaking bad at engineering [14:48:19 CET] <wodim> they are supposed to have one of the toughest interviewing systems for engineers, etc [14:48:26 CET] <wodim> but they fucking suck at engineering [14:48:42 CET] <thebombzen> x264 is also far faster than libvpx-vp9, so if it's a 15 second clip [14:48:53 CET] <wodim> yes, lesson learnt, believe me [14:49:06 CET] <wodim> at least until they decide to let me upload videos in h265 [14:49:14 CET] <thebombzen> they should [14:49:36 CET] <thebombzen> they're going to transcode it anyway. but afaik they do allow h.265 uploads [14:49:59 CET] <wodim> last time I tried they did not [14:50:25 CET] <thebombzen> they decode it with libavcodec so they probably do now. hell I've even uploaded something in ffv1 [14:50:42 CET] <wodim> -threads 64 is the max ffmpeg allows me to use, and it only uses 50% of my cpu [14:50:49 CET] <thebombzen> well vpx sucks then [14:50:53 CET] <thebombzen> don't know what to tell you :P [14:50:59 CET] <wodim> it's fine [14:51:03 CET] <thebombzen> but either way it's not an ffmpeg issue [14:51:16 CET] <durandal_170> wodim: what's your cpu? [14:51:18 CET] <wodim> I know, but people here know about this stuff [14:51:21 CET] <wodim> so I was wondering [14:51:30 CET] <wodim> durandal_170, i7 4790K [14:51:55 CET] <durandal_170> how many cores that have? [14:52:11 CET] <wodim> 4 physical cores, 8 with hyperthreading [14:52:26 CET] <thebombzen> then why would you try 16 threads [14:52:51 CET] <thebombzen> I would use 9 generally which allows full usage when one's blocking on I/O [14:53:09 CET] <wodim> there simply is no way this is blocking on io [14:53:18 CET] <durandal_170> there is propertiary vp9 encoder [14:53:47 CET] <durandal_170> no source available [14:54:13 CET] <wodim> from whom? google? [14:54:52 CET] <durandal_170> nope, but ex Google employer works on it [14:55:26 CET] <wodim> oh [14:55:28 CET] <durandal_170> and he is also a ffmpeg developee [15:45:07 CET] <kerio> wodim: just upload ffvhuff :3 [15:47:41 CET] <wodim> ok [16:06:47 CET] <julienbcn> Hello all, i'm looking for a command or a bash script which can extract 15 thumbs from a video mp4 (basing on duration), anyone for help please? [16:12:52 CET] <Ntemis> trying to build ffmpeg and i get ERROR: freetype2 not found, libfreetype6-dev is installed -ubuntu 16.04.1 [16:13:18 CET] <thebombzen> julienbcn: well if the duration is D [16:13:35 CET] <thebombzen> then say, let E be the duration divided by 15 [16:14:08 CET] <thebombzen> or rather. if the duration is D. then you can do ffmpeg -i input -r 15/D thumb_%2d.png [16:14:34 CET] <thebombzen> setting the framerate to 15/D means it'll output 1 frame every 15/D seconds, or 15 frames every D seconds [16:20:02 CET] <julienbcn> thebombzen: could you give me the command to extract the duration please [16:20:36 CET] <thebombzen> well I'd do it with ffprobe. if you do ffprobe input_file -show_format it'll give it to you [16:20:44 CET] <thebombzen> you can extract it out with grep and stuff [16:21:08 CET] <julienbcn> there isn't a script existing which do that [16:21:09 CET] <julienbcn> ? [16:21:15 CET] <thebombzen> well it's one line [16:21:22 CET] <thebombzen> so no [16:21:36 CET] <julienbcn> i don t know how to do it [16:22:24 CET] <thebombzen> Here's one example [16:22:25 CET] <thebombzen> ffprobe \[K-F\]_One_Piece_030_\[58AAEC4D\].avi -show_format 2>/dev/null | grep '^duration=' | cut -d '=' -f 2 [16:22:40 CET] <thebombzen> the issue is sometimes the duration is surrounded in quotes and sometimes it's not [16:22:58 CET] <thebombzen> but if you wrap it with echo $() that shouldn't be an issue [16:24:03 CET] <thebombzen> someone here more skilled at ffmpeg probably knows how to just take the duration field [16:24:11 CET] <thebombzen> with ffprobe by itself. but I don't [16:24:30 CET] <julienbcn> thebombzen: could you give me an example of bash script which extract the duration of the video and then extract 15 thumbs from the duration with ffmpeg [16:24:47 CET] <thebombzen> no I'm not doing your homework for you. I've essentially told you everything you need to do [16:25:21 CET] <thebombzen> it's a good idea to learn how to write a basic bash script like that yourself. then you won't have to ask someone every time you need to write a two-line bash script. [16:25:32 CET] <julienbcn> i know i have to extract duration in a variable and then dividide it with ffmpeg i don t know just how to code it [16:25:56 CET] <thebombzen> well then, looks like you need to google "bash scripting tutorial" :) [16:26:11 CET] <thebombzen> Ntemis: that's because when configure tried to check for freetype, the dummy test program failed [16:26:20 CET] <thebombzen> check config.log [16:26:24 CET] <thebombzen> you might find something there that's useful [16:26:30 CET] <julienbcn> ok thanks [16:27:17 CET] <Ntemis> i removed freetype and libvorbis from FFMPEG_TABLES [16:27:27 CET] <Ntemis> will i have any issues thebombzen ? [16:27:41 CET] <Ntemis> ffmpeg build ok after that [16:32:01 CET] <julienbcn> thebombzen when i try to get duration from my video i have cut: option requires an argument -- 'f' [16:32:24 CET] <julienbcn> i made [16:32:29 CET] <julienbcn> ffprobe /myvideo.mp4 -show_format 2>/dev/null | grep ^duration= | cut -d '=' -f [16:32:45 CET] <thebombzen> um [16:32:49 CET] <thebombzen> because that's not what I typed? [16:32:50 CET] <thebombzen> scroll up [16:33:27 CET] <julienbcn> you put ffprobe \[K-F\]_One_Piece_030_\[58AAEC4D\].avi -show_format 2>/dev/null | grep '^duration=' | cut -d '=' -f 2 [16:33:29 CET] <thebombzen> Ntemis: you will have issues if you want to encode with vorbis [16:33:30 CET] <kerio> are you hoping to randomly put pieces of text together in the hope that they end up composing a script that does what you want? [16:33:50 CET] <Ntemis> thanks [16:33:51 CET] <thebombzen> because ffmpeg's native encoder for vorbis is far worse than libvorbis [16:34:22 CET] <thebombzen> however, Ntemis: I'd recommend trying to get freetype and libvorbis to work [16:34:36 CET] <thebombzen> if FFmpeg doesn't autodetect it, it's most likely because it tried and got a compilation error [16:34:49 CET] <thebombzen> this is often the case when you have some issue with your linker [16:34:54 CET] <thebombzen> usually not an issue with gcc [16:35:26 CET] <Ntemis> i even update ffmpeg to 3.1.6 from .4 [16:35:29 CET] <Ntemis> saqme issue [16:35:32 CET] <Ntemis> same [16:35:41 CET] <BtbN> fix your libs, not ffmpeg. [16:35:42 CET] <thebombzen> if it can't find freetype2 it's because it's got an error. check config.log for the command that errored [16:37:22 CET] <thebombzen> this actually sounds like it's a linker error, which might be caused by pkg-config [16:37:30 CET] <thebombzen> I used to deal with that stuff all the time on ubuntu [16:37:52 CET] <thebombzen> julienbcn: you are correct that that is what I typed [16:37:55 CET] <thebombzen> however it is not what you typed. [16:38:08 CET] <thebombzen> if your goal is to copy and paste other people's work, then you should actually copy and paste it. [16:38:18 CET] <thebombzen> please do not copy and paste part of it and then complain that it didn't do what you wanted it to. [16:39:06 CET] <thebombzen> if you want to not run into these issues, then you need to spend 15 minutes learning how to write a very basic bash script [16:39:35 CET] <thebombzen> because an occupational hazard of not knowing anything about what you're working with is that if it doesn't work as planned you're stuck in quicksand trying to fix it [16:39:42 CET] <Ntemis> can you help? [16:39:43 CET] <Ntemis> https://paste.ubuntu.com/23643185/ [16:40:18 CET] <julienbcn> i know but i only need one function and tryed to learning bash scripting but don t understand [16:40:44 CET] <julienbcn> i m not good at coding [16:40:45 CET] <thebombzen> Ntemis: well [16:40:50 CET] <thebombzen> you're cross compiling [16:41:08 CET] <thebombzen> do you have libfreetype2 built for the host? [16:42:30 CET] <thebombzen> cause if not... [16:45:02 CET] <Ntemis> freetype-2.5.5 [16:45:24 CET] <Ntemis> and libvorbis-1.3.5 [16:47:40 CET] <thebombzen> hm... Ntemis this might be relevant: https://superuser.com/questions/868226/how-to-build-ffmpeg-with-freetype2-fo... [16:48:03 CET] <thebombzen> you might want to do whatever this guy did [16:48:17 CET] <thebombzen> although for some reason your config.log doesn't mention freetype2 [16:48:25 CET] <thebombzen> so I don't know why that's what you're asking [16:48:40 CET] <thebombzen> julienbcn: well start by learning to copy and paste [16:49:11 CET] <c_14> you need the freetype-2 dev packages [16:53:53 CET] <Ntemis> thank you guys [16:54:42 CET] <Ntemis> i wont use any encoding ffmpeg is strictly for decoding [16:58:07 CET] <thebombzen> well then you don't need freetype, which is there to enable drawtext as part of libavfilter [16:58:25 CET] <thebombzen> although tbh libavfilter can behave like a postprocessor for decoded video [16:58:27 CET] <thebombzen> so I still like it [16:58:55 CET] <Ntemis> :) [16:58:59 CET] <thebombzen> but the reason to compile in support for libvorbis is for the encoder. ffmpeg's native decoder is better than libvorbis's [17:00:31 CET] <Ntemis> so i will be ok for now [18:38:45 CET] <livingBEEF> https://ffmpeg.org/ffmpeg-filters.html#minterpolate [18:38:59 CET] <livingBEEF> 'vsmbc' seems to actually be 'vsbmc' [18:39:44 CET] <livingBEEF> ffmpeg -help filter=minterpolate does give the correct option name, but manpage and doc does not. [20:14:46 CET] <thebombzen> I've noticed that in the past [20:14:50 CET] <thebombzen> I was going to submit a trac for it [20:14:54 CET] <thebombzen> and then... didn't [22:14:29 CET] <Kiicki> Hi, I downloaded some video files and put them on my USB and they won't play on my Samsung and my Sony TV. I don't understand why since the container and the codecs are supported on the TV. Also, when I convert them myself in Handbrake for example with the same codec and container as the original file that didn't work, it suddenly works. I don't know why. [22:14:29 CET] <Kiicki> Maybe the uploaded have some sort of a lock on it and when I convert, it gets unlocked. I don't know but from mediaInfo, it doesn't make sense why it wouldn't work [22:15:30 CET] <Kiicki> https://puu.sh/sSR8N/5a854f5cc1.png [22:20:04 CET] <JEEB> you can just try `ffmpeg -i input -c copy out.mp4` and try playing that mp4 file [22:20:18 CET] <JEEB> that just copies the tracks if it's just something in the matroska file it doesn't like :P [22:20:28 CET] <JEEB> -32 [22:21:27 CET] <furq> Kiicki: is that screenshot the file that does work or that doesn't work [22:21:54 CET] <Kiicki> doesn't [22:22:19 CET] <Kiicki> I haven't converted the one that works yet. I know it will work but I deleted it the other day and it would take me 2 hours to convert it again [22:23:04 CET] <furq> if i had to guess, you used a different preset and it bumped the level up to 5 [22:23:08 CET] <furq> try specifying -level 4.1 [22:23:55 CET] <Kiicki> good eye but I will actually try 5 because I think that will work which will prove that there's something else wrong [22:23:59 CET] <Kiicki> because I don't think that's it [22:24:19 CET] <furq> why would you encode another file with level 5 [22:24:23 CET] <furq> you already have one which doesn't work [22:25:17 CET] <furq> using -preset medium instead of -preset slow should do the same thing [22:25:39 CET] <Kiicki> because of the reasons I just said. I think using level file after converting would work [22:25:47 CET] <Kiicki> the first one has not been converted by me btw [22:25:49 CET] <Kiicki> it's a torrent [22:26:03 CET] <Kiicki> but I fight that many torrents won't play on my TV for some reason [22:26:06 CET] <Kiicki> find* [22:26:11 CET] <Kiicki> tv's actually [22:26:41 CET] <furq> well yeah if your tv doesn't support high@l5 then a lot of 1080p torrents won't work [22:28:13 CET] <Kiicki> That's the thing. I think that it would work if I set it to high@l5 when I convert it. Which would explain that something else is wrong [22:28:25 CET] <furq> why do you think that [22:28:50 CET] <Kiicki> because it has worked every time i have converted it myself using the same settings as the original [22:28:57 CET] <Kiicki> it just works and I have no idea [22:29:21 CET] <furq> which x264 preset did you use in handbrake [22:29:47 CET] <furq> if you used medium or faster then the resulting file won't be level 5 at 1080p24 [22:29:51 CET] <Kiicki> it just says h.264 (x264) [22:29:55 CET] <Kiicki> medium [22:30:10 CET] <furq> well yeah, that only uses 3 refs so it'll be level 4.something [22:30:22 CET] <Kiicki> ok, so what should I choose to get 5? [22:30:30 CET] <Kiicki> I just want to test it out [22:30:44 CET] <furq> something between slow and placebo [22:30:47 CET] <furq> or just set -ref 5 [22:31:19 CET] <furq> the screenshot you pasted uses 5 refs, so i assume that's -preset slow [22:31:43 CET] <Kiicki> I will try slow then. there's no manual set in handbrake : / [22:32:24 CET] <Kiicki> Slow, Slower, very slow, placebo [22:32:32 CET] <furq> slow should do the job [22:32:44 CET] <furq> the other presets are (obviously) not as fast [22:32:48 CET] <Kiicki> constant framerate right? Yes, I'm a bit noob [22:32:53 CET] <furq> sure [22:33:10 CET] <Kiicki> level 5.0 and profile high [22:33:14 CET] <furq> i'm pretty sure preset is the only thing you'll need to change [22:33:18 CET] <Kiicki> as I think that the original has that [22:33:24 CET] <furq> x264 should set the level and profile automatically [22:33:45 CET] <ritsuka> you can add the options in the additional options text field if you are using handbrake gui [22:33:54 CET] <furq> if handbrake has options to set it then those will just set a maximum limit [22:34:14 CET] <furq> and restrict encoder features to try to hit that level (if possible) [22:34:17 CET] <furq> level/profile [22:36:29 CET] <Kiicki> https://puu.sh/sSSiY/5761806ff4.png [22:36:41 CET] <Kiicki> https://puu.sh/sSSjM/0d9fe74e0f.png [22:36:46 CET] <Kiicki> video / audio [22:38:34 CET] <Kiicki> Like if this works, I don't know [22:38:38 CET] <Kiicki> it's just weird [22:43:30 CET] <Kiicki> dare god. 2h 30m for a normal sized movie [23:13:21 CET] <ThomasEgi> anyone knows which was the last version that works on winxp sp1 ? [23:15:57 CET] <BtbN> I doubt it. [23:16:05 CET] <BtbN> Who on earth would still put up with that anyway? [23:16:48 CET] <ThomasEgi> i have an ancient machine here which i rescued from the dead. it runs some fancy presentation software and the only way to preserve the content appears to be screencapturing it [23:17:15 CET] <ThomasEgi> so i planned to use ffmpeg to run some good old trustworthy screencap and toss that piece of junk where it belongs [23:18:04 CET] <ThomasEgi> bonus points for the person who set it up. he/she apparently carefully locked down pretty much every network service of the system. so it's pretty much an offline machine too. [23:18:30 CET] <BtbN> Well, that's the only sensible way to keep using such a machine at all. [23:19:27 CET] <c_14> Doesn't the code itself still support XP? [23:19:30 CET] <ThomasEgi> funny part is.. there are two identical one , and this one was supposed to be the backup. but it failed long ago and the backup was silently put into the installation leaving a post-it note on top of the broken one :D [23:19:58 CET] <ThomasEgi> c_14, i tried running the latest build but it crashes at some missing kernel.dll instruction or so [23:20:12 CET] <c_14> the builds (from Zeranoe) don't have support [23:20:17 CET] <c_14> but if you build it yourself it should [23:20:54 CET] <ThomasEgi> that would mean installing visual studio/mingw and all dependent libraries onto a machine with no network capability? [23:21:01 CET] <BtbN> nobody tests XP anymore [23:21:01 CET] <c_14> nah [23:21:07 CET] <BtbN> and if it breaks, nobody cares [23:21:08 CET] <c_14> build it on another computer then copy it over [23:21:41 CET] <BtbN> I'm pretty sure all builds tools still able to target XP SP1 won't compile a recent ffmpeg. [23:22:00 CET] <ThomasEgi> wasn't there any version ever build for xp sp1 ? [23:22:11 CET] <BtbN> you realize _how_ old that is? [23:22:13 CET] <ThomasEgi> i mean i don't care about all the neat features as long as i can just screencap with a bit of audio [23:22:16 CET] <ThomasEgi> i do. [23:22:31 CET] <ThomasEgi> the house it's from celebrated 15th aniversary last thursday [23:22:49 CET] <ThomasEgi> and those were amongst the first things in there [23:23:09 CET] <ThomasEgi> any other workaround would be welcome too [23:23:20 CET] <BtbN> get a capture card [23:28:04 CET] <ThomasEgi> forgot to mention it's a multi-screen setup [23:28:45 CET] <BtbN> multiple capture cards. [23:28:54 CET] <ThomasEgi> and it needs to be frame-syncronous cause of 3d stuff [23:49:03 CET] <ThomasEgi> sometimes this job feels like beeing a software undertaker trying to sell undead corpses [00:00:00 CET] --- Sun Dec 18 2016
participants (1)
-
burek