Ffmpeg-devel-irc
Threads by month
- ----- 2026 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
December 2016
- 1 participants
- 62 discussions
[00:05:35 CET] <kierank> DC >> 6 is the "right looking" dc
[00:05:47 CET] Action: kierank debugs steinar's idct
[00:16:52 CET] <kierank> BBB: ok part of this is mpegvideo.c madness
[00:23:43 CET] <BBB> muhahahaha
[00:23:58 CET] <JEEB> mpegvideo.c - the gift that keeps on giving
[00:26:46 CET] Action: kierank rips out all the mpegvideo.c block stuff and does it himself
[00:30:46 CET] <cone-575> ffmpeg 03Matt Wolenetz 07master:fe7547d69e67: lavf/utils.c Protect against accessing entries[nb_entries]
[00:32:13 CET] <kierank> https://usercontent.irccloud-cdn.com/file/71iOItat/luma.png
[00:32:16 CET] <kierank> BBB: ^ luma looks good/correct now
[00:32:28 CET] <kierank> broke chroma somehow but this is mpegvideo.c stuff again
[00:51:41 CET] <Compn> kierank going to rewrite mpegvideo :D
[00:55:13 CET] <kierank> BBB: does chroma need a different shift?
[00:55:20 CET] <kierank> in general
[00:55:54 CET] <kierank> all the chroma coeffs get clipped
[01:21:37 CET] <kierank> BBB: never mind just needs some experimenting with shifts
[01:37:54 CET] <kierank> strange artefacts on her arm https://usercontent.irccloud-cdn.com/file/Tu33WhWV/artefacts.png
[01:37:59 CET] <kierank> at 400Mbit/s shouldn't really happen
[01:48:03 CET] <iive> ac coefficients are still now scaled properly. i'd guess they are with higher amplitude than they should be.
[01:50:56 CET] <iive> or dequant
[03:49:40 CET] <cone-807> ffmpeg 03Michael Niedermayer 07master:ffc3337e0b84: avfilter/vf_pad: Add eval=frame support
[04:03:24 CET] <cone-807> ffmpeg 03James Almer 07master:6993bb4eb6c3: configure: make the check for stdatomic.h stricter
[04:37:27 CET] <BBB> kierank: luma also has some weird artifacts, it looks like a slight edge around each blocks
[11:06:32 CET] <nevcairiel> j-b: neat, thanks
[11:08:19 CET] <j-b> nevcairiel: 5.0.1 release this weekend
[11:08:53 CET] <nevcairiel> i'll be on vacation as of sunday morning, so take your time = p
[11:11:38 CET] <JEEB> 5.0.1 mingw-w64?
[11:12:02 CET] <nevcairiel> yes
[12:09:36 CET] <cone-621> ffmpeg 03Carl Eugen Hoyos 07master:ec2f3b1f57fd: lavc/psd: Remove an uninitialized variable.
[16:14:51 CET] <durandal_1707> I think I got parsing qdmc working, still need to find way to generate vlc table
[00:00:00 CET] --- Sat Dec 31 2016
1
0
[00:41:54 CET] <rjp421> JEEB, tried with a vid file too, same thing.. http://pastebin.com/raw/VdRKu8fz
[00:50:00 CET] <JEEB> yeah, it just creates a lot less unrelated input logging
[00:50:18 CET] <JEEB> but yea, the output URL of yours is getting incorrectly parsed
[00:50:23 CET] <ZexaronS> hey JEEB, youtube-dl has a major lack of ability, there's no real FMT code selection, according to the master readme, only some "format" setting which says only supports downloading best or worst video or audio, but i'll still try it readme could be old
[00:50:39 CET] <JEEB> ZexaronS: -F lists all formats for a video
[00:50:48 CET] <JEEB> youtube-dl -F "youtube url"
[00:51:16 CET] <JEEB> and usually with command line apps you read the output of --help :P
[00:51:36 CET] <ZexaronS> Yeah but I asked the guys on the channel if it's possible to pre-set the FMT option so it starts downloading that one by default into a default folder for the session
[00:52:02 CET] <ZexaronS> looking at the readme didn't give me an impression there's actuall all the fmt codes available but yes i'll try it now
[00:52:40 CET] <kepstin> the format codes available - at least on youtube, dunno about other sites - depends on the video
[00:52:49 CET] <kepstin> google generates different formats for different uploads
[00:57:02 CET] <ZexaronS> JEEB, I never found an utility to download fragmented videos efficiently, if this does the trick and combines them into a proper video file, i'll be very happy at least nonyoutube stuff
[00:57:20 CET] <ZexaronS> a lot of US local news uses fragmentation
[00:57:51 CET] <JEEB> ZexaronS: if you have ffmpeg in your PATH it can put the audio and video stuff together :P
[00:58:13 CET] <JEEB> you should see regarding the sites youtube-dl supports of course
[00:59:24 CET] <ZexaronS> your command doesn't work, says no url
[01:01:35 CET] <ZexaronS> I'll probably need a separate utility imputting a lot of urls into the batch commands anyway
[01:01:54 CET] <ZexaronS> or some batch script to take the list and run for-each
[01:02:16 CET] <rjp421> JEEB, ohh i finally see what you mean by Parsed protocol/host/app.. sry lol
[01:04:09 CET] <rjp421> i guess theres no way to trick it into parsing correctly, by escaping or nested escaped quotes
[01:04:13 CET] <ZexaronS> JEEB, error downloading webpage, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>
[04:07:46 CET] <JonFreed> Hello - Does this look like a good command line for having ffmpeg listen for a stream that I will be having OBS send to it?
[04:08:39 CET] <JonFreed> ffmpeg -loglevel trace -listen 1 -timeout 60 -i rtmp://localhost/live/mystream rtmp://a.rtmp.youtube.com/live2/abcxyzabcxyz
[04:14:45 CET] <JonFreed> That command seems to work just fine. But when I tell OBS to stream to it, then OBS just says <ip address>:1935 is offline. Try a different server. (ECONNREFUSED).
[04:16:15 CET] <c_14> is obs running on the same computer?
[04:18:18 CET] <JonFreed> Nope. OBS is on my laptop that I'm typing on. ffmpeg is running on an Amazon ec2 instance. I have "all [inbound] traffic" enabled for the instance, so I'm pretty sure the firewall isn't the problem.
[04:18:26 CET] <c_14> then you can't use localhost
[04:18:44 CET] <c_14> you have to bind to an address reachable from the outside
[04:18:53 CET] <c_14> or 0.0.0.0 or ::
[04:20:38 CET] <JonFreed> Oh..... ok. For the ffmpeg -i address I had only tried "localhost" and then also the ip address that I am entering into OBS.
[04:20:56 CET] <JonFreed> (Incidentally, the latter resulted in this error message: Cannot assign requested address)
[04:22:20 CET] <c_14> depending on magic" the internal address may not be the external one
[04:22:29 CET] <c_14> check ifconfig or `ip l'
[04:22:31 CET] <JonFreed> TADA! That works. Thank you so much @c_14. That's a pretty obvious solution, in retrospect.
[04:22:32 CET] <c_14> or use 0.0.0.0
[04:22:57 CET] <JonFreed> I mean that 0.0.0.0 works
[04:43:12 CET] <JeffATL> can someone explain to me about mpeg2 files coming right out my cap card have this artifact where edges that move from side to side seem to be different in time on alternating scan lines?
[04:46:47 CET] <c_14> interlacing?
[04:47:37 CET] <JeffATL> c_14: let me show a pic, hang on
[04:51:06 CET] <JeffATL> c_14: have a look at this: http://picpaste.com/pics/XaF23vDE.1483069835.JPG
[04:51:49 CET] <furq> yeah that's interlacing
[04:52:23 CET] <JeffATL> is it because while field A and field B of each frame were scanned in the video camera 1/60th sec apart, the computer isn't displaying it that way?
[04:53:06 CET] <furq> it's playing back 60i footage at 30p
[04:53:48 CET] <furq> most players can deinterlace but i prefer to do it when encoding
[04:53:55 CET] <furq> realtime deinterlacers usually aren't very good
[04:54:49 CET] <JeffATL> furq: atm i'm trying to reencode with "yadif" included in the filter string - yea/nay?
[04:55:06 CET] <furq> it's up to you
[04:55:24 CET] <furq> yadif mode 1 is probably the best option available in ffmpeg
[04:56:38 CET] <furq> i see a lot of people on forums insisting you should encode interlaced, but curiously i've never seen that in here
[04:56:46 CET] <furq> and i trust people in here more than randos on videohelp or doom9 or whatever
[04:57:03 CET] <c_14> there's plenty of deinterlacing filters to try out in ffmpeg, yadif is usually a decent choice
[04:57:27 CET] <furq> yadif mode 0 (the default) looks pretty bad in my experience
[04:57:30 CET] <furq> mode 1 is much better
[04:57:43 CET] <furq> half-rate deinterlacers usually look pretty crap though
[04:57:55 CET] <c_14> mode 1 should be default
[04:58:09 CET] <furq> it isn't
[04:58:11 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#yadif-1
[04:58:15 CET] <furq> The default value is send_frame.
[04:59:11 CET] <c_14> Oh, I was reading the docs for bwdif because the description has the first match for yadif in the manpage...
[04:59:38 CET] <furq> i don't think i've tried bwdif yet actually
[04:59:48 CET] <c_14> nnedi is also in recent versions of ffmpeg if you're into that
[04:59:55 CET] <furq> w3fdif looked much worse than yadif to me, so idk why you'd use parts of that
[05:00:06 CET] <furq> also if that is what the bbc use internally then it definitely sucks
[05:00:20 CET] <furq> lots of their iplayer stuff has terrible interlacing artifacts
[05:01:00 CET] <furq> and yeah nnedi is good but the ffmpeg implementation is unusably slow
[05:01:30 CET] <furq> and most people don't want to go through the hassle of setting up vapoursynth
[05:04:11 CET] <JeffATL> oh wow - i think i have some pretty good-looking resukts here
[05:04:56 CET] <JeffATL> movement interlace is gone
[05:06:17 CET] <JeffATL> getting almost exactly 3:1 file compression
[05:09:07 CET] <JeffATL> i have another thing going on maybe you can help me understand better
[05:09:26 CET] <JeffATL> same rig but a different source beta tape
[05:14:40 CET] <bornpilot> I am getting this error [nut @ 0x7fd22e01d600] No codec tag defined for stream 0 - with the follwing command
[05:14:51 CET] <bornpilot> ffmpeg -i Canon/00011.MTS -f nut -c:v libx265 -preset medium -crf 28 -c:a copy nutty_test/nutty_test.nut
[05:15:42 CET] <JeffATL> see how everything gets warped over to the right at the top of the image: http://picpaste.com/pics/mRcLS7zC.1483071277.JPG - that's how it comes out of the TBC. turn the TBC off and that goes away,
[05:17:09 CET] <JeffATL> it also seems like the fields get swapped intermittently, as though something can't decide which is supposed to be which and there'll be a vertical interlacy-loking jitter
[05:19:05 CET] <furq> i've never done any analog capture but apparently sometimes it's better to disable the tbc
[05:19:06 CET] <JeffATL> needless to say, i can't really go forward with the TBC-on versioin but i was hoping to better understand the reasons behind it
[05:36:19 CET] <JeffATL> sadly it looks like the vp8 encoder is not multithreaded
[05:45:18 CET] <Jinx> i'm using ffmpeg 2.8.4 (win32 static) to try to convert video to thumbnail/slideshow GIFs... and i can't seem to get the framerate to convert just right; i can get it to output a frame every X seconds... but can't seem to speed up the GIF to play back those outputted frames much faster (e.g. extracting 1 frame every 60 seconds of source, but playing back each of those extracted frames at 1fps)
[05:46:42 CET] <Jinx> i've looked here already: https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20s…
[05:46:50 CET] <Jinx> any assistance would be appreciated :)
[05:57:19 CET] <JeffATL> i'm gonna need a lot more CPU.
[06:15:58 CET] <Kirito> Is there not a basic list of id3 metadata tags for video/audio somewhere out there? Somewhere. Anywhere.
[06:16:01 CET] <Kirito> I ahve looked everywhere I can
[06:16:19 CET] <furq> http://wiki.hydrogenaud.io/index.php?title=Tag_Mapping#Mapping_Tables
[06:16:23 CET] <furq> for a given definition of "basic"
[06:17:03 CET] <llamapixel> um Kirito http://id3.org/
[06:17:44 CET] <Kirito> So, what, do I just use "TENC" as the metadata key for "Encoded By"? I thought that was just "encoded_by", that's what I always see used in practice
[06:17:58 CET] <Kirito> but if those acronym identifiers work sure, whatever works
[06:18:11 CET] <furq> TENC is what's stored in the actual tag
[06:18:21 CET] <furq> whatever editor you're using is probably giving you some human-readable alternative
[06:19:27 CET] <Kirito> I'm encoding the video with -metadata encoded_by="John Doe", and it's being parsed by Windows and other video players as a valid attribute for the "Encoded By" property
[06:20:01 CET] <Kirito> So maybe it is just some unofficial alternative, I just assumed each tag had some human readable key that is to be used
[06:20:07 CET] <furq> http://jonhall.info/how_to/create_id3_tags_using_ffmpeg
[06:20:13 CET] <furq> idk how authoritative that is but i don't see anything on ffmpeg.org
[06:20:47 CET] <Kirito> I found that, but it's missing some of the more detailed/newer ones, like Encoder Settings
[06:21:47 CET] <furq> oh
[06:21:48 CET] <furq> https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/id3v2.c#L43-L84
[06:21:58 CET] <furq> that's probably as authoritative as you'll get
[06:22:31 CET] <furq> i assume you can just use TSSE for encoder settings
[06:22:52 CET] <Kirito> oh, okay, now that makes sense. FFMpeg is just mapping them to user friendly terms. I didn't realize that. I just thought the acronyms were for someting else entirely. Thank you
[06:23:57 CET] <furq> yeah those names are the same for all tag formats afaik
[08:28:07 CET] <Yen> I use "ffmpeg -i input0.webm -hls_segment_filename latest_%03d.ts out.m3u8" to make HLS playlist. Then I use Video.js on Chrome to play it. Only the first segment is playable.
[08:28:17 CET] <Yen> Please help me
[08:49:14 CET] <AlbertLu> I build ffmpeg on Ubuntu 16.04 LTS
[08:49:59 CET] <AlbertLu> LD libavcodec/libavcodec.so.57 /usr/bin/ld: libavcodec/mqc.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC libavcodec/mqc.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status library.mak:102: recipe for target 'libavcodec/libavcodec.so.57' failed make: *** [libavcodec/libavcodec.so.57] Error 1
[08:50:50 CET] <AlbertLu> I have change config.mak, HOSTCFLAGS=-O3 -g -std=c99 -Wall -fPIC
[08:50:57 CET] <AlbertLu> but not work
[08:51:42 CET] <tdr> dont use -O3 for one thing
[08:51:58 CET] <tdr> messes up way more than the "tweaks" you'd think you're getting from it
[08:52:56 CET] <tdr> its not the cause of this error, but -O2 is way more likely to give you a binary without hidden broken/bad pieces
[08:54:47 CET] <JeffATL> AlbertLu: i use gentoo linux almost exclusively and best practices among gentoo folks is, -O3 is almost never justified
[08:55:52 CET] <tdr> same, it used to be fine, but many yrs ago that changed with a gcc version
[08:57:23 CET] <JeffATL> basically if there is like *one binary* and every fraction of a second matters. try -O3 and test its brains out
[08:58:41 CET] <tdr> test it against an -O2 one tho too because sometime -O3 makes bins that are slower
[08:58:52 CET] <JeffATL> yes to that
[08:59:59 CET] <JeffATL> if it's revenue-generating and it's the difference between a 3-bedroom in Monaco and a 4-bedroom in Monaco, then yes, go there :)
[09:01:20 CET] <AlbertLu> :)
[09:42:35 CET] <kerio> also try -Os
[09:42:48 CET] <kerio> sometimes staying in cache is more important than anything else
[10:46:08 CET] <sh3llc0d3> Hello guys
[10:46:14 CET] <sh3llc0d3> some active users right now ?
[10:46:26 CET] <kerio> nope
[10:46:39 CET] <sh3llc0d3> Damn it, I'll try next time
[10:46:44 CET] <sh3llc0d3> ... :)
[10:47:35 CET] <sh3llc0d3> Well I got a simple question, I'm actually encoding stuff with libx264 to get mp4 containers, I'm looking to get the best quality possible on output, but without actually do the encoding in two phases
[10:48:07 CET] <sh3llc0d3> is there any recommanded preset or something for this ? Or should I simply try and find what fits the best to me ?
[12:03:26 CET] <zoli> hello
[12:03:48 CET] <zoli> I would like to get hardware encoding work under Ubuntu 16.04 with nvidia gtx 770
[12:04:20 CET] <zoli> I tried it with ffmpeg as well directly after Handbrake and Transmageddon
[12:04:50 CET] <zoli> ffmpeg tells me that: Unknown encoder 'libnvenc'
[12:05:03 CET] <BtbN> nvenc
[12:06:26 CET] <zoli> BtbN: if i change libnvenc to nvenc, it tells the same: Unknown encoder 'nvenc'
[12:06:50 CET] <BtbN> Use an ffmpeg build which has the nvenc encoder enabled then.
[12:06:57 CET] <zoli> ffmpeg -i file -c:v nvenc -profile:a high444p -pixel_format yuv444p -preset default output.mp4
[12:07:01 CET] <zoli> this is the command
[12:07:07 CET] <BtbN> Which should be any somewhat recent one, as it's enabled by default.
[12:07:43 CET] <zoli> ffmpeg version N-79139-gde1a0d4
[12:08:39 CET] <zoli> is it also enabled by default in the nvidia propriatery driver? I have this version: 367.57
[12:10:32 CET] <BtbN> There is nothing to be enabled/disabled in the driver. And the error is quite clear. Update your ffmpeg.
[12:14:12 CET] <zoli> at pacckage level, I have 3.0.0, as I see the newest is 3.2.2
[12:14:33 CET] <zoli> trying to find a repo
[12:40:55 CET] <DHE> high444p is not an audio profile
[12:58:53 CET] <zoli> ok, thanks it seems to be working now
[12:59:39 CET] <zoli> needed indeed the latest 3.2.2 ffmpeg, plus also needed to install one package: libcuda1-367
[13:00:13 CET] <BtbN> that's entirely up to the packager of your driver.
[13:01:55 CET] <zoli> I wonder though why my gpu was only used till 8% and video engine utilization: 1005?
[13:01:59 CET] <zoli> 100%*
[13:02:14 CET] <zoli> I have checked it in nvidia-settings
[13:04:15 CET] <BtbN> what's to wonder about that? Seems like what would happen if you fully use the video engine?
[13:08:20 CET] <zoli> what is video engine exactly here?
[13:08:43 CET] <zoli> and how can it be the bottleneck?
[13:09:16 CET] <zoli> ffmpeg itself is the video engine?
[13:12:10 CET] <darsain> how can one map streams based on language code? the docs say that to pick english audio, you do: -map 0:m:language:eng
[13:12:40 CET] <darsain> but that leaves me baffled, since I'd expect it to be -map 0:a:language:eng, why is it 0:m... ?
[13:12:54 CET] <darsain> and how do I adapt it for subtitle stream?
[13:22:04 CET] <BtbN> zoli, it's the part of the card that does the video de/encoding.
[13:29:27 CET] <zoli> is vp9 also supported by ffmpeg with hardware encoding?
[13:39:08 CET] <olgson> Hello FFMPEG people. I've small problem with http://pastebin.com/ZRwWtg1Q OVERLAY. I was able to make video with avectorscope and sound / image and sound but I'm not able to combine them together.
[13:39:14 CET] <olgson> Happy New Year! :)
[13:41:24 CET] <olgson> I'm completely green in ffmpeg field. I believe I've lost some bitrate command / codec or sth else...
[13:51:14 CET] <kepstin> olgson: what does ffmpeg print when you run it?
[13:51:24 CET] <olgson> One sec
[13:51:48 CET] <kepstin> hmm, you're overlaying a 1920x1080 thing on top of a 1920x120 thing, i'm not sure what you're expecting to happen...
[13:52:53 CET] <olgson> http://pastebin.com/qjkUBiDh
[13:53:00 CET] <olgson> nono - I've changed that to x1080
[13:53:31 CET] <olgson> anyway what I want to do is : Take MP3 -> create GenScope overlay that over image ;)
[13:53:42 CET] <olgson> *AVectorScope
[13:54:10 CET] <kepstin> ok, so it looks like the issue is that you're just not looping the image frame, so it's stopping encoding early
[13:54:16 CET] <markvandenborre> zoli: kaby lake intel procs combined with... what was it again
[13:54:27 CET] <markvandenborre> for hardware encoding at least have some patches ready
[13:54:28 CET] <kepstin> add "-loop 1" before the image input, and "-shortest" before the output filename
[13:54:51 CET] <kepstin> you might also want to set '-framerate' on the image input too
[13:55:15 CET] <kepstin> (default is 25, and you might get weirdness if it doesn't match the overlayed stuff)
[13:56:35 CET] <olgson> looks better with loop option (generation time is longer :D ) lets see ;)
[13:56:45 CET] <olgson> 32 fps :)
[13:57:12 CET] <kepstin> olgson: also you're using x264, so you should use '-crf' not '-q:v' (default is 23, lower values are higher quality/bigger)
[14:11:39 CET] <olgson> kepstin, it loops whole video ;) and it's generated without stopping :)
[14:17:22 CET] <zoli> markvandenborre: only for intel, not for nvidia?
[14:18:30 CET] <zoli> markvandenborre: I have nvidia gtx770, I guess it wont support vp9 anyway, but only the latest pascal architecture?
[14:18:40 CET] <olgson> kepstin, maybe it's there but there is transparency set and BG is just coverd with FG :)
[14:19:14 CET] <olgson> kepstin, f... yeah ! was right :)
[14:19:17 CET] <markvandenborre> zoli: kaby lake intel procs only, yes...
[14:19:28 CET] <markvandenborre> and even then, the process is not very straightforward
[14:19:29 CET] <olgson> kepstin, https://www.youtube.com/watch?v=QqNZ-KdHNqM :)
[14:19:43 CET] <olgson> but still not an effect I wanted ... but I know it's working so I can play more around with it ;)
[14:20:12 CET] <kepstin> olgson: maybe try the 'blend' filter instead of 'overlay' - you can get some neat effects with that
[14:21:38 CET] <kepstin> 'lighten' or 'addition' blend modes would be good ones to try
[14:23:18 CET] <markvandenborre> zoli: gstreamer-vaapi with intel kaby lake processors
[14:24:24 CET] <zoli> markvandenborre: https://developer.nvidia.com/ffmpeg There is nice table, which says pascal should have vp9 encoding with ffmpeg?
[14:26:31 CET] <ritsuka> I see only vp9 decoding in that table
[14:30:44 CET] <markvandenborre> zoli: indeed; the only way right now seems to be gstreamer vaapi on kaby lake
[14:30:55 CET] <markvandenborre> and good luck getting hold of those processors
[14:32:20 CET] <markvandenborre> and libav does do it too it seems
[14:32:23 CET] <markvandenborre> https://wiki.libav.org/Hardware/vaapi
[14:35:36 CET] <zoli> what is the difference between vp9 and libvpx-vp9 coders?
[14:35:56 CET] <BtbN> Isn't one the decoder?
[14:37:09 CET] <zoli> (decoders: vp9 libvpx-vp9 ) (encoders: libvpx-vp9 )
[14:37:19 CET] <markvandenborre> vp9 is the codec, libvpx is a reference implementation in software
[14:37:37 CET] <zoli> for decoders there is both
[14:38:02 CET] <zoli> or is it just an alias?
[14:42:27 CET] <BtbN> there is a native vp9 decoder in ffmpeg
[14:42:32 CET] <BtbN> usually those are just named like the codec.
[14:42:46 CET] <sh3llc0d3> it's like aac and libfdk_aac
[14:42:57 CET] <sh3llc0d3> oh, hi :)
[14:57:39 CET] <Dexstair> quick question - may be part of a larger question. What does -map do. Is it deprecated?
[15:02:33 CET] <klaxa> it maps input streams to output streams, it is not deprecated
[15:03:20 CET] <DHE> it lets you build your outputs using components of the inputs
[15:03:22 CET] <klaxa> https://ffmpeg.org/ffmpeg.html#Advanced-options
[15:12:42 CET] <Dexstair> Okay, when using tragtor with H264_nvenc it causes an error, but removing the -map option allows the encode to continue.
[15:14:27 CET] <DHE> then it is likely using the map command incorrectly
[15:18:11 CET] <Dexstair> -map 0.0 -map 0.1 -y -f matroska -ab 128k -ar 48000 -ac 2 -vcodec h264_nvenc is what Tragtor wants to do by default, and throws out "Stream map '0.0' matches no streams. To ignore this, add a trailing '?' to the map."
[15:20:19 CET] <Dexstair> Vaapi used to take the stress off of the processor, but it seems that NVENC assists the encoding process rather than takes it off of the processor
[15:20:35 CET] <Tom_B_> I'm trying to implement a 60 minute timeshift of a live HTTP stream. I've managed to get the stream recorded into multiple hour long segments (mpeg2-ts files) and I can open these in vlc/mplayer/whatever. The problems are 1) I can only rewind to the beginning of the file, 2) VLC will only play the stream for an hour because the next segment is in a different file. Is there any way to get ffmpeg to provide all the files as a single stream to vlc (an
[15:20:35 CET] <Tom_B_> d allow rewinding back to the beginning of the first segment?... and not cause a problem when a segment is deleted?)
[15:28:11 CET] <BtbN> nvenc is an asic on the nvidia GPU. It takes 100% of the load from the CPU.
[15:28:33 CET] <BtbN> If you still have high CPU usage, that's something else doing stuff on it.
[15:28:48 CET] <DHE> Dexstair: the -map syntax uses :colons:, not .periods.
[15:32:35 CET] <Dexstair> ffmpeg -i "/mnt/f892940f-33f7-47ae-9fd5-140c53b4b697/Videos/Anime/DVD Rips/Manga Force/Urot/LOO.mp4" -map 0.0 -map 0.1 -y -f matroska -ab 128k -ar 48000 -ac 2 -vcodec nvenc_h264 "/home/dexter/Downloads/anime.mkv" is what is being passed to ffmpeg
[15:33:16 CET] <Dexstair> my cpu usage is around 150% but on FFMPEG
[15:34:34 CET] <Metamorfer> Hi, I'm having issues compiling ffmpeg latest version on OSX for distribution
[15:34:59 CET] <Metamorfer> It works on the host machine and I can either manually compile it or use brew with no surprises
[15:35:20 CET] <Dexstair> https://s28.postimg.org/nojj32zyl/Screenshot_from_2016_12_30_14_33_42.png encoding settings
[15:35:25 CET] <Metamorfer> but when I move the libs to another mac with different hardware it crashes
[15:35:43 CET] <DHE> Dexstair: well you still need to decode the video on the CPU, and encode the audio. for HD and better-than-realtime encoding you might be pushing the CPU there.
[15:35:50 CET] <Metamorfer> I've been reading a lot and playing with ./configure but nothing so far
[15:36:42 CET] <Dexstair> Ahh, my intel chip can decode the video too. I think ffmpeg can via nvenc with the right setting too. I'm having a dumb moment
[15:36:52 CET] <Metamorfer> is there any recommendation/guide I can follow to compile ffmpeg that minimizes compatibility issues when running on a different machine?
[15:37:12 CET] <DHE> Metamorfer: crashes how? illegal CPU instruction?
[15:37:18 CET] <Metamorfer> yes
[15:37:32 CET] <Metamorfer> libavcodec.57.dylib 0x000000010a7cf9d1 0x10a521000 + 2812369 1 libavcodec.57.dylib 0x000000010a99a408 avcodec_register + 26
[15:37:57 CET] <DHE> that shouldn't happen unless you used a custom configure line with -march=...
[15:38:29 CET] <DHE> it's possible to force a compiler to target certain CPUs as well, but I'm not aware of any system that defaults to non-compatible settings
[15:39:47 CET] <Metamorfer> I'm compiling OBS which relies on ffmpeg for most of the encoding/decoding processes.
[15:40:11 CET] <Metamorfer> it's OBS the one making calls to the lib so maybe the problem is there.
[15:41:48 CET] <JEEB> time to make sure you have enable-debug set in your configure
[15:41:54 CET] <JEEB> and then oppan debugger time
[15:42:22 CET] <Metamorfer> That's a good point JEEB
[15:42:58 CET] <Metamorfer> I was wondering if someone else has more experience with OSX and point me to the right direction.
[15:45:45 CET] <Metamorfer> to summarize, ffmpeg 3.x lib libavcodec.57.dylib crashes when executed on a mac with different hardware than the host used to compile the library. I want to fix that.
[15:48:09 CET] <darsain> is it possible to configure libvpx to encode only based on quality level? i.e. something like crf, without me having to also configure a specific bitrate target?
[15:49:09 CET] <darsain> bitrate is dependent on video dimensions, and I want to create a universal script into which I can throw videos of any size to be recoded, so I don't want to be setting bitrate targets anywhere
[15:50:22 CET] <darsain> I've tried -b:v 0 as you do in libvpx-vp9, but that produces constantly giant videos, no matter what crf is set
[15:53:07 CET] <kerio> Metamorfer: how different
[15:53:49 CET] <kerio> and i second what DHE said, that sounds like a -march issue
[15:55:05 CET] <JonFreed> Hello - What's the secret on a Windows box to getting ffmpeg to listen? The following works on Linux, but it does not work on Windows: ffmpeg -listen 1 -timeout 60 -i rtmp://0.0.0.0/live/mystream -c copy -f flv rtmp://us-east.restream.io/live/mysecretstreamkey
[16:11:15 CET] <Metamorfer> not very different, both macs are running OSX 10.12, the biggest difference is the GPU one has an AMD and the other has an NVidia
[16:16:52 CET] <kerio> which models are those?
[16:23:25 CET] <spl33n> hello i need to mute audi file using ffmpeg but i dont know how i do this. someone help me ?
[16:23:44 CET] <ritsuka> Metamorfer: same os version? what does it say in the crashlog?
[16:27:00 CET] <kerio> Metamorfer: was it compiled on a newer model
[16:39:36 CET] <hashworks> Hi! I'm currently encoding 4K x265 files with a bitrate of 18 Mbit/s to HEVC. What is a bitrate I should expect? I'm using the medium preset and a CRF of 17, and the current output is ~17 Mbit/s. Can I go for a much lower bitrate to get the same quality in HEVC?
[16:40:41 CET] <DHE> so input is 18 megabit, and output is crf that turns out to be ~17 megabit?
[16:41:12 CET] <hashworks> With -crf 17, yes, seems so frame= 1930 fps=3.7 q=-0.0 size= 174206kB time=00:01:20.69 bitrate=17685.5kbits/s speed=0.156x
[16:42:49 CET] <hashworks> I'm not really sure what to expect from HEVC, I guess I just have to try out multiple settings. What is a good way to compare the quality of two files without watching them on a 4K monitor and "guessing it"?
[16:43:25 CET] <kerio> crf 18 is supposed to be super good for x264
[16:43:46 CET] <hashworks> Ok, so 17 might be a overkill?
[16:44:32 CET] <DHE> I wouldn't compare x264 and x265 too closely
[16:47:13 CET] <kerio> yeah
[16:47:28 CET] <kerio> but still, at the same crf x265 should look better
[16:48:56 CET] <kerio> (slightly better, but still)
[16:49:05 CET] <kerio> hashworks: i'd make some tests actually
[16:49:49 CET] <hashworks> How would you compare those? By eye? I don't have a 4K monitor arround, and the only 4K monitor I have access to (in the next weeks) is only playing 4K content with HEVC codec
[16:51:11 CET] <DHE> there are official metrics like PSNR but computer measurements don't usually directly equate to human perception. at the end of the day, it's human eyes watching the video
[16:51:46 CET] <hashworks> Hm. I guess I'll have to with comparing them downscaled on a 1080p screen
[16:51:52 CET] <hashworks> *go with
[16:52:13 CET] <JEEB> kerio: you should never compare two different sets of settings or encoders at the same crf
[16:52:55 CET] <kerio> hashworks: play it cropped, not downscaled
[16:53:14 CET] <hashworks> hm good idea
[16:53:32 CET] <JEEB> first of all with the same encoder the analysing parts differ between settings, and between two very different encoders that makes even less sense
[16:55:15 CET] <JEEB> x was bigger or smaller file size wise with the same crf between settings or encoders just has nothing you can compare because crf just can't be compared that way
[16:55:48 CET] <kerio> JEEB: but they're called in the same way ;<
[16:55:55 CET] <kerio> and the encoder names are very very similar
[16:56:05 CET] <JEEB> yes, but that means nothing.
[16:56:27 CET] <JEEB> even between presets in one encoder the crf result is not stable
[16:56:48 CET] <JEEB> and x265 is completely different to x264
[16:57:10 CET] <JEEB> so, uh, yeah. that's not how you compare
[16:59:24 CET] <JEEB> what I did when I was doing testing is I maximized both encoders (to make something static), then encoded three crf values with x265 (as that is slow as molasses), and then I did 2pass encodes to the same file size with x264 (although the proper way woild have been to find the crf value that gives the same file size)
[17:00:11 CET] <JEEB> the other alternative is to match speeds, and then encode to the same bit rate and compare (but that is much harder)
[17:00:42 CET] <JEEB> because you have to find a spot where both encoders have very close speed
[17:02:38 CET] <JEEB> naturally in both cases you also have to match stuff like max gop length etc
[17:33:11 CET] <kepstin> JEEB: note that doing a 2-pass encode with x264 is literally the same as finding a crf value that gives the same file size
[17:33:24 CET] <JEEB> not 100% the same
[17:33:46 CET] <JEEB> but close enough that I consider it a valid alternative
[17:33:50 CET] <kepstin> well, certainly very close. the crf mechanism is derived from the second pass of 2-pass mode.
[17:33:59 CET] <JEEB> yes
[17:34:33 CET] <JEEB> I mean, I've seen the bit allocations be different but in general if it's not a very specific type of content they should be similar enough
[17:34:47 CET] <kepstin> iirc at the end of the first pass, it even prints out the selected crf value for the second pass
[17:35:21 CET] <JEEB> but the analysis pass does affect the bit allocations and in certain cases it can be quite different
[17:35:40 CET] <JEEB> but yeah, you're right that the results usually are quite close enough
[17:36:40 CET] <JEEB> if I look at my old logs @ #x264 I'd probably be able to point towards some samples where it becomes evident, although I think you'll be able to see differences in overall bit allocation with pretty much everything
[17:37:20 CET] <Threads> any reason why old ffmpeg versions write the x264 headers in the mkv but with ffmpeg 3.2.2 it doesnt
[17:37:29 CET] <kagami_> Hi. Can ffprobe display bit_rate information per stream? Seems like it could before, but not anymore? I can't find bit_rate field for my test files.
[17:37:36 CET] <Threads> i use to be able to preview the encoding settings while encoding
[17:38:08 CET] <kagami_> Threads: seems like the same for libvpx.
[17:38:20 CET] <kagami_> I can't play files while encoding to vp9.
[17:39:04 CET] <JonFreed> Any ideas why I am getting the error "RTMP_Connect0, failed to connect socket. 10061 (Unknown error)" when I try the following command on Windows? (The same command works on Linux without any problems.) ffmpeg -listen 1 -timeout 60 -i rtmp://0.0.0.0/live/mystream -c copy -f flv rtmp://us-east.restream.io/live/mysecretstreamkey
[17:39:30 CET] <kepstin> iirc not being able to play mkv/webm as it's being encoded is a pretty recent change, annoys me too. there's a couple of commits you can revert to get the old behaviour :/
[17:40:21 CET] <JEEB> I think it was brought up on the ML
[17:42:20 CET] <kepstin> one of my friends says reverting commits 8c1342e631d6 and ee888cfbe777 would do the trick
[17:42:58 CET] <kagami_> kepstin: cool, thanks
[17:43:30 CET] <JonFreed> @spl33n , you said "i need to mute audi file". I think you meant that you want to mute the audio? If yes, then try the "-an" option before the output file. Your need was addressed on Stack Exchange here: http://superuser.com/a/268986/598718
[18:11:41 CET] <spl33n> JonFreed: yes i mean audio
[18:53:55 CET] <JonFreed> Besides sneaker net, what encoding, muxing/container-format, and protocol would use the least amount of network bandwidth if you want to stream from ffmpeg on one box to ffmpeg on a second box?
[20:01:56 CET] <DHE> so if encoding time were a non-issue, -threads 1 is the ideal setting for x264 encoding quality, right? (all other things being equal)
[20:14:57 CET] <JEEB> DHE: it really doesn't affect quality with x264. disabling threads does make VBV/HRD work exactly the same way every time with the same clip, though
[20:17:07 CET] <DHE> JonFreed: there's not much that meets all criteria ideally. mpegts over tcp is fairly reliable but mpegts overhead is pretty bad compared to other options
[20:17:36 CET] <kerio> nut!
[20:18:26 CET] <DHE> is that streamable?
[20:18:40 CET] <kerio> i thought so
[20:23:23 CET] <Threads> DHE tried auto instead of using a certain number ?
[20:25:34 CET] <flux> dhe, how much is the mpegts overhead? I didn't know it was noticeale.
[20:26:39 CET] <furq> about 10% or so
[20:27:15 CET] <kerio> damn
[20:27:24 CET] <furq> Threads: he's asking if frame multithreading results in quality loss
[20:27:33 CET] <furq> i don't think it does
[20:27:56 CET] <furq> slice multithreading definitely does, but you wouldn't use that unless you needed it anyway
[20:28:14 CET] <kerio> for that 0 lag encoding
[20:28:17 CET] <kerio> ;o
[20:32:27 CET] <DHE> Threads: it's a machine two E5-2698v4 CPUs. that's 20 cores * hyperthreading (2) * sockets (2) = 80
[20:32:36 CET] <DHE> I am NOT allowing autodetection on this thing
[20:33:21 CET] <kerio> DHE: that's a sweet-ass machine
[20:33:24 CET] <kerio> ;o
[20:33:41 CET] <kerio> i mean
[20:33:46 CET] <kerio> if you're fine with only 20 cores
[20:34:27 CET] <DHE> kerio: oh? you got something better?
[20:34:42 CET] <kerio> well, the e7-8890v4 has 24 cores
[20:34:44 CET] <kerio> :>
[20:34:54 CET] <kerio> for only 7k monies
[20:35:00 CET] <DHE> and the incremental 2699 with 22 cores also exists
[20:35:20 CET] <kerio> the 8890 can be 8-socketed i think
[20:35:21 CET] <DHE> but unless it has a base clock of 3 GHz (unlikely) along with all those cores, the price point is pretty bad
[20:35:37 CET] <DHE> oh good, 56k monies for a full machine
[20:41:16 CET] <DHE> Keridos: looked up that CPU on ark.intel.com. holy hell
[20:41:37 CET] <nolaan> hello, I'm using ffmpeg to stream a webcam with rtp and ffplay to receive it. Can somebody tell me why ffplay is opening port+1 and how to avoid this behavior?
[20:46:15 CET] <jkqxz> nolaan: RTP always uses two consecutive ports, the upper one is used for RTCP.
[20:50:10 CET] <nolaan> okay my bad, thankss jkqxz
[20:58:55 CET] <kerio> DHE: i want 8 of those ;-;
[20:59:11 CET] <kerio> there's a supermicro mobo that can handle 8 of those at full ram
[20:59:18 CET] <kerio> 192TB of ram ;Q_______
[20:59:20 CET] <DHE> kerio: I dunno, it's expensive as hell, needs a lot of RAM just to make it work properly
[20:59:26 CET] <DHE> really? most I got was 24 TB
[20:59:53 CET] <kerio> oh wait hm
[20:59:56 CET] <kerio> maybe it's 24?
[21:00:25 CET] <kerio> yeah i'm misremembering
[21:00:32 CET] <kerio> it's 192 *cores*
[21:00:39 CET] <kerio> 3TB per socket
[21:00:46 CET] <kerio> so 24TB yea
[21:02:13 CET] <DHE> it's like, i want one, but at the same time I don't want to have to pay for it or the upkeep (power, cooling, etc) for it.
[21:12:33 CET] <JeffATL> pulled the audio off a vid and modified it in audacity (normalize, EQ, noise reduction - NOT timing). replaced it via "ffmpeg -i input.mkv -i modified_audio.mp2 -acodec copy -vcodec copy -map 0:v -map 1:a output.mkv" but now the a/v sync is off by about a second. why would this be, and is there a fix?
[21:19:40 CET] <JeffATL> ffprobe says stream 0 duration is 42m02.586s, stream 1 is 49m49.032s
[21:22:50 CET] <BtbN> maybe the audio stream starts late in the original file, and you didn't account for that?
[21:25:26 CET] <furq> if nothing else you should have audacity export to wav and reencode it with ffmpeg
[21:25:29 CET] <JeffATL> BtbN: i suppose that's possible. should i perhaps trim some unnecessary seconds off my input file?
[21:25:49 CET] <furq> and if you're reencoding you might as well take the opportunity to use something that sucks less than mp2
[21:26:11 CET] <furq> ffprobe -show_streams (on the source file) will show track delays iirc
[21:26:28 CET] <furq> i forget how you replicate those when remuxing, maybe -itsoffset or something
[21:26:37 CET] <JeffATL> furq: for all i know audacity is using ffmpeg internally to export audio as mp2
[21:26:52 CET] <BtbN> you still don't want to encode anything as mp2.
[21:27:03 CET] <furq> in my experience it's better to let ffmpeg do that while remuxing
[21:27:15 CET] <furq> i've had some av sync issues in the past with stream copying that went away if i reencoded the audio at the same time
[21:27:44 CET] <furq> and yeah mp2 is pretty awful
[21:28:09 CET] <furq> if you're encoding the video to h264 then use aac audio
[21:28:42 CET] <JeffATL> BtbN: that's how the a dn v come out of the cap card. mp2 is only "awful" for my purposes if it becomes impossible to read with future software/players or mangles the quality
[21:29:03 CET] <furq> well yeah mp2 is the best option if you don't touch the audio after it comes out of the card
[21:29:09 CET] <furq> but if you do, there's no reason to go back to it
[21:34:37 CET] <JeffATL> when i use ffprobe -show_streams, stream 0 (v) has a start time of 0.400433 and stream 1 (a) has a start time of 0.189356
[21:34:59 CET] <JeffATL> that's on the file that came right out of the card
[21:38:04 CET] <JeffATL> heck, let's see what happens if i pad the replacement audio in front by the sifference
[21:38:08 CET] <JeffATL> difference
[21:45:40 CET] <tab1293> im transcoding on the fly with ffmpeg and streaming directly to a browsers media source element using the x264 codec
[21:46:17 CET] <tab1293> playback works but there are some stuttering happening. the odd thing is, the video only stutters as ffmpeg transcodes, once the transcoding completes the stuttering stops
[21:46:48 CET] <tab1293> I know this is a pretty general question, but can anyone think of why this may be happening?
[21:47:04 CET] <JeffATL> tab1293: how many cores you got?
[21:47:27 CET] <tab1293> im running ffmpeg in the cloud on a two core machine, playback and transcoding are happening on separate machines
[21:48:21 CET] <JeffATL> ah thank ah foun yer problum
[21:48:38 CET] <tab1293> what the two core machine?
[21:49:15 CET] <BtbN> what speed is ffmpeg running at?
[21:49:25 CET] <BtbN> If it's not at 1x, you're going to get trouble
[21:49:27 CET] <tab1293> averages at like 1.2x
[21:49:47 CET] <JeffATL> you've got trans-internet hops in your ffmpeg i/o
[21:49:48 CET] <tab1293> no it is, im using ultrafast preset, ive even seen it at 2x and the stuttering still occurs
[21:50:29 CET] <tab1293> JeffATL: why would that not happen after the ffmpeg proccess finishes though?
[21:50:54 CET] <tab1293> the packets are still being sent over the wire after the transcoding stops. the stuttering stops like immediately after ffmpeg finishes
[21:53:19 CET] <JeffATL> tab1293: when ffmpeg is still running, there's still bidirectional traffic and those packets have to get acknowledged in some fashion, don't they? just the latency alone seems like enough to cause what you're seeing
[21:54:48 CET] <tab1293> hmm Ive tested locally (both playback and transcoding on same machine) and still saw the stuttering, but that mightve just been because my cpu was at like 90%
[21:55:25 CET] <tab1293> I guess I can test with a transcoding machine on my lan
[21:57:40 CET] <tab1293> but im still not 100% convinced its internet latency. like ffmpeg is writing to stdout, which is piped to a websocket and then ingested by the client
[21:58:03 CET] <tab1293> even when ffmpeg finishes, there is still data going across the wire
[21:58:48 CET] <tab1293> so if it was a latency issue, wouldnt i still see the stuttering? i dont get what you mean by bidrectional traffice JeffATL
[22:02:02 CET] <JeffATL> tab1293: my understanding of higher-level internet function is a little foggy but if you're using some sort of cloud service your packets are very likely getting there and back via multiple paths that are always shifting - packets arrive out of order and get reordered - delays accumulate while the reorderingn accumulates
[22:04:19 CET] <JeffATL> tab1293: and while ffmpeg is running that process is taking place in TX and RCV at once on both ends - it's just not something i'd trust the timing for. also, that same 2-core VM, wherever/whatever it is , is trying to do a lot at once
[22:05:12 CET] <JeffATL> AND do it with virtualized interfaces, which may mean that the packet reordering and so forth is happening in software, not interface firmware
[22:05:28 CET] <tab1293> okay Im going to test right now on my LAN and see what playback looks like
[22:07:42 CET] <JeffATL> tab1293: watch the stress on the ffmpeg machine as you do so.
[22:07:59 CET] <tab1293> will do
[22:11:37 CET] Action: JeffATL likes to have xosview up on everything he touches
[22:18:24 CET] <JeffATL> well, that was a good try re delaying the audio but it's still not synced up. back to drawing board
[22:25:48 CET] <tab1293> JeffATL: so my transcoding machine was fine and still seeing that stuttering across the LAN
[22:25:57 CET] <tab1293> as soon as ffmpeg finishes stuttering gone
[22:26:01 CET] <tab1293> like instantaneously
[22:26:35 CET] <tab1293> on the end of the transcode, is anything sent that may have an effect on the stream?
[22:28:19 CET] <tab1293> and to be clear, its not like the stuttering is super intense, just the occasional stutter. still very annoying though
[22:33:56 CET] <JeffATL> tab1293: okay. how railed up was the ffmpegging machine while this was happening?
[22:34:33 CET] <tab1293> around 80% cpu
[22:34:43 CET] <tab1293> but it was going at +2x rate
[22:35:54 CET] <JeffATL> i'd like to know what was taking up the 80%
[00:00:00 CET] --- Sat Dec 31 2016
1
0
[00:01:59 CET] <kierank> BBB: yes that was intentional
[00:02:21 CET] <kierank> https://usercontent.irccloud-cdn.com/file/sP9DDca9/two_ac_coeffs.png
[00:02:29 CET] <kierank> two coefficients is quite objectionable
[00:06:47 CET] <iive> kierank: have you taken into account the idct permutation?
[00:07:29 CET] <iive> some DSP idct reorder ac coefficients, so they can load them in a single SIMD instruction.
[00:08:00 CET] <iive> so the ordering is combined with the zigzag.
[00:21:40 CET] <kierank> BBB: also gcc -fsanitize=undefined doesn't complain
[00:25:38 CET] <BBB> hm...
[00:25:42 CET] <BBB> is that 2x1 or 2x2 coeffs?
[00:26:16 CET] <kierank> 1x DC and 2x AC
[00:26:20 CET] <kierank> should I put another AC in?
[00:26:21 CET] <BBB> from this, I would suggest that perhaps the ac is over-dequantized
[00:27:04 CET] <kierank> ok
[00:27:36 CET] <BBB> is it possible that theres different quantization tables for the dc vs. ac but youre using the same quantizer for both
[00:27:37 CET] <BBB> ?
[00:28:21 CET] <kierank> there could be a lot of things to be honest
[00:28:28 CET] <kierank> but I've checked the dequant so many times
[00:29:07 CET] <kierank> the bitstream sends a really strange quant matrix
[00:30:27 CET] <kierank> let's try ignoring it and using default
[00:30:34 CET] <BBB> :)
[00:31:37 CET] <BBB> can you debug the dequant matrix also? maybe that helps
[00:31:43 CET] <BBB> (debug as in printf() it)
[00:34:43 CET] <kierank> http://pastebin.com/BCYSEUx7
[00:34:45 CET] <kierank> that's the quant matrix
[00:34:51 CET] <kierank> that's sent in the bitstream
[00:37:59 CET] <kierank> https://usercontent.irccloud-cdn.com/file/7AzrM8AB/SonyHDCAMSR
[00:38:03 CET] <kierank> durandal_1707: ^
[00:38:07 CET] <kierank> that's the binary decoder
[00:38:20 CET] <kierank> can you see if you can find dequant
[01:24:53 CET] <BBB> kierank: that dequant table looks exceptionally weird
[01:25:30 CET] <BBB> kierank: Im guessing that the dc is at a scale of 4 (so it should be 32) and all coeffs should be divided by 4 after the idct
[01:26:07 CET] <kierank> the spec says the dc must be 8
[01:26:28 CET] <BBB> it might be scaled by fractional bits
[01:26:43 CET] <BBB> the vp9 idct, for example, has two fractional bits
[01:26:51 CET] <BBB> also, never trust the spec
[01:27:00 CET] <kierank> ah yes there was something about fractional bits in the idct description
[01:27:26 CET] <kierank> The coefficients are
[01:27:26 CET] <kierank> represented in (n+7) bits including three fractional bits.
[01:27:55 CET] <kierank> so divide by 8 after idct?
[01:28:30 CET] <BBB> thats what it looks like then, yes
[01:28:33 CET] <BBB> and that means the dc is 64
[01:29:16 CET] <kierank> do I need to modify the idct to do the divide or can I just do it afterwards?
[01:29:55 CET] <BBB> you can do it whenever, really
[01:30:03 CET] <kierank> I don't understand why dc-only looks correct then
[01:30:07 CET] <kierank> surely it will be dark afterwardsd
[01:30:17 CET] <BBB> because your dc is missing fractional adjustment, and so is your idct
[01:30:25 CET] <BBB> the ac is fractionally adjusted, but the idct isn't
[01:30:33 CET] <BBB> so all ac coefficients are scaled up by a factor 8
[01:30:39 CET] <BBB> you can divide idct coeffs by 8 and test that
[01:30:42 CET] <BBB> ac coeffs
[01:30:49 CET] <BBB> that should give almost-correct results
[01:34:09 CET] <kierank> hmm looks much better but a bit weird still
[01:34:12 CET] <kierank> lemme upload photo
[01:36:28 CET] <kierank> https://usercontent.irccloud-cdn.com/file/TVIpLucG/better.png
[01:38:14 CET] <kierank> If each pixel is represented by n bits per pixel, the input to the forward transform and output from the inverse
[01:38:14 CET] <kierank> transform is represented with (n+1) bits.
[01:38:26 CET] <kierank> is there another shift I am missing
[01:42:56 CET] <BBB> is that with all coefficients?
[01:43:19 CET] <kierank> that picture is all ac coeffs
[01:43:20 CET] <BBB> not bad -as in, better than before :)
[01:43:29 CET] <kierank> yeah nearly there
[01:44:34 CET] <kierank> ac coefficients shifted I mean
[01:44:52 CET] <BBB> maybe
[01:45:01 CET] <BBB> try different shifts, e.g. divide them by 16 or 32
[01:45:09 CET] <BBB> 32 may well be correct
[01:45:10 CET] <BBB> given how far theyre still off
[01:45:27 CET] <BBB> and fits the n+1 bits per 1d
[01:45:27 CET] <BBB> (the bas eunit being 8, plus 1 bit per 1d idct, making 32)
[01:47:17 CET] <kierank> 32 looks different, things are blurrier
[01:47:23 CET] <kierank> wouldn't say it's better though
[01:47:25 CET] Action: kierank tries 64
[01:47:29 CET] <kierank> and 8
[01:47:43 CET] <kierank> sorry just tried 16
[01:47:44 CET] <kierank> trying 32
[01:49:02 CET] <BBB> a potential issue might be that if youre dividing the ac coeffs by a high number, that a large portion of the signal actually gets lost, so blurry is potentially what you might expect then
[01:49:22 CET] <BBB> (i.e. in the real solution, youd upscale the dc by that and divide the post-idct by that, rather than dividing the ac coeffs by that)
[01:49:32 CET] <BBB> (but were just playing around here to find out the issue)
[01:52:27 CET] <kierank> I think / 8 looks the best
[02:06:05 CET] <BBB> 8 is the one from the screenshot?
[02:06:16 CET] <kierank> yes
[02:07:03 CET] <BBB> very odd artifacts at this point
[02:07:32 CET] <kierank> let me go back to trying a few coeffs
[02:07:49 CET] <BBB> did you try default quant tables?
[02:07:55 CET] <kierank> yes looked really bad
[02:08:02 CET] <kierank> shifting DC was bad too
[02:08:04 CET] <BBB> but it looks like some artifacts are like as if its using horizontal interlacing
[02:08:10 CET] <BBB> it looks pretty terrible
[02:08:35 CET] <kierank> could be a bug in coefficient extraction
[02:08:56 CET] <kierank> there might be some undocumented range limits in get_xbits and similar
[02:27:25 CET] <kierank> michaelni: just to check is get_xbits enough to decode table b.46?
[02:28:16 CET] <iive> once again, check the permutation
[02:28:27 CET] <iive> the artifacts do look like ac in wrong positions
[02:33:44 CET] <iive> well, if kierank have me on ignore, i guess he'll have to figure it out on his own.
[02:53:15 CET] <kierank> BBB: also weird that the matrix sends 254 but the spec says that's reserved
[02:56:19 CET] <BBB> is there a reference output that you can fdct to get the intended scaled coefficients?
[02:58:48 CET] <atomnuker> 1D DCTs are no simpler
[02:59:21 CET] <kierank> I have no reference decoder
[02:59:47 CET] <kierank> I think this will become an IDA pro job :(
[03:30:53 CET] <Compn> [20:28] <iive> once again, check the permutation
[03:30:53 CET] <Compn> [20:28] <iive> the artifacts do look like ac in wrong positions
[03:31:27 CET] <Compn> kierank ^
[04:09:42 CET] <jamrial> durandal_170: the two av_strdup() you added to avf_aphasemeter.c are leaking
[04:21:32 CET] <kierank> BBB: damn the decoder binary application only lets you output rgb :(
[04:22:03 CET] <BBB> thats ok right?
[04:22:12 CET] <BBB> just convert to yuv, do fdct on the planes
[04:22:17 CET] <BBB> it should be approximately correct
[04:22:31 CET] <BBB> spec sounds very unhelpful though :(
[04:22:37 CET] <kierank> dunno, I guess, would have been nice to have yuv though
[04:24:52 CET] <kierank> can ffmpeg do rgb -> yuv bt709 conversion?
[04:24:54 CET] <kierank> afaik it can't
[04:33:58 CET] <atomnuker> kierank: vf_colorspace should, I think it just referred to rgb as something different for some reason
[04:34:23 CET] <kierank> even rgb48?
[04:34:26 CET] <kierank> to yuv422p10?
[04:35:37 CET] <atomnuker> huh, srgb is only listed under input transfer characteristics
[04:36:00 CET] <atomnuker> (I guess it doesn't make sense as colorspace/primaries?)
[04:39:05 CET] <atomnuker> BBB: will vf_colorspace do the correct thing for RGB?
[04:39:25 CET] <atomnuker> (what to set as iprimaries and ispace to make itrc=srgb work?)
[04:40:43 CET] <BBB> vf_colorspace only handles yuv
[04:40:57 CET] <BBB> theres no reason it cant handle rgb, but I havent implemented it
[04:42:07 CET] <kierank> oh right the matrix is fine 254 is allowed
[04:42:18 CET] <kierank> it's not allowed for the first dc
[04:43:31 CET] <atomnuker> rgb* <-> yuv* is like the most common conversion, getting that working would be able to replace swscale for like 90% of all things
[04:44:10 CET] <kierank> yeah but these things need to be thought through
[04:44:18 CET] <kierank> otherwise we rebuild swscale v2
[04:44:52 CET] <wm4> atomnuker: and we'd need to use the lavfi API for it... no thanks
[04:44:56 CET] <atomnuker> yeah, templating like libswscale isn't cool
[04:45:16 CET] <kierank> wm4: that too
[04:45:19 CET] <BBB> vf_colorspace isnt intended to be swscale
[04:45:27 CET] <BBB> I know it does some things more correctly than swscale
[04:45:30 CET] <BBB> thats why I built it
[04:48:33 CET] <BBB> but its not a generic scaler
[04:48:40 CET] <BBB> in fact it doesnt even scale at all
[04:54:54 CET] <wm4> " libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7506000)
[04:54:54 CET] <wm4> libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf734f000)
[04:54:54 CET] <wm4> /lib/ld-linux.so.2 (0x5658c000)
[04:54:54 CET] <wm4> libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf7323000)
[04:54:55 CET] <wm4> libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf731f000)
[04:54:56 CET] <wm4> libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf7316000)
[04:54:58 CET] <wm4> vlx@debian:/mnt/doh/sandgrube/d3_2$ ls movies/
[04:55:00 CET] <wm4> sorry
[04:55:08 CET] <wm4> so... "seek_frame_generic failed as this stream seems to contain no keyframes after the target timestamp, 1002 non keyframes found"
[04:55:21 CET] <wm4> it shouldn't really do this
[04:55:41 CET] <wm4> instead, it should seek to the first frame
[04:56:04 CET] <wm4> but nice to see that ffmpef somehow supports decoding descent 3 in-game movies
[04:58:02 CET] <BBB> wm4: http://trac.ffmpeg.org/ticket/4904
[04:58:18 CET] <BBB> (same bug)
[04:58:51 CET] <wm4> yeah, same bug
[04:59:01 CET] <wm4> ffmpeg and its stupid heuristics
[04:59:19 CET] <wm4> because broken files are more important than sane ones that are "unexpected"
[04:59:21 CET] <BBB> I agree it should search back or at least thats what the default behaviour should be with no specific flags to disallow that
[04:59:29 CET] <BBB> but & thats not what we do now, obviously
[05:01:13 CET] <wm4> the code is even worse
[05:01:15 CET] <wm4> if (nonkey++ > 1000 && st->codecpar->codec_id != AV_CODEC_ID_CDGRAPHICS) {
[05:01:20 CET] <wm4> cdgraphics??
[05:01:37 CET] <cone-753> ffmpeg 03Bela Bodecs 07master:9ec52a0a9b08: libavformat/hlsenc: fix delete_segments when use_localtime_mkdir
[05:01:38 CET] <wm4> probably should add interplayvideo and vp9 here lol
[05:03:49 CET] <kierank> lol
[05:05:17 CET] <wm4> cdg.c (cdgraphics demuxer) actually has code to mark some keyframes
[05:06:13 CET] <wm4> this commit adds the cdg codec id: "lavf: cdg has large non keyframe segments and should thus be exempt from the non keyframe check in seeking. Improves seeking for cdg files."
[05:06:14 CET] <wm4> by michaelni
[05:06:46 CET] <wm4> "improves seeking" => allow broken seeks? wat
[05:07:24 CET] <wm4> the 1000 frames heuristic was added in the same year, by michaelni: "generic seeking: fail if there are 1000 non keyframes found with no keyframe. This avoids scanning through a whole file just to fail."
[05:08:39 CET] <BBB> wm4: uhm yeah we all know utils.c has very questionable code
[05:08:44 CET] <BBB> lets come up with something better
[05:08:53 CET] <BBB> that works for vp9, cdf, interplay as well as h264/etc.
[05:09:16 CET] <wm4> <wm4> "improves seeking" => allow broken seeks? wat <- actually I got this the wrong way around, the cdg exception was added after it was observed to break with the previously added 1000 frames heuristic
[05:09:22 CET] <BBB> I agree the randomness is amusing
[05:10:02 CET] <BBB> sounds like we need a way to mark streams as non-resumable without keyframes"
[05:10:05 CET] <BBB> like vp9 etc.
[05:10:08 CET] <kierank> BBB: http://pastebin.com/svLhKFyk fixed the DC dequant
[05:10:58 CET] <BBB> cool
[05:11:11 CET] <BBB> the post idct has a lot of zeroes in it
[05:11:13 CET] <kierank> yeah
[05:11:16 CET] <BBB> but I guess thats OK?
[05:11:20 CET] <kierank> not doing any shifts
[05:11:36 CET] <BBB> does it look alright?
[05:11:37 CET] <kierank> no
[05:11:44 CET] <kierank> worse but dc is correct i think now
[05:12:14 CET] <BBB> its possible something overflows inside the idct now
[05:12:25 CET] <BBB> 15328 is very large, almost outside int16_t range
[05:12:32 CET] <BBB> so some multiplications could overflow 32bit
[05:12:37 CET] <BBB> (31+sign)
[05:12:55 CET] <kierank> the actual image is a really high frequency net
[05:13:11 CET] <kierank> so I wonder if shifting the coefficients and getting weird artefacts is actually the correct result
[05:13:26 CET] <BBB> probably not
[05:13:38 CET] <BBB> I think the 15k is causing an overflow somewhere
[05:13:48 CET] <BBB> possibly at the end of the first 1d idct when youre storing intermediates
[05:14:02 CET] <BBB> you may have to downshift at the end of the first 1d idct already
[05:14:24 CET] <BBB> its also still a horizontal mirror
[05:16:00 CET] <wm4> just removing the heuristic from the generic seek code makes seeking backwards fail as well
[05:16:25 CET] <kierank> BBB: yeah *row is an int16_t ...
[05:17:13 CET] <kierank> do no other codecs store such a large dc?
[05:22:50 CET] <BBB> they use int32_t for this bitdepth ;)
[05:22:58 CET] <kierank> BBB: if I use the float dct then shift up two to go back to 10-bit, will that work?
[05:23:06 CET] <wm4> crazy times when game developers made their own relatively advanced video and audio codecs and interleaved containers
[05:23:07 CET] <BBB> sure
[05:23:36 CET] <BBB> kierank: using float for testing is a great idea imo
[05:24:36 CET] Action: BBB sleep
[05:24:38 CET] <BBB> tty tomorrow
[05:29:20 CET] <wm4> woah av_index_search_timestamp is public API
[05:29:39 CET] <wm4> and av_add_index_entry too
[05:37:02 CET] <kierank> atomnuker: do we have a float idct?
[05:37:07 CET] <kierank> I can only find the fdct
[05:40:41 CET] Action: wm4 stares at the dynarray_add macro in libavformat/internal.h
[05:40:53 CET] Action: kierank tries octave
[05:41:52 CET] <kierank> wm4: is that some kind of riced linked list?
[05:42:13 CET] <wm4> it calls av_dynarray_add, but with additional type checking via #ifdef __GNUC__
[05:58:58 CET] <wm4> meh fixing this seems too much effort after all
[10:17:54 CET] <fritsch> we currently hit some "funny" limits with kodi 32 bit and ffmpeg
[10:18:17 CET] <fritsch> we found that the x64 bit version of ffmpeg (zerone build) is roughly 2 times faster when doing hevc decoding
[10:18:28 CET] <fritsch> that's most likely caused by the intrinsics right?
[10:18:51 CET] <fritsch> e.g. the 64 bit version can / may use sse4 and stuff automatically?
[10:19:13 CET] <nevcairiel> automatically ? unlikely. but we do have a variety of asm thats only available on 64-bitz
[10:19:14 CET] <nevcairiel> -z
[10:20:05 CET] <fritsch> quite easy test
[10:20:14 CET] <fritsch> download zerone's 32 bit build and his 64 bit build
[10:20:17 CET] <fritsch> take this sample:
[10:20:29 CET] <fritsch> http://fritsch.fruehberger.net/samples/future-live-tv-hevc-10bit.ts
[10:20:31 CET] <fritsch> and run:
[10:21:09 CET] <nevcairiel> it is somewhat known that 64-bit hevc is about twice as fast then 32-bit, most of that comes from the asm thats not available on 32
[10:21:26 CET] <fritsch> ffmpeg -i future-live-tv-hevc-10bit.ts -f null -
[10:21:34 CET] <nevcairiel> even more pronounced if you imported the openhevc simd improvements that are not in mainline ffmpeg
[10:22:06 CET] <fritsch> then it will be the same speed?
[10:22:23 CET] <nevcairiel> it will never be the same speed
[10:22:30 CET] <nevcairiel> x64 is just faster no matter what you do
[10:22:38 CET] <fritsch> yeah
[10:22:58 CET] <fritsch> double the data per instruction (depending on instruction)
[10:23:27 CET] <nevcairiel> for h264, which is more thoroughly simd'ed even on 32-bit, the difference is around 10%
[10:24:02 CET] <fritsch> do you think that's roughly the same difference possible for hevc?
[10:24:08 CET] <fritsch> I cannot really believe that
[10:24:21 CET] <nevcairiel> possible? maybe. but will anyone care to make it possible? unlikely
[10:24:25 CET] <fritsch> as yeah, there are instructions when used with 64 bit are really twice as fast
[10:24:49 CET] <fritsch> hehe, yeah. We are trying to go to kodi 64 bit on windows for the next release
[10:24:57 CET] <fritsch> and will leave the 32 bit world behind
[10:25:21 CET] <nevcairiel> the main difference comes from SIMD, which is mostly independent of the arch, with one exception - the number of registers available, which is the limiting factor why people don't write 32-bit SIMD ASM in the first place
[10:25:52 CET] <fritsch> yesh, that was also my assumption as written in my intro
[10:26:07 CET] <fritsch> oki, so we should not really bother but concentrate on going the 64 bit direction?
[10:26:33 CET] <JEEB> except when people talk of intrinsics they usually mean intrinsics and not asm. upstream FFmpeg doesn't take in IA32/x86_64 intrinsics
[10:26:45 CET] <nevcairiel> if you want to improve 32-bit performance, feel free, but other then windows any other platforms largely don't care anymore either way
[10:27:17 CET] <fritsch> i thought ffmpeg uses yasm and this also generates quite optimized instructions, right JEEB?
[10:27:24 CET] <JEEB> that's what is meant with asm
[10:27:46 CET] <JEEB> intrinsics is something you sprinkle within the C code and hope your compiler can optimize it well enough
[10:28:07 CET] <fritsch> yeah, we do that for our gpu memory copies to system memory
[10:28:30 CET] <fritsch> but other than that, we removed most of that stuff and leave it to the pros :-)
[10:28:37 CET] <fritsch> by e.g. using ffmpeg methods
[10:29:02 CET] <JEEB> and asm is usually a whole function implemented in asm and exported from the assembled object
[10:29:19 CET] <JEEB> less simple since you can't just dump some random instructions in the middle of a function ;)
[10:29:50 CET] <fritsch> i think it's good for platform comaptibility
[10:30:04 CET] <fritsch> as the optimizations can be clearly separated from common code
[10:30:18 CET] <fritsch> not sure how ffmpeg does that, function ptrs?
[10:30:22 CET] <JEEB> yup
[10:30:29 CET] <fritsch> for different archs?
[10:30:56 CET] <JEEB> I think intel arch and arm (?) are the two where having pure asm works
[10:31:31 CET] <JEEB> otherwise it probably is intrinsics because there's no standard assembler for that arch
[11:21:11 CET] <atomnuker> I think all of my asm is 32 bits compatible but its such a pain because when you run out of registers you have to resort to very hacky methods
[11:25:54 CET] <nevcairiel> you can often save a reg here and there by being a bit smarter with parameter handling and whatnot, but once those tricks are all done and you still need more ... stack yoo
[12:45:25 CET] <Compn> fritsch : its possible that zeranoe is disabling something for the 32bit build in order to get it to build...
[12:46:16 CET] <Compn> fritsch : i would like to see some better benchmarks , compile yourself, on hevc 64bit vs x86....
[12:50:13 CET] <Compn> i also wonder if there is some software for converting the existing 64bit code to 32bit...
[12:53:00 CET] <JEEB> Compn: don't confuse the person :P There's just less 32bit SIMD for HEVC
[12:54:09 CET] <Compn> right
[12:54:11 CET] <Compn> that too
[12:54:21 CET] <Compn> did we ever steal anything from http://simd.sourceforge.net/ ?
[16:20:20 CET] <nevcairiel> updated my build system to the latest mingw-w64 release, and they still didnt manage to include vp9 dxva headers in it, despite them being submitted to master almost 10 months before the release .. how slow can you work o.o
[16:22:00 CET] <JEEB> funky, how long before release did they branch off o_O
[16:22:14 CET] <nevcairiel> no clue
[16:22:17 CET] <nevcairiel> but more then 10 months
[16:22:27 CET] <j-b> yes, 5.0 was long to come
[16:22:41 CET] <j-b> nevcairiel: we're doing a 5.0.1 release soon. Any sha1 you want to backport?
[16:22:53 CET] <nevcairiel> its technically a feature, i guess, no clue how they work
[16:23:17 CET] <j-b> depends on how nicely it is asked and how intrusive
[16:23:37 CET] <j-b> just f94008512312a54d142e97868e7585d69a323a62 ?
[16:23:46 CET] <nevcairiel> that should be all, yes
[16:23:56 CET] <nevcairiel> its just data structures, not even any symbols
[16:24:23 CET] <j-b> I will ask.
[16:24:26 CET] <j-b> nevcairiel: anything else?
[16:24:38 CET] <nevcairiel> not that i'm aware, just started using 5.0 today
[16:25:10 CET] <j-b> you might not like it too much :)
[16:25:21 CET] <nevcairiel> is it broke?
[16:25:28 CET] <j-b> a bit.
[16:25:47 CET] <nevcairiel> all i build with it is x264 and ffmpeg, so maybe i get by
[16:25:51 CET] <j-b> but 5.0.1 is around the corner
[16:26:02 CET] <j-b> nevcairiel: sure, don't hesitate to ask other things, if needed
[16:40:07 CET] <Guest28924> Hello, my name is Ezequiel. I have some problems to build the lastest ffmpeg on TinyCore 7 x86_64. Can you help me? Thanks!
[16:49:08 CET] <Chloe> Guest28924 you probably want #ffmpeg
[16:50:14 CET] <Guest28924> I'm not sure. I'll try there. Thanks!
[17:08:41 CET] <BBB> nevcairiel: remember that thing I said yesterday (building ffmpeg for win64 using msvc)?
[17:08:45 CET] <BBB> nevcairiel: I learned something new
[17:09:54 CET] <BBB> nevcairiel: not only am I a fake, Im also a swindler - fun discovery, no?
[17:28:23 CET] <nevcairiel> Self discovery is always fascinating
[17:54:53 CET] <BBB> nevcairiel: especially when prompted by trolls
[17:58:39 CET] <Gramner> BBB: my favorite comment on that stackoverflow thread is "People are earning big bucks for building ffmpeg. That's why nobody is willing to explain how to do it."
[17:58:50 CET] <Chloe> if only
[17:59:00 CET] <BBB> can I have some of that money?
[17:59:04 CET] <BBB> would be very useful
[17:59:39 CET] <BBB> I think he did finally explain what his problem is. he edited his post a couple of times and now it says that it says 1000 times that features.h is missing"
[17:59:55 CET] <BBB> I dont know when it says that or what hes doing
[17:59:56 CET] <nevcairiel> people get paid for building ffmpeg?
[17:59:58 CET] <nevcairiel> i should get on that
[18:00:05 CET] <BBB> yeah yeah, didnt you know? youtube money dude
[18:00:12 CET] <BBB> every build is worth 10 youtube dollars
[18:00:16 CET] <nevcairiel> offer customized builds on request!
[18:00:27 CET] <nevcairiel> just the things you need, nothing more!
[18:00:28 CET] <nevcairiel> :D
[18:01:08 CET] <RiCON> zeranoe used to have custom builds on request
[18:01:17 CET] <nevcairiel> work was using zeranoe builds until i came along, was so nice to cut the binary bloat to like one third
[18:01:18 CET] <RiCON> not sure if paid or not, but it's gone with the new design
[18:01:37 CET] <nevcairiel> noone needs every external library in existance
[18:01:51 CET] <nevcairiel> but thats the fate of a generic build for you
[18:02:24 CET] <BBB> hey nevcairiel so you build ffmpeg right? you must be rich
[18:02:50 CET] <BBB> I mean, only on windows of course, building on linux is for losers that dont have features.h
[18:02:51 CET] <nevcairiel> rich enough to afford a cpu to build ffmpeg with!
[18:02:57 CET] <BBB> o o o
[18:03:06 CET] <BBB> can I get half of your cores to build ffmpeg also?
[18:03:10 CET] <BBB> we could get twice as rich!
[18:03:15 CET] <nevcairiel> (i dont even know what features.h is)
[18:03:24 CET] <BBB> (neither do I)
[18:03:46 CET] <Gramner> you need at least one core per source file for that optimal parallell benefits
[18:04:16 CET] <nevcairiel> neither mingw nor msvc have a features.h that i can see
[18:04:19 CET] <nevcairiel> so .. shrug
[18:04:39 CET] <nevcairiel> back to cooking my lasagna, i guess
[18:04:43 CET] <BBB> enjoy
[18:04:50 CET] <RiCON> there's at least three maintained scripts for building ffmpeg with mingw, what are people crying about?
[18:05:10 CET] <nevcairiel> you dont even need a "script" for a basic build
[18:05:19 CET] <nevcairiel> those scripts just fetch all those pesky external libraries
[18:06:31 CET] <RiCON> the one i maintain at least leaves the choice to the user of how much bloat they cram into ffmpeg
[18:06:37 CET] <nevcairiel> hehe
[18:07:09 CET] <RiCON> though most people making issues always use the one with at least the same libs as zeranoe
[18:07:50 CET] <RiCON> people want their libschroedinger
[18:16:21 CET] <nevcairiel> i only ever used the important ones, x264, lame, opus, and maybe twolame for extreme cases of legacy =p
[18:17:31 CET] <BBB> libvpx?
[18:17:49 CET] <nevcairiel> never had a need to encode vp8/9
[18:21:51 CET] <nevcairiel> but i suppose its common enough these days
[18:21:57 CET] <RiCON> lame, opus, vorbis, vpx, x264, x265 and the built-ins nvenc, avisynth, schannel should be enough for most uses
[18:23:07 CET] <jamrial> you forgot fdk-aac
[18:23:18 CET] <RiCON> ffaac is good enough
[18:23:33 CET] <nevcairiel> my decoder actually builds speex and opencore-amr, mostly because people asked at some point about samples and it was easy
[18:23:37 CET] <jamrial> we removed faac
[18:23:37 CET] <RiCON> fdk makes the build unredistributable too
[18:23:40 CET] <nevcairiel> fdk-aac is also nonfree
[18:23:49 CET] <nevcairiel> jamrial: ffaac, not faac
[18:23:49 CET] <nevcairiel> :D
[18:23:57 CET] <jamrial> oh right
[18:24:02 CET] <jamrial> yeah, that's good enough
[18:25:47 CET] <jamrial> 99% of users are good with x264+aac+mp4
[18:26:26 CET] <jamrial> i suppose someone out there still uses libxvid because h264 is too much for their netburst/k7 rig
[18:26:33 CET] <nevcairiel> heh
[18:26:45 CET] <nevcairiel> i let those people suffer with built-in mpeg4enc
[18:27:04 CET] <nevcairiel> its not that terrible if you tweak its parameters some, it just has awful defaults
[19:31:12 CET] <BBB> I still hear reports that ffaac isnt as good as fdk_aac. is that old/uninformed/legacy/dogma? or is that still true?
[19:35:56 CET] <Chloe> atomnuker: ^
[19:37:29 CET] <aballier> i think fdk_aac remains the only encoder capable of doing any version of he-aac
[19:38:13 CET] <aballier> (meaning it is probably much better at lower bitrates than ffaac)
[19:39:59 CET] <nevcairiel> fdk is probably still better .. how much? much less then it used to be, for sure.
[20:05:59 CET] <RiCON> BBB: listening tests by kamedo still put ffaac a bit behind fdk
[20:06:17 CET] <BBB> a bit is not terrible for a redistributable binary
[20:06:38 CET] <RiCON> http://d.hatena.ne.jp/kamedo2/20160215/1455552816
[20:07:17 CET] <RiCON> this was before some changes, i don't think there were any other tests
[20:10:27 CET] <RiCON> more recent tests compare aac with other codecs but only QAAC
[21:05:37 CET] <kierank> BBB: octave idct2 looks more sane, will find a float idct to port to ffmpeg
[21:06:17 CET] <BBB> sounds good
[21:47:55 CET] <atomnuker> BBB: depends on the sample and bitrate but yeah for the 96-82k range fdk_aac does slightly better if you can hear it
[21:48:27 CET] <atomnuker> at around 48k we win on alot more samples since fdk_aac will never use PNS nor TNS
[21:49:36 CET] <atomnuker> (we also adjust the lowpass filter based on the range if the lambda's in the gutter)
[21:50:52 CET] <atomnuker> btw the opus encoder I have is better than anything else other than libopus we have supported
[21:51:42 CET] <nevcairiel> is it just the opus features being so nice that its apparently so easy to w rite a decent encoder?
[21:52:01 CET] <atomnuker> and I'm not even doing psychoacoustics, transients, vbr, TF switching, RDO, theta tweaking, IS analysis, MS analysis, alloc slope & band boosts
[21:52:58 CET] <atomnuker> nevcairiel: its purely because of the quntization and the decoupling between band amplitude and bit allocation (aac/mp3 scalefactors)
[21:54:58 CET] <BBB> atomnuker: so when will you implement psychoacoustics, transients, vbr, TF switching, RDO, theta tweaking, IS analysis, MS analysis, alloc slope & band boosts?
[21:55:05 CET] <BBB> atomnuker: just wondering ;)
[21:55:45 CET] <atomnuker> its going to be the best one day and I'll have to
[21:56:13 CET] <atomnuker> (also add flexible framesizes if that experiment works out)
[22:47:56 CET] <kierank> BBB: ported a float idct, looks interesting to say the least, not right though
[22:48:03 CET] <kierank> is there a reference float idct somewhere?
[22:48:20 CET] <BBB> just take the one from wikipedia
[22:48:27 CET] <BBB> libvpx also has one
[22:48:31 CET] <kierank> y is screwed, u looks much better
[22:48:32 CET] <BBB> (in the tests directory)
[22:55:06 CET] <kierank> BBB: do I need to add a bias as well?
[22:55:10 CET] <kierank> or just shift?
[22:55:25 CET] <BBB> for rounding?
[22:55:42 CET] <BBB> its float right?
[22:55:48 CET] <BBB> so no loss of precision, just exponent change
[22:55:59 CET] <kierank> yes and I'm directly converting to uint16_t
[22:56:01 CET] <kierank> not sure if that's right
[22:56:13 CET] <kierank> so uint16_t foo = float_coeff[x];
[22:57:32 CET] <kierank> http://pastebin.com/1yHNZ4xV
[22:57:39 CET] <kierank> get even weird coeffs
[22:58:52 CET] <BBB> I think you need to divide by 4
[22:59:01 CET] <BBB> if the number of bits per 1d idct is 1 more than the bit depth
[22:59:15 CET] <BBB> then you need to remove 2 bits for the pixel conversion for a 2d idct
[22:59:28 CET] <kierank> In case of mpeg2_stream = 0, The coefficients are
[22:59:29 CET] <kierank> represented in (n+7) bits including three fractional bits.
[22:59:37 CET] <kierank> so 7 bits, right?
[23:00:01 CET] <kierank> If each pixel is represented by n bits per pixel, the input to the forward transform and output from the inverse
[23:00:01 CET] <kierank> transform is represented with (n+1) bits.
[23:00:17 CET] <BBB> so 2x1 + 3, I think
[23:00:20 CET] <BBB> so 5
[23:00:32 CET] <BBB> but it could be any number
[23:00:40 CET] <BBB> also dont forget to clip in the domain
[23:00:46 CET] <kierank> yeah I guess
[23:00:57 CET] <BBB> so if x < 0 x else if x >= 1024 1023 else x
[23:01:19 CET] <kierank> yeah
[23:01:30 CET] <BBB> look forward to seeing what you cooked up ;)
[23:02:47 CET] <kierank> https://www.irccloud.com/pastebin/ZmCxNktL/
[23:02:52 CET] <kierank> still weird
[23:03:22 CET] <kierank> y looks okish
[23:03:24 CET] <kierank> u and v terrible
[23:03:33 CET] <kierank> ah perhaps u and v needs a bias
[23:04:05 CET] <kierank> not sure how the octave idct looks sane
[23:04:16 CET] <kierank> https://www.irccloud.com/pastebin/Gdm9wj9r/
[23:04:18 CET] <kierank> for comparison
[23:06:16 CET] <BBB> 2048 is a high value for 10bits content
[23:06:31 CET] <kierank> yeah I would guess it's /4 or something
[23:06:36 CET] <kierank> but it's much smoother
[23:06:41 CET] <kierank> like no random zeroes
[23:06:44 CET] <BBB> right
[23:07:03 CET] <BBB> is that u/v or y?
[23:07:06 CET] <kierank> ah the zeroes are clipping
[23:07:17 CET] <kierank> perhaps I will not use av_clip
[23:07:23 CET] <kierank> might be an artefact of that
[23:07:32 CET] <BBB> ?
[23:07:40 CET] <BBB> you should clip while converting float->int
[23:07:47 CET] <BBB> i.e. do the comparison in float
[23:07:54 CET] <BBB> if you know what I mean
[23:07:57 CET] <kierank> yeah just reaslised that...
[23:08:00 CET] <BBB> :)
[23:08:11 CET] <BBB> well get somewhere eventually ;)
[23:09:55 CET] <kierank> https://www.irccloud.com/pastebin/xZILSih1/
[23:11:13 CET] <BBB> still very strange
[23:13:48 CET] <BBB> what I find strange is that the dc is soooooo huge
[23:14:00 CET] <BBB> yet the values within are wildly flunctuating
[23:14:09 CET] <BBB> between whatever and whatever
[23:14:29 CET] <BBB> 15326=1915.75 if theres 3 fractional bits
[23:15:19 CET] <BBB> so if the idct only takes 1 bit off& then doesnt that mean it should have a dc of ~1000?
[23:15:32 CET] <BBB> yet the average of the values youre pasting is 250 or 300 or so
[23:15:38 CET] <BBB> so something is still very wrong
[23:15:40 CET] <kierank> I also find that odd
[23:17:33 CET] <kierank> could be a spec typo
[23:18:26 CET] <BBB> oh I see
[23:18:31 CET] <BBB> you ported the fdct
[23:18:32 CET] <BBB> :-p
[23:18:49 CET] <kierank> crap, yes I did
[23:18:49 CET] <BBB> the test you copied the code from is a reference fdct (8x8) to test the integer 8x8 idct
[23:19:00 CET] Action: kierank can't read
[23:19:43 CET] <kierank> ok the original idct i think was ok, certainly it had interesting pictures
[23:19:47 CET] <kierank> the old float one
[23:20:25 CET] <kierank> ok that explains why the fdct was scaling up...
[23:21:10 CET] Action: kierank copies mpeg idct
[23:21:41 CET] <BBB> I always thought libvpx had a reference idct also
[23:21:44 CET] <BBB> cant find it though :(
[23:24:15 CET] <kierank> ok let's go back to steinar''s idct
[23:26:32 CET] <kierank> let me check the dc falls within the range of spec
[23:28:09 CET] <kierank> might be a bitstream parsing issue
[23:33:56 CET] <BBB> or were scaling the dc wrong ;)
[23:38:24 CET] <kierank> doesn't mpeg2 have a dc that's high precision than AC as well
[23:41:04 CET] <BBB> I dont know, it depends on the scale factors in the implementation
[23:41:13 CET] <BBB> if the dc is wrong, its easy to spot
[23:41:13 CET] <j-b> nevcairiel: 23:20 <@jon_y> j-b: ordinarily I wouldn't but looks alright
[23:41:18 CET] <j-b> nevcairiel: so, done for 5.0.1
[23:41:30 CET] <BBB> the differences are good, but the baseline is wrong
[23:46:48 CET] <kierank> dc quantised: 1043, maximum is 4095 so that seems fine
[23:47:15 CET] <kierank> multiplier is weird
[23:48:28 CET] <kierank> and multiplier is (8 >> intra_dc_precision) x base_quantiser scale x 8
[23:48:56 CET] <kierank> where base_quantiser_scale is 1 / dct_precision
[23:49:04 CET] <kierank> so in practice 8 >> dct_precision
[00:00:00 CET] --- Fri Dec 30 2016
1
0
[00:00:07 CET] <furq> it's a w3c thing
[00:00:12 CET] <leibnizzle> Completely forgot that existed, thanks so much
[00:16:19 CET] <klaxa> am i correct to assume that webrtc is based on neither tcp nor udp?
[00:16:43 CET] <furq> it runs on top of either
[00:16:55 CET] <furq> pretty much everything on the internet has to because that's what routers support these days
[00:17:09 CET] <klaxa> i once read something about "raw sockets"
[00:17:32 CET] <furq> that's why people have to implement sctp on top of udp, because routers will just block it
[00:17:47 CET] <klaxa> oh
[00:17:58 CET] <leibnizzle> udp lite is mainline linux now though so maybe it will open up
[00:18:00 CET] <furq> raw sockets are often blocked as well
[00:18:13 CET] <furq> except maybe ICMP
[00:18:33 CET] <klaxa> i see
[00:18:36 CET] <klaxa> thanks
[00:18:58 CET] <furq> a lot of routing protocols use them, but i imagine they're blocked for general internet traffic
[00:19:33 CET] <leibnizzle> they're used for other stuff than internet traffic too
[00:20:40 CET] <furq> stuff like that is fine for lan stuff where you can set your routers up appropriately
[00:20:46 CET] <leibnizzle> CAN traffic in cars for instance
[00:20:59 CET] <furq> but if you want to use something over the internet, generally you need to stick to tcp and udp
[00:21:16 CET] <leibnizzle> I really think that is bound to change at some point though
[00:21:24 CET] <leibnizzle> but that does seem to be a sad fact
[00:21:25 CET] <furq> i hope so because it sort of sucks
[00:21:47 CET] <furq> although everything seems to be going the other way
[00:22:00 CET] <leibnizzle> it just makes so little sense to protect the payload with a checksum
[00:22:05 CET] <furq> all the fancy new streaming protocols (if you can call them protocols) are implemented on top of http
[00:22:30 CET] <leibnizzle> Perhaps it is becoming more polarized
[00:22:36 CET] <leibnizzle> Because that does seem true
[00:22:58 CET] <leibnizzle> But at the same time, there's projects heading in way the other direction as well
[00:23:01 CET] <furq> thanks a lot, corporate firewalls
[00:24:03 CET] <leibnizzle> makes sense really because streaming a netflix movie and streaming the camera of the 18-wheeler in front of you to decide whether you should overtake or not are two pretty different things
[00:24:46 CET] <leibnizzle> and i'll tell you that I'd rather not do the latter with TCP :D
[00:25:14 CET] <furq> i've never dug too deep into this stuff but udp generally seems "good enough"
[00:25:40 CET] <leibnizzle> it's good enough but just fundamentally gross
[00:25:58 CET] <leibnizzle> imo anyway haha
[02:49:43 CET] <nichego> hello. is there an ffmpeg invocation that tells me whether a particular mp4 file uses edit lists or not?
[02:50:13 CET] <nichego> that information is not specified in 'ffmpeg -i' output. mediainfo is silent about it as well
[04:53:08 CET] <bornpilot> queston about sws_flags my options look something like this -sws_flags area -sws_flags +print_info -sws_flags -full_chroma_int for the sws_flag value does the - or + mean add or negate the option? or would this be simple by -sws_flags flagOptionValue
[04:54:46 CET] <bornpilot> related to this if I wanted to put this in filtergraph form would it be comma seperated vlaues i.e. sws_flags=area,print_info &
[05:00:43 CET] <furq> bornpilot: iirc it'd be -sws_flags +print_info-full_chroma_int
[05:03:57 CET] <bornpilot> furq thanks, so in the example what do the options + and - mean for the sws_flags value?
[05:04:14 CET] <furq> add and remove
[05:06:56 CET] <bornpilot> if no value is set for an sws_flags is it implied add or remove?
[06:46:02 CET] <UV> Hi. I'm following the compilation guide for ffmpeg on debian testing from here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[06:48:09 CET] <UV> and I'm getting this error while making lib-x264: http://dpaste.com/3Q2HMJM
[06:48:32 CET] <UV> any idea why this wouldbe occuring?
[06:49:35 CET] <UV> this is on debian sid
[06:50:20 CET] <UV> sorry, I meant debian testing, not sid.
[06:50:59 CET] <furq> what's wrong with the ffmpeg in the repos
[06:53:00 CET] <UV> nothing, but I was trying to compile against the newest lib-x264
[06:53:41 CET] <UV> and trying to fix this error
[09:33:21 CET] <nirvanko> Hi everyone. top -H shows that ffmpeg has a lot of threads but only few of them are actually doing something for all others TIME+ is zero. Why?
[09:34:33 CET] <IamTrying> https://www.amazon.com/FFmpeg-Basics-Multimedia-handling-encoder/dp/1479327… - Is this BOOK good? how to use the FFMpeg in Windows visual studio C++ or in C# which book covers somthing about it from build/compile
[09:39:46 CET] <IamTrying> do you know "Frantisek Korbel" ? just bought his book, but did he wrote in the book how can i use the FFmpeg in Windows visual studio C++ or C#?
[09:59:50 CET] <ahoo> hey there
[10:00:46 CET] <ahoo> when extracting audio via -c:a from a youtube video, will re-encoding that aac to mp3 cause a noticeable loss in quality?
[10:01:40 CET] <JEEB> -c:a copy you mean? yes, re-encoding it to a lossy format will incur loss. whether or not that loss will be notice'able is dependant on your parameters
[10:04:09 CET] <ahoo> yeah, c:a copy
[10:10:56 CET] <ahoo> ta
[10:11:12 CET] <xeche> eh? codec copy will re-encoding?
[10:11:18 CET] <xeche> uhhh.. english
[10:11:24 CET] <xeche> re-encode*
[10:11:55 CET] <xeche> i thought copy was a container only operation
[10:12:29 CET] <pano> Hi all
[10:23:26 CET] <pano> i have asked question yesterday... i get answer for it. Just in case anyone here need it :). The command should be: ffmpeg -i rtsp://{user}:{password}@{ip}:554/onvif1 -c copy -f ssegment -segment_time 20 -reset_timestamps 1 "capture-%03d.avi" . The main difference is: " -reset_timestamps 1 " .
[10:23:31 CET] <markvandenborre> xeche: copy is a container only operation, but if you re-encode it afterwards from lossy aac to lossy mp3
[10:23:34 CET] <markvandenborre> ...
[10:24:02 CET] <markvandenborre> pano: cool, thx
[10:46:56 CET] <bencc> browsers support any sample_rate in mp3 and aac?
[10:47:10 CET] <bencc> or should I use 48000 for best compatibility?
[10:52:35 CET] <JEEB> xeche: no, he specifically asked if after -c copy re-encoding to MP3 would be lossy
[11:10:22 CET] <bencc> how can I get the container with ffprobe?
[11:10:36 CET] <bencc> like Matroska
[11:11:29 CET] <bencc> -show_format
[11:11:51 CET] <JEEB> yup
[11:11:55 CET] <JEEB> "format_name": "matroska,webm"
[11:11:55 CET] <bencc> thanks
[11:11:57 CET] <JEEB> in json
[11:12:27 CET] <bencc> do browsers support wav with adpcm_ms
[11:12:29 CET] <bencc> ?
[11:35:53 CET] <xeche> what does the "Speed" field signify when encoding
[11:36:41 CET] <xeche> playback speed * x = speed ?
[11:54:54 CET] <darsain> I'm trying to create a scaling command that will downscale-only to a specific megapixel value. I have this:
[11:54:58 CET] <darsain> scale=min((921600/iw*ih)*iw, iw):min((921600/iw*ih)*ih, ih)
[11:55:14 CET] <darsain> but I'm getting "*iw was unexpected at this time."
[11:55:43 CET] <darsain> any pointers to what I'm doing wrong? :)
[11:57:54 CET] <iive> xeche: you mean the text on the status bar? yes it shows how faster/slower is the encoder compared to real time.
[12:02:14 CET] <xeche> iive: thanks. and the speed displayed at the end is the average speed compared to realtime playback then?
[12:02:40 CET] <iive> yes
[12:02:54 CET] <xeche> alrighty. sanity restored. :)
[12:04:33 CET] <iive> :D
[12:05:03 CET] <xeche> has anyone here ever been able to make hevc_qsv work via ffmpeg? (CLI or API)
[12:05:52 CET] <xeche> reading Intel's documentation, it looks like hevc codecs are not available via the community edition
[12:08:12 CET] <xeche> yeah, this is a dead end. Media Studio professional is $4000
[12:15:25 CET] <bencoh> $4000 to decode hevc in hw?
[12:25:12 CET] <xeche> bencoh: encode
[12:25:22 CET] <xeche> not sure if it makes a difference to be honest
[12:25:34 CET] <xeche> but their docs on how to integrate with ffmpeg is littered with "you need the professional version"
[12:28:37 CET] <jkqxz> What are you wanting to do with it? The hardware encoder is not very good.
[12:30:58 CET] <xeche> that depends on you measure
[12:31:05 CET] <xeche> how you measure, rather
[12:31:27 CET] <xeche> libx265 (software) does not play nice with the CPU usage
[12:32:00 CET] <xeche> to answer your question; i want to encode an HEVC stream in real time
[12:35:05 CET] <jkqxz> And you don't care how good the result it? Use H.264 instead.
[12:36:26 CET] <jkqxz> The hardware-only H.265 encoder on Intel (Skylake/Kaby Lake) is usable via VAAPI on Linux with the open source stuff, but it sucks.
[12:37:22 CET] <xeche> jkqxz: I assume your measurement is quality. And that's a very subjective thing, so it's impossible for me to know what you mean by "good"
[12:37:42 CET] <jkqxz> The proprietary Intel one has more magic (in software) which makes it better, but you end up trading off against CPU time again.
[12:40:02 CET] <jkqxz> I mean the quality of the output image at the same bitrate is no better than the H.264 encoder.
[12:41:15 CET] <jkqxz> In its favour, it easily manages >4K60 throughput using ~zero CPU. If this is the only thing you care about, then it's awesome.
[12:47:18 CET] <xeche> jkqxz: it is very important in my use case.
[12:47:43 CET] <xeche> bandwidth and CPU usage is the priority, compared to near zero compression artifacts
[12:48:14 CET] <xeche> jkqxz: do you have any links to quality comparisons between 264 and 265?
[12:48:44 CET] <xeche> i find it hard to believe that the 265 hw encoder does no better than a sw 264 encoder
[12:52:12 CET] <jkqxz> Why? A hardware encoder doesn't have any opportunity to do anything clever at all. H.265 only gains over H.264 if you make use of the advanced features which require a lot more processing to squeeze value out of.
[12:52:38 CET] <jkqxz> Also I was comparing the Intel hardware-only H.264 and H.265 encoders. x264 is better than either of those.
[12:53:29 CET] <xeche> jkqxz: to get an idea of what you mean by comparable quality and good quality
[12:53:44 CET] <xeche> and no, h265 by specification, does more than 264
[12:53:53 CET] <xeche> more passes, different algo, etc
[12:54:40 CET] <jkqxz> All of which you can ignore and still create a valid stream.
[12:54:57 CET] <xeche> then what you're saying is the QSV implementation is not standard compliant
[12:55:02 CET] <jkqxz> The use of features there completely depends on the encoder which is using them.
[12:55:55 CET] <jkqxz> What? No. The standard specifies how to decode the stream, it doesn't place any constraints on how you encode it.
[12:59:15 CET] <xeche> it appears you're right about that part
[12:59:22 CET] <xeche> at least according to wiki's write up on profiles
[12:59:53 CET] <xeche> so yes, then your argument holds; 265 may well perform equal to 264
[13:01:00 CET] <JEEB> he is correct, the specification is just notes what constitutes a valid bit stream in that format
[13:01:07 CET] <JEEB> it doesn't limit the encoder to do dumb or not dumb things
[13:01:11 CET] <jkqxz> Profiles just add additional constraints to the set of features you are allowed to use. There is nothing which compels you to actually use them, though.
[13:01:29 CET] <JEEB> as long as you can decode what an encoder produces according to the specification, it is valid
[13:02:51 CET] <jkqxz> For example, you can make a trivial H.264 or H.265 encoder which encodes every macroblock as PCM. It's not very useful (the output is bigger than the input), but it is valid.
[13:02:57 CET] <xeche> right. if i could actually make ffmpeg do the damned encodes, i could look for myself and compare the quality..
[13:03:22 CET] <xeche> jkqxz: point taken, technical terms aside.
[13:03:37 CET] <jkqxz> Are you on Linux?
[13:03:52 CET] <xeche> Windows. :P
[13:06:05 CET] <jkqxz> My condolences. I have little clue, then.
[13:06:22 CET] <xeche> Selected rate control mode is not supported by QSV runtime. I'm going around in circles...
[13:06:51 CET] <nzbmets> Hi All, I'm having a problem compiling in chromaprint. Here's a trivial script to reproduce http://pastebin.com/s9afca2v . (It does not seem to be related to ticket #5997). I see no other open issue that may be related.
[13:07:03 CET] <nzbmets> any help appreciated
[13:07:33 CET] <jkqxz> I think you get that error if it doesn't load properly, since probing for a usable rate control mode with the encoder always fails if it isn't working.
[13:07:37 CET] <jkqxz> Does H.264 work for you?
[13:08:29 CET] <xeche> yeah, libx264 and h264_qsv both work
[13:09:32 CET] <jkqxz> Right. The H.265 encode plugin really is required to get anywhere.
[13:09:58 CET] <xeche> indeed it is. not statically linked to ffmpeg for licensing reasons, i assume
[13:10:51 CET] <xeche> i do have that plugin installed, but I guess FFMPEG doesn't find it
[13:11:03 CET] <xeche> trial version of the "professional" whatever their tool is called
[13:12:02 CET] <xeche> ffmpeg -y -i MacGruber.mp4 -vcodec hevc_qsv -load_plugin hevc_hw -vcm 1 hevc_qsv.hevc
[13:12:11 CET] <jkqxz> Hmm. On Linux I would suggest using strace to work out where it's looking for the plugin to load it. Maybe there is something similar on Windows?
[13:12:51 CET] <xeche> does strace catch runtime linked libraries?
[13:15:23 CET] <xeche> QSV uses a frontend library, the mfx dispatcher, to pick implementations
[13:17:18 CET] <jkqxz> strace is below that sort of concern. It just prints system calls, so you can watch for an open() with the name of the plugin file and see where it was looking for it.
[13:21:50 CET] <xeche> jkqxz: okay thanks. there is supposed to be something equivalent in WinDbg tools
[13:32:31 CET] <xeche> well, it finds the dispatcher, but the dispatcher is the only intel DLL i can see
[15:07:36 CET] <Tom_B_> hi all, I have a mpeg2-ts stream being written to a file continuously as a .ts file, is it possible to use ffmpeg to periodically slice the video so only the last hour or last video remains to prevent the file growing in size or will changing the file as it's being written cause a problem?
[15:15:36 CET] <kerio> that's not how file descriptors work
[15:16:30 CET] <markvandenborre> Tom_B_: what you want is a way to make ffmpeg record one hour slices continuously
[15:16:34 CET] <kerio> you can't just make some other process seek
[15:16:50 CET] <markvandenborre> then handle the deletion of the old files externally
[15:16:50 CET] <markvandenborre> I guess
[15:18:00 CET] <Tom_B_> yes, you're probably right. I'm trying to implement a timeshift type feature on a live stream that's being recorded as a .ts file
[15:20:56 CET] <furq> https://www.ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_…
[15:21:05 CET] <furq> that'll split the output every hour
[15:21:14 CET] <furq> deleting everything else is probably doable with inotifywait or something
[15:21:30 CET] <furq> or just a cron job
[15:42:01 CET] <DHE> interestingly HLS is basically mpegts with a playlist file. you could probably abuse that as well. it has built-in rotation and stuff
[15:43:06 CET] <kerio> that... is a very good point
[15:43:07 CET] <DHE> including deleting the files
[15:43:21 CET] <bencoh> Tom_B_: if you're recording stream "as-is" you might want to have a look at multicat
[15:43:45 CET] <kerio> DHE: do you know if players accept mp4 in playlists rather than .ts
[15:43:47 CET] <bencoh> (assuming this is indeed a udp or rtp encapsulated stream)
[15:45:00 CET] <Tom_B_> I also have access to the raw data as it's received. I'm actually getting data from tvheaded using its bespoke HTSP protocol via a basic node.js interface I wrote
[15:45:23 CET] <DHE> kerio: officially no
[15:45:36 CET] <kerio> i didn't ask "is mp4 allowed in hls"
[15:45:39 CET] <kerio> :^)
[15:46:22 CET] <JEEB> fragmented ISOBMFF in HLS IIRC was recently added to the spec
[15:46:29 CET] <JEEB> which Apple implements
[15:55:57 CET] <furq> if "playlists" includes dash manifests then sure
[16:11:31 CET] <dudududu> hi i've been getting inflate returned errors when concatenating large list (3000) of pngs. any ideas for a solution? it causes pretty big frame skips heres a screenshot http://i.imgur.com/mC43T4Q.png
[16:13:51 CET] <JEEB> furq: https://tools.ietf.org/html/draft-pantos-http-live-streaming-20#section-3.3
[16:13:54 CET] <JEEB> HLS ;)
[16:14:11 CET] <furq> 14:43:45 ( kerio) DHE: do you know if players accept mp4 in playlists rather than .ts
[16:14:14 CET] <furq> i was responding to that
[16:14:28 CET] <furq> it's cool that it's supported in hls now though
[16:14:50 CET] <furq> maybe that means i'll be able to stop remuxing ts to mp4 in javascript, which is a concept that makes me feel ill
[16:14:56 CET] <DHE> unfortunately my players aren't going to be new enough to meet those criteria...
[16:15:38 CET] <JEEB> yeah, atm that is now only for iOS
[16:15:52 CET] <JEEB> on android thankfully you have exoplayer
[16:15:57 CET] <JEEB> I wonder if they added support already
[16:16:16 CET] <JEEB> on embedded things you're out of luck unless you're developing the thing :P
[16:20:22 CET] <__raven__> how to capture vbi data from a analogue capture card and save it to kind of teletext file?
[16:30:51 CET] <dudududu> would you guys happen to know how i can tell exactly what png cause the error here? http://i.imgur.com/TLB9FVe.png [png @ 0000000004682940]
[16:31:19 CET] <dudududu> i have them in a list of like 3000 so im trying to figure out which one is the problem
[17:32:02 CET] <sagerdearia> What video codec is commonly used to record video of practically exact pixel colors from Xorg desktop? I want to extract specific frames during recording of pixel animation to reproduce them elsewhere.
[17:34:28 CET] <kerio> it depends on how fast is your storage
[17:34:31 CET] <kerio> and how fast is your cpu
[17:36:23 CET] <Mavrik> yeah... huffyuv in RGB is usually resonable
[17:36:33 CET] <Mavrik> or losless x264rgb
[17:36:46 CET] <kerio> you mean ffvhuff
[17:37:02 CET] <kerio> is lossless x264rgb actually fast enough to do realtime?
[17:38:20 CET] <Mavrik> yeah
[17:38:28 CET] <klaxa> depends on your cpu and throughput, but on a reasonably modern machine, yes
[17:39:31 CET] <Mavrik> And I pretty much meant huffyuv :P
[17:40:11 CET] <kerio> it is ;o
[17:40:25 CET] <klaxa> on my laptop i get 25 fps at 3200x1800
[17:40:37 CET] <klaxa> with libx264rgb
[17:40:58 CET] <klaxa> ultrafast preset, lossless
[17:42:51 CET] <kerio> yea i'm getting a solid 30 at ultrafast
[17:44:37 CET] <DHE> Keridos: yeah, ultrafast is just that. but if you use a slower preset you'll get a smaller file size while still being lossless
[17:44:57 CET] <DHE> this is why disk throughput matters
[17:45:00 CET] <kerio> wrong nickname tho
[17:45:52 CET] <kerio> 100MB/s for a recording of a video tho
[18:02:55 CET] <rjp421> "-f flv 'rtmp://test:ing@media.whohacked.me/live/livestream flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=1'" usually has worked, but now im getting "Problem accessing the DNS. (addr: test)" "rtmp://test:ing@media.whohacked.me/live/livestream live=1: Unknown error occurred"
[18:04:55 CET] <rjp421> with the latest ffmpeg-git nightly for linux 64bit
[18:07:24 CET] <rjp421> on centos6.7
[18:18:49 CET] <rhagu> Hi I would like to find out, whether ffmpeg on my ubuntu xenial machine supports multithreading, how can I do that?
[18:22:30 CET] <thebombzen> rhagu: lscpu
[18:22:38 CET] <thebombzen> if there is more than one "cpu" then yes
[18:24:10 CET] <rhagu> thebombzen the problem is not about the number of cpus, but quite some time ago, ubuntu packaged ffmpeg without multithreading support although it was already available upstream. I am curious whether ubuntu compiles ffmpeg with multithreading enabled at the moment
[18:24:33 CET] <Mavrik> uhh
[18:24:45 CET] <Mavrik> Whatever they package is probably obsolete and broken.
[18:24:53 CET] <Mavrik> I'd really really advise against using it :/
[18:24:58 CET] <Mavrik> Use static builds instead.
[18:27:14 CET] <thebombzen> by "ubuntu packaged ffmpeg" do you mean "ubuntu packaged libav"
[18:27:29 CET] <thebombzen> afaik debian derivatives still feel obligated to use the bad fork
[18:27:55 CET] <thebombzen> either way rhagu the solution 98% of the time is to build it yourself
[18:28:58 CET] <rhagu> thebombzen as far as I understand, ubuntu changed back to ffmpeg with 15.04
[18:30:46 CET] <thebombzen> huh. I didn't know that
[18:30:59 CET] <thebombzen> as for your original question, you could try to check the build flags
[18:31:12 CET] <thebombzen> afaik you disable threading with ./configure --disable-threads, so check for that flag somewhere
[18:33:05 CET] <rhagu> https://paste.ubuntu.com/23707021/ as --disable-threads is not mentioned, I guess it is disabled by noww
[18:39:26 CET] <furq> the recent ubuntu builds are fine afaik
[18:39:59 CET] <furq> 16.10 is using 3.0.5
[18:40:15 CET] <furq> presumably the same one as debian testing from a few months ago, which was fine
[18:40:43 CET] <furq> this is assuming you're using ubuntu 16.10 and not some LTS build from last century
[18:41:34 CET] <rhagu> furq 16.04
[18:41:52 CET] <rhagu> version 2.8.10
[18:41:53 CET] <furq> 16.04 is on 2.8.10 which is still usable
[18:42:27 CET] <rhagu> it is inside a lxc container, so I can switch to 16.10 if necessary, I want to use it as backend for emby media server
[18:42:30 CET] <furq> they should just be the packages from debian testing cut at a particular date
[18:42:38 CET] <furq> and those have been perfectly usable for a few years now
[18:49:36 CET] <darsain> how can I make -c:v libvpx-vp9 utilize the whole CPU? it sits at around ~30% currently. the whole command looks like this: http://pastebin.com/0DpzRkMQ
[18:51:16 CET] <furq> libvpx doesn't have frame multithreading, so you're limited by the resolution of the output
[18:51:29 CET] <furq> also i'm pretty sure some of those options shouldn't be used any more
[18:51:30 CET] <rjp421> ffmpeg wont parse the username part of the auth, "problem acccessing DNS addr user"; ./ffmpeg -loglevel info -re -i 'rtmp://jblive.videocdn.scaleengine.net/jb-live/play/jblive.stream' -vf "fps=24,scale=640x360,format=yuv420p" -c:v libx264 -profile:v main -level 30 -crf 23 -r 24 -g 48 -c:a copy -sn -f flv "rtmp://user:pass@media.whohacked.me/live/livestream flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=1"
[18:51:39 CET] <furq> just -threads and -tile-columns are all you need now iirc
[18:52:04 CET] <furq> also -movflags faststart definitely doesn't do anything with webm output
[18:52:39 CET] <rjp421> i addes user/pass for auth if anyone can test that cmd
[18:53:12 CET] <darsain> furq: most of that stuff is just copy pasted from recomendations in wiki and other documentation pages :) so there's no way how to speed it up?
[18:53:19 CET] <furq> darsain: http://comments.gmane.org/gmane.comp.multimedia.webm.devel/1937
[18:53:31 CET] <furq> judging by that it won't use more than 4 threads for 720p
[18:54:13 CET] <furq> and yeah a lot of information on libvpx is badly outdated
[18:55:12 CET] <furq> you can make it faster with -speed but you'll lose quality obv
[18:56:03 CET] <furq> maybe TD-Linux or someone else who actually uses libvpx can shed more light
[18:56:40 CET] <TD-Linux> darsain, you mean use multiple threads?
[18:57:24 CET] <darsain> TD-Linux: if it isn't doing so already, and that's why it only consumes 30% of my CPU atm, than yes
[18:57:34 CET] <TD-Linux> what is "30% of your CPU"
[18:58:08 CET] <TD-Linux> what resolution is this, how many cores do you have, how many is it using
[18:58:58 CET] <darsain> TD-Linux: its 854x480, cpu: https://i.imgur.com/YRl8orX.png
[18:59:50 CET] <TD-Linux> on windows is each of those boxes a thread? it does look odd then. you will probably only get 2 cores being used
[19:00:39 CET] <TD-Linux> but I would expect to see two at 100% and the rest at 0.
[19:00:40 CET] <darsain> I assume each of those boxes is a core, since its a 4 core CPU, and there are 4 boxes :)
[19:00:51 CET] <TD-Linux> also I don't know what -movflags faststart does for webm, if anything, and what's the -c:v copy for
[19:00:54 CET] <TD-Linux> *-c copy
[19:00:59 CET] <furq> yeah windows' thread scheduling is weird like that
[19:01:24 CET] <furq> idk if it's actually the scheduler or just task manager lying
[19:01:35 CET] <darsain> -c copy is to set all streams to copy unless overriden by subsequent -c: commands. I got it from docs
[19:01:46 CET] <furq> yeah that's fine
[19:01:51 CET] <furq> movflags is only for mov/mp4 etc
[19:01:58 CET] <furq> it does nothing for webm
[19:02:03 CET] <darsain> k, I'll remove that
[19:02:13 CET] <furq> and you should apparently remove frame-parallel now
[19:03:06 CET] <furq> but yeah for 854*480 output you won't get more than two or three threads being used
[19:05:31 CET] <markvandenborre> darsain: I checked if it would be possible at all to do live 720p on somewhat reasonable hardware
[19:05:35 CET] <markvandenborre> the answer was no
[19:05:41 CET] <markvandenborre> vp9 I mean
[19:05:44 CET] <darsain> so it's encoding at 10 fps while using only 30% CPU and I can't speed it up?
[19:06:07 CET] <markvandenborre> it's improved considerably between versions
[19:06:07 CET] <darsain> is the encoder designed like that? so weird
[19:06:11 CET] <furq> yeah this is why i don't use libvpx
[19:06:29 CET] <furq> you can speed it up with -speed but you won't be able to increase the cpu utilisation
[19:06:29 CET] <darsain> is there any other alternative to encode into VP9?
[19:06:38 CET] <furq> there's a commercial encoder but idk how good that is
[19:06:43 CET] <markvandenborre> haven't read your entire thing darsain, but vp9 encoding has only gained somewhat decent multithreading
[19:06:48 CET] <markvandenborre> recently
[19:06:53 CET] <furq> it's not really decent
[19:06:53 CET] <markvandenborre> and it's not very efficient yet
[19:07:01 CET] <markvandenborre> furq: +1
[19:07:19 CET] <furq> it won't be decent until it gets frame multithreading
[19:07:30 CET] <TD-Linux> the problem is that most video sites implement threading at a higher level
[19:07:30 CET] <markvandenborre> darsain: ronald bultje helped build something
[19:07:32 CET] <furq> slice multithreading sucks for anything other than realtime
[19:07:45 CET] <TD-Linux> so no one is really motivated to add it to libvpx
[19:07:54 CET] <furq> it works for youtube because they're processing thousands of videos at a time, and they're the biggest user
[19:07:57 CET] <TD-Linux> and ffmpeg doesn't support chunk threading
[19:08:01 CET] <markvandenborre> https://blogs.gnome.org/rbultje/
[19:08:16 CET] <furq> and they don't encode the vp9 copy until after the initial processing is done anyway
[19:08:19 CET] <TD-Linux> furq, no actually yt does really care about the speed to first playback. but they split the video into GOP-sized chunks and encode each separately
[19:08:27 CET] <furq> the speed to first playback is h264 though
[19:08:29 CET] <TD-Linux> they do this for the H.264 encodes too
[19:08:55 CET] <furq> the speed to first vp9 playback is irrelevant if there's already an h264 stream ready to go
[19:09:12 CET] <furq> and i'm pretty sure they do that first and then do the vp9 encodes after a certain view count is hit
[19:11:31 CET] <furq> i guess chunk threading is at least better than slice threading though
[19:12:37 CET] <jkqxz> If you want fast VP9 encode you basically have to go with hardware, though that of course compromises on the quality of the result somewhat.
[19:14:48 CET] <darsain> damn. I wish h265 had a wider adoption. I'm quite all right with its results, and speeds are also decent. but can't use it if I can't play the video afterwards :/
[19:16:36 CET] <furq> x264 is still pretty good
[19:17:56 CET] <darsain> but 265/vp9 cut almost half off of the filesize
[19:20:58 CET] <TD-Linux> at some point I'm going to have to write my chunk threading software
[19:22:00 CET] <rjp421> do i still have to rebuild ffmpeg manually with librtmp like http://sinclairmediatech.com/building-ffmpeg-for-adobe-media-server-akamai-… for the adobe rtmp user auth support? or has that been included? cause im using the latest git nightly static binary on centos6 x64, and ffmpeg doesnt like my URI :(
[19:22:34 CET] <furq> the static builds have librtmp
[19:22:40 CET] <klaxa> TD-Linux: inspiration, starting point, place to look for design flaws maybe? https://github.com/klaxa/Distributed-encoding
[19:23:11 CET] <klaxa> wrote it a few years ago, it works generally (i think?) but it could use some polish and maybe even a general rewrite
[19:23:19 CET] <furq> surely the default port should be 31337
[19:23:52 CET] <klaxa> >python2
[19:23:57 CET] <klaxa> okay, definitely needs a rewrite
[19:24:17 CET] <furq> yeah you need to rewrite line 1 so it says #! /usr/bin/env python2
[19:24:24 CET] <furq> hth
[19:25:37 CET] <iive> can you put options there? For some reason I though that it doesn't work like this...
[19:25:52 CET] <furq> sure
[19:26:23 CET] <furq> you should use env for pretty much anything that's not /bin/sh
[19:26:50 CET] <c_14> You're allowed to put one option there. More than one is implementation defined.
[19:27:02 CET] <furq> http://vpaste.net/zQraf
[19:27:07 CET] <furq> because otherwise this will happen
[19:27:23 CET] <markvandenborre> jkqxz: do you have any info on hardware vp9 encoding using foss tools?
[19:27:39 CET] <rjp421> google shows this ffmpeg patch, but obviously it wasnt adopted? http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2013-January/058790.html :(
[19:27:43 CET] <markvandenborre> from my quite extensive research, I was under the impression that this was not possible
[19:27:55 CET] <furq> i don't think any consumer hardware supports it yet
[19:28:24 CET] <furq> although if it's anything like nvenc hevc, you might as well just use libvpx -speed 8 or whatever the fastest is
[19:30:04 CET] <TD-Linux> markvandenborre, yeah I think kaby lake will be the first intel chip with it
[19:30:21 CET] <furq> and yeah if you're going to buy new cpus, you might as well just buy cpus with enough grunt to do it in software
[19:30:58 CET] <markvandenborre> furq: :-)
[19:31:14 CET] <markvandenborre> nah, for now, we stayed with h264
[19:31:32 CET] <TD-Linux> I think in general a chunk encoder would pay well. but I am curious to see how the kaby lake encoder does
[19:31:33 CET] <markvandenborre> we have a budget to stay within...
[19:31:39 CET] <furq> is libvpx with -speed 8 still not fast enough
[19:31:58 CET] <furq> obviously you lose the bitrate benefit but it still satisfies the open-source requirement
[19:32:09 CET] <furq> or license-free, rather
[19:33:19 CET] <jkqxz> markvandenborre: The Kaby Lake VP9 encoder is already usable with the open-source VAAPI driver. There are some initial patches on the libav list <https://lists.libav.org/pipermail/libav-devel/2016-November/080821.html>; I'm intending to finish it off soon.
[19:33:48 CET] <furq> you can't buy kaby lake desktop cpus yet can you
[19:33:59 CET] <furq> although i guess it makes no difference if you only want the hw encoder
[19:34:15 CET] <jkqxz> Yeah, the laptop ones are identical for this purpose.
[19:34:25 CET] <furq> can you buy those yet if you're not an oem
[19:34:33 CET] <jkqxz> Yes, they've been out for a few months.
[19:35:28 CET] <markvandenborre> jkqxz: interesting, thank you for the info!
[19:35:51 CET] <furq> guess it's time to buy one of these then
[19:35:52 CET] <furq> https://www.youtube.com/watch?v=PjSThVKLbTo
[19:37:55 CET] <iive> rjp421: this is main in *-cvslog" maillist. patches are sent there when they are committed.
[19:38:03 CET] <iive> main/mail
[19:38:16 CET] <Andulien> Hello all, if I read right, this is the chat where one might be able to receive some support on ffmpeg questions.
[19:38:51 CET] <iive> Andulien: you can ask questions about ffmpeg. getting answers is ... definitely a posibility :D
[19:39:08 CET] Action: iive hides
[19:39:15 CET] <haroldp> trying to stream a 1280x720 webcam at a smaller size, but whatever I specify on the commandline (eg, -s 640x360), the video always seems to come out full size
[19:39:27 CET] <furq> haroldp: pastebin the full command line
[19:39:54 CET] <Andulien> Well let's try. I have ffmpeg installed on my Synology NAS for http streaming. Now the site has changed to https and as such I need to enable openssl and I don't know how.
[19:40:10 CET] <furq> you'd need to recompile
[19:40:20 CET] <haroldp> http://pastebin.com/AVJPuCFu
[19:40:21 CET] <furq> https://www.johnvansickle.com/ffmpeg/
[19:40:28 CET] <furq> or use those if there's one for the right arch
[19:41:10 CET] <furq> haroldp: you can't resize if you're copying the video stream
[19:41:30 CET] <furq> change -vcodec copy to -c:v lib264
[19:41:33 CET] <furq> change -vcodec copy to -c:v libx264
[19:42:16 CET] <Andulien> hmm.. ok, then I just need to figure out how to and what works for my Synology.
[19:42:22 CET] <haroldp> thanks.
[19:43:10 CET] <furq> Andulien: uname -m
[19:43:41 CET] <iive> c_14, furq : Do you have idea why "#!/bin/bash -c" doesn't work? i tried with --version and it did work, but -c causes delay and strange message...
[19:44:53 CET] <furq> bash -c expects the script as the next argument
[19:45:06 CET] <furq> i'm pretty sure the shebang pipes the script to stdin
[19:45:16 CET] <Andulien> armv5tel
[19:45:20 CET] <furq> it would be a nightmare if it passed it as an argument
[19:45:27 CET] <haroldp> hmmm, if I just drop -vcodec copy, it works (but looks awful). If I add "-c:v libx264", I can't connect with VLC anymore
[19:45:30 CET] <iive> furq: i suspected that
[19:45:39 CET] <furq> Andulien: i'm not sure any of those builds will work with armv5
[19:45:45 CET] <furq> you might have to build it yourself
[19:46:24 CET] <furq> also you probably want gnutls rather than openssl, building with openssl was a nightmare last time i tried
[19:46:37 CET] <furq> haroldp: the default codec for flv is flv1 or some other awful ancient codec
[19:47:11 CET] <furq> i have no idea why it wouldn't work with h264, i assume that's what your source is and you said it worked fine when you were copying
[19:48:06 CET] <haroldp> yeah, src is "Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 15 tbr, 90k tbn, 180k tbc"
[19:48:50 CET] <c_14> furq: Are you sure? Because then #!/usr/bin/awk -f shouldn't work
[19:50:38 CET] <markvandenborre> haroldp: I guess the -crf bit too is not very useful with -c copy
[19:51:01 CET] <haroldp> that is true.
[19:51:17 CET] <haroldp> I was trying various settings
[19:51:26 CET] <Andulien> ok that's what I feared... I'll try to reach out then to the creator of the ffmpeg package in the hope that there will be an update in the future :(
[19:51:37 CET] <c_14> furq, iive: it does get the filename (tested with #!/bin/echo)
[19:51:53 CET] <furq> yeah i guess it does pass the filename
[19:51:56 CET] <furq> that makes more sense
[19:52:22 CET] <Andulien> and there is no way to enable this in the pipe I use as an option?
[19:53:19 CET] <markvandenborre> Andulien: building yourself (which is not trivial, but not impossible either) or asking the packager of this ffmpeg package are the only options as far as I can see
[19:53:39 CET] <markvandenborre> you might glean useful hints from the source package behind your current binary install maybe?
[19:54:01 CET] <haroldp> aaaand now neither works, heh
[19:57:33 CET] <Andulien> ok thank you.
[19:58:27 CET] <Andulien> The strange thing is when I uninstall the package on my NAS the ffmpeg option is still there to use so it seems that ffmpeg also does not completely uninstall right? Maybe there might be more it as well uff.
[19:59:41 CET] <chandoo> hi
[20:01:03 CET] <chandoo> i created png from video file and i deleted before and after the image and left with images what i want, i want to create gif file out of the images, do i need to put them in sequence starting from 0000.png?
[20:01:17 CET] <chandoo> my sequence starts from 0022.png it is not taking
[20:01:45 CET] <chandoo> it says no file found
[20:03:48 CET] <c_14> -start_image
[20:03:50 CET] <c_14> iirc
[20:04:19 CET] <c_14> -start_number
[20:04:35 CET] <c_14> so in your case -start_number 22
[20:07:19 CET] <furq> Andulien: whereis ffmpeg
[20:08:02 CET] <Andulien> -sh: whereis: command not found
[20:08:24 CET] <furq> which ffmpeg
[20:23:21 CET] <Andulien> hmm seems to be another installation on
[20:23:23 CET] <Andulien> which ffmpeg /bin/ffmpeg
[20:24:36 CET] <Andulien> is there an easy way to remove?
[20:24:54 CET] <Andulien> maybe that's why it is not working, because it keeps referring to an older version?
[20:53:37 CET] <Andulien> so it seems on my NAS are two instances of ffmpeg installed. Is it possible to point in my pipe to a specific one or do I need to try to uninstall both and then have just one on the system?
[20:55:49 CET] <markvandenborre> Andulien: where is the other version of ffmpeg?
[20:56:12 CET] <markvandenborre> (apart from the /bin/ffmpeg)
[20:56:31 CET] <Andulien> Well I did a search:
[20:56:44 CET] <Andulien> find / -type d -name 'ffmpeg'
[20:58:12 CET] <markvandenborre> yes, so you found all directories named ffmpeg
[21:00:56 CET] <markvandenborre> ?
[21:03:44 CET] <markvandenborre> Andulien, the useful command was 'which ffmpeg'
[21:04:05 CET] <markvandenborre> that shows you the version of the executable 'ffmpeg' currently on your path
[21:04:24 CET] <markvandenborre> if you do a find, best to do at least a find / -type f -name 'ffmpeg'
[21:04:46 CET] <markvandenborre> and exclude /proc and other funky pseudo filesystems
[21:05:05 CET] <markvandenborre> though I'm not sure why you would want to do that
[21:05:36 CET] <markvandenborre> if you have trouble finding the executable, your only option really is to wait for an updated package from the mainainter of whatever distro is running on this synology
[21:06:14 CET] <markvandenborre> it's only when you've become quite a bit more fluent at *nix that building ffmpeg becomes an option
[21:06:53 CET] <Andulien> Well I'm guessing that Synology has it's own downsized ffmpeg package which is used for it's Video and Audio station. Additionally I have installed from the syno community an ffmpeg package that should have the ssl option enabled but it seems that ffmpeg is only pointing to the older package
[21:09:11 CET] <Andulien> ran your find and found the following
[21:11:09 CET] <Andulien> are those all different installs? Or just each grabbing their part. and is there a way when running pipe:// to use a specific one?
[21:18:56 CET] <ZexaronS> hello
[21:19:02 CET] <Andulien> chacka that was the solution....
[21:19:10 CET] <Andulien> I just had to point it to the right ffmpeg :D
[21:19:23 CET] <Andulien> Thanks for the help to troubleshoot it :D
[21:19:34 CET] <ZexaronS> I found VP9 encoding super slow and I have Intel 3820 at 3.6 GHZ quad core
[21:19:50 CET] <ZexaronS> so it's still kinda useless, I do all my YT downloads in WEBM now
[21:20:28 CET] <ZexaronS> I was kinda resisting to use webm over mp4 but I kinda got to the point It does seem to be up to 30% better saving cost compared to H264
[21:20:58 CET] <ZexaronS> So I'm still forced to do my own stuff in x264, it's not that much tho, a few vids here and there
[21:21:42 CET] <ZexaronS> I mentioned before how poor is the state of encoding industry, just because it's a niche doesn't mean it has to be totall shunned out
[21:22:00 CET] <JEEB> there's theoretical improvements and then there's actual encoders
[21:22:19 CET] <JEEB> like, VP9 is better than AVC, but libvpx as an encoder has some really bad issues
[21:22:34 CET] <ZexaronS> Does intel QuickSync do any improvement, since this is an older Sandy Bridge-E CPU without any iGPU ... maybe new Intels have better encoding support or some actual VP/H265 HW support ?
[21:22:54 CET] <ZexaronS> i mean VP9 there ...
[21:23:10 CET] <JEEB> and always remember that youtube is not really indicative of anything :P they have to drink their own kool-aid no matter what. and let's not forget that they never were about transcoding with quality in mind
[21:23:32 CET] <JEEB> and hardware encoders are hardware encoders, they might or might not match your use case
[21:23:47 CET] <JEEB> they are usually geared for low latency and being just fast enough
[21:24:14 CET] <ZexaronS> Youtube is very bad indeed, everything's ; I have a lot of experience with all kinds of DL utilities, but the ones that I settled for are CYS for Firefox addon and Chris PC Youtube Downloader, these two good ones have features I need and support DASH downloading
[21:24:18 CET] <JEEB> not good compression ratios or very high speeds
[21:24:33 CET] <JEEB> nobody told you about youtube-dl ? :P
[21:24:41 CET] <JEEB> which is a python-based command line tool
[21:24:43 CET] <ZexaronS> I think I heard it
[21:24:47 CET] <ZexaronS> But never got to it
[21:25:20 CET] <ZexaronS> So do you know the 2 I mentioned, does this phyton one have anything significantly better to offer ?
[21:25:42 CET] <ZexaronS> One thing would be to download a custom list of URLs with a pre-defined FMT code
[21:25:48 CET] <JEEB> no I do not, because all I need are the videos downloaded. it can download the DASH fragments and put them together with ffmpeg
[21:26:04 CET] <JEEB> and yes, it can list formats and download the ones you need - it even has rules I think
[21:26:06 CET] <ZexaronS> I have some stuff I'd like to get down at 360p Webm Dash i think the fmt is 245
[21:26:42 CET] <JEEB> anyways, yes - libvpx is slow as molasses (and has bad psychovisual optimizations and rate control)
[21:26:50 CET] <JEEB> talking about VP9 that is
[21:27:19 CET] <JEEB> although I think partially it might be because -threads 0 means -threads 1 @ libvpx, so you might want to put -threads XX after -i and see if that improves at all
[21:27:35 CET] <JEEB> where XX is some random number of threads you want the encoder to use
[21:28:01 CET] <ZexaronS> oh
[21:29:42 CET] <ZexaronS> also long videos sometimes have many hours of delay for webm conversion, only mp4, i thought it was a bug at first
[21:34:49 CET] <JEEB> well lol, not surprising :P
[21:35:08 CET] <ZexaronS> speaking of youtube weirdness, I really don't like the whole gui terminology of resolution, it means nothing at all, and most videos that don't even have the proper resolution just get encapsulated and only after you download them you see the true resolution with mediainfo
[21:35:10 CET] <JEEB> even with their encode-in-parts thing libvpx is much slower
[21:36:01 CET] <ZexaronS> the whole 480p 720p 1080p thing ... this is some marketing hdtv terminology that has little use for techical stuff
[21:36:16 CET] <rjp421> https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=723 if ffmpeg includes the rtmp user-auth patch, why cant it parse -f flv rtmp://user:pass@server/app/stream ? http://pastebin.com/raw/Wz2DwQtp i get "Problem accessing the DNS. (addr: user)"
[21:37:17 CET] <pbos> ZexaronS: Got any better terms?
[21:37:31 CET] <JEEB> rjp421: did you quote the argument properly? :P
[21:37:40 CET] <ZexaronS> this is like the words choice for youtube were there's ... as youtube targets the most support in codecs/audience, sites like twitch tv could be more suited for such terminology they could have a reason to limit broadcasters to these exact true 16:9 resolutions (divisable by 8)
[21:37:41 CET] <pbos> To play devil's advocate, with all the 720p and 1080p buzz I think those are more commonplace than anything else
[21:37:46 CET] <JEEB> ZexaronS: 1080p et al are actual resolutions tho :P
[21:37:53 CET] <ZexaronS> words .. i meant worst
[21:37:57 CET] <rjp421> JEEB, with single quotes, yes.. its in the paste
[21:38:05 CET] <JEEB> "2K" and "4K" is where stuff got bad
[21:38:21 CET] <JEEB> because 1920x1080 isn't 2K wide, and neither is 3840x2160 4K wide
[21:38:30 CET] <JEEB> marketing, ho
[21:38:30 CET] <ZexaronS> JEEB, it doesn't mean anything really, okay, I have here 1080p at 25 kb/s ... good luck
[21:38:37 CET] <ZexaronS> and 5 fps
[21:38:39 CET] <ZexaronS> hah
[21:38:44 CET] <JEEB> yeah, sure - it has nothing to do with the quality of a thing
[21:38:56 CET] <pbos> JEEB: 1920*1080/1000 is >=2k :|
[21:39:16 CET] <JEEB> it just tells you the resolution, which is what those numbers are supposed to tell you in height
[21:39:28 CET] <pbos> that'd make the other one 8k
[21:39:33 CET] <pbos> I know nothing
[21:39:53 CET] <ZexaronS> Because the wide public won't be respecting the HDTV bitrate standards, so why use HDTV monikers, it's very confusing and the actual quality is varies extremely
[21:40:24 CET] <pbos> ZexaronS: What do you propose? res@ssim?
[21:40:35 CET] <pbos> :)
[21:42:11 CET] <ZexaronS> Well, something else, actual bitrate along with the resolution would help, or some kind of GUI meter, like the signal meter on a phone, customized per resolution according to HDTV standard, if a 1080p video has below 1000 kb/s that would be pretty low red bar sign
[21:42:24 CET] <JEEB> "HDTV bit rate standards"
[21:42:25 CET] <JEEB> pfft
[21:42:34 CET] <JEEB> as if there are such things :P
[21:42:42 CET] <ZexaronS> well if they want to use hdtv resolutuon monikers
[21:42:57 CET] <ZexaronS> or get rid of them and show full resolution
[21:42:58 CET] <JEEB> there are maximum bit rates over buffer in video standards' levels
[21:43:31 CET] <rjp421> http://blog.mediacoderhq.com/h264-profiles-and-levels/
[21:43:40 CET] <kurufu> 1080p video of nothing happening would be just fine at <1000 kb/s
[21:43:51 CET] <JEEB> but that's just the maximum values for a decoder that says it supports that level
[21:44:06 CET] <DHE> There's also a summary on the wikipedia page for H264. easy to remember and find
[21:44:25 CET] <ZexaronS> JEEB, i mean broadcast standards, they do have bitrates defined
[21:44:29 CET] <ZexaronS> hdtv broadcast
[21:44:37 CET] <JEEB> ZexaronS: broadcast standards have maximum bandwidth limits
[21:44:49 CET] <JEEB> MAXIMUM that can be transferred
[21:44:52 CET] <JEEB> :P
[21:45:03 CET] <JEEB> be it DVB/ATSC/ISDB
[21:45:20 CET] <DHE> broadcast are inherently constrained by the frequency and QAM settings they are transmitted through. though historically they are wide enough to allow MPEG-2 based 1080i
[21:45:21 CET] <rjp421> ZexaronS, for reference https://support.google.com/youtube/answer/2853702 for yt live
[21:48:50 CET] <DHE> dealing with broadcast TV, can confirm bitrates are all over. loosely speaking some providers will up the bitrate for sports channels, but there's no strict rules
[21:49:27 CET] <ZexaronS> here's an example here from my isp http://pastebin.com/ctLQtpP2
[21:49:30 CET] <JEEB> yeah, you just have the maximum bandwidth for all of your muxes
[21:49:40 CET] <JEEB> and then you fit as many or as few as you want in there
[21:49:52 CET] <pbos> DHE: Not many samples, but I've seen extreme quantization in HDTV Sports
[21:50:18 CET] <ZexaronS> rjp421, yes I saw those, but are those Youtube's own or have some similarity to hdtv =
[21:50:19 CET] <pbos> Almost like the ball/handegg is a macroblock
[21:50:19 CET] <ZexaronS> ?
[21:51:02 CET] <DHE> pbos: no, I don't have a lot of samples either. and frankly people do horrible things like put interlaced SD through an upscaler to 720p and call it good
[21:51:06 CET] <rjp421> ZexaronS, not sure, but i assume they are targeting the standards
[21:51:11 CET] <ZexaronS> I just remember i saw once some broadcast papers and had some bitrates in, maybe just ITU recommendation
[21:51:13 CET] <pbos> DHE: Technically HD, right?
[21:51:27 CET] <DHE> pbos: sure, let's go with that. whatever helps them sleep at night
[21:51:38 CET] <JEEB> ZexaronS: all broadcast and video format specs usually mention maximum bandwidth over a buffer
[21:51:49 CET] <pbos> FWIW a lot of video chat apps switch over to HD before the bitrates on HD look better than VGA
[21:51:52 CET] <JEEB> that's the maximum and how you use your bandwidth is up to them :P
[21:51:56 CET] <ZexaronS> like 1080p at 8000 kb/s ... 720p at 4000 .... or maybe I read that on youtube
[21:52:08 CET] <rjp421> s/standards/most commonly supported formats/
[21:52:54 CET] <JEEB> for example tokyo MX used to have a single higher bit rate 1080i channel in its ISDB-T mux, but now it has a lower bit rate 1080i channel and the rest of the bits get used onto a separate 480i mux :P
[21:53:24 CET] <rjp421> i would expect youtube formatted shit to play on a smart tv etc
[21:53:45 CET] <ZexaronS> but MPEG-TS is still MPEG2 ?
[21:53:53 CET] <JEEB> container
[21:53:57 CET] <JEEB> vs video or audio format
[21:54:01 CET] <ZexaronS> ah sorry
[21:54:03 CET] <DHE> MPEG-TS is a container. it typically holds H264 or MPEG2, at least in the broadcast world
[21:54:06 CET] <JEEB> MPEG-2 Systems (H.222) contains MPEG-TS and MPEG-PS
[21:54:27 CET] <ZexaronS> I meant, yes, they moved from MPEG2 to MPEG4 maybe that's why they moved 1080i to lower bitrate ?
[21:54:35 CET] <JEEB> no
[21:54:35 CET] <pbos> Recommended rates make no sense if you don't include the codec
[21:54:43 CET] <ZexaronS> i mean AVC not MPEG-v4
[21:54:55 CET] <DHE> well, yes. 5.5 megabits of video in H264 is watchable
[21:55:20 CET] <DHE> and the industry calls it MPEG4 even though it's MPEG4-part10 (or H264 to most people)
[21:55:40 CET] <pbos> Also we're way skewed samples, maybe most people are fine with more quantization than us.
[21:56:00 CET] <JEEB> anyways, minimum rates really don't make much sense in the great scale of things. people would just stuff their streams if there were such requirements or something :P
[21:56:24 CET] <ZexaronS> DHE... a clusterfuck as always
[21:56:46 CET] <JEEB> you'd have to standardize a whole encoding chain and in that case you'd probably just want to use something else than a static minimum bit rate
[21:57:02 CET] <DHE> yeah, minimum rates are for people who have CBR issues. I avoid them and even raise the -qmin a little bit
[21:57:15 CET] <ZexaronS> But not that of a big deal, I'm more pissed at 16:9 taking over 16:10 in the PC industry
[21:59:10 CET] <rjp421> some devices are picky about the stream settings, be careful. for example yt says to have keyframes every 2 or 4s for best results... i prefer 24 fps with 48 gop
[21:59:53 CET] <ZexaronS> with MPEG-v4 i mean the "Visual" one, i see now it's MPEG4-Part2
[22:00:03 CET] <rjp421> using 25 or 29.97 or 30fps only gave a black video on ustream and playing back on android
[22:00:32 CET] <JEEB> yes, MPEG-4 Part 2 was the one where they let theoretical people have all the things they wanted to play with
[22:00:42 CET] <ZexaronS> But I'm pleased they're getting rid of uneven framerates in newer connector standards
[22:01:07 CET] <JEEB> hint: most features were not used in the end because they were overcomplicated and didn't actually bring the compression benefits
[22:02:32 CET] <ZexaronS> so VP9 is the answer to all these ITU/IEC weirdness ... I guess it makes sense now
[22:02:39 CET] <JEEB> wat
[22:02:57 CET] <JEEB> no, AVC was the thing that then improved on the previous stuff
[22:03:04 CET] <JEEB> because MPEG-4 Part 2 didn't work :P
[22:03:14 CET] <JEEB> (hint: you can see which formats ITU-T took in as well)
[22:03:19 CET] <ZexaronS> the EU borecraucy making "standards" on paper without actually having any programming skills to create an encoder
[22:03:27 CET] <JEEB> ...
[22:04:37 CET] <JEEB> ok, so let me set the stage a bit more correctly. HEVC standardization mailing list is open for everyone to register and even an idiot like me is on that list. their documents are all open.
[22:04:42 CET] <DHE> "oh they'll make hardware encoders and it won't be an issue" (I imagine someone said)
[22:04:45 CET] <ZexaronS> I was quite shocked when I found out that the H264 is only a specification on paper, without any code, and that x264 is just some 3rd-party group that made an encoder supposably more or less according to the specification
[22:04:56 CET] <DHE> ZexaronS: there is a reference decoder
[22:05:02 CET] <JEEB> there's a reference decoder and encoder
[22:05:07 CET] <JEEB> for both AVC And HEVC
[22:05:21 CET] <JEEB> how the hell else could they test their improvement theories!?
[22:05:42 CET] <ZexaronS> but then nobody uses the references in practise right ?
[22:05:43 CET] <JEEB> and how the hell do you think did they get their "this many % of theoretical improvements" (based on reference encoder results)
[22:06:04 CET] <JEEB> ZexaronS: well x265 for example is based on the reference encoder code, except it is made faster
[22:06:23 CET] <JEEB> (and it takes shortcuts of course in order to be faster)
[22:06:44 CET] <JEEB> and I bet quite a few other commercial HEVC encoders started off by forking HM
[22:07:12 CET] <ZexaronS> VP9 comment ... JEEB, I meant all the war between codecs it was widely reported
[22:07:16 CET] <ZexaronS> with google in the mix
[22:07:33 CET] <JEEB> but yes, the idea of a reference encoder and decoder package is to validate ideas, not to be production ready. if it is production ready, that's of course good - but it shouldn't be a requirement on a video format development thing
[22:07:38 CET] <ZexaronS> and with royalties
[22:07:57 CET] <JEEB> ZexaronS: let me get back to that. regarding "how bad the standardization stuff is".
[22:08:08 CET] <JEEB> because while JCT-VC mailing list and document archives are open
[22:08:14 CET] <JEEB> you know how Google did VP9?
[22:08:26 CET] <JEEB> behind closed doors and I don't think anyone could contribute from the outside
[22:08:51 CET] <JEEB> it also lacked a specification at all until like september, 2016
[22:09:05 CET] <JEEB> because that's when the google person at VDD said they had made one
[22:09:08 CET] <JEEB> and got applause
[22:09:58 CET] <JEEB> literally the only thing going for VP9 is that it's pretty much a slightly modified copy of HEVC and that el GOOG says it's royalty-free
[22:10:20 CET] <ZexaronS> Well, see this is the weird thinking, it's not required, well, the market will eventually, they produce a specification, then they say it's not required to be production ready, that's their own thing they made up, everyone's going to move to VP9 and for whom will they be creating an encoder for, if it's for profit, I guess not, I guess it's just a boondoggle to get some "scientific progress" to spend money in EU borecraucy so they
[22:10:20 CET] <ZexaronS> get taxpayer funding lol
[22:10:48 CET] <ZexaronS> or what
[22:11:16 CET] <ZexaronS> SO the whole opening up is because youtube/google wouldn't pay the royalty ?
[22:11:24 CET] <JEEB> no?
[22:12:18 CET] <ZexaronS> I meant to say, I didn't know HEVC is all open now, it supposed to be closed source right? --- but because YT wouldn't support it any other bailed out, they had to open it up, so is there still royalty now ?
[22:12:22 CET] <JEEB> no?
[22:12:33 CET] <JEEB> both AVC and HEVC are fully open source as far as the reference implementations go
[22:12:39 CET] <JEEB> and both AVC and HEVC are freely available specifications
[22:12:50 CET] <JEEB> also they always were
[22:13:43 CET] <ZexaronS> Maybe I was in another dimension some years ago, or maybe you don't remember the royalty war?
[22:13:44 CET] <JEEB> also royalties are a whole separate subject from the actual specs. MPEG-LA is completely separate from MPEG (part of ISO/IEC).
[22:14:17 CET] <JEEB> there was no royalty war, the latest royalty thing I remember was HEVC getting raped by some of the corporations that designed it
[22:14:23 CET] <pbos> open spec doesn't mean royalty free, but ianal
[22:14:30 CET] <JEEB> well, d'uh
[22:14:34 CET] <ZexaronS> Yes see how it's confusing, that's why I asked if google went on to make VP9 because of this weirdness from international organizations
[22:14:35 CET] <pbos> I believe hevc have multiple patent pools
[22:14:59 CET] <JEEB> pbos: three things which is what I mean with the whole rape business by the suits in the companies
[22:15:16 CET] <JEEB> there's MPEG-LA (reasonable'ish), HEVC Advance (lol bring me the pop corn) and Technicolor
[22:15:24 CET] <ZexaronS> VP9 slightly modified, how is that possible ... I guess because it's the specification it self was open?
[22:15:46 CET] <pbos> ZexaronS: vp9 isn't really based on hevc as far as I'm aware
[22:15:49 CET] <JEEB> ZexaronS: google went to make VP9 because they knew VP8 was a modified AVC and HEVC was being designed
[22:15:58 CET] <JEEB> so they needed a better format
[22:16:18 CET] <JEEB> pbos: I'm pretty darn sure they looked over the fence :P 64x64 blocks and all that other jazz.
[22:17:16 CET] <pbos> JEEB: larger block sizes when hdtv etc is getting more popular doesn't seem like a shocker to me
[22:17:55 CET] <pbos> also not sure if either vp9 or hevc were first with that, I wouldn't be surprised if academia touched it before
[22:17:56 CET] <JEEB> it's not a shocker, but just look at the VP9 design and there are plenty of similarities with some differences in implementation (sometimes just not to use something described in a related patent)
[22:18:07 CET] <ZexaronS> I'm thinking why doesn't some private company make their own codec and an encoder/decoder ready to use for production ... without this back and forth and with clear and simple terminology
[22:18:20 CET] <JEEB> oh companies have tried that
[22:18:31 CET] <JEEB> but usually they end up copying standard formats
[22:18:32 CET] <JEEB> badly
[22:18:46 CET] <JEEB> what do you think VP8 was if not On2's child :P
[22:18:55 CET] <JEEB> On2 was then bought by el GOOG
[22:19:52 CET] <JEEB> anyways, the net positive from the fact that HEVC got pretty much rolled into the dirt by some of its creators with regards to royalties is that we got the AOM thing
[22:20:19 CET] <JEEB> so at the very goddamn least we don't have the next-gen thing being developed by a single entity behind closed doors (hi Google!)
[22:20:57 CET] <JEEB> because with a single entity you have that single entity's business needs controlling the implementation and everything around it
[22:21:07 CET] <JEEB> you can see that with libvpx
[22:21:21 CET] <JEEB> rate control? youtube doesn't need it, goes out
[22:21:35 CET] <JEEB> psychovisual optimizations? not a priority
[22:21:53 CET] <JEEB> frame threading? we encode GOPs separately so not needed
[22:22:47 CET] <JEEB> one of the original people behind VP9 did make a closed source encoder for VP9 that seems better than libvpx, just to show that it's not the format
[22:23:05 CET] <JEEB> (and to of course try to make a living)
[22:23:47 CET] <JEEB> https://blogs.gnome.org/rbultje/2016/05/02/the-worlds-best-vp9-encoder-eve-…
[22:25:02 CET] <rjp421> JEEB, i found http://sinclairmediatech.com/building-ffmpeg-for-adobe-media-server-akamai-… and http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2013-January/058790.html im using the latest git nightly static binary on centos6 x64... is there some way to narrow down the cause? i tried installing librtmp and librtmp-devel, even though im using the static build, and it shouldnt matter..
[22:25:26 CET] <JEEB> rjp421: installing any external libraries most certainly won't help you :P
[22:26:46 CET] <rjp421> i was thinking maybe i had too old a version, or was missing it.. but that shouldnt matter using the static build, i thought
[22:26:57 CET] <ZexaronS> .. AOM? ... need to look that up
[22:27:32 CET] <JEEB> rjp421: are you sure you're providing it the authentication parameters correctly?
[22:27:36 CET] <pbos> ZexaronS: Alliance for Open Media
[22:27:52 CET] <JEEB> ^ a bit of a misnomer, but still a very good thing
[22:28:01 CET] <pbos> ZexaronS: Their effort is to make the nextgen codec a joint-effort one, it merges VP10, Thor and Daala efforts
[22:28:06 CET] <pbos> iirc it's based on VP10
[22:28:08 CET] <JEEB> yea
[22:28:15 CET] <JEEB> they forked the VP10 code base and are improving it
[22:28:23 CET] <ZexaronS> JEEB, wow, so VP9 isn't even meant for much only what youtube datacenters need
[22:28:23 CET] <pbos> adding ideas from Thor/Daala
[22:28:25 CET] <JEEB> or well, it became the current VP10 code base I guess?
[22:28:48 CET] <pbos> ZexaronS: We use it as a realtime codec in webrtc
[22:29:00 CET] <JEEB> thor was the thing that caught me by surprised, and the fact that cisco sent people over to VDD in '15
[22:29:11 CET] <JEEB> like, cisco sending actual video format people
[22:29:13 CET] <rjp421> JEEB, user/pass is valid atm for this testing.. and thats a cmd line i copies out of an old bash_history, where i know it was working (on the same os)
[22:29:31 CET] <rjp421> im not sure what else is different, that could cause this
[22:29:43 CET] <JEEB> so did you have your full command line log somewhere posted?
[22:30:05 CET] <pbos> ZexaronS: https://aomedia.googlesource.com/aom/ fwiw
[22:30:26 CET] <rjp421> JEEB, http://pastebin.com/raw/Wz2DwQtp
[22:30:27 CET] <ZexaronS> so AOM will support a codec that has varius niches in mind ?
[22:30:46 CET] <pbos> ZexaronS: Stakeholders for it have both realtime and YouTube in mind at least
[22:30:53 CET] <JEEB> well, dunno if niches, but at least its design and implementation is not controlled by a single entity
[22:30:55 CET] <ZexaronS> i mean, ... not purposelly denying some features to be at least somewhat good
[22:31:00 CET] <pbos> I'm not closer to it in terms of that.
[22:31:18 CET] <pbos> ZexaronS: I doubt that was done with VP9 either, prioritizations might have been different though
[22:31:28 CET] <pbos> you can't throw all features into a codec and prioritize everything
[22:31:33 CET] <pbos> assume good faith
[22:31:35 CET] <JEEB> libvpx is the thing that got most of the issues, not VP9
[22:31:44 CET] <JEEB> as the blog entry I linked noted
[22:32:04 CET] <JEEB> usually people have issues with libvpx, not the actual video format. the problem is that libvpx is pretty much the only VP9 encoder around.
[22:32:43 CET] <JEEB> and libpvx revolves around el goog of course. and what I'm happy about is that libaom revolves just a wee bit less around el goog, although el goog is still probably the biggest contributor
[22:33:04 CET] <ZexaronS> but youtube isn't using VPX right ?
[22:33:17 CET] <ZexaronS> ah revolves around them ..
[22:33:28 CET] <pbos> ZexaronS: YouTube uses libvpx
[22:33:31 CET] <iive> what else is there to encode vp9?
[22:33:32 CET] <ZexaronS> so it's only meant to work for youtube and what they need
[22:33:42 CET] <JEEB> iive: eve by BBB, but that's not out there
[22:33:45 CET] <ZexaronS> ah that really explains it now holy crap
[22:33:53 CET] <JEEB> business needs 101 :P
[22:33:58 CET] <pbos> ZexaronS: As does Chrome and Firefox, fwiw.
[22:34:25 CET] <JEEB> if you don't need XYZ for business, it's not gonna get done unless there's free time and no bigger priorities
[22:34:37 CET] <ZexaronS> Why don't we, FFMPEG people come up with something of our own then ...
[22:34:52 CET] <JEEB> BBB did, but since he wants to make a living out of it it's closed source :P
[22:35:00 CET] <JEEB> (it's the thing I linked)
[22:35:23 CET] <ZexaronS> where, i was in batroom in the middle ...
[22:35:32 CET] <JEEB> just scroll up :P
[22:35:43 CET] <JEEB> the blogs.gnome.org one
[22:35:52 CET] <ZexaronS> but it's not that, it's that Hexchat doesn't highlight urls
[22:36:04 CET] <JEEB> just ctrl+F then
[22:36:06 CET] <JEEB> xchat had that
[22:36:17 CET] <JEEB> and hexchat is a fork of that :P
[22:36:23 CET] <ZexaronS> Ronald guy?
[22:36:26 CET] <JEEB> urd
[22:36:28 CET] <JEEB> yes
[22:37:15 CET] <JEEB> rjp421: well the best I can tell you is that you could try doing the same with -v debug
[22:37:25 CET] <JEEB> it will spam you a lot more but you should get a bunch more logging
[22:37:41 CET] <rjp421> ty, ill give it a shot
[22:53:23 CET] <rjp421> JEEB, can i output this to a file? or even better, along with the colors so its easier to follow
[22:55:25 CET] <JEEB> "2> ffmpeg.log" at the end
[22:55:37 CET] <rjp421> ty again
[22:55:42 CET] <JEEB> that redirects stderr (which is where ffmpeg cli outputs) to a file
[23:05:52 CET] <rjp421> JEEB, 3.2MB txt :( https://media.whohacked.me/files/ffmpeg-rtmpauth.log
[23:06:32 CET] <JEEB> wow, the rtmp demuxer sure is verbose
[23:06:40 CET] <JEEB> might want to use a file as input for testing purposes
[23:07:25 CET] <rjp421> everything was green except for the "Problem accessing the DNS. (addr: user)"
[23:07:29 CET] <rjp421> ok, will do
[23:07:58 CET] <JEEB> see the parsed protocol, host and app thing :P
[23:14:31 CET] <ZexaronS> Found out I forgot to add moovatom faststart for all my encodes for the last ... year or so ... gah
[23:15:19 CET] <ZexaronS> can moovatom be added ontop without reencoding ?
[23:19:46 CET] <JEEB> ZexaronS: it's there already :P just at the end. and yes, you can do -movflags faststart with a -c copy run
[23:21:19 CET] <salviadud> Hi there, I'm having trouble with ffmpeg right now...
[23:21:32 CET] <salviadud> It complains about broken ffmpeg default settings detected
[23:21:58 CET] <ZexaronS> cool thanks
[23:22:04 CET] <salviadud> error while opnening codec for output stream #0.0 - maybe incorrect paramters such as bit_rate, rate, width or height
[23:22:36 CET] <salviadud> codec rate differs from container framte rate
[23:22:45 CET] <salviadud> frame *
[23:23:42 CET] <salviadud> How do I create a preset?
[23:23:49 CET] <salviadud> for libx264?
[23:25:07 CET] <ZexaronS> emm, container's framerate, i don't think that exists
[23:25:39 CET] <salviadud> dam
[23:25:46 CET] <salviadud> I'm screwed I guess
[23:26:04 CET] <ZexaronS> just post the details of your command
[23:26:11 CET] <ZexaronS> what OS are you working with
[23:26:18 CET] <salviadud> it's slackware
[23:26:23 CET] <salviadud> an old linux machine
[23:26:44 CET] <ZexaronS> Well, I have no idea if ffmpeg will even run over there, sorry I'm a Windows guy
[23:26:44 CET] <salviadud> It's not connected to my network right now
[23:26:58 CET] <ZexaronS> It doesnt need any network tho
[23:27:08 CET] <salviadud> for me to post the command
[23:27:14 CET] <salviadud> it be easier for me to connect to it
[23:27:22 CET] <ZexaronS> how can you chat here?
[23:27:26 CET] <salviadud> well, I'm gonna try something different...
[23:27:34 CET] <salviadud> I'm not chatting via that computer
[23:28:09 CET] <kepstin> if you're getting that 'broken ffmpeg default settings detected' message, it usually means your ffmpeg is out of date
[23:28:26 CET] <kepstin> but if you could get actual copy/paste of the command line and the output, that would make it easier to help
[23:28:46 CET] <salviadud> It is actually
[23:28:53 CET] <salviadud> ffmpeg version 5
[23:29:08 CET] <salviadud> I might just need to compile an older version of h264 then
[23:29:29 CET] <kepstin> well, that won't fix the fact that you're using broken ffmpeg default settings - it just won't complain about them
[23:29:45 CET] <salviadud> good enough for me, hehe
[23:29:59 CET] <kepstin> you should probably just try getting a static ffmpeg build of a newer version, and use that
[23:30:46 CET] <salviadud> I'm trying out something that worked back in 2009
[23:31:00 CET] <salviadud> I guess libx264 got too advanced
[23:31:15 CET] <ZexaronS> the syntax has changed in ffmpeg since yes
[23:31:25 CET] <ZexaronS> bt I kinda wasn't much of a user back then
[23:31:37 CET] <ZexaronS> unfortunately documentation is all outdated
[23:31:57 CET] <salviadud> Maybe I'll get lucky
[23:32:08 CET] <salviadud> I was trying x264 from 2016
[23:32:14 CET] <salviadud> I'm gonna go 2011
[23:33:58 CET] <salviadud> fails just the same...
[23:33:59 CET] <salviadud> grrr
[23:49:49 CET] <leibnizzle> Anyone know of any studies on the burstiness of bit errors over (non-wireless) IP?
[00:00:00 CET] --- Fri Dec 30 2016
1
0
[00:09:12 CET] <kierank> durandal_1707: can you help me find VLCs in binary?
[00:11:10 CET] <durandal_1707> sure . sleeping now. send email with binary and specification
[00:13:06 CET] <kierank> ok maybe bug found
[00:13:08 CET] <kierank> thanks
[00:32:39 CET] <iive> nevcairiel: compiler should be using cmov, when using march that supports it.
[00:32:50 CET] <nevcairiel> compilers arent always smart
[00:33:36 CET] <iive> they better be, for the cpu power they are wasting :D
[00:39:24 CET] <llogan> kierank: want me to retweet that?
[00:39:30 CET] <kierank> llogan: yes please :)
[00:40:24 CET] <ubitux> https://godbolt.org/g/dD86ee
[00:40:54 CET] <ubitux> i see some cmov here, but i guess you're talking about another implementation? :p
[00:51:54 CET] <nevcairiel> shorter then https://godbolt.org/g/SV5JgX :p
[00:52:50 CET] <nevcairiel> inline asm seems to generate a whole lot of boilerplate around it
[00:53:29 CET] <nevcairiel> oh adding O2 makes it nicer
[00:53:46 CET] <nevcairiel> silly default
[00:55:22 CET] <nevcairiel> clang actually uses more cmov and makes it branchless
[01:30:10 CET] <kierank> what does this mean
[01:30:10 CET] <kierank> Input stream #0:0 frame changed from size:1920x1088 fmt:yuv422p10le to size:1920x1080 fmt:yuv422p10le
[01:30:10 CET] <kierank> Output pad "default" with type video of the filter instance "Parsed_null_0" of null not connected to any destination
[01:30:10 CET] <kierank> Error reinitializing filters!
[01:30:10 CET] <kierank> Conversion failed!
[01:38:43 CET] <llogan> how did you get that?
[01:40:05 CET] <kierank> In the decoder I am writing:
[01:40:05 CET] <kierank> ./ffmpeg_g -threads 1 -i A003C002_SR_Lite_23.98p.mxf -f rawvideo -y /dev/null
[01:40:22 CET] <kierank> seems to be reading 1920x1088 from the container perhaps
[01:40:23 CET] <kierank> not sure
[01:47:22 CET] <kierank> michaelni: do you know why this is the case?
[01:47:23 CET] <kierank> FF_ALLOCZ_OR_GOTO(s->avctx, s->blocks, 64 * 12 * 2 * sizeof(int16_t), fail)
[01:47:32 CET] <kierank> is there already an mpegvideo codec that is doing 10-bit?
[02:11:35 CET] <iive> kierank: 12 is for yuv444
[02:13:17 CET] <iive> but indeed i don't know what the *2 is about.
[02:25:14 CET] <michaelni> kierank, i think the encoder uses the 2nd set
[02:26:09 CET] <kierank> michaelni: can a 10-bit decoder can use it?
[02:27:26 CET] <kierank> also where are the mpeg-4 dcts setup?
[02:28:03 CET] <kierank> oh mpv_decode_mb_internal perhaps
[02:29:35 CET] <michaelni> a 10 in 32bit decoder can maybe use it
[02:33:28 CET] <kierank> michaelni: any idea what this is?
[02:33:28 CET] <kierank> Input stream #0:0 frame changed from size:1920x1088 fmt:yuv422p10le to size:1920x1080 fmt:yuv422p10le
[02:34:00 CET] <kierank> why the hell does it care about 1920x1088 from the container
[02:34:01 CET] <kierank> Output pad "default" with type video of the filter instance "Parsed_null_0" of null not connected to any destination
[02:35:28 CET] <kierank> there's so much magic code in mpegvideo
[02:44:06 CET] <kierank> commenting out the codecpar crap in mxfdec stops the first error
[02:44:09 CET] <kierank> now to deal with this
[02:44:09 CET] <kierank> Output pad "default" with type video of the filter instance "Parsed_null_0" of null not connected to any destination
[02:44:56 CET] <nevcairiel> the first is no error, it just informs you if something changes
[02:45:27 CET] <nevcairiel> if it doesnt stop the second from happening, then you might as well just leave it
[02:45:57 CET] <kierank> I didn't know that
[04:29:49 CET] <kierank> michaelni: what does the -1U mean in ff_init_block_index
[04:29:50 CET] <kierank> s->dest[0] = s->current_picture.f->data[0] + (int)((s->mb_x - 1U) << mb_width);
[04:29:50 CET] <kierank> s->dest[1] = s->current_picture.f->data[1] + (int)((s->mb_x - 1U) << (mb_width - s->chroma_x_shift));
[04:29:50 CET] <kierank> s->dest[2] = s->current_picture.f->data[2] + (int)((s->mb_x - 1U) << (mb_width - s->chroma_x_shift));
[04:31:41 CET] <kierank> atomnuker: any idea what's causing this? https://usercontent.irccloud-cdn.com/file/YTZ9723B/frame000000.bmp
[04:31:43 CET] <kierank> the transform or the coefficients?
[04:31:55 CET] <kierank> durandal_1707: also ping when you are awake
[04:45:27 CET] <kierank> hmm dc coefficients look ok
[04:45:31 CET] <kierank> must be something wrong with AC
[04:47:45 CET] <atomnuker> yep, it's the ac
[04:48:43 CET] <kierank> https://usercontent.irccloud-cdn.com/file/u9sSbQg9/dc.bmp
[04:48:45 CET] <kierank> atomnuker: dc coeffs ^
[04:48:52 CET] <kierank> atomnuker: does that imply that the idct scaling is ok?
[05:24:03 CET] <atomnuker> yep, dc looks fine
[05:24:17 CET] <kierank> crap
[05:24:24 CET] <kierank> so close yet so far
[06:34:56 CET] Action: kierank loses the will to live
[09:14:35 CET] <atomnuker> seriously, why a linked list?
[09:16:10 CET] <atomnuker> I don't think I've ever had to use a linked list in any of my programs ever (except in an octree structure, but that only went one way)
[09:17:03 CET] <atomnuker> is that something only people who had formal education in computer science do?
[09:34:19 CET] <durandal_1707> atomnuker: what?
[09:34:30 CET] <durandal_1707> kierank: pong
[09:34:40 CET] <atomnuker> durandal_1707: the mjpegenc patch on the ML
[10:23:13 CET] <ubitux> atomnuker: it's very common to promote linked list in formal CS, it's often presented with only advantages over arrays (even speed)
[10:25:55 CET] <nevcairiel> its more common in object oriented languages though, where fancy language features make it far easier to access elements in them
[10:26:57 CET] <nevcairiel> and if you have huge individual elements but an uncontrolled amount of them, its probably better then reallocing an array
[10:28:38 CET] <atomnuker> no wonder CS people scream null pointer dereferences are the number one source of crashes when they use C, they dug themselves into this hole
[10:29:13 CET] <atomnuker> linked lists won't be faster than an array if all you do is you loop over the elements sequentially
[10:29:50 CET] <atomnuker> its an extra dereference to get the next address rather than just an add
[10:35:09 CET] <JEEB> yup
[10:35:51 CET] <JEEB> "- use of ++var instead of var++. this is not a c++ project." <- also, did C++ do something fancy with pre-addition?
[10:36:20 CET] <JEEB> I remember people saying there was some "possible optimization" with ++var but I don't think it was C++ specific
[10:36:21 CET] <nevcairiel> there are some reasons to use ++var in c++ on dumb compilers, but any decent compiler just optimizes that away
[10:39:42 CET] <nevcairiel> personally i just find it ugly
[10:39:43 CET] <nevcairiel> :D
[10:41:13 CET] <JEEB> yes, that it is
[10:48:45 CET] <cone-380> ffmpeg 03Burt P 07master:f31708002464: af_hdcd: more FATE tests
[12:50:57 CET] <michaelni> kierank, the -1U subtracts 1, the U is needed to avoid some undefined behavior with the shift
[14:44:14 CET] <kierank> michaelni: yes, why subtract 1
[14:58:31 CET] <michaelni> so its correct after ff_update_block_index(), and it was faster this way than in some other order of operations
[16:05:24 CET] <cone-380> ffmpeg 03Thomas Turner 07master:d7a3c7427f95: avutil/tests/audio_fifo.c: Corrected test error messages
[16:05:25 CET] <cone-380> ffmpeg 03Michael Bradshaw 07master:616513ef6e6d: avcodec/libopenjpegdec: Set key frame metadata
[16:19:11 CET] <cone-380> ffmpeg 03Jan Sebechlebsky 07master:7c91ee01cc8b: libavformat/tee: Add fifo support for tee
[17:04:16 CET] <cone-380> ffmpeg 03Paul B Mahol 07master:49abd5dbb8d1: avfilter/avf_aphasemeter: make video output optional
[17:48:24 CET] <kierank> michaelni: i have problems with the idct writing before the allocated buffer, that's why i ask
[17:49:15 CET] <kierank> BBB: ping
[17:49:23 CET] <BBB> pong
[17:51:12 CET] <kierank> BBB: so I've tried with some success getting the 10-bit dct into mpegvideo, but the picture looks ok-ish but weird. With only the dc coefficients the picture looks like I would expect. Do you have any suggestions about how to debug AC?
[17:51:31 CET] <kierank> dc https://usercontent.irccloud-cdn.com/file/U4l7FE9d/dc.png
[17:52:36 CET] <kierank> also the idct writes before the allocated buffer
[17:53:37 CET] <kierank> I suspect this is mpegvideo.c madness though
[17:54:47 CET] <BBB> the white/black patches look like near-infinite dc values in some frequency
[17:55:00 CET] <BBB> assuming the input coefficients are reasonable, Id assume that means theres an overflow somewhere
[17:55:09 CET] <BBB> probably intermediates not being wide enough somewhere
[17:55:16 CET] <BBB> (try sanitize=integer)
[17:55:52 CET] <BBB> easiest way to debug this is to take one of these blocks and print out coefficients in a 8x8 array (right?) and then print out the 8x8 residual, compare that to a standard matrix float 8x8 idct and see whats different and why
[17:56:10 CET] <BBB> maybe write a checkasm function to do that with synthetic input using only 1 or 2 dc values
[17:56:19 CET] <BBB> and then go from there
[17:56:24 CET] <kierank> it's intra without any prediction so no residual but yes, 8x8
[17:56:45 CET] <BBB> residual is literally diff[]=idct(coeff)
[17:56:58 CET] <kierank> yeah
[17:57:00 CET] <kierank> michaelni: s->dest[0] = s->current_picture.f->data[0] + (int)((s->mb_x - 1U) << mb_width);
[17:57:17 CET] <kierank> when s->mb_x = 0 what happens?
[17:57:35 CET] <BBB> if you can give a coeff[8x8] and diff[8x8] and compare that to a float matrix idct we can start from there
[17:57:47 CET] <kierank> BBB: I will fix these mpegvideo segfaults first
[17:57:55 CET] <BBB> okiedokie
[17:58:06 CET] <kierank> mpegvideo has been most of my problems implementing this...
[17:58:17 CET] <kierank> ah I can use a float dct, that's a good point
[18:01:24 CET] <kierank> michaelni: yes, that line is definitely causing the segfault for me
[18:08:04 CET] <kierank> frame start 0x114b0080 write location 0x114b0060
[18:13:30 CET] <michaelni> maybe you dont do the equivalent of ff_update_block_index()
[18:14:13 CET] <kierank> as far as I can tell it's done in h263
[18:14:49 CET] <michaelni> "mb_width" is correct for 10bit ?
[18:15:10 CET] <michaelni> block_size in ff_update_block_index()
[18:15:25 CET] <kierank> - const int mb_size= 4 - s->avctx->lowres;
[18:15:25 CET] <kierank> + const int mb_width= 5 - s->avctx->lowres;
[18:15:25 CET] <kierank> + const int mb_height= 4 - s->avctx->lowres;
[18:16:09 CET] <kierank> I believe i've handled all the width = height assumptions
[18:18:30 CET] <durandal_1707> adding big structures into Ida makes it very slow
[18:19:39 CET] <kierank> michaelni: http://pastebin.com/5N9fhKLh
[18:19:43 CET] <kierank> those are my current mpegvideo.c changes
[18:19:52 CET] <kierank> mainly removing inter for now
[18:19:57 CET] <kierank> for ease of reading
[18:20:13 CET] <kierank> and dealing with the two cases where width is assumed = to height
[18:23:46 CET] <kierank> forcing 1920x1088 for now seems to shut valgrind up
[18:24:03 CET] <kierank> oh maybe not
[18:24:06 CET] <kierank> just doesn't segfault...
[18:38:33 CET] <mjbshaw> I'm making a video filter source for ffmpeg. I see the width/height need to be set in AVFilterPad.config_props. The width and height of my video source is dynamic and may change from frame to frame. Is that problematic? Does the frame size change need to be signaled at all?
[18:40:03 CET] <nevcairiel> dynamic reconfig is one of the silly areas of avfilter, its not supported well, there is somewhere a whitelist of filters known to handle it, iirc
[18:48:20 CET] <durandal_1707> mjbshaw: why would it change from frame to frame?
[18:48:35 CET] <kierank> durandal_1707: why not
[18:53:39 CET] <mjbshaw> durandal_1707: The video frame is dynamically generated based on some user-specified rules. I plan on using heuristics to estimate the initial size of the output frames and will try to adhere to the estimated size, but some frames just might require a larger size to avoid information loss.
[18:54:36 CET] <mjbshaw> nevcairiel: Thanks for that info. I think I'll try following buffersrc.c's behavior and permit frame size changes but log an INFO message.
[18:55:11 CET] <nevcairiel> you can probably do it but expect scale filters to show up in many cases to "fix" it =p
[19:01:00 CET] <BBB> nevcairiel: want to help a user get msvc 64bit working?
[19:02:01 CET] <BBB> I was just called a n00b by someone who says its theoretically impossible to compile ffmpeg on msvc/64bit
[19:02:26 CET] <nevcairiel> and you then want to help them? seems odd
[19:02:32 CET] <BBB> good point
[19:06:12 CET] <BBB> stackoverflow is interesting that way; I just stumbled on a question which is more popular: cabac or cavlc
[19:06:17 CET] <BBB> which would be an interesting question
[19:06:53 CET] <BBB> but the question is about an already-encoded video that he doesnt want to modify, he just wants to overlay a watermark and then encode only the watermark in cavlc/cabac (again, without re-coding the source)
[19:06:55 CET] <nevcairiel> cabac probably, you only use cavlc if you are very concerned about performance I wager
[19:07:00 CET] <BBB> o_O
[19:13:45 CET] <nevcairiel> i see similar questions like that all the time, I want to somehow process a h264 video in its encoded form
[19:13:49 CET] <nevcairiel> seems like a very crazy idea
[19:19:49 CET] <cone-380> ffmpeg 03Michael Niedermayer 07master:a830ab3f3b1d: ffmpeg: remove stop_encoding variable and related code, it is dead / unused code
[19:50:54 CET] <jkqxz> ~.
[23:16:18 CET] <kierank> BBB: does that look sane http://pastebin.com/yYf6CzwQ
[23:17:06 CET] <kierank> the dct coeffs are already zigzagged
[23:17:07 CET] <BBB> not really
[23:17:24 CET] <BBB> the coeff array looks sane
[23:17:28 CET] <BBB> the idcted residual doesn't
[23:18:28 CET] <BBB> I mean, theres a lot of zeroes, which suggests overflows& the concentration of zeroes in line 4 and 5 is also veyr suspicious
[23:18:51 CET] <kierank> would explain the black patterns I get
[23:19:29 CET] <BBB> I would say that horizontally, the data is essentially mirrored
[23:19:41 CET] <BBB> look at line 1: imagine a divider in position 5
[23:19:46 CET] <BBB> left is 219, right is 220
[23:19:50 CET] <BBB> one step, both 117
[23:19:54 CET] <BBB> one step, 119/118
[23:19:59 CET] <BBB> one step, 662/659
[23:20:05 CET] <BBB> same is true for all following lines
[23:20:14 CET] <BBB> I dont think thats right
[23:20:42 CET] Action: kierank tries with only one AC coefficient
[23:22:30 CET] <BBB> can you give the intermediates after the first 1d idct also? if thats not a ton of trouble
[23:23:05 CET] <kierank> http://pastebin.com/SGyWFnm7
[23:23:08 CET] <kierank> that's one ac coefficient
[23:23:33 CET] <BBB> yeah that makes sense
[23:23:41 CET] <BBB> and if you do the ac in the other direction? same?
[23:23:49 CET] <BBB> (but vertically)
[23:26:14 CET] <kierank> one sec, that's a bit more fiddly to memset
[23:28:57 CET] <kierank> BBB: http://pastebin.com/eNpbcetG
[23:29:18 CET] <BBB> still looks good
[23:30:07 CET] <BBB> I dont know if you can run this on a complete picture, but this should visibly improve the picture relative to the dc-only case
[23:30:37 CET] <BBB> I guess at this point itd make sense to try the 2x2 and 4x4 topleft coefficients non-zero, and zero the rest, and see what happens
[23:31:06 CET] <BBB> if the picture shows artifacts with the 1-ac coefficient (whereas the dc-only looked fine), then maybe we need to look at something else :/
[23:31:18 CET] <kierank> yes I thought the dc looked better throughout
[23:31:25 CET] <kierank> but let me get some pictures
[23:33:54 CET] <kierank> https://usercontent.irccloud-cdn.com/file/xHjD3nu1/dc_singleblock.png
[23:34:20 CET] <BBB> whats the blackness?
[23:36:39 CET] <kierank> I only did one 8x8 block in case I got something wrong in my mpegvideo.c hacking and were overlapping
[23:39:14 CET] <BBB> I mean, the dc_singleblock.png looks like a mosaic tile of (obviously) dc blocks on an otherwise black background, but only ever 2nd block hor/ver is actually drawn (so 25% of total), is that intended?
[23:51:09 CET] <BBB> brb - gotta run home
[00:00:00 CET] --- Thu Dec 29 2016
1
0
[00:00:40 CET] <__raven__> does anyone know why yadif produces colour artifacts in the examples?
[00:02:29 CET] <pbos> __raven__: yadif is not a perfect filter
[00:02:39 CET] <pbos> fwiw you can expect artefacts, especially from realtime filters
[00:03:48 CET] <__raven__> from visual point of view yadif would be acceptable if it would not add some more problems to the image
[00:04:52 CET] <__raven__> it seems like magenta and cyan components so might i get some issues with subsampling here?
[00:05:10 CET] <pbos> probably the U,V components of your input
[00:05:16 CET] <__raven__> yes
[00:05:35 CET] <pbos> assuming you're not doing RGB video which would be baller
[00:05:57 CET] <__raven__> ingest is yuv422p at the moment
[00:06:39 CET] <pbos> no idea how this is stored on tapes, but you could also consider converting to RBG to see if the filter behaves differently
[00:06:49 CET] <pbos> it's also possible that yadif doesn't support rgb
[00:07:01 CET] <pbos> but I'd not be surprised if you have bleeding
[00:07:28 CET] <__raven__> pbos: i think vhs is capable of something like 4.1.1 but i thought it would be better to do kind of oversampling due to analogue ways
[00:08:32 CET] <furq> there's no harm using 4:2:2
[00:12:23 CET] <pbos> Don't think your codec supports 4:1:1 either way
[00:13:12 CET] <pbos> __raven__: Try the slow filter, and see if it's cool
[00:13:15 CET] <pbos> w/r/t bleeding
[00:38:52 CET] <pbos> __raven__: This is tricky because it's a tricky problem, you're generating data out of thin air by interpolating between frames
[00:38:54 CET] <pbos> FWIW
[00:53:46 CET] <__raven__> yes thats why i do not want to do any real processing and are looking for a bob like method with doubled lines and bobbing filter :/
[01:00:59 CET] <pbos> __raven__: Any reason why you're satisfied/OK with the artifacts that generates but not the color bleed?
[01:02:23 CET] <__raven__> i am not but i have to accept that mpeg will reduce structure information but those are not as visible as the seen colour problems
[01:03:00 CET] <pbos> Did you try the slow filters furq mentioned?
[01:06:55 CET] <__raven__> pbos: i tried pp=fd preset and wd3fdif but i think the results are even more worse due to wrong interpolated movement
[01:12:31 CET] <furq> nnedi is the filter i mentioned
[01:14:44 CET] <__raven__> nnedi similar to w3fdif
[01:44:15 CET] <koldbrutality> does ffmpeg support mpeg dash with the lastest code?
[01:44:24 CET] <koldbrutality> i mean with ffplay
[01:50:32 CET] <jcath> friends, with avs script as input to ffmpeg, it read as raw video and cant detect the field dominance info, how i may force ffmpeg assume input as TFF or BFF ?thanks
[01:55:36 CET] <furq> jcath: https://ffmpeg.org/ffmpeg-filters.html#setfield-1
[01:58:34 CET] <jcath> furq: thanks:)
[02:49:02 CET] <fahadash> I have 10 .MOV files by the names 1.MOV, 2.MOV, 3.MOV, I would like to remove audio from all and save them as n_an.MOV where n is the file name. Before I write a bash script to do it, is there any ffmpeg way of doing it?
[02:49:53 CET] <c_14> Not without using an external scripting language
[02:50:02 CET] <klaxa> it's a one-liner really though
[02:50:04 CET] <fahadash> Thanks
[03:12:32 CET] <Modern13> what container supports x264/aac other than mp4/mkv/flv
[03:12:40 CET] <c_14> nut
[03:12:48 CET] <c_14> mpeg-ts?
[03:12:48 CET] <Modern13> c_14 huh
[03:13:02 CET] <Modern13> does ffmpeg support muxing to ts container?
[03:13:10 CET] <c_14> sure
[03:13:19 CET] <Modern13> thanks
[03:13:25 CET] <c_14> yep, mpeg-ts works
[03:13:29 CET] <Modern13> what about .mov
[03:13:35 CET] <c_14> yep
[03:13:54 CET] <c_14> afaik mov supports a superset of what .mp4 supports
[03:15:03 CET] <Modern13> i jsut did .ts muxing its plays audio but not video
[03:15:14 CET] <c_14> .avi should work as well
[03:15:15 CET] <Modern13> are you sure .ts support x264
[03:15:25 CET] <c_14> works here
[03:15:27 CET] <c_14> What player?
[03:15:40 CET] <Modern13> okay let me try other players
[03:17:19 CET] <Modern13> doesn't work with mpc or vlc
[03:17:29 CET] <furq> it works fine with mpc
[03:18:02 CET] <furq> and i'm pretty sure it works with vlc
[03:18:15 CET] <furq> i don't have it installed but i've definitely watched streams in vlc which were h264 in ts
[03:19:03 CET] <c_14> Well, isn't that basically all hls?
[03:19:20 CET] <furq> i meant over rtsp, but yeah
[03:19:31 CET] <furq> h264 in ts is incredibly commonplace
[03:22:56 CET] <Modern13> wow i muxed to avi and it works
[03:23:04 CET] <Modern13> avi support x264 and aac ?
[03:23:08 CET] <Modern13> i didn't nkow
[03:26:38 CET] <Modern13> if avi support h264/aac , why don't people use avi on them
[03:31:37 CET] <c_14> Because avi is a terrible old container and everybody tries to forget it ever existed
[03:32:21 CET] <Modern13> how is avi terrible
[03:32:25 CET] <Modern13> it works
[03:32:26 CET] <Modern13> fine
[03:35:31 CET] <c_14> lots of hacks
[03:41:30 CET] <Modern13> [avi @ 00000000025f7600] H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)
[03:41:31 CET] <Modern13> av_interleaved_write_frame(): Invalid data found when processing input
[03:42:16 CET] <Modern13> what does -bsf:v h264_mp4toannexb do
[03:43:30 CET] <c_14> There's several ways to pack H.264 NAL packets
[03:43:33 CET] <c_14> AnnexB is one way
[03:43:36 CET] <c_14> mp4 uses a different one
[03:44:00 CET] <Modern13> what is NAL packets
[03:44:18 CET] <Modern13> how come i don't get that error
[03:44:27 CET] <Modern13> how come i don't get that error on my other video
[03:45:03 CET] <c_14> probably because the other one was in annexb form
[03:46:02 CET] <Modern13> and this one is in which form?
[03:46:14 CET] <Modern13> the one with the error
[03:46:43 CET] <c_14> I don't know what it's called, I just know it exists and isn't AnnexB
[03:47:30 CET] <DHE> annex B specifies a bit pattern ahead of NALs. MP4 uses a length prefix instead
[03:48:13 CET] <DHE> a bsf is a bitstream filter. one of them as indicated will convert mp4 to annex B notation
[03:49:42 CET] <Modern13> DHE what is better? video with annexB form or video with no aneexB
[03:53:29 CET] <DHE> it's not a matter of better or worse. you use the right format for the container the video goes in
[03:58:18 CET] <Modern13> i get this error : [mpegts @ 00000000025db0a0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[03:58:31 CET] <Modern13> when i try to mux to .ts
[04:07:44 CET] <gudenau> Hello!
[04:09:58 CET] <gudenau> I am attempting to create a program that uses FFMPEG as a library and I would like to use hardware decoding/encoding. I'm not finding much in the way of documentation on how to use hardware for this task, just that it is possible.
[04:10:38 CET] <gudenau> H264 by the way.
[04:24:57 CET] <gudenau> Ping me in an answer please.
[05:12:42 CET] <Modern13> anybody know how i can download this video: http://www.ipernity.com/doc/wiini/4857811
[05:14:15 CET] <gudenau> Click the download button.
[05:15:38 CET] <Modern13> how do i download by wget
[05:17:26 CET] <gudenau> wget dowloadButtonURL.mp4
[05:17:41 CET] <Modern13> huh
[05:28:04 CET] <JeffATL> i just did this: "ffmpeg -i input.mpg -f mpeg2 -vf crop=690:470:20:0,pad=720:480:15:5 output.mpg" in order to remove some edge artifacts from a videotape rip. why did the output file become about 1/6th the size and is full of pixelly compression artifacts??
[05:36:50 CET] <JeffATL> the input was mpeg2video, yuv420p, 720x480
[05:38:54 CET] <fahadash> I am working in my filter graph, I added a output tag (or whatever the word is for labels), and I am trying to subsequently use my output tag and getting a Invalid stream specifier: tagname
[05:39:09 CET] <furq> JeffATL: that command outputs mpeg2video with the default encoder settings
[05:39:13 CET] <furq> idk what those are but they probably suck
[05:39:53 CET] <JeffATL> furq: i'm surprised that defaults make any changes esp lossy ones
[05:40:26 CET] <furq> the default is to reencode
[05:40:31 CET] <JeffATL> furq: that being said, where to begin disabling?
[05:40:43 CET] <furq> although if you're filtering then you have to reencode
[05:41:15 CET] <JeffATL> i assume cropping/padding is a form of filtering
[05:41:39 CET] <furq> they sure are
[05:41:55 CET] <JeffATL> is there a way i can explicity tell ffmpeg to not do anything lossy?
[05:44:08 CET] <furq> you can use a lossless output codec
[05:44:15 CET] <furq> that doesn't seem like what you want to do though
[05:45:02 CET] <JeffATL> furq: i'm mostly seeking to archive from tape so what i really want is clean video without regard to file size
[05:45:54 CET] <furq> if file size is no issue then use something lossless
[05:46:09 CET] <furq> certainly don't use mpeg2video, it's ancient and it was never much good anyway
[05:46:25 CET] <furq> ffv1 and x264 lossless seem like decent choices
[05:47:05 CET] <JeffATL> fair enough. the hauppauge card appears to produce mpeg2video in hardware and i don't think i have any control over that
[05:47:28 CET] <furq> well yeah there's no benefit to keeping the same codec if you're filtering
[05:47:56 CET] <furq> with that said i think some containers let you crop in metadata
[05:48:04 CET] <furq> not sure how widespread support for that is though
[05:48:45 CET] <JeffATL> also i have no idea what sw/hw might be used to edit or display in the future so i have to keep to widely implemented protocols
[05:49:40 CET] <furq> well lossless is going to be huge and not supported as well as something like regular x264
[05:50:03 CET] <furq> if you're not doing further processing on these videos, x264 at crf 16 or so should look visually lossless
[05:50:19 CET] <furq> 16 is probably overkill but it'll be a lot smaller than qp 0
[05:50:37 CET] <fahadash> I found my problem, I was outputting something to a labelled stream, and then using that labelled stream in two places as input, it apparently allows it to be used once... but WHY :(
[05:51:30 CET] <furq> fahadash: https://ffmpeg.org/ffmpeg-filters.html#split_002c-asplit
[05:51:41 CET] <furq> if you want to use the same output as an input to multiple filters
[05:53:07 CET] <fahadash> furq: It's really silly that I can do [0:v] something [out]; [0:v] something more [out1]; but I cannot do [0:v] something [useful]; [useful] something1[out]; [useful]something2[out1];
[05:53:19 CET] <fahadash> Now I have to split it, give it two more different labels, and use those split labels
[06:23:40 CET] <JeffATL> furq: even without using a filter - just -ss and -to to edit - it applies horrific encoding
[06:24:43 CET] <furq> -c:v copy
[06:25:03 CET] <JeffATL> furq: i'll try it
[06:25:04 CET] <furq> or -c copy if you want to copy all streams
[06:25:40 CET] <JeffATL> furq: do need stereo audio to come through
[06:25:59 CET] <furq> by default ffmpeg picks codecs based on the output filename
[06:26:14 CET] <furq> for mpg i assume it's mpeg2video and mp2
[06:26:27 CET] <furq> you have to specify copy if you don't want to reencode
[06:29:23 CET] <JeffATL> furq: ahh, that's *much* more like it!
[06:44:17 CET] <JeffATL> furq: trying now with x.264, -crf 16 along with the cropping and padding.
[06:45:07 CET] <JeffATL> whew. i'm really thinking i need more CPU - 11 fps, two AMD64 cores railed up
[06:45:27 CET] <furq> try with -preset faster
[06:45:45 CET] <furq> that sounds awfully slow for sd though
[06:46:10 CET] <JeffATL> furq: what effect does that have on the compression?
[06:50:15 CET] <furq> it makes it worse
[06:50:35 CET] <furq> 16 is already very high quality though
[06:50:45 CET] <furq> i normally use 20 for sd stuff
[07:07:43 CET] <fahadash> How do I pick one frame from a stream and show it for 5 seconds? I am thinking this: [source]trim=frame_start=x:frame_end=x+1,setpts=(PTS-STARTPTS)*5000
[07:08:08 CET] <fahadash> Basically a pause
[07:15:38 CET] <markvandenborre> fahadash: how exact does this need to be?
[07:16:12 CET] <markvandenborre> you might get something more cpu efficient
[07:16:29 CET] <markvandenborre> when pulling only key frames from it?
[07:21:06 CET] <markvandenborre> fahadash: https://github.com/FOSDEM/video/blob/master/software/ansible/playbooks/role…
[07:21:11 CET] <markvandenborre> is how we do it
[07:22:01 CET] <fahadash> the problem is... I don't have a start_frame... I want to start trimming at some point in timeline and pick one frame
[07:23:32 CET] <markvandenborre> you don't have a start frame, which means you're just picking one frame from the stream as it is passing at this very moment, right?
[07:24:23 CET] <markvandenborre> or maybe I'm misunderstanding you
[07:24:59 CET] <fahadash> I want to pick the first frame at 00:00:28.0000 and I can may be loop it using loop filter
[07:25:34 CET] <markvandenborre> ah... yeah, we did it this way because we had basicly an endless stream and not enough cpu
[07:25:41 CET] <markvandenborre> to decode the entire stream
[07:25:57 CET] <markvandenborre> so we just look at the stream every now and then
[07:26:00 CET] <markvandenborre> and pick whatever
[07:26:13 CET] <markvandenborre> we find as the first frame
[07:27:21 CET] <markvandenborre> then loop this external command
[07:27:37 CET] <markvandenborre> it was the only option for us cpu wise
[07:27:44 CET] <fahadash> what does -vframe do? It is a filter?
[07:28:17 CET] <markvandenborre> it sets the number of vframes to output
[07:28:48 CET] <markvandenborre> https://ffmpeg.org/ffmpeg.html#Video-Options
[07:32:55 CET] <markvandenborre> fahadash: so your goal is to create a 5 second movie, right?
[07:33:20 CET] <markvandenborre> with an image in standstill?
[07:33:58 CET] <markvandenborre> one 5 second movie from an existing animation? or multiple?
[07:36:11 CET] <markvandenborre> fahadash: https://github.com/FOSDEM/video/blob/master/software/ansible/playbooks/role… is how we made a simple loop of one image
[07:36:32 CET] <markvandenborre> continuously outputting as raw video on a tcp prot
[07:36:33 CET] <markvandenborre> port
[07:42:58 CET] <markvandenborre> fahadash: hope my hints gave you at least some inspiration
[07:43:54 CET] <fahadash> switches aren't going to work for me, but thanks
[07:44:29 CET] <fahadash> I am heavily relying on filter-graph to do my stuff, I have a labelled stream in my filter graph of which I need a single frame captured into another
[07:44:49 CET] <fahadash> I have tried combining switches with filter-graph and have had tough luck
[07:44:58 CET] <fahadash> filter-graph and switches don't mix
[07:45:40 CET] <fahadash> What I ended up doing was, I trimmed 0.1 seconds of that portion, and used setpts to turn it into a super duper slo-mo
[09:33:43 CET] <JeffATL> i am trying to make archival rips of videotapes using a hauppauge card that outputs mpeg2. apparently i have to tell ffmpeg to use an encoding if i use any kind of filter (i'm cropping and padding to remove edge artifacts). it was suggested earlier i use x.264 but i'm left with something that neither VLC or quicktime can play. alternative?
[09:58:24 CET] <d> hi
[09:59:45 CET] <Guest96715> question: Is it possible to get ffmpeg's image to webm feature working on google app script
[10:00:06 CET] <Guest96715> been tinkering with it but its been kinda hazy
[10:18:48 CET] <JeffATL> can anyone explain why this command, when issued on another computer, works just fine but on this one it errors as shown: https://pastebin.mozilla.org/8956852
[10:20:27 CET] <JeffATL> also, should i be putting yadif ahead of crop and pad? computer on which this command works is only managing about 3fps
[10:34:51 CET] <JeffATL> think i figured my 1st question out - lack of x264 library
[10:35:04 CET] <JeffATL> it's just that the error message is obtuse
[10:49:41 CET] <JEEB> JeffATL: "preset" is a module-specific option so when you have no modules selected that utilize that option I'm not sure if there could be a better error. that said, yes. unfortunately that error as a global option parsing error has is something we end up before the values for options are evaluated
[10:50:07 CET] <JEEB> so if you removed the -preset option it would probably complain about not having the libx264 encoder
[10:50:10 CET] <JeffATL> JEEB: ok - thanks
[10:50:21 CET] <JeffATL> JEEB: ah, i see
[14:08:55 CET] <rivarun> hello. i'm using input from ffmpeg's showinfo with a v4l input to control a loop (is this a terrible idea to begin with?). because i want my look to run at 30 fps i use this: `-filter:v "fps=fps=30, showinfo" ` looking at the timestamps in my loop however the frames come in chunks (say 4 frames at second 53.82xxx and then a jump to 53.96xxx). is there a way to get ffmpeg to print the frame information in a
[14:08:57 CET] <rivarun> stricter way or should i use a different mechanism for my loop altogether?
[14:09:37 CET] <rivarun> *loops *in stricter timing
[14:37:33 CET] <__raven__> hi
[14:38:24 CET] <__raven__> how to capture /dev/vbi0? which data format? how to get all lines available?
[16:53:14 CET] <fahadash> Is there any way in the filter-graph to sink a labelled stream just for debugging purposes?
[17:37:54 CET] <durandal_1707> fahadash: nullsink?
[18:19:55 CET] <pandaadb> Hello - i was wondering if someone could give me a pointer as to why my ffmpeg processes started hanging (all on the same file)
[18:20:30 CET] <pandaadb> I have a python script that downloads and mp4 file and then converts it. This worked fine for the most part but then it started hanging endlessly and i ended up with a couple hundred processes just sitting there (it runs in cron every hour)
[18:21:16 CET] <pandaadb> I then killed all processes to get it working again. It returned and then my python script output the stderr of the process. But i can't tell if there was something wrong with the file (and if that should cause infinite hanging)
[18:22:01 CET] <pandaadb> This is the ffmpeg output: http://pastebin.com/TGFCXiv0
[18:23:32 CET] <pandaadb> I now fixed it by executing ffmpeg in a thread and adding a 5 minute timeout (my videos are max 1 min long) that then kills the ffmpeg process if it hasn't returned but i am still curious as to what was wrong. I can't reproduce it by manually running the ffmpeg however I can reproduce it by running it through python (which makes me wonder if it is something else)
[18:24:49 CET] <AndrewUnmuted> I am encoding 4k ProRes HQ 4:2:2 sources for playback in VR headsets via libx264. The sources are equirectangular spherical projections. Sometimes the x264 output exhibits a good deal of temporal noise, especially on bright textures and backgrounds. What filter(s) can I invoke in FFmpeg to help reduce these artifacts?
[18:26:58 CET] <pandaadb> hm, i am reading that it might the problem that the pipe is full and it can't write anymore so it starts hanging, could taht be it?
[18:50:22 CET] <JeffATL> i'm trying to make archival rips of videotape using a conexant-based cap card, output is mpeg2. I take the original file and do some cropping and padding to remove edge artifacts. but why is my output file about four times bigger than input file? command is ffmpeg -i original_tape_part_1.mpg -c:v ffv1 -vf "yadif,crop=690:470:20:0,pad=720:480:15:5" test_part_1.mkv
[18:51:32 CET] <kerio> ...output is ffv1
[18:54:46 CET] <JeffATL> kerio: recommend a better option? I'm not opposed to any lossy compression at all but far bigger files than input i can't hang with
[18:55:06 CET] <kerio> i mean
[18:55:15 CET] <kerio> i honestly don't get why you're surprised
[18:55:24 CET] <kerio> that ffv1 yields bigger results than mpeg
[18:55:44 CET] <kerio> why is the input mpeg, anyway?
[18:56:10 CET] <JeffATL> kerio: the card encodes to mpeg2 in hardware
[18:56:18 CET] <kerio> can't you leave it as is, then?
[18:56:30 CET] <kerio> how good is it?
[18:56:38 CET] <JeffATL> kerio: you'll have to excuse me - this is a very broad field and i'm new to it.
[18:56:50 CET] <kerio> like, what's the input file's bitrate?
[18:57:13 CET] <JeffATL> kerio: if i specifty no encoding, what comes out is much smaller and looks horrible
[18:57:25 CET] <JeffATL> let me see if i can find that for you
[18:57:29 CET] <kerio> -c:v x264 -qp 18
[18:57:36 CET] <kerio> er, make that libx264
[18:57:43 CET] <JEEB> > -qp/q:v for libx264
[18:57:50 CET] <JEEB> > for anything else than lossless
[18:57:53 CET] <kerio> JEEB: fuck crf
[18:58:02 CET] <JEEB> lol
[18:58:04 CET] <kerio> crf killed my pet hamster
[18:58:10 CET] <JEEB> have fun with that
[18:58:29 CET] <kerio> i like constant qp :3
[18:58:59 CET] <JEEB> it's not really constant tho :P P and B have their offsets anyways in any mode
[18:59:11 CET] <JeffATL> kerio: ffprobe on an original output file says max 8000kb/s
[18:59:13 CET] <kerio> JeffATL: -crf 18 is also probably fine
[18:59:15 CET] <kerio> JeffATL: lmao what
[18:59:29 CET] <kerio> ...well ok that's standard def video
[18:59:36 CET] <kerio> so i guess it kinda works?
[18:59:50 CET] <kerio> anyway ffmpeg -i whatever.mpg -c:v libx264 -crf 18 whatever.mkv
[18:59:54 CET] <JEEB> anyways, the idea of CRF is to just find the highest value that still looks good enough. same with QP but QP just is much less adaptive
[19:00:11 CET] <JeffATL> kerio: yeah, and i have a TBC in front
[19:00:33 CET] <kerio> also add some setting for audio i guess
[19:01:11 CET] <kerio> i guess aac?
[19:02:56 CET] <JeffATL> kerio: i have to be careful as i need to make sure present and future editors and players can read the files
[19:03:38 CET] <kerio> maybe vp8/opus would be better then?
[19:06:09 CET] <pano> hi
[19:08:11 CET] <pano> i need some help please :)
[19:11:26 CET] <pano> i'm trying to read rtsp stream from Sricam SP009 (Software: 14.0.0.52, System version: 24, uBoot version: 4, CPU version: 5).
[19:11:51 CET] <pano> i'm using ffmpeg and running next command:
[19:12:28 CET] <pano> ffmpeg -i rtsp://{user}:{password}@{ip}:554/onvif1 -c copy -f segment -segment_time 10 "capture-%03d.avi"
[19:14:05 CET] <pano> the output is:
[19:14:12 CET] <pano> ffmpeg version 3.0.5-0ubuntu0.16.10.1 Copyright (c) 2000-2016 the FFmpeg developers
[19:14:12 CET] <pano> built with gcc 6.2.0 (Ubuntu 6.2.0-5ubuntu12) 20161005
[19:14:12 CET] <pano> configuration: --prefix=/usr --extra-version=0ubuntu0.16.10.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-l
[19:14:14 CET] <pano> ibcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwol
[19:14:16 CET] <pano> ame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libx264
[19:14:18 CET] <pano> libavutil 55. 17.103 / 55. 17.103
[19:14:20 CET] <pano> libavcodec 57. 24.102 / 57. 24.102
[19:14:22 CET] <pano> libavformat 57. 25.100 / 57. 25.100
[19:14:24 CET] <pano> libavdevice 57. 0.101 / 57. 0.101
[19:14:26 CET] <pano> libavfilter 6. 31.100 / 6. 31.100
[19:14:28 CET] <pano> libavresample 3. 0. 0 / 3. 0. 0
[19:14:30 CET] <pano> libswscale 4. 0.100 / 4. 0.100
[19:14:32 CET] <pano> libswresample 2. 0.101 / 2. 0.101
[19:14:34 CET] <pano> libpostproc 54. 0.100 / 54. 0.100
[19:14:36 CET] <pano> [h264 @ 0x55da7a0a6a60] concealing 2650 DC, 2650 AC, 2650 MV errors in P frame
[19:14:38 CET] <pano> [h264 @ 0x55da7a0a6a60] Increasing reorder buffer to 1
[19:14:40 CET] <pano> [h264 @ 0x55da7a0a6a60] out of range intra chroma pred mode at 53 9
[19:14:42 CET] <pano> [h264 @ 0x55da7a0a6a60] error while decoding MB 53 9
[19:14:44 CET] <pano> [h264 @ 0x55da7a0a6a60] concealing 2876 DC, 2876 AC, 2876 MV errors in P frame
[19:14:46 CET] <pano> [h264 @ 0x55da7a0a6a60] mb_type 39 in P slice too large at 62 0
[19:14:48 CET] <pano> [h264 @ 0x55da7a0a6a60] error while decoding MB 62 0
[19:14:50 CET] <pano> [h264 @ 0x55da7a0a6a60] concealing 3587 DC, 3587 AC, 3587 MV errors in P frame
[19:14:52 CET] <pano> [h264 @ 0x55da7a0a6a60] cbp too large (58) at 19 1
[19:14:54 CET] <pano> [h264 @ 0x55da7a0a6a60] error while decoding MB 19 1
[19:14:56 CET] <pano> [h264 @ 0x55da7a0a6a60] concealing 3550 DC, 3550 AC, 3550 MV errors in P frame
[19:14:58 CET] <pano> [h264 @ 0x55da7a0a6a60] Reinit context to 640x368, pix_fmt: yuv420p
[19:15:00 CET] <pano> Guessed Channel Layout for Input Stream #0.1 : mono
[19:15:01 CET] <JeffATL> pano: ffs
[19:15:02 CET] <pano> Input #0, rtsp, from 'rtsp://{user}:{password}@{ip}:554/onvif1':
[19:15:04 CET] <pano> Metadata:
[19:15:06 CET] <pano> title : H.264 Video, RtspServer_0.0.0.2
[19:15:08 CET] <pano> Duration: N/A, start: 0.000000, bitrate: N/A
[19:15:09 CET] <JeffATL> don't do this
[19:15:10 CET] <pano> Stream #0:0: Video: h264 (Baseline), yuv420p, 640x360, 19.92 tbr, 90k tbn, 180k tbc
[19:15:12 CET] <pano> Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
[19:15:12 CET] <JeffATL> pastebin this
[19:15:14 CET] <pano> Output #0, segment, to 'capture-%03d.avi':
[19:15:16 CET] <pano> Metadata:
[19:15:18 CET] <pano> title : H.264 Video, RtspServer_0.0.0.2
[19:15:20 CET] <pano> encoder : Lavf57.25.100
[19:15:22 CET] <pano> Stream #0:0: Video: h264, yuv420p, 640x360, q=2-31, 19.92 tbr, 600 tbn, 90k tbc
[19:15:24 CET] <pano> Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, 64 kb/s
[19:15:24 CET] <JeffATL> must...ignore...you...
[19:15:26 CET] <pano> Stream mapping:
[19:15:28 CET] <pano> Stream #0:0 -> #0:0 (copy)
[19:15:30 CET] <pano> Stream #0:1 -> #0:1 (copy)
[19:15:32 CET] <pano> Press [q] to stop, [?] for help
[19:15:34 CET] <pano> frame= 646 fps= 10 q=-1.0 Lsize=N/A time=00:01:05.19 bitrate=N/A speed=1.05x
[19:15:36 CET] <pano> video:931kB audio:509kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[19:15:40 CET] <pano> as a result i get number of files like
[19:15:44 CET] <pano> oh, sorry
[19:15:46 CET] <pano> :) as you wish
[19:18:11 CET] <DHE> need a bot to auto-kick people or something... :/
[19:24:04 CET] <pano> so as i said above, as a result i get number of files with video inside. But there is an issue which i cannot overcome. files capture-001.avi and next (capture-002.avi, capture-003.avi ... etc) has some empty space in front of video ( capture-001.avi has 10 sec of empty, capture-002.avi has 20 sec and so far).
[19:24:53 CET] <pano> the question is: how should i change command to remove this empty space from capture?
[19:28:15 CET] <JeffATL> kerio: actually i would be just fine with keeping the encoding just as the input was encoded - i would just rather store the tape rips with the frame edge artifacts already masked out
[19:28:39 CET] <pano> http://pastebin.com/iWDXCc8Z
[19:29:33 CET] <pano> this is output :). I DO SORRY for posting this as message
[19:32:57 CET] <JeffATL> kerio: and also, i need to encode a and v in a way that is going to be pretty universal from now onward
[19:35:07 CET] <kerio> vp8/opus maybe
[19:58:11 CET] <aarwine> I"m working on creating a timelapse of some pictures of have with this command: cat *.jpg | ffmpeg -f image2pipe -r 15 -vcodec mjpeg -s 1280x720 -i - -vcodec libx264 timelapse.mp4 - The issue is that the resulting file appears to be at a huge resolution: 3280x2464
[20:02:23 CET] <aarwine> ah, it had something to do with the ordering of the flags
[20:02:59 CET] <AndrewUnmuted> I am encoding 4k ProRes HQ 4:2:2 sources for playback in VR headsets via libx264. The sources are equirectangular spherical projections. Sometimes the x264 output exhibits a good deal of temporal noise, especially on bright textures and backgrounds. What filter(s) can I invoke in FFmpeg to help reduce these artifacts?
[20:17:54 CET] <llogan> aarwine: you can use the glob pattern and get rid of the cat. ffmpeg -framerate 15 -pattern_type glob -i "*.jpg" -vf "scale=1280:-2,format=yuv420p" output.mp4
[20:28:37 CET] <adayzdone> Hi All
[20:28:40 CET] <adayzdone> Does anyone know how to output multiple files at once using the same encoding with ffmpeg?
[20:28:48 CET] <adayzdone> usr/local/bin/ffmpeg -y -i '/Users/me/input.MP4' -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 '/Users/me/output.MP4'
[20:28:56 CET] <adayzdone> I want to also export to '/Users/me/output2.MP4'
[20:29:04 CET] <adayzdone> I didn't understand this page: https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
[20:29:32 CET] <llogan> is each output supposed to be different (width x height, etc)?
[20:29:52 CET] <llogan> or the same?
[20:29:54 CET] <adayzdone> llogan No... same exact output in two different locations
[20:30:06 CET] <llogan> then you should use the tee muxer
[20:30:37 CET] <adayzdone> I read about it, I didn't understand how to use the command
[20:30:49 CET] <adayzdone> All of the examples were streams
[20:31:20 CET] <adayzdone> llogan using the command above, what would be the sytax for tee?
[20:32:39 CET] <llogan> ffmpeg -i input -map 0 -f tee -vf scale=-2:480 -c:v libx264 -crf 23 -c:a aac "output1.mp4|output2.mp4"
[20:33:06 CET] <llogan> you don't need "-strict -2" unless your ffmpeg is old, which you shouldn't use
[20:33:48 CET] <adayzdone> llogan Thank you. I got that online. Is there a better default command to encode a local file to 480?
[20:33:58 CET] <llogan> i just gave it to you
[20:34:11 CET] <adayzdone> llogan Thanks again
[20:34:32 CET] <llogan> you can adjust -crf and -preset to your needs
[20:34:43 CET] <llogan> https://trac.ffmpeg.org/wiki/Encode/H.264
[20:39:08 CET] <adayzdone> Strange... it output to files with a black screen and audio
[20:39:12 CET] <adayzdone> two*
[20:39:22 CET] <adayzdone> The first command did not
[20:49:28 CET] <adayzdone> llogan http://pastebin.com/gLzh6DQG
[20:53:17 CET] <adayzdone> Does that help?
[20:57:47 CET] <llogan> adayzdone: use -vf "scale=-2:480,format=yuv420p"
[21:03:55 CET] <adayzdone> llogan no luck
[21:03:59 CET] <adayzdone> http://pastebin.com/D3itSGhH
[21:04:09 CET] <adayzdone> black video, has audio
[21:08:53 CET] <adayzdone> llogan even when I use the original command and add tee to it, both files have no video
[21:09:02 CET] <adayzdone> ffmpeg -i '/Users/me/input.MP4' -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 -map 0 -f tee "/Users/me/test.MP4'|'/Users/me/test2.MP4'"
[21:12:12 CET] <llogan> you're ignoring my suggestions
[21:12:46 CET] <adayzdone> how so?
[21:15:59 CET] <adayzdone> llogan Which suggestion did I ignore?
[21:30:58 CET] <llogan> i got mapping wrong. if he comes back tell him to do: ffmpeg -i input -filter_complex "[0:v]scale=-2:480,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a aac -f tee "output1.mp4|output2.mp4"
[23:00:35 CET] <Dududu> hi
[23:00:56 CET] <Dududu> is there a google app script library for ffmpeg
[23:15:20 CET] <leibnizzle> Hey guys, I just discovered ffmpeg and it looks like a really cool project
[23:15:58 CET] <leibnizzle> Would be fun to get in and contribute
[23:17:32 CET] <leibnizzle> I'm curious though, does ffmpeg lay off everything re: the transmission?
[23:17:49 CET] <leibnizzle> forward error correction and so forth
[23:24:44 CET] <Mavrik> not sure I follow your question
[23:26:52 CET] <leibnizzle> I'd like to build a full stack that includes video compression, channel coding, transmission protocol, channel decoding and decompression
[23:27:28 CET] <leibnizzle> Do I understand it correctly that ffmpeg does not concern itself with channel coding?
[23:39:34 CET] <klaxa> not sure that is needed in times of tcp?
[23:39:41 CET] <klaxa> or i don't understand the question either
[23:42:46 CET] <leibnizzle> I'm interested in realtime streaming
[23:43:18 CET] <leibnizzle> with v low latency
[23:44:27 CET] <klaxa> maybe this can serve as a starting point: https://trac.ffmpeg.org/wiki/StreamingGuide
[23:46:49 CET] <leibnizzle> yeah that's really neat but it kind of ducks the question
[23:47:37 CET] <leibnizzle> Or answers it indirectly, I guess
[23:47:56 CET] <leibnizzle> Seems there is no support for forward error correction
[23:48:56 CET] <klaxa> as far as i can tell, forward error correction is for data transmission, this is abstracted by the protocols implemented
[23:49:15 CET] <leibnizzle> abstracted in the case of tcp, ignored in the case of udp
[23:49:52 CET] <leibnizzle> But that's essentially what I was wondering
[23:50:00 CET] <leibnizzle> It's an entirely reasonable design choice obviously :)
[23:51:48 CET] <klaxa> you should be able to write your own server and client with some sort of error correction in the application logic and integrate ffmpeg or video streams or data streams in general into that
[23:52:07 CET] <klaxa> but i'm not sure if creating yet another protocol will magically make everything great
[23:52:52 CET] <leibnizzle> It would be on top of UDP
[23:53:11 CET] <klaxa> yes, with tcp there is no reason to do that :)
[23:53:24 CET] <klaxa> rtsp and rtp already use udp afaik
[23:53:42 CET] <klaxa> rtmp is tcp
[23:53:50 CET] <leibnizzle> I don't think it would be of much use in the "common" applications
[23:54:09 CET] <leibnizzle> Where the packets are large and the latency is kind of whatever
[23:54:22 CET] <leibnizzle> That is true
[23:54:46 CET] <klaxa> maybe you can take a look at µTP used in bittorrent
[23:54:48 CET] <klaxa> https://en.wikipedia.org/wiki/Micro_Transport_Protocol
[23:55:46 CET] <leibnizzle> I was thinking UDP Lite actually
[23:56:17 CET] <leibnizzle> Doesn't seem supported either, but that is prob easy to do
[23:57:10 CET] <klaxa> ah that seems useful too
[23:59:00 CET] <klaxa> if you can get a hold of a network engineer of one of these cloud gaming services, i bet they can give even better advice
[23:59:21 CET] <furq> webrtc is probably worth looking at
[23:59:39 CET] <leibnizzle> oh right, that's googles thing right?
[00:00:00 CET] --- Thu Dec 29 2016
1
0
[00:27:19 CET] <kierank> durandal_1707: ping
[00:52:35 CET] <kierank> boooom
[01:26:16 CET] <cone-054> ffmpeg 03Marton Balint 07master:89a1471a72cb: avdevice/decklink_dec: properly initialize no_video variable
[01:26:16 CET] <cone-054> ffmpeg 03Marton Balint 07master:a7946c896469: avdevice/decklink_enc: do not reference this after freeing it
[02:41:31 CET] <kierank> michaelni: what does this mean
[02:41:32 CET] <kierank> int b8_stride; ///< 2*mb_width+1 used for some 8x8 block arrays to allow simple addressing
[02:42:19 CET] <kierank> I'm trying to figure out where to put my dc predictor value but the addressing is very confusing
[02:48:39 CET] <cone-054> ffmpeg 03Michael Niedermayer 07master:b347ca93412f: avformat/matroskadec: Fix OOM on long streams
[02:50:09 CET] <michaelni> some of the strides are choosen so that theres a border of blocks outside the image
[02:58:52 CET] <kierank> michaelni: how should I address s->dc_val[a][b] then?
[02:59:09 CET] <kierank> the prediction is simple, I just need a place to store the data
[03:01:51 CET] <kierank> actually maybe i'll just put it in my own place
[03:01:56 CET] <kierank> and then later on merge it if necessary
[03:12:36 CET] <cone-054> ffmpeg 03Jesper Ek 07master:c7c0046efc3a: Fix bug when incrementing initial_prog_date_time when removing segments
[03:25:52 CET] <michaelni> dc_val[1] and [2] will probably need bigger strides for 422/444
[03:31:58 CET] <kierank> I just need one value per component, dc_val seems excessive for what I need actuall
[03:32:02 CET] <kierank> I just made a new variable for now
[03:42:02 CET] <cone-054> ffmpeg 03Bodecs Bela 07master:0ff8c6b6d524: avformat/hlsenc: strftime identifiers and segment index in filenames
[04:00:29 CET] <kierank> crap my dc coefficient is wrong
[05:35:34 CET] <kierank> michaelni: yeah i need 32-bit coefficients
[05:35:44 CET] <kierank> see A.1.1
[05:36:08 CET] <kierank> In case of mpeg2_stream = 0, The coefficients are
[05:36:08 CET] <kierank> represented in (n+7) bits including three fractional bits.
[06:13:38 CET] <durandal_170> kierank: you need to ping me multiple times to wake me up
[06:13:53 CET] <kierank> I solved that problem
[06:13:59 CET] <kierank> now i have much bigger problem
[06:28:40 CET] <durandal_170> kierank: when you sleep?
[06:30:39 CET] <kierank> I was sleeping now until you woke me up =p
[09:10:02 CET] <torroid> Hi! I would like to contribute.. Please could I get a starting point
[09:10:42 CET] <JEEB> just start with compiling, then poking around and finding your niche :P not sure if there's a clear-cut list of things doable by a newcomer. most people work either on what they like or what they need for their $dayjob
[09:13:02 CET] <atomnuker> whoa, its a huge mjpegenc patch!
[09:15:22 CET] <rcombs> JEEB: or both!
[09:16:09 CET] <rcombs> atomnuker: wow, wonder what for
[09:17:15 CET] <JEEB> rcombs: that'd be nice :D
[09:17:22 CET] <JEEB> and to be honest, for a while I did that
[09:17:26 CET] <rcombs> also, at a quick glance, it looks& not awful?
[09:17:38 CET] <atomnuker> rcombs: the ethernal strife of encoding: quality improvements
[09:18:02 CET] <rcombs> atomnuker: yeah, I see, I'm wondering why the hell anyone would put significant effort into making MJPEG better
[09:30:06 CET] <atomnuker> I'd put effort into making the vorbis encoder better if vorbis was to be the standard for web audio for the next 20 years or so
[09:30:41 CET] <atomnuker> (I should do it anyway, vorbis has huge huge window sizes which makes it interesting)
[09:51:25 CET] <rcombs> atomnuker: I sure hope MJPEG isn't going to be the standard for web video for the next 20 years or so
[09:51:50 CET] <rcombs> though it might remain the standard for DCPs until the end of time
[09:53:30 CET] <atomnuker> it isn't the standard for web video, ip cams don't really classify as maistream web video
[09:54:00 CET] <atomnuker> MJPEG = JPEG to me
[10:03:28 CET] <j-b> 'morning
[11:20:39 CET] <ubitux> http://www.ipol.im/pub/art/2016/130/
[14:16:18 CET] <Compn> hmm
[14:16:23 CET] <Compn> looking at encoders.texi
[14:16:39 CET] <Compn> are there more encoders with options that are not documented ?
[14:16:48 CET] <Compn> i see mjpeg isnt listed
[14:17:05 CET] <Compn> amongst others. feels like a bunch are not documented :\
[14:53:15 CET] <RiCON> i'd have no idea ffflacenc supported 0-12 compression_level unless i read the code
[15:22:24 CET] <raphael29_> hi
[15:22:30 CET] <raphael29_> I am a 3rd year CS student looking for participating in GSoC 2017. While browsing through the 2016 GSoC list, I found this project which caught my attention. Can someone give me some more details about it?
[15:23:31 CET] <Compn> sure
[15:23:39 CET] <Compn> what details are you looking for raphael29_ ?
[15:23:58 CET] <Compn> ffmpeg is a multimedia toolkit for processing audio and video related media
[15:24:17 CET] <Compn> currently ffmpeg is installed on more than a billion computers, smart tvs, cell phones etc
[15:24:37 CET] <Compn> mostly written in C with a lot of assembly in nasm/yasm format
[15:25:17 CET] <Compn> we have participated in GSoC in multiple years with success and failures
[15:25:48 CET] <raphael29_> Compn: it sounds cool. Do you intend to participate this year too?
[15:26:09 CET] <Compn> skills useful for the project include reverse engineering, reading specifications, C/C++ and asm writing...
[15:26:22 CET] <Compn> i am not a student :)
[15:26:49 CET] <raphael29_> Compn: you ==FFMPEG project :D
[15:27:16 CET] <iive> Compn is our PR person :D
[15:27:25 CET] <Compn> i just here to answer questions on irc
[15:29:05 CET] <kierank> 8:51 AM <rcombs> though it might remain the standard for DCPs until the end of time
[15:29:08 CET] <kierank> nop that's jpeg2k
[15:29:40 CET] <raphael29_> Compn: ok, so I meant "Do FFMPEG project intend to participate in GSoC 2017"?
[15:30:12 CET] <Compn> possibly ffmpeg will be in gsoc 2017, it depends if we come up with tasks and have mentors and google accepts us
[15:30:40 CET] <Compn> since we have been in a lot of past gsoc, they might pick other projects instead to sponsor
[15:30:56 CET] <Compn> we will probably try again in 2017
[15:31:21 CET] <Compn> raphael29_ : if you work on ffmpeg now, it will increase your chances of getting picked for student spot :)
[15:34:16 CET] <raphael29_> Compn: it sounds great. I will start digging in and come back if I have any questions :)
[15:35:23 CET] <Compn> ok, please do.
[15:35:38 CET] <Compn> although, before you ask, we dont really have any specific things to work on for new contributors
[15:36:04 CET] <Compn> so try reviewing code or patches or bug reports... maybe just figure out git and patches and read the developer documentation
[15:36:16 CET] <kierank> michaelni: ping
[15:36:24 CET] <Compn> have you worked with open source before?
[15:36:28 CET] <Compn> lots to learn :)
[15:36:49 CET] Action: Compn afk bbl
[15:40:49 CET] <michaelni> kierank, pong
[15:41:00 CET] <kierank> 4:35 AM <"kierank> michaelni: yeah i need 32-bit coefficients
[15:41:00 CET] <kierank> 4:35 AM <"kierank> see A.1.1
[15:41:00 CET] <kierank> 4:36 AM <"kierank> In case of mpeg2_stream = 0, The coefficients are
[15:41:00 CET] <kierank> 4:36 AM <"kierank> represented in (n+7) bits including three fractional bits.
[15:41:09 CET] <kierank> michaelni: any advice on how to add 10-bit to mpegvideo.c
[15:41:14 CET] <kierank> 32-bit coefficients
[15:41:15 CET] <kierank> i mean
[15:41:55 CET] <kierank> I have coefficient decoding working now and need to add dequant which is reasonably simple
[15:44:12 CET] <michaelni> the functions need to pass 32bit coeffs then. i assume decode, dequant (if seperate) and idct all need to be different so i guess they wont get mixed with the 16bit variants
[15:45:46 CET] <kierank> it's just idct that matters
[15:45:57 CET] <kierank> can't I keep the same function pointers and then just cast to int32_t?
[15:46:03 CET] <kierank> for the block data
[15:46:23 CET] <kierank> and expand the array of existing int16_t?
[15:47:27 CET] <michaelni> yes that seems simplest
[15:47:51 CET] <kierank> that's what h264 does at least
[15:48:12 CET] <kierank> I guess I need to ask BBB which DCT is the best to use
[15:48:18 CET] <kierank> hopefully I don't need to write my own
[15:48:20 CET] <BBB> ?
[15:48:25 CET] <BBB> whats the problem?
[15:48:35 CET] <kierank> I'm adding 10-bit support to mpegvideo.c
[15:48:41 CET] <kierank> to decode 10/12-bit mpeg-4 video files
[15:49:08 CET] <BBB> just do what we did for h264, add a template for the mpegvideo dsp and change the types of idct from int16_t to dctcoef and uint8_t to pixel
[15:49:20 CET] <kierank> yeah, that's fine, I don't know which DCT is best to use. prores?
[15:49:29 CET] <kierank> IDCT*
[15:49:46 CET] <BBB> depends on the idct defined or expected in the bitstream
[15:49:53 CET] <BBB> I thought mpegvideo uses simple_idct?
[15:50:04 CET] <BBB> so prores could probably work yes
[15:50:28 CET] <BBB> theres something funky in the prores idct I dont recall exactly what it is
[15:50:32 CET] <michaelni> IIUC the new profile uses the withdrawn IEEE nn bitexact idct
[15:50:47 CET] <michaelni> nOn bitexact
[15:51:07 CET] <BBB> dont all mpegs use non-bitexact idct?
[15:51:12 CET] <BBB> (pre-h264)
[15:51:14 CET] <michaelni> yes
[15:51:22 CET] <BBB> so no surprise there I suppose
[15:51:45 CET] <kierank> The N by N inverse discrete transform shall conform to IEEE Standard Specification for the Implementations of 8 by
[15:51:46 CET] <kierank> 8 Inverse Discrete Cosine Transform, Std 1180-1990, December 6, 1990.
[15:52:01 CET] <BBB> raphael29_: yes were likely participating in the gsoc 2017
[15:52:22 CET] <BBB> raphael29_: well have some standard projects, but if you want to do a project of your own, thats fine also, just find your own mentor
[15:52:30 CET] <kierank> maybe I should write my own idct as an exercise
[15:52:40 CET] <BBB> its a fun exercise
[15:52:52 CET] <BBB> but its probably faster to use the existing one and template it for 10bit
[15:53:05 CET] <BBB> the prores idct should work okish and already has simd
[15:53:13 CET] <BBB> merging code like that is always good
[15:57:13 CET] <kierank> BBB: thanks I will try with the existing idct and see if I get pictures first
[16:01:37 CET] <BBB> very well
[16:03:42 CET] <BBB> Gramner: do you have push access?
[16:04:06 CET] <cone-931> ffmpeg 03Ronald S. Bultje 07master:1c8fbd7b9046: checkasm/vp9: benchmark all sub-IDCTs (but not WHT or ADST).
[16:04:06 CET] <cone-931> ffmpeg 03Ronald S. Bultje 07master:992cb15e6713: wmavoice: move wmavoice_flush() up.
[16:04:06 CET] <cone-931> ffmpeg 03Ronald S. Bultje 07master:3deb4b54a24f: wmavoice: disable bitstream checking.
[16:04:06 CET] <cone-931> ffmpeg 03Ronald S. Bultje 07master:b011bb5f8b2c: wmavoice: reindent.
[16:04:06 CET] <cone-931> ffmpeg 03Ronald S. Bultje 07master:7b27dd5c16de: wmavoice: move overflow handling to common code.
[16:04:07 CET] <cone-931> ffmpeg 03Ronald S. Bultje 07master:33d7f822f8ed: wmavoice: protect against zero-energy in adaptive gain control.
[16:04:35 CET] <iive> you'll get picture, but there might be effects like green tilt
[16:04:59 CET] <Gramner> BBB: yes
[16:05:23 CET] <BBB> (just checking if youre waiting for one of us to push that x86inc.asm patch)
[16:05:51 CET] <Gramner> not like it's in a hurry since it doesn't affect any existing ffmpeg code
[16:10:26 CET] <raphael29_> BBB: thanks for your answer.
[17:38:02 CET] <kierank> haasn: nice blog post
[17:38:49 CET] <durandal_170> BBB: i have frequency of simbols used in qdmc. how can I convert it to vlc?
[17:39:54 CET] <BBB> huffman?
[17:40:47 CET] <BBB> kierank: link missing
[17:41:02 CET] <kierank> BBB: https://haasn.xyz/posts/2016-12-25-falsehoods-programmers-believe-about-%5B…
[17:43:10 CET] <BBB> so much stuff there ;)
[18:05:15 CET] <durandal_170> BBB: most likely
[18:10:43 CET] <durandal_1707> BBB: see qdmc page on wiki.multimedia.cx
[18:12:03 CET] <ubitux> haasn: where is the audio now?
[18:12:44 CET] <nevcairiel> there is a whole bunch in there one might argue with though =p, ie. a h264 decoder that does impact quality is just flat out broken
[18:13:00 CET] <kierank> yes but he's saying don't make the assumption
[18:13:35 CET] <JEEB> the H.264 thing was mostly about HW decoding APIs that for RGB output on your and whatsoever
[18:13:37 CET] <kierank> there's also "don't assume a hardware encoder is better than a software one"
[18:13:41 CET] <JEEB> I herped a derp at him quite a bit
[18:13:46 CET] <JEEB> for the original wording of it
[18:14:24 CET] <ubitux> "every hardware acceleration can be abstracted with a generic interface"
[18:14:34 CET] <ubitux> +common
[18:14:43 CET] <nevcairiel> that was fine until apple was being apple
[18:14:44 CET] <nevcairiel> :D
[18:15:57 CET] <ubitux> "software subtitle rendering can not possibly be the playback speed bottleneck"
[18:16:21 CET] <JEEB> :D
[18:16:40 CET] <JEEB> "my ASS tracks can't possibly be *this* slow to render!"
[18:16:45 CET] <fritsch> hehe
[18:16:50 CET] <ubitux> "a subtitle format can not include markup from multiple other formats"
[18:17:02 CET] <ubitux> "or at least not in the same file"
[18:18:54 CET] <ubitux> "rendering modern subtitles doesn't require a browser engine"
[18:18:56 CET] <kierank> can we get rid of mpeg1_fast_decode_block_inter?
[18:19:18 CET] <nevcairiel> some people probably like the fast mode for obscure reasons
[18:19:24 CET] <kierank> for mpeg1
[18:19:42 CET] <kierank> it also crashes on corrupt stream
[18:22:13 CET] <nevcairiel> fast is known to be insecure, thats probably what makes it fast =p
[18:26:37 CET] <iive> "since H.264 decoding is bit-exact, the decoder used does not affect the quality", could somebody explain me why this is falsehood?
[18:26:52 CET] <JEEB> oh yes, I noted that
[18:26:57 CET] <JEEB> he mostly meant HW decoding interfaces
[18:27:10 CET] <JEEB> which force a specific YCbCr->RGB conversion on you
[18:27:17 CET] <JEEB> before you get the data, that is
[18:27:32 CET] <JEEB> I did note it that most people probably won't read it like he'd think :P
[18:27:36 CET] <kierank> I am bored of people telling me about quicksync
[18:27:39 CET] <cone-931> ffmpeg 03Christophe Gisquet 07master:e3312b3746ef: MAINTAINERS: update
[18:28:01 CET] <Gramner> even so, color space conversion isn't really a part of the actual decoder though
[18:28:07 CET] <JEEB> yes
[18:28:26 CET] <iive> :)
[18:31:04 CET] <JEEB> iive: basically when I pointed the way we read it he replied with
[18:31:05 CET] <JEEB> < haasn> ¬(AB) is not the same as ¬A
[18:31:49 CET] <JEEB> and then pointed out that he meant those specific HW decoding APIs which don't necessarily give you the YCbCr surfaces
[18:33:29 CET] <atomnuker> some actually give you 2 separate fields instead of 3 solid planes (hi vdpau) even for progressive content
[18:34:05 CET] <kierank> looool
[18:34:13 CET] <iive> nv12 ?
[18:34:16 CET] <kierank> atomnuker: you must have loved that :)
[18:34:17 CET] <iive> hm12?
[18:34:25 CET] <Gramner> if a decoding API does additional stuff in addition to decoding then it's a bit of a misnomer to call it a decoding API. "video processing API" or whatever would be more accurate
[18:35:46 CET] <atomnuker> kierank: not me, wm4 since he had to deal with it :)
[18:41:44 CET] <iive> JEEB: i do not accept his explanation, because he have a whole separate section for color conversions...
[18:42:52 CET] <iive> or you can say 3 or 4 sections...
[18:43:03 CET] <JEEB> yeah but you can clearly see it being on top of the "HW decoders are faster" and "HW decoders can decode everything you can feed 'em"
[18:43:28 CET] <JEEB> but yeah, I don't like the wording but at this point I've given up because I can't come up with anything that's jazzy enough for him :P
[18:43:35 CET] <iive> well, this only makes it more confusing
[18:43:56 CET] <JEEB> and/or in his opinion I'm just reading it wrong :D
[18:44:04 CET] <iive> because he clearly states hardware decoders, when he talks about hardware decoders.
[18:44:13 CET] <nevcairiel> it kinda makes sense, if some decoder cant give you access to the unmodified image, then its clearly worse then other decoders
[18:44:31 CET] <nevcairiel> and its certainly possible someone might build a software decoder with similar sillyness
[18:45:56 CET] <JEEB> sure, the point itself is valid, I think it's just worded in a way that makes it seem as if H.264 isn't spec-wise bitexact
[18:46:01 CET] <kierank> nevcairiel: it's not silly
[18:46:24 CET] <kierank> being able to do some kind of transform when the data is in cache is a good idea
[18:46:43 CET] <nevcairiel> "being able to" is quite some ways from "not being able to not do that"
[18:46:46 CET] <Alex2001> Hi guys
[18:47:04 CET] <kierank> meh, closed source, deal with it
[18:47:05 CET] <nevcairiel> if its the only mode it knows, someone build sillyness
[18:47:13 CET] <nevcairiel> if its optional, great, features!
[18:48:20 CET] <nevcairiel> (and somehow i dont think video images are particularly nice on caches in general)
[18:48:25 CET] <Alex2001> Could anyone here take a minute and help me out a little bit on a project? I'm having difficulties in getting the end time for DVB subtitles...
[18:49:12 CET] <iive> Alex2001: I might remember wrongly, but you render empty subtitle to hide them
[18:49:20 CET] <iive> or you use the timeout
[18:49:46 CET] <j-b> is Christophe Gisquet around?
[18:49:51 CET] <Alex2001> Well, I'm currently working on a subtitle extraction program
[18:50:04 CET] <Alex2001> and I was wondering if it's actually possible to get the end time for a subtitle
[18:50:06 CET] <nevcairiel> j-b: he doesnt often come to irc
[18:50:10 CET] <kierank> atomnuker: if i recall correctly it is undefined
[18:50:16 CET] <kierank> Alex2001: i mean
[18:50:23 CET] <j-b> nevcairiel: yeah, I thought that too. but I wanted to check.
[18:50:33 CET] <Alex2001> as far as I can see I am only provided with a PTS for each subtitle
[18:50:35 CET] <nevcairiel> he goes by the name kuroso i think
[18:51:36 CET] <j-b> nevcairiel: thx
[18:52:43 CET] <nevcairiel> Alex2001: as far as i can see, there is no end time for dvb subtitles, and instead you get a "empty" subtitle that clears the screen when necessary, as iive said
[18:52:59 CET] <Alex2001> the problem seems to be that after a bitmap says "display" we write it to file and that's not the way to do it
[18:53:04 CET] <Alex2001> Oh, empty subtitle?
[18:54:16 CET] <jamrial> j-b, nevcairiel: it's kurosu
[18:54:23 CET] <nevcairiel> well, close!
[18:54:27 CET] <j-b> jamrial: thx man.
[18:55:12 CET] <jamrial> nevcairiel: you can't start a query if you don't have it right :P
[18:55:34 CET] <nevcairiel> you cant start a query either way if he isnt there :D
[19:06:22 CET] <durandal_1707> michaelni: do you have an idea how to get vlc tables from frequencies?
[19:07:14 CET] <kierank> durandal_1707: I would guess you make the most probable frequency have the shortest code
[19:09:16 CET] <durandal_1707> higher number bigger probability or vice versa?
[19:10:51 CET] <kierank> dunno
[19:12:44 CET] <atomnuker> durandal_1707: highest probabilities -> shorter symbols makes sense
[19:13:16 CET] <atomnuker> question is: is 10 shorter than 11?
[19:13:47 CET] <durandal_1707> and how I could convert those to codes and lengths? manually?
[19:14:09 CET] <durandal_1707> smaller tables have 8 elements
[19:14:36 CET] <kierank> perhaps using rice codes or similar
[19:15:28 CET] Action: kierank curses mpeg specs
[19:15:28 CET] <kierank> ( QF[v][u] * W[0][v][u] * quantiser_scale * base_quantiser scale * 8 * 2 ) / 32;
[19:17:41 CET] <atomnuker> oh hey it's the vp9 school of dequantization
[19:19:34 CET] <kierank> same as mpeg-2
[19:19:53 CET] <kierank> actually a bit different
[19:24:21 CET] <wm4> <atomnuker> some actually give you 2 separate fields instead of 3 solid planes (hi vdpau) even for progressive content <- even better, vdpau doesn't for hevc, which makes no sense, i.e. nvidia left it buggy for ages and just doesn't give a shit anymore
[19:25:06 CET] <michaelni> durandal_1707, i think the stuff in libavcodec/huffman.h did one variant of that
[19:26:49 CET] <durandal_1707> michaelni: already tried that one
[20:05:29 CET] <durandal_1707> michaelni: have any idea?
[20:49:12 CET] <kierank> durandal_1707: I am stuck like you now :(
[20:50:19 CET] <durandal_1707> kierank: i think I got it just need to test idea
[20:50:39 CET] <kierank> I can't get VLCs to work on some MBs
[20:50:40 CET] <kierank> :(
[21:07:39 CET] <Alex2001> Could someone please tell me if the save_subtitle_set() call is necessary in the parse_page_segment() function? I'm having trouble getting the end time of DVB subtitles for a subtitle extractor program and I think it's because I don't call that function
[21:10:49 CET] <Alex2001> The part of the program used for DVB extraction is based a lot on the ffmpeg source (it's almost copy paste), specifically the decoding of the segments part
[21:11:26 CET] <Alex2001> And I believe my program might have this problem because I don't call save_subtitle_set
[21:16:24 CET] <kierank> michaelni: what does it mean when get_vlc2 returns -1?
[21:28:45 CET] <iive> invalid code?
[21:33:12 CET] <durandal_1707> kierank: i can't get little endian vlc generation
[21:34:58 CET] <michaelni> kierank, as iive said, invalid code aka not a valid code
[21:35:32 CET] <kierank> :(
[21:50:50 CET] <haasn> iive: I pretty much meant what I meant: even though H.264 decoders should all produce the result, you can't use all hardware decoders without quality loss *in practice*
[21:50:58 CET] <haasn> because the APIs are shit and won't give you the actual result
[21:51:02 CET] <haasn> but rather some postprocessed version
[21:51:18 CET] <iive> haasn: quality loss where?
[21:51:33 CET] <haasn> even if you can get the YCbCr planes, for example, some APIs will dither 10 bit content to 8 bit textures
[21:51:38 CET] <haasn> or pull 4:2:0 up to 4:2:2 (yes)
[21:51:45 CET] <iive> well, then you can say that...
[21:52:37 CET] <iive> the point is, the decoder as specified by the standard will decode to the correct image
[21:52:43 CET] <haasn> also lol I'm surprised that that's the only statement that basically every decoder person is taking extreme offense to :p
[21:53:23 CET] <haasn> my statement doesn't contradict that
[21:53:27 CET] <haasn> in fact it uses that as an assumption
[21:53:30 CET] <iive> yes it does
[21:53:43 CET] <iive> it basically says that this is fallacy
[21:54:00 CET] <iive> you may want to say something else, but that is what you've written.
[21:54:03 CET] <haasn> ¬(AB) is not the same as (A¬B)'¬A
[21:54:32 CET] <haasn> I wrote ¬(AB), which is true; and we know A is true; so the only thing I've said here is ¬B
[21:54:35 CET] <haasn> which is also definitely true
[21:54:47 CET] <haasn> and part of the reason why --hwdec is so strongly discouraged in mpv
[21:54:51 CET] <iive> i'm not sure what these things mean
[21:55:29 CET] <haasn> A = all decoders produce the same result, B = hwdec = swdec in terms of quality, A is clearly true (nobody's trying to argue against that), B is clearly false (--hwdec loses you quality in most cases)
[21:55:31 CET] <haasn> So clearly A can't imply B
[21:55:36 CET] <haasn> even though the naive logic would say yes
[21:55:42 CET] <iive> and i'm not even sure what is A and B in your case.
[21:55:47 CET] <haasn> if all decoders produce the same result, surely it must not matter what decoder I use is a reasonable assumption
[21:55:51 CET] <haasn> which is false, because the APIs are shit
[21:56:02 CET] <haasn> and that's my point
[21:56:07 CET] <haasn> sorry you're reading too much into it
[21:56:10 CET] <kierank> https://www.reddit.com/r/programming/comments/5kkmww/falsehoods_programmers…
[21:56:13 CET] <kierank> reddit is lulz
[21:56:27 CET] <iive> haasn: i think the problem here is what do you consider a decoder
[21:56:49 CET] <haasn> iive: the API is part of the decoder, for me
[21:56:57 CET] <haasn> I mean all the algorithms in the world won't help me if I can't actually use them to decode stuff
[21:57:18 CET] <iive> haasn: but you are not talking about API, you are talking about decoder
[21:57:37 CET] <iive> so you say A is false
[21:59:18 CET] <iive> "since H.264 decoding is bit-exact, you will be able to get the bit-exact image from it"
[21:59:32 CET] <haasn> I'll add a footnote, I guess, since I'm getting so many people who misunderstand what I wrote
[22:03:41 CET] <JEEB> haasn: I wonder if it's a linguistic structure that Germans are used to because nevcairiel seemed to parse it similarly to you
[22:03:54 CET] <JEEB> that, or I just fail at English :P
[22:04:47 CET] <iive> I actually would like to ask why this is falsehood, too: "rendering subtitles at the output resolution is always better than rendering them at the video resolution"
[22:06:51 CET] <JEEB> iive: with only text that might work, but depending on your artisticity the end result might be incorrect if you scale things differently in the subtitle renderer compared to the video renderer
[22:07:48 CET] <iive> doesn't render kind of hint about text subtitles?
[22:07:59 CET] <JEEB> it can be vectors etc
[22:08:16 CET] <JEEB> and you're correct, it could even be so with text if it's stylized enough
[22:08:16 CET] <iive> fonts are vectors :D
[22:08:29 CET] <iive> well, mostly
[22:08:31 CET] <JEEB> well yes, but I mean the crazy shit you get with ASS, for example
[22:08:37 CET] <JEEB> and yes, bitmaps in fonts are a thing as well
[22:08:42 CET] <JEEB> (mostly for small sizes)
[22:09:17 CET] <iive> "theres an ASS specification" that has a point :D
[22:09:23 CET] <haasn> iive: https://haasn.xyz/posts/2016-12-25-falsehoods-programmers-believe-about-%5B… how's this?
[22:10:09 CET] <haasn> iive: somebody else asked about that comment, and I clarified a few points here: https://news.ycombinator.com/item?id=13260826
[22:10:38 CET] <haasn> That one is probably footnote-worthy as well
[22:10:54 CET] <haasn> but I think it's a valid point, especially the part where softsubbed signs can look out of place at the full screen res
[22:11:40 CET] <iive> well, this happens for 2 reasons:
[22:11:41 CET] <haasn> all of those points only apply to softsubbed signs, I'm sure
[22:12:02 CET] <iive> 1. ass specs are never followed, instead vobsub bugs are replicated.
[22:12:04 CET] <haasn> hence why I wish we had a distinction between signs and text
[22:12:43 CET] <iive> 2. the display resolution is not properly mapped to the video, probably because of #1
[22:13:47 CET] <haasn> when I say out of place I don't mean in the wrong position, I mean they don't feel right / blend in
[22:13:57 CET] <haasn> Obviously there are bugs where stuff like transformations are not properly scaled to screen space
[22:14:13 CET] <haasn> but I mean if you have a blurry video and a sign on that video is suddenly sharp instead of blurry, it doesn't fit
[22:14:19 CET] <iive> oh, you mean, they look better than the video?
[22:14:22 CET] <haasn> yeah
[22:14:31 CET] <haasn> I've noticed that a few times in practice
[22:14:41 CET] <haasn> and it always makes me wish I could distinguish between signs and text in code
[22:14:43 CET] Action: iive adds blur image to ass.2.1
[22:14:49 CET] <haasn> because it would be trivial to render signs on top of the video and text on top of the final output
[22:15:05 CET] <haasn> that way it would also the best of all worlds
[22:15:14 CET] <haasn> signs would get affected by video color management and stuff like motion interpolation
[22:15:31 CET] <JEEB> PGS subs for signs and an ASS track for text? :P
[22:15:47 CET] <JEEB> PGS is even YCbCr (although libavcodec converts it to RGB)
[22:16:00 CET] <JEEB> so you can just literally overlay PGS subs on top of yer YCbCr :D
[22:16:19 CET] <JEEB> because the spec just says that the video's colorimetry applies. that's it
[22:18:03 CET] <haasn> yeah I would love something like that
[22:18:16 CET] <haasn> I would also love it if we had a second transparent H.264 track so we could hardsub all signs but still toggle them :p
[22:18:24 CET] <haasn> (and without having to re-encode the video track)
[22:18:32 CET] <haasn> of course that's a pipe dream
[22:18:38 CET] <haasn> even though the H.264 specs do support it (I think)
[22:18:57 CET] <iive> mpeg4 in higher profiles actually supports object and compositions
[22:19:18 CET] <nevcairiel> noone ever used that, hence why it went away again
[22:19:38 CET] <iive> e.g. you can encode the frame, but without the human face, the face is separate object ...
[22:19:53 CET] <JEEB> haasn: so basically you want two tracks and the player to be able to enable multiple at once :P
[22:20:14 CET] <iive> yeh, it involves a lot of complications in the decoder and even more in the encoder.
[22:21:03 CET] <JEEB> haasn: and if you don't remember, PGS are paletted video resolution based (usually) subpictures
[22:21:08 CET] <JEEB> vOv
[22:21:19 CET] <ubitux> fun fact: clamping like clip(x, min, max) in a spreadsheet is MEDIAN(min, x, max)
[22:22:15 CET] <iive> median sorts by value and takes the middle
[22:22:24 CET] <atomnuker> haasn: that's a shit dream, softsubbing signs sucks
[22:23:00 CET] <JEEB> didn't he want hardsubs as a subpicture track?
[22:23:08 CET] <atomnuker> yeah, and that's mental
[22:23:40 CET] <ubitux> iive: yes, which has the same result, so it's cool
[22:23:46 CET] <iive> ubitux: :)
[22:24:05 CET] <ubitux> it's like a clip function where you can shuffle all the args
[23:15:01 CET] <durandal_1707> kierank: i kind of have vlc lens but codes may be incorrect for cases when lens are same
[23:16:40 CET] <durandal_1707> what was the name of application that used qt api on Windows it was handy encoder
[23:16:41 CET] <kierank> I got problems my with my vlcs as well
[23:18:50 CET] <durandal_1707> are tables mentioned in specifications?
[23:20:11 CET] <kierank> durandal_1707: in my spec, yes
[23:20:17 CET] <kierank> but I can't decode some macroblocks
[23:20:57 CET] <durandal_1707> do you get any sensible output?
[23:21:19 CET] <kierank> I am just decoding the coefficients at the moment
[23:21:38 CET] <kierank> but I hang on some samples after a few hundred macroblocks but on another sample within 2 macroblocks
[23:22:46 CET] <durandal_1707> no need to align bits?
[23:22:59 CET] <kierank> dunno
[23:24:16 CET] <durandal_1707> well I would try to get some output to be sure at least basic stuff works
[23:25:07 CET] <kierank> i am a long way from that
[23:38:18 CET] <ubitux> http://sprunge.us/FEVL anything faster to suggest?
[23:41:50 CET] <nevcairiel> dont we have median3
[23:43:13 CET] <nevcairiel> mid_pred should be median3
[23:44:40 CET] <ubitux> nice!
[23:45:00 CET] <ubitux> (should we define av_clip on mid_pred? :-°)
[23:46:06 CET] <ubitux> ah unfortunately it's in libavcodec
[23:46:15 CET] <ubitux> i wonder if that's ok to include it in libavfilter
[23:46:15 CET] <nevcairiel> has arch optimizations though
[23:46:30 CET] <ubitux> should be fine as it's an inline though
[23:46:38 CET] <nevcairiel> mid_pred has a cmov variant
[23:46:43 CET] <iive> ubitux: i'd think that median might be a bit slower
[23:49:03 CET] <atomnuker> _clip* needs all the speed it can get, it's very frequently used on entire frames
[23:51:58 CET] <cone-608> ffmpeg 03Clément BSsch 07master:571a36015738: lavfi/transpose: add missing const options flags
[23:52:30 CET] <jamrial> av_clip* for integers have asm optimization on arm only. x86 has no saturate gprs instructions
[23:53:03 CET] <jamrial> they would be a nice addition for a potential future set, though (BMI3?)
[23:53:57 CET] <jamrial> one could maybe use packss* but moving from gpr to xmm and back to gpr is probably too slow to make a difference
[23:54:54 CET] <nevcairiel> maaybe a cmov thing like median3 could be used?
[23:58:18 CET] <cone-608> ffmpeg 03Clément BSsch 07master:afaaf8db1847: lavfi/selectivecolor: simplify crazy mid val computations
[23:58:23 CET] <ubitux> ok now i'm happy
[00:00:00 CET] --- Wed Dec 28 2016
1
0
[00:38:31 CET] <Modern13> if i use crf=0, is it lossless ?
[00:42:51 CET] <furq> with 8-bit x264, es
[00:42:52 CET] <furq> yes
[00:52:52 CET] <Modern13> with 10bit x264 it's not?
[00:53:29 CET] <Modern13> furq with 10bit x264 it's not?
[00:54:53 CET] <JEEB> it isn't
[00:55:05 CET] <JEEB> because crf values go to negative values with >8
[00:56:16 CET] <CoJaBo> Modern13: -qp 0
[02:13:24 CET] <miketo> can ffmpeg split a file into segments based on chapter metadata?
[02:39:54 CET] <Modern13> how come i cannot play some incomplete mp4 files but sometimes i CAN play incomplete mp4 file
[02:40:18 CET] <Modern13> note( i can always play incomplete mkv file)
[02:43:38 CET] <Modern13> how come i cannot play some incomplete mp4 files but sometimes i CAN play incomplete mp4 file ( i can ALWAYS play incomplete mkv file)
[02:56:47 CET] <miketo> Modern13: has to do with how the mp4 format was designed.
[02:57:01 CET] <Modern13> explain why sometimes plays sometimes don't
[02:57:08 CET] <Modern13> with mkv , it always plays
[02:58:14 CET] <miketo> mkv is different from mp4. in mp4 there's important metadata (i think called moov atom) usually at the end of file. it can be put in beginning of file but that requires more work.
[02:59:33 CET] <Modern13> miketo and with MKV , it's forced to put atom in the beginning?
[02:59:48 CET] <miketo> Modern13: here's an old discussion that might be relevant: http://forum.doom9.org/showthread.php?t=169815
[03:00:25 CET] <Modern13> can you put "atom at the end" with MKV file
[03:00:49 CET] <miketo> i don't think moov atom exists in mkv. remember it's different.
[03:00:54 CET] <Modern13> i see
[03:01:24 CET] <Modern13> if mp4 cannot play incomplete file, how is mp4 even such a popular format: this make no sense
[03:02:06 CET] <miketo> according to official sources here: it looks like the seeking/meta info is always in the header (beginning of file)
[03:02:09 CET] <miketo> https://matroska.org/technical/diagram/index.html
[03:02:38 CET] <Modern13> can you imagine if youtube cannot play unless you download the whole file
[03:03:08 CET] <miketo> popular doesn't mean perfect. mp4 weren't designed to be streamed.
[03:03:26 CET] <Modern13> what does youtube use then
[03:04:32 CET] <miketo> lots of things. the webpage player (or app) can choose different audio/video formats
[03:05:12 CET] <miketo> each video on youtube is transcoded into different qualities/formats. that way it can play on different connections(quality) and different devices (format)
[03:05:12 CET] <Modern13> youtube can always play incomplete video files though
[03:07:15 CET] <Modern13> miketo are you certain that mp4 with atom at the end are way more popular?
[03:08:01 CET] <miketo> the #1 trending video on youtube now is available as (12 video streams, 5 audio streams, and 5 combined streams) formats are: webm, mp4, m4a, 3gp
[03:09:32 CET] <miketo> no, i'm not certain. but from what i've read, it looks like that was the "older, established, or easiest" way. it can't be moved to beginning until *after* entire file has already been finished once
[03:10:16 CET] <Modern13> but it can always play in youtube
[03:10:59 CET] <miketo> yes, it would make sense that youtube would be smart enough to move the atom to the front. i'll download a mp4 video file and check if you want
[03:11:33 CET] <Modern13> i have about 30 mp4 files, how do i check if atoms are front or end
[03:12:15 CET] <miketo> Modern13: see here http://superuser.com/questions/559372/using-ffmpeg-to-locate-moov-atom
[03:16:56 CET] <miketo> also, small correction. it looks like youtube doesn't use mp4 container. it uses DASH (a stream-able container) for all of the non-combined streams. i'm downloading an older format mp4 (audio+video) version of the same video now to check
[03:18:44 CET] <miketo> yep. the mp4 youtube format does has moov atom at the beginning of file.
[03:19:30 CET] <Modern13> ffplay.exe -faststart test.mp4 doesn't work
[03:19:52 CET] <miketo> you can use youtube-dl to list the formats (-F) of a video, then download the one you want (-f ##). you can use AtomicParsley -T to list the mp4 atom tree
[03:20:09 CET] <Modern13> atomicparsley, is that part of ffmpeg ?
[03:20:27 CET] <miketo> don't think so. i came here for a different question.
[03:21:36 CET] <miketo> http://atomicparsley.sourceforge.net/ "AtomicParsley is a lightweight command line program for reading, parsing and setting metadata into MPEG-4 files"
[03:22:38 CET] <furq> dash isn't a container, it uses fragmented mp4 afaik
[03:23:07 CET] <furq> at least on youtube it does
[03:25:39 CET] <Modern13> i just did AtomicParsley input.mp4 -T
[03:25:49 CET] <Modern13> how do i tell if it's on beginning or end
[03:26:03 CET] <Modern13> i cannot tell from all the numbers it shows on display
[03:26:09 CET] <furq> also browsers can play an mp4 with the moov atom at the end without downloading the whole thing if the http server supports range requests
[03:26:51 CET] <miketo> thanks furq. i wasn't trying to be precise. it does seem to be some sort of container or stream format. MediaInfo shows "Format DASH, Codec ID DASH" even though the data is avc1
[03:27:42 CET] <Modern13> http://pastebin.com/yP9Avb9L is this end or beginning?
[03:27:54 CET] <furq> mpeg-dash is a streaming protocol, like hls
[03:28:20 CET] <furq> except hls uses mpegts fragments
[03:29:15 CET] <miketo> Modern13: second line says mov is at byte 24, and size 931974 (about 910kb)
[03:29:49 CET] <Modern13> miketo i see, thanks
[03:29:54 CET] <Modern13> so safe to say that's beginning?
[03:30:17 CET] <miketo> yes,
[03:32:28 CET] <miketo> furq: cool, thanks.
[03:35:33 CET] <Modern13> You must be off your block thinking I'm going to tag a file that is at LEAST 4005456973 bytes long.
[03:35:33 CET] <Modern13> AtomicParsley doesn't have full 64-bit support
[03:36:33 CET] <Modern13> what is this error message
[03:37:33 CET] <miketo> furq: looking at hexdump i can see the the string 'ftypedash' after a few nulls at beginning of file. it doesn't seem entirely honest to say it's only a protocol since it persists into on-disk storage. media player don't have a problem with it
[03:39:47 CET] <Modern13> how do i use option faststart with ffmpeg ?
[03:40:07 CET] <Modern13> or ffplay
[03:41:12 CET] <miketo> Modern13: did you check here: https://www.ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv
[03:41:38 CET] <miketo> Modern13: what are you trying to accomplish?
[03:42:03 CET] <Modern13> i want to see if mp4 is beginning or end by using ffplay
[03:42:08 CET] <Modern13> atom*
[03:43:10 CET] <Modern13> atomicparsley is too buggy
[03:53:46 CET] <miketo> Modern13: try this command to see if the moov atom is in the file: strings <FILE> | grep "moov"
[03:54:07 CET] <Modern13> would that work in cmd.exe ?
[03:54:47 CET] <miketo> probably not. those are unix utilities, but there are versions available for windows
[03:56:05 CET] <Modern13> miketo i think i found a better app
[03:56:25 CET] <Modern13> MP4Box from the gpac package can do that.
[03:56:26 CET] <Modern13> Code:
[03:56:26 CET] <Modern13> MP4Box -info -v file.mp4
[03:56:26 CET] <Modern13> If you only need to check that moov is before mdat, -v (verbose) is not even necessary : MP4Box -info will display "File suitable for progressive download (moov before mdat)".
[03:57:05 CET] <miketo> cool, thanks for the info. hope that's what you needed
[04:03:48 CET] <Modern13> if i do ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4 does that create mp4 with moov in the beginning or end
[04:04:34 CET] <miketo> there are no moov atoms in mkv files. the atoms are part of how mp4 container works
[04:04:51 CET] <Modern13> i know
[04:04:59 CET] <Modern13> but look at the question i am asking carefully
[04:05:03 CET] <miketo> oh sorry ^^;
[04:05:20 CET] <miketo> read backwards. it will (almost certainly!) put it at the end
[04:05:56 CET] <miketo> there's a setting to move it to the beginning that defaults to "disabled"
[04:05:59 CET] <Modern13> does fmpeg support putting in the beginning ?
[04:06:09 CET] <Modern13> oh? how?
[04:06:47 CET] <miketo> did you even skim the link i gave about faststart? (
[04:06:47 CET] <miketo> https://www.ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv )
[04:07:59 CET] <miketo> " it can be moved to the start for better playback by adding faststart to the movflags " also scroll down to "-movflags faststart"
[04:09:18 CET] <Modern13> ffmpeg -i input.mkv qt-faststart -vcodec copy -acodec copy output.mp4
[04:09:20 CET] <Modern13> is this correct
[04:11:12 CET] <miketo> i can't imagine
[04:11:45 CET] <miketo> use "-movflags faststart"
[04:12:00 CET] <Modern13> oh okay
[04:12:47 CET] <Modern13> is there disadvantage of putting in the beginning?
[04:12:51 CET] <Modern13> or using -movflags faststart
[04:14:06 CET] <Modern13> miketo didn't work: Option movflags not found.
[04:14:28 CET] <Modern13> ffmpeg -movflags faststart -i R:\4-1.mkv -vcodec copy -acodec copy R:\output.mp4
[04:14:36 CET] <miketo> from how i understand it: the file itself might be better, but it takes more work to make it.
[04:15:40 CET] <miketo> i just tested with "ffmpeg -i input.mkv -c copy -movflags faststart test.mp4" and it worked fine
[04:16:07 CET] <miketo> i'd bet it's an output option (has to be before the output file name *NOT* before the "-i"
[04:16:14 CET] <Modern13> oh
[04:17:46 CET] <Modern13> thanks, it worked
[04:18:09 CET] <miketo> np ^^;
[04:19:51 CET] <Modern13> i see more mp4 files that has movflag in the beginning than end
[04:24:05 CET] <Modern13> i thought end is more popular
[04:24:58 CET] <miketo> i have no idea about popular. the end is more "natural"
[04:26:07 CET] <miketo> you can't make the moov atom until you know details like the exact length of the other data. since you have this information when you're done, it's natural to write it at the end.
[04:29:43 CET] <Modern13> then why do i see more mp4 files that has movflag in the beginning than end
[04:30:13 CET] <Modern13> i just randomly downloaded bunch of mp4 to test
[04:31:59 CET] <miketo> if it's at the front of the file, then the file had to have (at least one) extra processing step. i'm not surprised that many places will go through the extra step to make files that stream better. depending on where the file is from, i'd expect it
[04:32:46 CET] <miketo> for example, it seems all youtube mp4 have moov in front. that's not surprising since we know youtube already spends a lot of cpu to re-encode every uploaded file for the best user experience
[04:34:55 CET] <Hello71> lol, downloaded bunch from youtube
[04:35:36 CET] <Modern13> Hello71 no none of them from youtube
[04:35:48 CET] <Modern13> because that will be pointless, they all will be on the front
[04:36:04 CET] <Modern13> what other container supports x264/aac other than mp4 and mkv
[04:38:08 CET] <miketo> Modern13: lots. https://en.wikipedia.org/wiki/Comparison_of_video_container_formats
[04:38:59 CET] <Modern13> what would you recommend to use if "mp4/mkv" wasn't the one of the choice
[04:39:22 CET] <Modern13> and that ffmpeg supports muxing to
[04:40:42 CET] <miketo> i'm no expert. but i use mkv. it supports so much. if you can't use mkv for some reason, then that reason will probably tell you which to use (example: device doesn't support mkv, but does support mp4)
[04:41:11 CET] <Modern13> miketo i heard webm is popular, but i don't see that in that wiki site
[04:42:24 CET] <miketo> i'm likely to be wrong, but i think webm is a subtype of mkv (simpler version for mobile or something)
[04:42:49 CET] <Modern13> i never heard that
[04:42:58 CET] <Modern13> does ffmpeg support webm
[04:43:37 CET] <miketo> it seems to decode webm perfectly, but i don't think to can encode into webm
[04:44:32 CET] <miketo> from wiki: "The WebM container is based on a profile of Matroska" matroska is the name for mkv extension
[04:45:51 CET] <Modern13> miketo what about mux mp4 to webm
[04:49:10 CET] <miketo> from ffmpeg "Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM"
[04:50:07 CET] <miketo> so you'd have to re-encode if not using those codecs, but it does seem to work
[04:53:12 CET] <Modern13> ok
[04:57:09 CET] <miketo> i need to go. good luck
[05:03:21 CET] <jay_> hello~!
[05:03:45 CET] <jay_> Somebody help me.
[05:04:13 CET] <jay_> Unrecognized option 'tune'. Error splitting the argument list: Option not found
[05:05:31 CET] <jay_> ffmpeg -i 'pipe:0' -acodec copy -vcodec copy -preset ultrafast -tune zerolatency -f flv rtmp://loacalhost:1935/src/
[05:06:45 CET] <jay_> Can anyone help? I have no idea what to do.
[05:07:11 CET] <jay_> ffmpeg version N-82166-g894e7ef Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-9) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin libavutil 55. 35.100 / 55. 35.100 libavcodec 57. 65.100 / 57. 65.100 libavformat 57. 57.100 / 57. 57.100 libavdevice
[06:03:13 CET] <miketo> jay_: -tune isn't an option for flv format
[06:04:08 CET] <miketo> it's an x264 option, but you're not using x264
[08:18:09 CET] <Janos__> Hi, I am trying to figure out why ffmpeg started to make recording in slower speed and pitch than the original source?
[08:19:37 CET] <Janos__> I've been using kazam to do some screen capturing, I first thought it's an issue with kazam, but now I've tried a few different screen capture tools, and they all produce the same slowed down video/audio
[08:24:39 CET] <Janos__> Has anyone here had a similar experience and knows what to do? I've been searching for a solution but found nothing..
[09:07:05 CET] <torroid> Hi! Im would like to contribute.. Please could I get a starting point?
[09:08:04 CET] <Janos__> maybe try the Development channel
[09:08:16 CET] <Janos__> at: #ffmpeg-devel
[09:09:44 CET] <torroid> thanks a lot!
[09:10:02 CET] <JEEB> just start with building
[09:11:59 CET] <Janos__> I did some cli tests, and the problems seems to be linked to recording from the analog-stereo monitor
[09:12:38 CET] <Janos__> ffmpeg -y -f pulse -i default -r 30 -f x11grab -s 1920x1080 -i ${DISPLAY} -c:v libx264rgb -crf 0 -preset:v ultrafast -c:a pcm_s16le -af aresample=async=1:first_pts=0 out1.mkv
[09:13:00 CET] <Janos__> records from the microphone with perfect speed
[09:13:11 CET] <Janos__> ffmpeg -y -f pulse -i alsa_output.pci-0000_00_14.2.analog-stereo.monitor -r 30 -f x11grab -s 1920x1080 -i ${DISPLAY} -c:v libx264rgb -crf 0 -preset:v ultrafast -c:a pcm_s16le -af aresample=async=1:first_pts=0 out2.mkv
[09:15:57 CET] <Janos__> records from the analog-stereo, the sound is slow and low pitch
[09:51:01 CET] <Janos__> https://ubuntuforums.org/showthread.php?t=2347599
[09:51:43 CET] <Janos__> I started a thread, so I can provide more details and make it easier to discuss the issue... if someone feels like taking a look and/or help me out, I'd greatly appreciate it :)
[09:58:31 CET] <pomaranc> that may be a problem with pulseaudio
[09:58:46 CET] <pomaranc> because pulseaudio sucks
[13:12:49 CET] <zetheroo> I have these videos taken with my DSLR at 1080p. They are pretty big - 1GB = @6 min. I would like to downsize them without loosing quality ... as much as possible. I have been trying with WinFF but the output files are just as larger, or larger, than the originals.
[13:16:53 CET] <ikevin> zetheroo, you can't compress a video without loosing quality
[13:19:10 CET] <zetheroo> ikevin: Handbrake seems to do the trick, except that there is no audio on the file after conversion
[13:20:03 CET] <zetheroo> video is still 1080p and near to the same quality as the original but is less than half the size of the original
[13:20:33 CET] <zetheroo> YouTube seems to also keep the quality while compressing video quite a bit
[13:21:42 CET] <zetheroo> how can I compress my video's with ffmpeg?
[13:22:44 CET] <BtbN> youtube keeping the quality? If you mean getting rid of any quality that might have been in the original video, maybe.
[13:22:47 CET] <DHE> yes. how much to compress is a bit of a black art...
[13:23:06 CET] <zetheroo> I guess so
[13:23:11 CET] <DHE> and yes, BtbN is right. youtube bitrate is actaully rather low. maybe fine for talking faces, but horrible for motion
[13:23:19 CET] <kerio> they keep the quality for themselves
[13:23:22 CET] <zetheroo> there is always going to be a tradeoff I suppose
[13:23:29 CET] <DHE> zetheroo: pastebin the output of "ffprobe $inputfile"
[13:23:30 CET] <BtbN> Unless you go loessless
[13:23:36 CET] <BtbN> -e
[13:23:41 CET] <DHE> just want to see what you're getting. for example you might be getting PCM audio
[13:24:06 CET] <BtbN> x264 with crf 20-22 should be fine for you though, and not too huge
[13:26:36 CET] <zetheroo1> DHE: https://paste.ubuntu.com/23694041/
[13:29:39 CET] <zetheroo1> yes, it does seem to have PCM audio
[13:30:41 CET] <DHE> alrighty then. as an off-the-top-of-my-head command, ffmpeg -i DSC_0265.MOV -c:v libx264 -crf:v 21 -c:a aac -b:a 128k output.mp4
[13:31:00 CET] <zetheroo1> ok, will give that a whirl
[13:31:13 CET] <BtbN> -c:a aac -b:a 196k -c:v libx264 -crf 21 out.mp4
[13:31:44 CET] <BtbN> maybe add -movflags faststart
[13:32:00 CET] <zetheroo1> got some message:
[13:32:01 CET] <zetheroo1> [aac @ 0x15e6cc0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
[13:32:01 CET] <zetheroo1> [aac @ 0x15e6cc0] Alternatively use the non experimental encoder 'libvo_aacenc'.
[13:32:09 CET] <DHE> oh you have an old version of ffmpeg
[13:32:17 CET] <zetheroo1> :P
[13:32:32 CET] <BtbN> update it first.
[13:32:44 CET] <DHE> still, you should be able to just replace "aac" with "libvo_aacenc" as indicated and at least have it go
[13:33:00 CET] <zetheroo1> I think it's the latest in the Ubuntu repos
[13:33:16 CET] <zetheroo1> ok, trying with libvo_aacenc
[13:33:47 CET] <DHE> one thing to keep in mind is that distros will often keep the same version (or version branch) as long as possible so as to avoid breaking applications dependent on version-specific features and syntax
[13:33:54 CET] <BtbN> that encoder is even worse
[13:33:58 CET] <BtbN> forget about it, and update ffmpeg.
[13:34:04 CET] <DHE> oh... yeah that makes sense actually
[13:34:19 CET] <zetheroo1> looking for an ffmpeg PPA ;)
[13:34:33 CET] <BtbN> just download a static binary
[13:34:45 CET] <DHE> just make sure it has x264 in it. most do though
[13:36:44 CET] <zetheroo1> updating
[13:38:00 CET] <zetheroo1> ok, updated - how do you see the version etc?
[13:38:11 CET] <BtbN> run without arguments
[13:38:45 CET] <zetheroo1> https://paste.ubuntu.com/23694081/
[13:38:53 CET] <zetheroo1> is that better?
[13:39:02 CET] <BtbN> still just a stable release, but should get the job done
[13:39:05 CET] <DHE> quite a bit better
[13:39:25 CET] <DHE> 2016-12-02 vs... probably 2015 something I'd bet
[13:39:43 CET] <zetheroo1> ok, so going to try again with aac
[13:39:54 CET] <zetheroo1> it's going ...
[13:46:59 CET] <zetheroo1> ok, so the output file is about half the size
[13:47:15 CET] <DHE> raising the crf value will give smaller files but lower image quality
[13:47:23 CET] <zetheroo1> ok
[13:49:43 CET] <zetheroo1> I can't really tell the difference in quality between the orig and the converted video ...
[13:50:47 CET] <zetheroo1> is there any way to see in the file stats/info what the difference in quality is?
[13:54:35 CET] <DHE> not really. it's all perceptual. x264 prints various technical stats but technical reports and what your eyes think don't necessarily relate
[13:55:35 CET] <zetheroo1> ok
[14:01:04 CET] <zetheroo1> is there a way to queue several videos for conversion?
[14:01:14 CET] <BtbN> use your shells capabilities to run loops.
[14:22:08 CET] <xeche> hey guys
[14:22:31 CET] <xeche> anyone seen this before? [hevc_qsv @ blahblah] Could not load the requested plugin: 2fca99749fdb49aeb121a5b63ef568f7
[14:23:38 CET] <xeche> I've been digging around the source code a bit, and it looks like FFMPEG assumes the hash of a dynamically linked plugin (?) should be the hash mentioned above, but there's very little in the Intel Media SDK that suggests a plugin with that hash even exists?
[16:06:10 CET] <FlyingBot> Hello there. I'm trying to burn a timecode using milliseconds and starting at hour '01' (e.g.: '01:00:00.344'). Right now I'm using "text='%%{pts \\: hms}'", but it starts at hour '00'. How could I change that?
[18:19:13 CET] <pbos> Hi, is there a good way to print resolution/fps of a y4m file, I'm automating codec quality comparisons
[18:19:39 CET] <fritsch> mediainfo + grep
[18:19:43 CET] <pbos> and am currently relying on the format file_1280_720.yuv which is a little clunky
[18:19:45 CET] <fritsch> or ffprobe + grep
[18:20:00 CET] <pbos> thanks
[18:24:54 CET] <JEEB> ffprobe can output json
[18:24:59 CET] <JEEB> and you can use whatever scripting language
[18:25:01 CET] <JEEB> but uhh
[18:25:12 CET] <JEEB> .yuv files generally have no headers or anything
[18:25:14 CET] <pbos> json + bash are bffs, right?
[18:25:24 CET] <pbos> yeah, hence I figure y4m would be better
[18:25:33 CET] <pbos> it's also what most (all?) of the derf set is in
[18:25:36 CET] <JEEB> yes
[18:25:49 CET] <JEEB> just noted that if it was raw YCbCr without anything else you wouldn't get any info
[18:26:01 CET] <JEEB> but yes, y4m gives you a few pieces of info
[18:26:08 CET] <pbos> thanks :)
[18:43:20 CET] <FlyingBot> Hello there. I'm trying to burn a timecode using milliseconds and starting at hour '01' (e.g.: '01:00:00.344'). Right now I'm using "text='%%{pts \\: hms}'", but it starts at hour '00'. How could I change that?
[20:47:51 CET] <pbos> Running ffmpeg in a bash script deep in somewhere changes my stty -a, can I make ffmpeg not touch this, am I wielding it wrong?
[20:48:07 CET] <pbos> manifests itself as not being able to echo characters
[20:49:24 CET] <pbos> python script runs shell script using subprocess, the shell script runs ffmpeg, after running ffmpeg -i foo.y4m foo.yuv my tty no longer echoes characters
[20:50:10 CET] <pbos> diff: https://www.diffchecker.com/13srhuhf
[20:50:15 CET] <pbos> -loglevel quiet doesn't help
[20:50:40 CET] <llogan> try adding "-nostdin" ffmpeg option
[20:51:56 CET] <pbos> no luck, even if the shell script calls exit just after that
[20:53:18 CET] <pbos> ffmpeg -i foo bar < /dev/null did it
[20:53:27 CET] <pbos> since I have a shell that's alright
[20:53:57 CET] <llogan> by "did it" you mean it fixed your issue?
[20:54:11 CET] <pbos> yep, stopped mucking up my terminal
[20:54:55 CET] <llogan> -nostdin should have had the same result
[20:55:17 CET] <llogan> i guess
[20:55:38 CET] <pbos> let me double check
[21:00:38 CET] <pbos> nope, -nostdin mucks it, < /dev/null doesn't
[21:35:18 CET] <__raven__> hi
[21:35:23 CET] <__raven__> how to save the best possible quality of 25i pal video captured from analogue input into mp4? to avoid interlacing artifacts into 25p converted mp4 i would like to have a 50p output with doubled odd and even lines. how to do that?
[21:37:04 CET] <pbos> __raven__: Doesn't that simply render out the interlacing artifacts?
[21:37:24 CET] <pbos> __raven__: Have you looked at yadif or any other deinterlacing filter?
[21:39:02 CET] <furq> yadif mode 1 will do that
[21:39:32 CET] <furq> if you want "best possible quality" then you probably want to use a slower deinterlacer like nnedi
[21:39:41 CET] <furq> nnedi in ffmpeg is incredibly slow, though
[21:39:57 CET] <furq> you can use it multithreaded in avisynth/vapoursynth if yadif isn't good enough for you
[21:41:24 CET] <furq> http://avisynth.nl/index.php/QTGMC
[21:41:42 CET] <furq> i use the vapoursynth port of that for interlaced sd stuff, it's great if you can tolerate how slow it is
[21:41:50 CET] <furq> yadif will probably be fine for hd
[21:43:44 CET] <__raven__> furq: main problem now is: mpeg2@25mbits kind of blurs and "washes" out the image and adds artifacts from the encoded lines. transcoding to mpeg4 with yadif is even worse due to a blended deinterlacing instead of doing it linear by just double the lines and putting the "full frame fields" into a 50p
[21:44:30 CET] <__raven__> so the main issue here is to find a deinterlacer which does not modify the image by blending lines but just double the lines
[21:45:20 CET] <Mavrik> em
[21:45:29 CET] <Mavrik> shouldn't there be a setting for yadif to do that?
[21:47:30 CET] <pbos> __raven__: If it does exactly what you're describing then you'll probably have bobbing artifacts
[21:47:46 CET] <__raven__> i actually have 1,-1,0 what should "output a frame for a field" but those frames have a blended output. i checked agains a drop-method: those pics are "clean"
[21:47:47 CET] <pbos> or I'm misunderstanding it
[21:48:38 CET] <__raven__> what are those?
[21:50:00 CET] <furq> like i said, yadif mode 1 will give frame-per-field output
[21:50:21 CET] <furq> -vf yadif=1
[21:51:03 CET] <furq> i think it's slightly more smart than just outputting double-height fields, but i couldn't tell you how
[21:51:24 CET] <furq> since that's what -vf bob would do, and it'd be a fair bit faster
[21:51:30 CET] <pbos> if it's just duplicating lines there'll be significant artifacts
[21:52:17 CET] <__raven__> furq: but something is just wrong. in moving sequences with stepping trough the frames i see a frame which seems to be blend together by two "moving" fields. thats not there when i just drop the frames but of course i loose resolution
[21:52:26 CET] <furq> oh wait was there ever a -vf bob
[21:52:41 CET] <pbos> furq: bwdif maybe?
[21:52:51 CET] <furq> either way that's what a bob filter does, and those never look great
[21:52:56 CET] <furq> so i assume yadif is doing some additional magic
[21:53:02 CET] <pbos> otherwise I'll stop googleguessing
[21:53:09 CET] <furq> yadif is designed for playback, though, so it's not the best for non-realtime
[21:53:38 CET] <__raven__> hmmm
[21:53:57 CET] <furq> qtgmc does a great job with that kind of source, but it's slow and it's a lot of work to set it up
[21:54:16 CET] <__raven__> ok so half size would be ok too
[21:54:34 CET] <furq> ffmpeg has a nnedi implementation, but it's really slow because libavfilter doesn't have frame multithreading
[21:54:49 CET] <furq> slow enough to severely bottleneck x264 veryslow
[21:55:07 CET] <__raven__> anything what sorts out artifacts from mpeg suffering trying to encode interlaced frames would be fine for me :)
[21:55:23 CET] <furq> that's more or less what qtgmc was designed to do
[21:55:47 CET] <furq> it uses nnedi as the deinterlacer but it does a lot of additional stuff that's designed for transcoding messy mpeg2 sources
[21:55:59 CET] <furq> i use it for all my interlaced dvd rips, it works a treat
[21:56:48 CET] <__raven__> ingest material is huffyuv now so the first problem is solved by now. next mpeg4 needs to avoid that effect
[21:58:58 CET] <__raven__> so the actual goal should be not more than basically "just" doubling every existing frame to 50p and half even and odd frames next
[21:59:09 CET] <__raven__> correct me if i am wrong
[21:59:56 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#separatefields-1
[22:00:01 CET] <furq> you could try that and scale afterwards
[22:00:21 CET] <furq> i guess there's no need for a regular bob filter when you can do that and pick your resize filter
[22:00:53 CET] <pbos> You should notice artifacts. :)
[22:01:13 CET] <furq> well yeah i'm not saying it'll look good
[22:01:28 CET] <furq> that's what was asked for, though
[22:01:34 CET] <pbos> true
[22:01:47 CET] <pbos> __raven__: look at it then reconsider reconsidering :)
[22:02:03 CET] <furq> yeah there's only one way to find out if it does the job
[22:02:12 CET] <furq> also when you say "mpeg4" do you mean x264
[22:02:28 CET] <__raven__> right
[22:02:35 CET] <furq> ok good
[22:02:49 CET] <furq> that rules out the problem being that mpeg4 sucks
[22:03:01 CET] <pbos> if you have only k*25hz motion it's probably the best deinterlacing filter ever
[22:03:25 CET] <__raven__> how have broadcast stations been doing this by imx for example? they had 25 - 50mbits mpeg2 and interlaced sd and i never noticed any artifacts?
[22:04:04 CET] <furq> if you mean on your tv, it's because your tv probably has a good deinterlacer
[22:04:23 CET] <__raven__> did they use a 25p mpeg2 fullsize or a 50p halfsize?
[22:04:33 CET] <furq> they use both afaik
[22:04:39 CET] <furq> sport is usually 50i
[22:04:51 CET] <__raven__> furq: sorry i have to say that i was working on a tv station but never had any insights into the playout servers
[22:05:40 CET] <furq> if you mean the theory behind how the good deinterlacer works, i'm not really the man to ask
[22:06:11 CET] <furq> i just hang out in places for long enough to hear about what the best words to type into ffmpeg are
[22:06:14 CET] <Threads> what about -r 50.000 -vf yadif=1,scale=720:404,setsar=1:1,format=yuv420p
[22:06:17 CET] <furq> (or vapoursynth)
[22:06:30 CET] <Threads> im not a quality whore but i use that for 50fps output
[22:06:38 CET] <furq> quite a lot of that seems redundant
[22:06:52 CET] <__raven__> not the interlacer! it was a "natively" sd-pal sdi environment so the only question is, how did they sort out any line artifacts on the files?
[22:07:02 CET] <furq> -vf yadif=1 will already set the output framerate to 50 and scale it correctly
[22:07:10 CET] <furq> and also it won't change the pixel format
[22:07:20 CET] <Threads> furq i like to go the long way round
[22:07:42 CET] <Threads> you say 2 lines i say 15lines
[22:08:14 CET] <furq> well yeah but that'll needlessly fuck up non-25fps sources
[22:08:35 CET] <furq> there is often no harm in being verbose but that just makes your command more specific for no good reason
[22:08:46 CET] <furq> more specific wrt what inputs it'll take
[22:09:12 CET] <furq> __raven__: i'm pretty sure they just broadcasted it interlaced and let the customers' tvs sort it out
[22:09:19 CET] <furq> that's fairly standard
[22:09:38 CET] <furq> s/broadcasted/broadcast/
[22:10:04 CET] <__raven__> furq: i am talking about the mpeg2 files on the broadcast servers. those already had interlaced material "in it"
[22:10:14 CET] <furq> yeah they would just broadcast those as-is
[22:10:23 CET] <MonicleLewinsky> Okay, I've got a stumper (at least for me). I'm trying to remux a .ts video with Closed Captions (EIA-608) into an mkv. ffmpeg keeps losing the captions
[22:10:50 CET] <furq> at least in my limited experience
[22:11:07 CET] <furq> i know all the hd content i get is 50i
[22:11:39 CET] <Threads> MonicleLewinsky tried -c copy ?
[22:11:43 CET] <MonicleLewinsky> Threads: Yes
[22:11:50 CET] <__raven__> so what approach would work for me if i want to have a 720*288@50p output from the given 25p interlaced input?
[22:12:12 CET] <furq> if your input is 576p then just use -vf separatefields
[22:12:12 CET] <pbos> __raven__: probably frame by frame, e.g. just stored in half-height frames with some metadata describing which frame is upper and which frame is the lower fields
[22:12:49 CET] <MonicleLewinsky> Threads: -i movie.ts -map 0 -c copy movie.mkv
[22:12:57 CET] <MonicleLewinsky> ^ Is what I've tried
[22:13:05 CET] <furq> closed captions are some kind of side data in the video stream iirc
[22:13:11 CET] <furq> i forget if ffmpeg handles those properly
[22:13:14 CET] <pbos> __raven__: Any reason why you believe yadif would not do it?
[22:13:19 CET] <furq> it's not just a subtitle stream though
[22:13:24 CET] <furq> pbos: he asked for half-height output
[22:13:51 CET] <pbos> oh, uuh, isn't that what you suggested as separatefields?
[22:13:55 CET] <furq> yeah
[22:14:00 CET] <furq> that's exactly what separatefields does
[22:14:01 CET] <pbos> __raven__: ^
[22:14:07 CET] <pbos> -vf separatefields
[22:14:15 CET] <pbos> if my very-beginner ffmpeg foo holds
[22:14:25 CET] <furq> 21:12:12 ( furq) if your input is 576p then just use -vf separatefields
[22:14:28 CET] <furq> looks fine to me
[22:14:48 CET] <pbos> for some definition of fine
[22:14:55 CET] <MonicleLewinsky> furq: How would I check if it handles that?
[22:14:56 CET] Action: pbos ducks.
[22:15:10 CET] <__raven__> yadif did mix two fields and caused kind of ghosting any way
[22:15:21 CET] <pbos> try one of the non-realtime filters
[22:15:25 CET] <__raven__> i will try some of the options and investigate it. tnx so far :)
[22:15:58 CET] <pbos> __raven__: https://ffmpeg.org/ffmpeg-filters.html#nnedi was also suggested
[22:16:13 CET] <pbos> not sure if it doubles your fps or not
[22:16:21 CET] <pbos> consider looking into that though
[22:16:37 CET] <furq> it does by default
[22:16:42 CET] <furq> it's incredibly slow, though
[22:16:50 CET] <furq> i'd never use the ffmpeg implementation until it gets frame multithreading
[22:17:05 CET] <pbos> you could split the input, do it in parallel and merge
[22:17:12 CET] <furq> i think last time i tried to use it i was getting ~3fps encoding sd mpeg2
[22:17:42 CET] <pbos> I'm taking Threads' complicated route.
[22:18:09 CET] <furq> well the complicated route would be setting up vapoursynth and using a multithreaded implementation
[22:18:33 CET] <furq> 15fps is at least tolerable
[22:20:40 CET] <furq> MonicleLewinsky: there appears to be a closed caption decoder but i can't tell how you actually use it
[22:20:57 CET] <MonicleLewinsky> Whoa. 'ffmpeg -f lavfi -i "movie=./video.ts[out0+subcc]" -map s video.srt' seems to be doing something
[22:21:26 CET] <MonicleLewinsky> The time estimates are really jumping around though
[22:22:32 CET] <furq> you might need ffmpeg with libzvbi?
[22:25:42 CET] <MonicleLewinsky> furq: Does that just involve a re-compile with a flag I'm missing?
[22:35:03 CET] <Tommi> hi all... requesting some help on my attempt to compile kdenlive, where ./configure in ffmpeg can't seem to find libtheora. the package shows as installed. recompiled ffmpeg with the latest build, and the problem persists
[22:35:37 CET] <c_14> do you have the -dev version installed?
[22:35:39 CET] <JEEB> check the results of the configure checks
[22:35:50 CET] <JEEB> and yes, if your distro packages the development library and headers separately...
[22:35:53 CET] <JEEB> make sure they are installed
[22:36:12 CET] <furq> MonicleLewinsky: yeah, but bear in mind i have no idea whether that'll do anything
[22:36:29 CET] <furq> google isn't coming back with much of any use
[22:37:25 CET] <Tommi> c_14: the -dev for which package?
[22:37:34 CET] <c_14> libtheora
[22:38:16 CET] <Tommi> let me check!
[22:42:02 CET] <Tommi> let me check!; https://cloud.kjuicer.com/index.php/s/pdfyXglpmDlxp8W
[22:42:27 CET] <Tommi> whoops: the above is the link to my config.log
[22:42:50 CET] <Tommi> the message got messed up, sorry
[22:44:36 CET] <Tommi> JEEB: yesterday I checked the config.log but could not understand/identify what went wrong. the version of libtheora that shows up is libtheora-1.1.1-13.fc23.x86_64
[22:46:22 CET] <JEEB> Tommi: it's the libtheora-devel package then that you need :P
[22:46:53 CET] <JEEB> and you search config.log for theora basically, it does a couple of checks for if the thing is around and usable
[22:47:08 CET] <Tommi> intuitively it does not look like a -dev. does libetheora come from compiling ffmpeg-3.2.2.tar.bz2 or it is a separate package?
[22:48:05 CET] <Tommi> JEEB: ok let me try to install that version + check the log
[22:48:14 CET] <Tommi> thanks!
[22:48:42 CET] <JEEB> libtheora is the library that provides the theora decoding and encoding library, the -devel package of that provides the headers and non-versioned library :P
[22:48:53 CET] <JEEB> FFmpeg can use libtheora to encode theora video
[22:49:09 CET] <JEEB> if you don't need theora video encoding the libtheora is literally useless for you
[22:50:27 CET] <Tommi> mmm... unsure. but I need ffmpeg for kdenlive, which is video
[22:50:39 CET] <__raven__> i made some more tests. results are those: http://picpaste.com/EdMcvmYe.png
[22:50:57 CET] <stringtheory> Hi, I just installed ffmpeg I'm running it through the windows 7 terminal, how do I pull 3rd party libraries?
[22:51:07 CET] <JEEB> Tommi: kdenlive just uses ffmpeg's libraries to encode its output. and theora is probably one of the formats it will give you as the alternative :P
[22:51:19 CET] <JEEB> stringtheory: you have to do that during build time
[22:51:30 CET] <JEEB> at least for most things
[22:51:47 CET] <JEEB> some things like avisynth and cuvid have dynamic loading support I think?
[22:51:58 CET] <__raven__> as you can see, yadif processes the image itself and adds some slightly blur and colour artifacts and separatefields aso seems to be no option due to broken motion
[22:52:55 CET] <stringtheory> @JEEB thanks, so I need the source code, and compile my own build?
[22:53:23 CET] <JEEB> yes
[22:53:36 CET] <pbos> __raven__: Strange clip to use for quality, fwiw
[22:54:02 CET] <__raven__> pbos: thats the best i am able to generate now. thats from the internal character generator of the vhs player
[22:55:20 CET] <pbos> __raven__: This clip will heavily skew you towards wanting to duplicate all the lines
[22:55:27 CET] <pbos> you have no horizontal/vertical motion at all
[22:55:41 CET] <__raven__> pbos: yes
[22:56:47 CET] <stringtheory> JEEB: what language is ffmpeg written in? Python?
[22:56:53 CET] <pbos> __raven__: I'd generate an interleaved clip from 60fps example video, see https://ffmpeg.org/ffmpeg-filters.html#interleave_002c-ainterleave
[22:57:00 CET] <pbos> stringtheory: a lot of c, python is slow
[22:57:46 CET] <__raven__> pbos: i wanted to include the analogue path to add some "stress" to the codec
[22:57:59 CET] <pbos> __raven__: might also be -vf il
[22:58:09 CET] <pbos> I have no ffmpeg experience, more general video stuff
[22:58:20 CET] <__raven__> il?
[22:58:21 CET] <stringtheory> JEEB: Makes sense, good to know I don't need anything extra to compile builds
[22:58:22 CET] <pbos> __raven__: How do you reckon that stresses the codec?
[22:58:28 CET] <pbos> __raven__: https://ffmpeg.org/ffmpeg-filters.html#il
[22:58:34 CET] <pbos> I'm just googling at this point
[22:58:46 CET] <__raven__> pbos: its at least a bit noise in the image
[22:59:48 CET] <pbos> __raven__: There should be some handycam example files that you could find that are interleaved
[22:59:49 CET] <Tommi> JEEB+c_14: well, compiling went much further :) not it seems to be stuck on mlt, which is some progress. thank you
[23:00:00 CET] <Tommi> *now
[23:00:05 CET] <pbos> I don't think the derf set contains any interleaved files
[23:01:32 CET] <pbos> __raven__: or -vf smooth, -vf noise if you want to mess with it
[23:02:01 CET] <pbos> __raven__: Since you're doing this at all, don't you have a clip that you want to solve this for?
[23:03:08 CET] <__raven__> pbos: of course - i need to digitize about 83 vhs tapes 4h each so i need to test the workflow
[23:03:29 CET] <furq> yeah it's best to use a representative sample
[23:03:42 CET] <furq> if you're doing that much stuff then i'd look into vapoursynth and qtgmc
[23:03:49 CET] <furq> it's worth the initial setup costs
[23:23:53 CET] <pbos> __raven__: Can you digitize the first 30 seconds of a VHS tape then use that as your test clip?
[23:23:59 CET] <pbos> I'd also do multiple test clips
[23:24:41 CET] <__raven__> pbos: yes i did already. ff also produces good test interlaces ^^
[23:24:55 CET] <__raven__> but i am not anything near a final solution
[23:25:07 CET] <pbos> __raven__: Then use those as your comparison clips when testing deinterlacing
[23:25:25 CET] <pbos> and you can't do single-frame comparisons if you want to be fair, there's plenty of temporal artifacts when deinterlacing.
[23:25:49 CET] <__raven__> still the drop method had the most clearest image but i do not want to loose half of the lines
[00:00:00 CET] --- Wed Dec 28 2016
1
0
[00:07:05 CET] <kierank> the headers that the parser uses as far as I can tell don't need vlc codes
[00:44:38 CET] <michaelni> the parser could call code that calls mpeg4_decode_sprite_trajectory() i think
[00:45:08 CET] <kierank> ah crap, didn't see that one
[03:26:17 CET] <kierank> michaelni: any idea what this 0*1 notation means? Some kind of run level thing but I don't get it
[03:26:20 CET] <kierank> https://usercontent.irccloud-cdn.com/file/6PrM23D6/
[03:38:29 CET] <kierank> durandal_1707: around?
[03:49:23 CET] <michaelni> the 0*n look like they are meant as n times a 0 value
[03:50:46 CET] <michaelni> that is a run of n zeros
[03:55:14 CET] <kierank> michaelni: ah yes that make sense, thanks
[03:55:49 CET] <kierank> fyi code i am working on is here
[03:55:49 CET] <kierank> https://github.com/kierank/ffmpeg-sstp
[03:56:05 CET] <kierank> the dc prediction stuff I think is very broke but I'd like to decode a MB cleanly first
[06:02:27 CET] <atomnuker> how to declare exposed private things, the libfftw3 way:
[06:02:34 CET] <atomnuker> enum fftw_r2r_kind_do_not_use_me {
[06:02:45 CET] <atomnuker> struct fftw_iodim_do_not_use_me {
[06:02:54 CET] <atomnuker> typedef void (*fftw_write_char_func_do_not_use_me)(char c, void *);
[07:44:32 CET] <rcombs> the correct answer being, of course, "don't"
[10:39:33 CET] <durandal_1707> atomnuker: why you use fftw3?
[10:42:06 CET] <atomnuker> I don't
[10:42:30 CET] <atomnuker> I read 2 books on ffts, wrote my own 15x2 and finally got enough knowledge to know what the current fft does
[10:43:16 CET] <atomnuker> I fixed it so it's now working correctly as a forward transform and I want to kill the bastard who didn't comment his code
[10:46:44 CET] <atomnuker> at least now I'm one of the elite few who can write a cooley-tukey fft without looking and an mdct
[10:46:57 CET] <atomnuker> (btw why is fftw3 so fast?)
[10:47:12 CET] <atomnuker> (btw WHY THE FUCK IS FFTW3 SO FUCKING FAST?)
[10:47:43 CET] <atomnuker> granted, it's a small transform which takes microseconds but still, fftw3 is 10x faster
[10:47:48 CET] <nevcairiel> because one of its Fs stands for fastest
[10:47:51 CET] <atomnuker> hell, more
[10:48:03 CET] <atomnuker> 400 000 transforms (960 len) per second
[10:48:10 CET] <atomnuker> mine can barely do 4 000
[10:48:42 CET] <nevcairiel> i've been meaning to migrate work software from kissfft to fftw since we had some performance issues on small arm devices, in the hope that it makes a real difference
[10:49:00 CET] <atomnuker> kiss_fft does 7 000
[10:49:34 CET] <atomnuker> so yeah, it'll be a drastic change, if fftw3's NEON is as good as its x86 assembly
[10:49:47 CET] <atomnuker> no, forget that, even without assembly
[10:50:19 CET] <atomnuker> how is the universe didn't explode when fftw3 become so fast is beyond me
[10:50:20 CET] <nevcairiel> fftw uses threaded parallel processing if you let it, most dont do that
[10:50:39 CET] <atomnuker> multithreading? no, it won't
[10:50:47 CET] <atomnuker> you need to compile it with openmp (ugh)
[10:51:01 CET] <nevcairiel> it claims to work with posix threads
[10:51:08 CET] <nevcairiel> but i didnt try
[10:51:27 CET] <atomnuker> well, debian's libfftw3 is compiled without threading support, the functions to init threading aren't there
[10:54:24 CET] <nevcairiel> even more fascinating then
[10:55:13 CET] <atomnuker> give me a minute and I'll send you the program with all 3 implementations so you can benchmark
[11:17:09 CET] <atomnuker> nevcairiel: https://pars.ee/temp/fft_bench.tar
[11:17:17 CET] <nevcairiel> nice, thanks
[11:17:27 CET] <atomnuker> compile with "gcc -O3 -g prog.c kiss/kiss_fft.c -lm -lrt -lfftw3f -Wall"
[11:18:08 CET] <atomnuker> adjust SSA for the size (15 * (1 << SSA)) and ITER for the number of fft->iffts to do
[11:19:25 CET] <cone-292> ffmpeg 03Bela Bodecs 07master:e7fbd7018932: avformat/hlsenc: detecting duplicated segment filenames ffmpeg-devel
[11:20:03 CET] <atomnuker> you can just set SIZE to other numbers and benchmark powers of two, e.g., run_new will simply give an incorrect result
[16:03:09 CET] <cone-546> ffmpeg 03James Almer 07master:c3d822855cb5: avcodec/lossless_videodsp: fix output of add_hfyu_left_pred_int16_c()
[16:14:57 CET] <cone-546> ffmpeg 03Ruta Gadkari 07master:67db4ff3b66e: NVENC: Update check for Lookahead
[17:36:29 CET] <cone-546> ffmpeg 03Paul B Mahol 07master:12461636ea8c: avcodec/magicyuv: export colorspace and color_range for YUV
[18:30:49 CET] <cone-546> ffmpeg 03Bela Bodecs 07master:ce5c7260df2d: flv demuxer supports live rtmp inputs but there is no any info about it in the docs.
[18:30:50 CET] <cone-546> ffmpeg 03Michael Niedermayer 07master:89d4d7d759a5: doc/examples/http_multiclient: Fix resource leak
[20:44:28 CET] <cone-546> ffmpeg 03Paul B Mahol 07master:341d3ee44147: avcodec/ylc: do not leak memory at uninit
[20:44:29 CET] <cone-546> ffmpeg 03Paul B Mahol 07master:31bf37cba8ff: avcodec/ylc: add frame threading support
[20:44:30 CET] <cone-546> ffmpeg 03Paul B Mahol 07master:2f347c17d646: avcodec/ylc: thread safe initialization is possible with this codec
[20:45:51 CET] <cone-546> ffmpeg 03Michael Niedermayer 07master:11103a493de5: ffmpeg: Check avcodec_parameters_to_context() for failure
[00:00:00 CET] --- Tue Dec 27 2016
1
0
[00:51:08 CET] <Airwave> I have an mpeg1video stream in a mov container than I'm trying to convert to h264. When I try to convert, the encoding stops at frame 3 and quits. The video plays just fine with ffplay.
[01:13:52 CET] <Airwave> kepstin: https://paste.fedoraproject.org/512892/27112201/
[01:16:52 CET] <kepstin> hmm, that's really weird. It's complaining about giant image sizes (possibly due to the strange sar/dar) and possibly some issue with timestamps too
[01:18:45 CET] <kepstin> it's detected the video framerate as 0.08 fps, do you know if that's anywhere close to what it should be?
[01:21:08 CET] <kepstin> this is a pretty nasty file, I suspect you might have to rewrite the timestamps using filters to get it to encode. I'm kind of surprised the players are able to do something reasonable
[01:22:41 CET] <kepstin> I suspect you will probably be able to get it to encode reasonably by using the "-r" input option (before the input file) to override the incorrect detected framerate.
[01:26:40 CET] <kepstin> since there's no audio to sync to you just have to pick something that looks reasonable, probably one of 24, 25, or 30 would be decent.
[01:38:53 CET] <Airwave> kepstin: 0.08 is definitely not correct. There's no audio to sync to. I'll try with -r.
[01:47:48 CET] <Airwave> kepstin: It encoded the entire thing when I specified frame rate with -r. I'm not sure how to actually figure out the correct frame rate though. ffplay also reports 0.08.
[01:48:01 CET] <Airwave> mpv says "[vd] Container reported FPS: 0.084986"
[01:51:01 CET] <Airwave> Looks like 30 FPS is correct. When I encode with that, ffmpeg reports the same duration for both files.
[01:55:55 CET] <Airwave> kepstin: That solves my issue. Thank you very much!
[08:31:18 CET] <beauty> hello
[08:31:38 CET] <beauty> how to seek mp4 video using byte?
[08:32:06 CET] <beauty> who can help me? sos
[08:43:43 CET] <nonex86> beauty: rtfm on avformat_seek_file
[08:45:46 CET] <beauty> can you give me a example?
[08:46:17 CET] <beauty> I use av_seek_frame ,but it's not sucessful
[08:47:24 CET] <nonex86> beauty: no, just the manual, thats enough
[08:53:28 CET] <beauty> nonex86 thanks
[11:02:23 CET] <Pandela> >tfw I cant find a single working windows application that accepts IP camera streams and renders to a virtual webcam driver that can be picked up by video chat applications
[11:43:49 CET] <DelphiWorld> sup guys
[11:44:05 CET] <DelphiWorld> i am trying to analise a dvb mpeg2ts stream that contain dvdsub
[11:44:10 CET] <DelphiWorld> but the analisys is pretty slow
[11:44:30 CET] <DelphiWorld> sometime poes packet size missing
[12:17:05 CET] <dossantosfranz> Hello
[12:17:09 CET] <dossantosfranz> can someone help me
[12:17:27 CET] <dossantosfranz> how can i force rtsp over tcp vu+ openpli
[12:33:18 CET] <oaps> hello!
[12:34:31 CET] <oaps> i have a bunch of .ts files with H.264 video and AAC audio with the same framerate, width and height, and i'd like to join them together one after the other into a single stream, without transcoding - only changing the frame times. is that possible?
[12:38:43 CET] <kerio> oaps: can't you just concatenate them
[12:39:29 CET] <oaps> kerio: yes, but the resulting file has the time reset every time a new original file starts.
[12:39:34 CET] <kerio> oic
[12:40:22 CET] <JEEB> you can try remuxing of course, but I think even with the timestamp wraps or whatever eeeeeeeit should generally be "OK" for MPEG-TS
[12:41:25 CET] <JEEB> remuxing mpeg-ts can be "fun" though, since the last time I tried it the whole system only finished the timestamp calculations after decoding (which with remuxing will never happen)
[12:41:38 CET] <JEEB> although granted, that will only be an issue with certain types of streams
[20:35:38 CET] <fbnts> Hi, I'm trying to hardcode subtitles onto a video by using the -vf subtitles=test.srt options. Is there a way I can have ffmpeg extend the video canvas and encode the srt file onto the new blank area?
[21:06:27 CET] <DHE> fbnts: expand the canvas first, then use the subtitles filter
[21:07:09 CET] <fbnts> DHE: I think I have done it now. ffmpeg -i test.mp4 -vf "pad=width=1200:height=576:x=0:y=0:color=white,subtitles=test.srt:force_style='FontName=Courier,FontSize=10,Alignment=7'" test2.mp4
[21:07:12 CET] <fbnts> seems to work
[21:07:45 CET] <DHE> conceptually that looks right.... though white for the subtitle area?
[21:10:51 CET] <fbnts> Yeah, that was just my testing. What I am actually doing is trying to overlay EPOS journal to the right of some CCTV
[21:47:01 CET] <FrogCast> I need to automate the creation of videos for youtube. The videos I will be creating will consist of still pictures in a slide show format and an audio track. Is this something I want to be doing in the commandline with ffmpeg, or do I need another tool?
[21:48:52 CET] <furq> sounds easy enough with ffmpeg
[00:00:00 CET] --- Tue Dec 27 2016
1
0
[00:18:12 CET] <kierank> michaelni: https://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/h263dec.c;h=75fc…
[00:18:28 CET] <kierank> doesn't that code assume one slice per mb row
[00:18:43 CET] <kierank> I'm still having trouble figuring out where to do slice header decoding
[00:19:01 CET] <kierank> I call it in ff_h263_resync but it doesn't get called for the first slice
[00:34:10 CET] <kierank> oh I see what the code does I think
[00:36:41 CET] <kierank> I don't understand why ff_mpeg4_decode_video_packet_header isn't called in decode_slice though
[00:37:08 CET] <kierank> actually not there
[00:37:11 CET] <kierank> but why it's called in resync
[00:44:26 CET] <michaelni> you can generate a mpeg4 with slices with ./ffmpeg -i matrixbench_mpeg2.mpg -threads 1 -ps 200 -t 10 test.avi
[00:44:34 CET] <michaelni> to see how exactly it is decoded
[00:46:58 CET] <kierank> i'm starting to understand how it workss
[00:49:11 CET] <kierank> ah vop header is not duplicated per slice
[10:01:46 CET] <cone-304> ffmpeg 03Paul B Mahol 07master:c6c888e99612: avfilter/vf_w3fdif: add >8 but <16 bit support
[15:55:37 CET] <kierank> merry christmas
[17:13:18 CET] <BBB> kierank: merry christmas!
[18:58:37 CET] <JEEB> merry christmas and happy holiday weekend :)
[19:13:55 CET] <durandal_1707> happy new century
[20:43:06 CET] <Compn> durandal_1707 is in the future :P
[20:43:10 CET] <Compn> by a week
[20:44:27 CET] <nevcairiel> also a "couple" years
[20:44:37 CET] <nevcairiel> or in the past, who knows
[21:05:00 CET] <j-b> 'morning
[21:05:15 CET] <cone-841> ffmpeg 03Michael Niedermayer 07master:cafc72bd7bc4: avcodec/error_resilience: Factor block parity check out
[21:05:16 CET] <cone-841> ffmpeg 03Michael Niedermayer 07master:d5ecffbac695: avcodec/error_resilience: Merge surrounding status checks
[21:11:08 CET] <cone-841> ffmpeg 03Marton Balint 07master:0db48ee4257c: avfilter/af_amerge: properly handle unknown input layouts
[22:34:35 CET] <cone-841> ffmpeg 03Ganesh Ajjanagadde 07master:7b557bf63ff8: ffplay: add startup volume option
[22:59:26 CET] <cone-841> ffmpeg 03Michael Niedermayer 07master:6e26b6e43fec: avcodec/error_resilience: Move variable initialization down, remove unneeded inits
[23:57:15 CET] <kierank> michaelni: why does mpeg4video_parser need to call ff_mpeg4videodec_static_init
[00:00:00 CET] --- Mon Dec 26 2016
1
0
[00:45:28 CET] <fahadash> 100 buffers queued in output stream 0:0, something may be wrong.=0.295x
[00:45:31 CET] <fahadash> What does this mean?
[01:39:44 CET] <fahadash> I tried to isolate the problem by pulling one single drawtext out to a separate filter_complex and I get 1 second video in output instead of several.
[01:39:52 CET] <fahadash> Here is my command, filter graph, and output: http://video.stackexchange.com/questions/20231/ffmpeg-not-generating-more-t…
[05:50:34 CET] <rice> Question. Is it possible to stream ffmpeg in a format and manner that can be picked up in something like Manycam as an IP Camera?
[09:36:51 CET] <Kirito> When attempting to encode a video from a set of images (extracted frames), I am getting a large number of "Non-monotonous DTS in output stream" errors. Is this indicating a problem with the source audio? It's the same audio stream that was extracted from the original video. I imagine re-encoding it might resolve the problem, but I'd prefer to avoid that if
[09:36:51 CET] <Kirito> possible
[09:37:31 CET] <Kirito> https://www.irccloud.com/pastebin/istJG6ae/
[11:02:46 CET] <john4> Buster: 1
[16:03:45 CET] <ashmew2> Hi. Questions about ffserver. Has it been dropped already? (I know 2.8.6 has it)
[16:05:31 CET] <c_14> It's been undropped for now (but I still wouldn't recommend using it)
[16:14:14 CET] <ashmew2> c_14, apart from the usual user experience related issues, does it have any other shortcomings?
[16:15:10 CET] <ashmew2> It took me a while to understand how to use it and configure properly, but it works pretty well.
[16:15:21 CET] <c_14> If the API gets updated (which they said they would) just the user experience ones
[16:17:23 CET] <ashmew2> Thanks c_14 :)
[16:27:41 CET] <dossantosfranz_> Hello guys
[16:27:52 CET] <dossantosfranz_> can someone help me :D with my decoder vu+
[19:36:16 CET] <RedAero> Hi
[19:36:38 CET] <RedAero> For some reason ffmpeg doesn't seem to be creating the output file :(
[19:36:52 CET] <RedAero> Can anyone help?
[19:37:07 CET] <RedAero> I'm using the latest nightly, and the output file is simply not created
[19:41:17 CET] <dl2s4> RedAero, maybe pastebin the command you use and the output
[19:42:22 CET] <RedAero> hold on, I think it might be my overzealous POS of an antivirus
[19:42:42 CET] <RedAero> despite it being set to throw alerts it just silently shuts down random crap for no reason
[19:56:05 CET] <RedAero> I don't get something about -map... -map 2:0 apparently copies stream 0 from the 3rd input file to stream 3 of the output file, right? But that's three pieces of info (which file, source stream, result stream) but only two in the command (input file:input file stream)
[19:56:12 CET] <RedAero> How does it know where to put the stream?
[19:56:44 CET] <RedAero> does it just concatenate?
[20:03:32 CET] <JEEB> map (nth file):(nth track) , the output track id depends on the order of maps in the command line
[20:04:09 CET] <JEEB> so the map itself doesn't set the output track number, that gets assigned by their order
[20:14:38 CET] <dossantosfranz_> can someone help me with my problem
[20:15:03 CET] <dossantosfranz_> i have one decoder with enigma
[20:15:27 CET] <dossantosfranz_> how can i ran a rtsp file forcing it on tcp protocol
[21:15:54 CET] <yume_no-yume-no`> I have an audio file and an image, I want to produce a video file with that image repeated for every frame
[21:16:39 CET] <yume_no-yume-no`> ffmpeg -i foo.flac -loop 1 -i frame.png out.m4v doesn't stop encoding
[21:16:44 CET] <yume_no-yume-no`> I probably screwed something up
[21:17:25 CET] <yume_no-yume-no`> I can move "-loop 1" to the end but then it produces video with only a single frame
[21:21:06 CET] <yume_no-yume-no`> oh, -shortest fixes it
[21:38:33 CET] <Guest10793> #gstreamer
[00:00:00 CET] --- Mon Dec 26 2016
1
0
[02:12:33 CET] <atomnuker> jamrial: why does it require -strict -1?
[02:12:41 CET] <atomnuker> some container doesn't support it?
[02:13:02 CET] <jamrial> some container? this is about matroska specifically
[02:13:53 CET] <jamrial> it requires strict unofficial because when the colour elements were added to the muxer they were not yet made official in the spec
[02:14:06 CET] <jamrial> they are now, so i guess the check can be removed
[04:48:22 CET] <cone-877> ffmpeg 03James Almer 07master:94eb600f354c: tests/audio_fifo: fix buffer allocation for non planar formats
[10:41:40 CET] <cone-954> ffmpeg 03Paul B Mahol 07master:43cd33be16b2: avcodec/pixlet: fix undefined behaviour in postprocess_chroma
[10:41:40 CET] <cone-954> ffmpeg 03Paul B Mahol 07master:ab31b46b8936: avcodec/pixlet: avoid some overflows
[10:41:40 CET] <cone-954> ffmpeg 03Paul B Mahol 07master:6cedd20b9729: avcodec/pixlet: make sure scaling factors are not zero
[11:03:10 CET] <cone-954> ffmpeg 03Paul B Mahol 07master:68e5598e22b6: avcodec/utvideo: fix mistake using wrong arguments for left and lefttop pixel components
[14:26:16 CET] <cone-454> ffmpeg 03Nicolas George 07master:3b64e3ea45c5: lavf/framesync: detect EOF immediately.
[14:26:16 CET] <cone-454> ffmpeg 03Nicolas George 07master:0ff5567a30be: lavfi/buffersrc: push the frame deeper if requested.
[14:47:25 CET] <cone-454> ffmpeg 03Michael Niedermayer 07master:87f6f1546098: tools/zmqsend: Do not truncate fgetc() return
[14:47:26 CET] <cone-454> ffmpeg 03Michael Niedermayer 07master:c4152fc42e48: avutil/random_seed: Reduce the time needed on systems with very low precission clock()
[16:03:12 CET] <kierank> durandal_1707: "Apparently, and someone is making money from it."???
[16:03:53 CET] <durandal_1707> kierank: selling magicyuv encoder
[16:04:11 CET] <durandal_1707> it does 4k in real time
[16:05:17 CET] <durandal_1707> and they claim their decoder is 2x faster than ours
[16:06:28 CET] <durandal_1707> and it's implementation improved utvideo basically
[16:49:02 CET] <cone-454> ffmpeg 03Paul B Mahol 07master:25c4035529c8: avcodec/pixlet: simplify lowpass_prediction() function
[17:46:15 CET] <kierank> durandal_1707: do you understand extradata parsing code
[17:47:42 CET] <kierank> mpeg-4 parser reads headers, puts them in extradata for some reason
[17:48:30 CET] <durandal_1707> what's problem?
[17:50:31 CET] <kierank> causes problems with the startcode detection I have written
[17:51:03 CET] <kierank> means I have to do all sorts of insane hacks
[17:52:57 CET] <durandal_1707> is extradata actually used?
[17:54:03 CET] <kierank> no it decides to put the data in extradata for some reason
[17:54:06 CET] <kierank> it's the frame headers
[18:59:02 CET] <Chloe> Merry Christmas All :)
[20:00:11 CET] <kierank> The other big question I have is how to get 32-bit coefficients into mpegvideo.c
[20:56:11 CET] <durandal_1707> kierank: via extradata or sidedata
[21:05:22 CET] <kierank> Huh?
[21:12:32 CET] <durandal_1707> kierank: your last question?
[21:20:11 CET] <kierank> durandal_1707: i need 32-bit idct coefficients for 10-bit mpeg-4 but mpegvideo is "designed" around 8-bit
[21:20:16 CET] <kierank> so I don't know how it make it use the right coefficients
[21:20:59 CET] <durandal_1707> rip you own version?
[21:23:21 CET] <Compn> cant you just add a new function in mpegvideo for 10bit ?
[21:23:27 CET] <Compn> duplicate where needed
[21:24:07 CET] <Compn> probably adding 10bit would slow down 8bit decoding anyway
[21:24:16 CET] <Compn> so might as well duplicate it and seperate path/decoder
[21:24:25 CET] <kierank> michaelni: ping, how should I get 32-bit coeffiecients into mpegvideo
[21:28:45 CET] <kierank> would if(10bit) s->decode_mb10 work?
[21:30:17 CET] <JEEB> durandal_1707: seems like zimg will switch behavior without API changes with 2.4
[21:31:28 CET] <durandal_1707> JEEB: what exactly ?
[22:19:06 CET] <michaelni> kierank, Annex A says that the IDCT input is represented by n+4 bits, that would be 14 in case of 10bit and should not require 32bit
[22:20:14 CET] <kierank> hmmmmmmm
[22:20:26 CET] <kierank> do ffmpeg idcts support that range?
[22:20:57 CET] <michaelni> the SIMD optimized ones that generally output 8bit probably not
[22:21:32 CET] <kierank> prores one should work
[00:00:00 CET] --- Sun Dec 25 2016
1
0
[00:02:12 CET] <markvandenborre> blue_misfit: always welcome if you have any idea
[00:07:22 CET] <haroldp> So I have this shitty network cam that doesn't stream any web-ready formats, and I was thinking of proxying it through ffmpeg to get it into a usable format. Is that reasonable to do?
[00:07:50 CET] <markvandenborre> haroldp: seems like a logical way...
[00:08:38 CET] <haroldp> cool, so this is the command I copy-pasted from somewhere: http://pastebin.com/Dybdhu2L
[00:09:20 CET] <haroldp> where 10.0.0.69 is the cam and 10.0.0.42 is an IP on the server running ffmpeg
[00:10:21 CET] <haroldp> when i run that I get, "Connection to tcp://69.13.36.126:1935 failed: Connection refused"
[00:10:31 CET] <haroldp> woops, actual IP :)
[00:11:06 CET] <markvandenborre> :-)
[00:11:30 CET] <haroldp> anyway, I'm trying to get it to *host* the stream so i can connect to it with a browser
[00:12:25 CET] <markvandenborre> haroldp: nmaping your camera
[00:12:44 CET] <haroldp> that's the server not the cam
[00:12:50 CET] <markvandenborre> yeah, just found that out
[00:13:03 CET] <haroldp> happily, because I can NOT get the fucking client to change his default password
[00:13:28 CET] <markvandenborre> what kind of device is it?
[00:13:29 CET] <haroldp> (or buy an approprite cam, or pay for a real streaming service, merry christmas)
[00:14:19 CET] <haroldp> anyway
[00:14:24 CET] <markvandenborre> onvif in any case
[00:14:29 CET] <haroldp> am I scewing up that output URL?
[00:14:50 CET] <haroldp> i want it to LISTEN on that IP/port
[00:15:06 CET] <haroldp> so web clients may stream from it
[00:17:09 CET] <markvandenborre> have you actually tested an ffplay or mpv of the origin port?
[00:17:20 CET] <markvandenborre> you seem to forget to add the user credentials if any
[00:17:28 CET] <markvandenborre> ?
[00:17:47 CET] <markvandenborre> haroldp: shouldn't you be using something like rtsp://admin:admin@192.168.1.20/ONVIF/channel1
[00:18:21 CET] <haroldp> I can pull thge cam up in VLC
[00:18:55 CET] <haroldp> and ffmpeg isn't complaining about the cam, but rather the output url
[00:19:24 CET] <markvandenborre> I'd try to make sure I could do something with the cam first
[00:19:28 CET] <markvandenborre> in ffmpeg
[00:20:19 CET] <markvandenborre> so why not drop most of the second part of the equation and replace that by foo.mp4
[00:20:24 CET] <markvandenborre> and see what that gives
[00:20:27 CET] <markvandenborre> then build from there?
[00:20:30 CET] <haroldp> ok. trying that
[00:20:54 CET] <markvandenborre> (if you're very sure that the first bit is not generating any complaints)
[00:21:12 CET] <markvandenborre> anything starting from -vcodec copy
[00:21:23 CET] <markvandenborre> you should be able to replace with that
[00:21:33 CET] <markvandenborre> and get some automagic reencoding
[00:21:45 CET] <markvandenborre> (which you don't want afterwards, but you get the idea I guess)
[00:22:41 CET] <markvandenborre> haroldp: does that help a bit?
[00:23:04 CET] <haroldp> sent the stream to foo.mp4 and got a file. Downloaded the file and it plays in VLC
[00:23:29 CET] <haroldp> only changed that last argument
[00:24:22 CET] <markvandenborre> nice, so at least you are one step ahead now
[00:24:33 CET] <haroldp> progress!
[00:24:43 CET] <markvandenborre> you can do an ffprobe or mediainfo on that file now
[00:24:48 CET] <markvandenborre> to see exactly what you have
[00:25:18 CET] <markvandenborre> that will tell you something about the codecs used, at minimum
[00:25:26 CET] <mosb3rg> anyone around yet who could help me take a crack at the specifics of this hls cookie issue im facing.
[00:25:32 CET] <mosb3rg> i have a copy of the headers now, to examine.
[00:27:18 CET] <haroldp> ok, what am I looking for in the ffprobe output?
[00:27:59 CET] <haroldp> last line is "Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 15 tbr, 1k tbn"
[00:29:25 CET] <haroldp> just weird that that the error I get is like, "can not connect to myself" effectively. Like it can't bind to that IP? Or I'm not telling to bind to an IP correctly?
[00:29:36 CET] <markvandenborre> ok, so that seems to be ok...
[00:29:45 CET] <markvandenborre> (the codec stuff, nothing so very weird)
[00:30:01 CET] <haroldp> "can't connect to [output url]"
[00:30:03 CET] <markvandenborre> you should be able to throw that at an rtmp server
[00:30:20 CET] <markvandenborre> haroldp: have you tried setting up nginx-rtmp somewhere?
[00:30:28 CET] <haroldp> ah ha
[00:30:28 CET] <markvandenborre> throw it at that using ffmpeg
[00:30:36 CET] <haroldp> no, I have no rtmp server
[00:30:49 CET] <markvandenborre> set one up?
[00:30:57 CET] <markvandenborre> it isn't very difficult...
[00:31:41 CET] <markvandenborre> ok, it is a bit if you're not used to linux, because the nginx rtmp module is not packaged in the main distros
[00:31:47 CET] <markvandenborre> but there's fairly good docs on that
[00:32:20 CET] <markvandenborre> the process is: build nginx from source with the rtmp module included
[00:32:28 CET] <haroldp> yeah, looking up docs on it
[00:32:39 CET] <markvandenborre> then you have a nice rtmp server
[00:32:44 CET] <haroldp> not afraid of nginx or anything command-line :)
[00:33:38 CET] <markvandenborre> haroldp: here's our docs on how to do it
[00:33:39 CET] <markvandenborre> https://github.com/FOSDEM/video/wiki/Nginx-streaming
[00:33:53 CET] <markvandenborre> (plenty more to find around there)
[00:33:54 CET] <haroldp> cool. thanks.
[00:34:24 CET] Action: markvandenborre is off to bed now.
[00:34:43 CET] <markvandenborre> haroldp: shouldn't be too difficult to get this to run though
[00:35:00 CET] <markvandenborre> have a look at the clappr stuff too
[00:35:30 CET] <markvandenborre> after you get the nginx rtmp server up and the hls
[00:35:37 CET] <markvandenborre> for use in modern browsers
[00:39:45 CET] <haroldp> ah, clappr looks cool. thanks.
[01:09:50 CET] <haroldp> huh, the rmtp module docs have an example of launching ffmpeg from right in nginx. swank.
[01:10:26 CET] <haroldp> via exec_pull
[01:11:36 CET] <jophish> hi all
[01:12:09 CET] <jophish> I have a bunch of gifs (of varying dimensions) which I'd like to stitch together into a video. This should be something ffmpeg is able to do, right?
[01:13:06 CET] <jophish> I suppose I should first convert all the inputs (there are some webms too) into the same format and dimension
[03:05:52 CET] <Guest4637> hello folks
[03:06:22 CET] <Guest4637> can you help me?
[03:44:10 CET] <panda81> Hi. I have a video that restarts to beginning after pausing for some platforms. How do I know what's wrong?
[03:53:41 CET] <panda81> Or, how do I convert the video data form the problem mp4 to the format of another mp4 that has no problems?
[14:20:15 CET] <fling> Is there a filter for audio noise removal by pattern?
[14:24:54 CET] <durandal_1707> fling: pattern?
[14:25:20 CET] <durandal_1707> you can only remove certain frequencies
[14:25:32 CET] <durandal_1707> for now
[14:28:22 CET] <fling> durandal_1707: yes like 1. specify an audio sample containing only noise; 2. ???; 3. profit
[14:29:22 CET] <fling> durandal_1707: I've seen such things 15 years ago in vst plugins like waves and others
[14:29:28 CET] <durandal_1707> fling: that's only with audacity
[14:29:38 CET] <fling> durandal_1707: tell me more please
[14:30:06 CET] <durandal_1707> I never tried because never needed
[14:30:45 CET] <fling> Another question: How to easily add my own video filter? What is the good plan to do so?
[14:31:27 CET] <fling> The filter would be only useable for a single codec and will need ffmpeg to be linked to a lib
[14:32:00 CET] <fling> I'm thinking about implementing multiple different things. Like h264 lossless crop and others
[14:35:19 CET] <JEEB> that's a bit stream filter then
[14:35:42 CET] <JEEB> there was an old old patch for editing the parameter sets back in the day, but it was never really pushed to upstream too hard
[14:35:50 CET] <JEEB> so it basically stayed over at doom9 and that's it
[14:37:08 CET] <fling> >> for editing the parameter sets?
[14:37:59 CET] <fling> I also have ideas about mjpeg and png and something about yuyv to bgr&
[14:40:37 CET] <durandal_1707> fling: what yuvy to bgr?
[14:41:54 CET] <fling> durandal_1707: I can't get rid of a stupid idea about converting yuyv frames back to bayer.
[14:42:27 CET] <fling> durandal_1707: it could (but not really) be possible to get better resolution from some of the v4l devices this way.
[14:42:47 CET] <durandal_1707> that's for swscale better place
[14:43:57 CET] <fling> The idea is to convert each yuyv pixel to bggr and then debayer each bggr to four pixels.
[14:44:08 CET] <fling> This is only possible if we somehow know the order
[14:49:14 CET] <fling> Debayering is the way the cameras are getting 1.2Mpx stills from 640x480 sensors.
[15:12:26 CET] <theFam> hello, how can I delay a subtitle I created with -vf subtitles=? I use -ss before -i.
[16:28:07 CET] <wodim> is there any way to set the flac encoding quality?
[16:29:12 CET] <JEEB> flac is lossless, there is no "quality"
[16:29:22 CET] <JEEB> if there was a quality switch it wouldn't be lossless
[16:29:40 CET] <wodim> sorry, I didn't mean that
[16:29:43 CET] <wodim> I meant compression level
[16:43:33 CET] <kerio> wodim: aiui there's no good reason to do so with libflac
[16:43:58 CET] <wodim> I thought I could get better sizes
[16:44:09 CET] <kerio> yeah but...
[16:44:17 CET] <durandal_1707> wodim: see docs
[16:44:20 CET] <wodim> but what? don't leave me hanging like that
[16:44:25 CET] <wodim> what docs. I saw the wiki
[16:44:26 CET] <wodim> hold on
[16:44:42 CET] <kerio> anyway, `-compression_level 0` to `-compression_level 8` apparently
[16:44:57 CET] <kerio> but aiui going deeper than the default won't give you much smaller files
[16:45:08 CET] <wodim> ah yeah
[16:45:09 CET] <wodim> found it
[16:45:09 CET] <kerio> like, there's diminishing returns
[16:45:16 CET] <durandal_1707> ffmpeg -h encoder=flac
[16:46:00 CET] <durandal_1707> there's many slooow encoding options
[16:46:39 CET] <wodim> there's a minimal difference between 0 and 8
[16:46:52 CET] <wodim> well, learnt something I guess
[16:46:55 CET] <wodim> thanks
[18:29:36 CET] <nyuszika7h> is there a way to take a snapshot by frame number rather than timecode (I guess -ss equivalent for frame)?
[18:37:49 CET] <c_14> you can use the select filter but it'll be really quite very slow
[18:39:44 CET] <fahadash> fling: Goldwave does that too, and it has command-line batch processing too
[18:46:17 CET] <fling> fahadash: does what?
[18:48:53 CET] <fahadash> Takes the noise sample and removes that noise from the source audio
[18:49:52 CET] <fling> fahadash: which package for Goldwave?
[18:50:12 CET] <fahadash> Goldwave is a software, a stand-alone utility
[18:50:56 CET] <fling> I can't find it in portage
[18:58:31 CET] <fahadash> www.goldwave.com
[18:58:36 CET] <fahadash> Don't know much about portage
[18:58:54 CET] <fahadash> I have a question about filter scripts, is there any way to comment out filters?
[19:03:41 CET] <durandal_1707> fahadash: scripts ass files?
[19:04:34 CET] <fling> fahadash: split your ffmpeg commandline to multiple parts and comment them as needed
[19:05:04 CET] <fling> fahadash: $commandline="$part_a $part_b $part_c&" at the end
[19:23:46 CET] <fahadash> I don't like multiple commands, leaves clutter behind, I know I can rm the clutter but when the script fails in between the clutter needs manual cleanup
[19:24:00 CET] <fahadash> 1 command is easy to read
[19:24:39 CET] <fahadash> I am pretty sure # will comment the filter, I should try it
[19:43:14 CET] <durandal_1707> fahadash: you can use -filter-script option
[19:47:04 CET] <fahadash> -filter_complex_script , I am already using that. I am wondering if I could write remarks/comments in my gigantic script file
[19:55:57 CET] <durandal_1707> fahadash: you can only add new lines
[20:32:22 CET] <fahadash> I am using trim filter to cut out some frames at the start and at the end of my 10 second video clip, I end up getting output which is still 10 seconds. Why?
[20:37:56 CET] <mosb3rg> hey guys, could i get a syntax example of how to use a still image locally on hdd, and an audio only hls aac playlist with m3u8
[20:39:05 CET] <mosb3rg> i have an issue where im trying to relay an xm signal, which i get in m3u8 audio only and i want to use a still image per channel basically. so its using 2 separate sources for video and audio but 1 of which is an m3u8 playlist.
[20:39:36 CET] <fahadash> I am having a real killing issue with 'trim' filter. http://video.stackexchange.com/questions/20229/ffmpeg-trim-filter-renders-t…
[20:42:16 CET] <Kiicki> I believe you were right about that "fast slow presets" furq
[20:43:04 CET] <Kiicki> I did some encoding with Handbrake and set them all to slow and non of them were working on my TV, even though I got the impression that everything I converted with Handbrake, it worked on my TV
[20:43:40 CET] <Kiicki> I have actually no idea what it really is, and too bad that so many people chooses to convert them with slow or slower
[20:50:11 CET] <markvandenborre> I have this strange situation where ffmpeg itself is not able to find the size of an udp multicast video stream
[20:50:20 CET] <markvandenborre> but ffprobe is perfectly able to find it out
[20:50:54 CET] <fahadash> I found out what was wrong with my trim. I have the audio with my video causing this. Is there any filter to remove the audio?
[20:51:53 CET] <markvandenborre> hence what I want to do with it afterwards (throw it at an rtmp server) is not working
[20:52:06 CET] <markvandenborre> is there a way to explicitly specify these values myself?
[20:53:15 CET] <markvandenborre> I tried setting the analyzeduration and probesize options to ridiculously hight values, but that didn't really solve anything
[20:53:37 CET] <markvandenborre> it's still complaining about "unspecified size"
[20:53:53 CET] <mosb3rg> ffmpeg -i 1080p.mp4 -i 720p.mp4 -map 0:0 -map 1:1 -c:v copy -c:a copy 1080p_w_audio.mp4
[20:54:13 CET] <mosb3rg> so this method would be used, to use video from 1 audio from another ok, i get that but whast if i want to use urls to point to each source ? can i do that too
[20:54:36 CET] <DHE> mosb3rg: sure, as long as each plays properly on its own
[20:54:42 CET] <markvandenborre> DHE: sec, coming up
[20:54:54 CET] <mosb3rg> interesting ok. need to examine this now
[20:55:02 CET] <mosb3rg> i want to add a still imagine to XM audio channels
[20:59:19 CET] <mosb3rg> but DHE you cannot probe the same way ? with 2 inputs ?
[20:59:28 CET] <mosb3rg> im getting an error when i try to do that
[20:59:38 CET] <DHE> you mean ffprobe?
[21:00:04 CET] <DHE> it's meant for analyzing videos and telling you information about them.. you don't need more than 1 in a single invocation
[21:05:46 CET] <markvandenborre> DHE: never mind, there was one box here with an ancient ffmpeg from debian multimedia
[21:05:54 CET] <markvandenborre> a recent ffmpeg has no problems with it
[21:11:49 CET] <fahadash> I am trying to trim a clip (audio and video both) using the trim filters, What am I missing here? Got a few errors http://pastebin.com/XmVNiwBr
[21:14:07 CET] <DHE> fahadash: filter_complex isn't the right thing. you probably just want -vf and -af for the video and audio filters respectively..
[21:14:12 CET] <DHE> then again, can you get what you want with -ss and -t ?
[21:14:35 CET] <mosb3rg> The still image i try and use i never see, when i begin processing to the rtmp connection
[21:14:43 CET] <mosb3rg> i only have audio present.
[21:14:45 CET] <durandal_1707> fahadash: you can't use audio filters with -vf use -af
[21:15:08 CET] <fahadash> DHE: is there any 'filter' way of trimming some of the start and end portions of the source out?
[21:15:10 CET] <durandal_1707> fahadash: a atrim is audio filter
[21:15:33 CET] <DHE> fahadash: what you've done is taken the video stream, trimmed it, and then fed that into the audio trimmer. so naturally it's unhappy
[21:16:15 CET] <DHE> just do: ffmpeg -i input.mov -vf trim=.... -af atrim=.... <codec-options> output.mov
[21:16:52 CET] <fahadash> I am trying to trim using trim filter, but since my video has an audio which has to be filtered too, so I combined it with atrim. I am using a -filter_complex, the example I showed is very simplified and has a small portion of my movie making command
[21:18:40 CET] <durandal_1707> fahadash: then use [0:a]atrim
[21:19:17 CET] <fahadash> and map them together?
[21:20:03 CET] <durandal_1707> you need that with filter complex
[21:20:26 CET] <fahadash> How can I map them in my filter graph?
[21:20:50 CET] <fahadash> I can do [0:v]trim[video_portion];[0:a]atrim[audio_portion]
[21:20:58 CET] <fahadash> how do I map [video_portion][audio_portion]?
[21:21:50 CET] <fahadash> I found 'join', let me try that
[21:21:58 CET] <durandal_1707> it's all in docs, with -map
[21:22:22 CET] <durandal_1707> join is audio filter...
[21:22:40 CET] <durandal_1707> for joining separate channels
[21:23:39 CET] <fahadash> can I specify output-pads in -map?
[21:23:47 CET] <fahadash> let me look up -map in the docs
[21:26:17 CET] <Kiicki> Anyone know which presets I need to choose to get 1,2,3,4 or 5 ref frames?
[21:26:39 CET] <Kiicki> Instead of the numbers, Handbrake has like fast, normal slow etc
[21:32:05 CET] <mosb3rg> you are looking for #handbrake
[21:32:16 CET] <mosb3rg> same network here. for support with that application.
[21:37:27 CET] <Kiicki> didn't know that was a thing
[21:37:30 CET] <Kiicki> ty
[22:38:36 CET] <memori> What capabilities does ffmpeg have for aspect ratio? I have a 704x376 px video displayed at 3:2 and would like to change the DAR to 16:9 (while keeping the same pixel data)
[22:47:28 CET] <durandal_1707> memori: there are filters to set SAR and DAR
[22:52:15 CET] <memori> durandal_1707, is that -vf setdar=16:9? IŽm trying the encode right now
[22:53:42 CET] <durandal_1707> memori: setdar=16/9
[22:58:08 CET] <memori> durandal_1707, alright, that worked, thanks
[00:00:00 CET] --- Sun Dec 25 2016
1
0
[02:56:46 CET] <slavanap> Hello. I want to use ffmpeg to retrieve picture for every frame as (byte array + image format). Is there examples in C/C++? Does ffmpeg support seeking to specific frame natively? How ffmpeg handle 3D videos (if implemented already)? Thanks!
[02:58:57 CET] <cone-599> ffmpeg 03Thomas Turner 07master:8dcb28cf6dd1: avutil/tests: Improved code coverage for random_seed
[03:44:10 CET] <Compn> depends on the format of the 3d video
[03:44:14 CET] <Compn> e.g. 3d bluray not supported
[03:44:27 CET] <Compn> i think most / all other 3d formats are supported via filters
[03:44:55 CET] <Compn> oh shit he left :\
[04:07:51 CET] <cone-599> ffmpeg 03Nicolas George 07master:8156b5ac9436: avfilter/af_amerge: detect EOF immediately
[08:38:42 CET] <atomnuker> lossless audio encoding shootout:
[08:39:02 CET] <atomnuker> 5th place with 43016 bytes, the ffmpeg flac encoder at the highest compression_level
[08:39:56 CET] <atomnuker> 4th place with 42440 bytes, flacenc at the highest encoding settings (32 order LPC, all exaustive search options, took 10 minutes to encode)
[08:40:36 CET] <atomnuker> 3rd place with 42144 bytes, the ffmpeg tta encoder, took less than 10 seconds to encode
[08:41:00 CET] <atomnuker> 2nd place with 41868 bytes, the libwavpack encoder
[08:41:34 CET] <atomnuker> 1st place with 41788 bytes, the ffmpeg wavpack encoder (highest settings, took 10 minutes to encode)
[08:42:36 CET] <atomnuker> durandal_1707, you take a bronze
[08:43:33 CET] <atomnuker> (I'd never have thought TTA was advanced enough to beat FLAC)
[09:25:17 CET] <durandal_1707> atomnuker: how long is input audio?
[09:25:42 CET] <atomnuker> 6 minutes 30 seconds, rock
[09:25:53 CET] <durandal_1707> you forgot sonicls
[09:26:58 CET] <durandal_1707> michaelni doesn't want to remove that obscure piece of shit
[09:27:38 CET] <atomnuker> 45100 bytes isn't bad, certainly better than MLP (60 megs)
[09:28:08 CET] <atomnuker> crap, I mean KILObytes
[09:29:02 CET] <atomnuker> for everything because du likes to not append the units
[09:30:37 CET] <j-b> atomnuker: nice comparison
[09:45:56 CET] <cone-363> ffmpeg 03James Almer 07master:41de965e31ef: avcodec/pixlet: remove unnecessary double to float conversion
[09:45:56 CET] <cone-363> ffmpeg 03Paul B Mahol 07master:51ed1a7dd40a: avcodec/pixlet: check out of bounds pfx value
[11:19:29 CET] <cone-363> ffmpeg 03Paul B Mahol 07master:0ed4993ad0e2: avcodec/asvdec: return correct value in case of error
[13:06:36 CET] <durandal_1707> anyone wants to write utvideo assembly?
[13:44:50 CET] <wm4> atomnuker: tta takes 10secs, ffwavpack 10 minutes? wtf
[13:46:01 CET] <nevcairiel> should also try the alien magic mode in ffflacenc
[13:46:06 CET] <nevcairiel> i hear its super slow
[13:46:06 CET] <nevcairiel> :D
[13:51:17 CET] <wm4> more importantly, why does ffmpeg even have a tta encoder
[13:52:56 CET] <nevcairiel> because paul was bored one day and wrote one?
[13:53:26 CET] <nevcairiel> its only 200-something lines including comments and whatnot, its not l ike its a complex format
[13:53:36 CET] <nevcairiel> works surprisingly well for that
[15:28:05 CET] <cone-363> ffmpeg 03Nicolas George 07master:373f21a91126: lavfi: avfilter_graph_request_oldest: request a frame again before returning.
[17:19:31 CET] <BBB> durandal_1707: utvideo & I mean
[17:20:19 CET] <durandal_1707> BBB: ?
[17:20:27 CET] <BBB> utvideo assembly
[17:20:35 CET] <BBB> that suggests utvideo is worth writing assembly for :-p
[17:20:37 CET] <BBB> is it?
[17:21:17 CET] <durandal_1707> well I see that there is already assembly for it in huffyuv
[17:22:26 CET] <durandal_1707> only median was slow, and I improved it by 10%
[17:22:50 CET] <durandal_1707> left prediction did not made difference
[17:26:05 CET] <durandal_1707> thing is that internally rgb is stored as planar
[17:26:26 CET] <durandal_1707> and we decode it as packed
[17:26:46 CET] <durandal_1707> this is swscale job
[17:27:02 CET] <durandal_1707> similar is in encoder
[17:44:23 CET] <cone-363> ffmpeg 03Paul B Mahol 07master:ea93052db359: avcodec/utvideodec: add SIMD support for median prediction for planar formats
[18:04:41 CET] <kierank> durandal_1707: ok christmas now, I can finish mpeg-4 sstp decoder...
[18:07:00 CET] <durandal_1707> kierank: you have samples or encoder?
[18:07:40 CET] <kierank> there are samples on trac ticket
[18:07:54 CET] <kierank> spec is not hard, integrating 10/12-bit into mpegvideo context is hard
[18:35:30 CET] <durandal_1707> is mmxext slow?
[18:38:15 CET] <kierank> it's a bit old
[18:39:26 CET] <durandal_1707> but can mmxext assembly be made faster?
[18:41:28 CET] <kierank> why not rewrite it in sse
[18:41:31 CET] <jamrial> if you make it use xmm regs sure
[18:43:08 CET] <kierank> yeah you've written it directly in mmx
[18:54:49 CET] <cone-363> ffmpeg 03Paul B Mahol 07master:9b26bf7e2a39: avfilter/vf_deband: do not use uninitialized value
[19:01:01 CET] <durandal_1707> jamrial: please see if median prediction can be made faster
[21:03:27 CET] <atomnuker> lol, the lavc fft supports framesizes up to 131072
[21:04:21 CET] <atomnuker> too bad I have to rewrite the entire fucking opus fft
[21:05:26 CET] <atomnuker> it's simply not usable as a forward mdct because someone thought it would be clever to optimize the twiddles
[21:05:57 CET] <atomnuker> rather than, I dunno, not use an incredibly inefficient recursive fft based on multiples of 15
[21:06:53 CET] <atomnuker> worst part is there's some useless aarch64 assembly so I'll still have to keep the old twiddle generating code in that init function
[21:07:34 CET] <atomnuker> (which is barely 1.4 times faster, which makes me think I can beat it with a better C code and delete that shit)
[21:14:53 CET] <atomnuker> libav merges messed the shit out of all the ffts and dcts
[21:18:15 CET] <durandal_1707> atomnuker: what exactly?
[21:50:57 CET] <cone-363> ffmpeg 03Michael Niedermayer 07master:c193132ce590: avutil/tests/random_seed: eliminate goto
[21:50:58 CET] <cone-363> ffmpeg 03Tobias Rapp 07master:6d579d7c1bdc: avformat/avidec: skip odml master index chunks in avi_sync
[21:50:59 CET] <cone-363> ffmpeg 03Michael Niedermayer 07master:03ce71e4a118: swscale/swscale: Fix dereference of stride array before null check
[22:45:04 CET] <TD-Linux> atomnuker, how is the fdct perf compared to libopus? any reason not to just steal it directly?
[22:46:55 CET] <atomnuker> TD-Linux: yah, it integrates windowing in the transform which I'm not a fan of since it's not reusable for other codecs
[22:47:30 CET] <atomnuker> I *could* just copy and paste kiss-fft and do my own pre/post shuffles but nah
[22:48:00 CET] <atomnuker> I wanna see if I can do better than both since you can implement the FFT as an in-place transform which should be faster
[00:00:00 CET] --- Sat Dec 24 2016
1
0
[00:28:06 CET] <Maverick|MSG> efface: I tried it with -abort_on but no luck there
[00:29:08 CET] <Maverick|MSG> if I do set a timeout ffmpeg won't quit, but it does finish up writing the mp4 and it outputs to the console: "I/O error"
[00:49:12 CET] <teratorn> is sending an ffmpeg process SIGTERM the same as hitting "q" at the terminal?
[00:49:50 CET] <DHE> basically yes
[00:54:22 CET] <teratorn> SIGTERM and SIGKILL do the same thing, it seems... they print a message "Exiting normally..." but just hitting q does not print that message.. hm oh well, good enough for who it is ;)
[00:54:31 CET] <teratorn> err, SIGINT and SIGTERM
[00:58:47 CET] <DHE> yes, SIGKILL is one of two very special signals
[00:58:49 CET] <DHE> :)
[01:12:33 CET] <Mista_D> Encoding video and copying PCM stream - AV out of sync. If encode both audio and video the sync is ok. MXF container, MPEG2video and PCM codec.
[03:13:00 CET] <madprops> hi i usually use something like "ffmpeg -i RJnUmRaFx.mp4 -crf 25 tost.mp4"
[03:13:27 CET] <madprops> can I add something to it so there's almost 0% chance of encoding fails (corruptions, no video, no audio, etc) ?
[03:13:44 CET] <madprops> input files would be either mp4 or webm
[03:14:12 CET] <DHE> ffmpeg is pretty good. if one of those things happens, it's the input file's fault
[03:14:25 CET] <k_sze[work]> I'm trying to build ffmpeg from source on an nVidia Jetson TK1 (it's an armv71), but I get "GNU assembler not found, install/update gas-preprocessor" from the configure script.
[03:14:28 CET] <DHE> but realistically you should specify the codecs you want, at a minimum
[03:14:58 CET] <madprops> DHE, like x264?
[03:15:08 CET] <DHE> also the audio codec
[03:15:33 CET] <madprops> which one do you suggest for audio?
[03:15:59 CET] <madprops> it's for displaying videos in a browser
[03:25:29 CET] <madprops> i would think mp3 is more compatible
[03:25:38 CET] <madprops> but im seeing it's maybe aac which is more compatible
[07:37:06 CET] <beauty> hello
[07:38:06 CET] <beauty> how to use custom IO?
[07:38:48 CET] <beauty> After I use custom IO, will lack five frame.
[07:43:09 CET] <fahadash> Can we have line breaks in filter complex script?
[07:54:46 CET] <nonex86> beauty: i am using custom io in my software without a problem
[08:02:26 CET] <beauty> nonex86: could you teach me ?
[08:02:33 CET] <beauty> hello
[08:03:49 CET] <nonex86> beauty: that depends what do you mean by saying "teach me" :)
[08:49:57 CET] <Diljeet> hello
[08:50:23 CET] <Diljeet> i am here to ask a question to anyone available here
[08:51:50 CET] <Diljeet> I want to ask, can i use a "C" class from ffmpeg source and convert it to "JAVA" and use it in commercially, i will share all modified class with eveyone, ami permitted to do that
[08:53:16 CET] <Diljeet> I want to ask, can i use a "C" class from ffmpeg source and convert it to "JAVA" and use it in commercial app, i will share all modified class with everyone, am i permitted to do that
[10:18:00 CET] Last message repeated 1 time(s).
[10:28:09 CET] <ikevin> Diljeet, you'll find your reply here: https://www.ffmpeg.org/legal.html
[10:30:35 CET] <Diljeet> Thanks i am reading it
[11:18:15 CET] <thebombzen> "This channel is publicly logged" - where can I find the logs?
[11:28:37 CET] <thebombzen> also
[11:28:53 CET] <thebombzen> the wiki lists libvorbis as being >= libfdk_aac. when did this happen? when did libvorbis get better than AAC?
[12:02:32 CET] <ehsanv> hi, i want to add a logo (use overlay) to my videos, and want my logo to be exactly 1/4 width of input videos (input videos have different widths). how can i do this
[12:50:25 CET] <durandal_1707> thebombzen: on ffmpeg.org web page
[14:09:52 CET] <nyuszika7h> how can I get ffmpeg to take the Display Aspect Ratio into account when taking a snapshot with "-frames:v 1"?
[14:10:23 CET] <nyuszika7h> well, it seems "-vf scale=1024:576" works
[14:16:31 CET] <nonex86> simple scale will not preserve aspect ratio
[14:16:59 CET] <nonex86> you should said this directly and perhaps pad the result image
[14:18:01 CET] <nonex86> read about force_original_aspect_ratio and pad
[14:18:45 CET] <nyuszika7h> I'll take a look
[14:18:49 CET] <nyuszika7h> the resolution is 720x576 and corrected to 1024x576 with display aspect ratio (a friend captured this from TV)
[14:20:59 CET] <nonex86> i assume you have SAR 1:1?
[14:21:39 CET] <nyuszika7h> Stream #0:0: Video: h264 (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
[14:22:17 CET] <nonex86> and the result SAR?
[14:23:00 CET] <nyuszika7h> the thumbnail?
[14:23:02 CET] <nyuszika7h> eam #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 720x576 [SAR 64:45 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
[14:23:11 CET] <nyuszika7h> Str^ even
[14:23:32 CET] <nonex86> i dont understand, you said 720x576->1024x567
[14:23:34 CET] <nonex86> isnt it?
[14:23:39 CET] <nyuszika7h> 576 not 567
[14:23:56 CET] <nonex86> ok, lets correct
[14:23:59 CET] <nonex86> i dont understand, you said 720x576->1024x576
[14:24:00 CET] <nyuszika7h> I mean on playback it's 1024x576 because of the DAR
[14:24:10 CET] <nonex86> :)
[14:24:50 CET] <nyuszika7h> with some players if I take a snapshot it ends up as 1024x576, with other players and with ffmpeg it's 720x576 and looks stretched
[14:25:32 CET] <nonex86> so, as was said before
[14:25:37 CET] <nonex86> simple scale doesnt work
[14:25:39 CET] <nonex86> isnt it?
[14:25:50 CET] <nyuszika7h> it does work if I just scale when taking the thumbnail
[14:25:57 CET] <nyuszika7h> the resulting thumbnail looks right
[14:26:21 CET] <nyuszika7h> (I tried that after asking the question)
[19:15:16 CET] <thebombzen_> I don't remember if I got an answer for this before, but... why does -map_metadata -1 work?
[19:15:54 CET] <thebombzen_> if -map_metadata behaves like -map, then -map_metadata -1 would mean "discard metadata from the first input"
[19:16:05 CET] <thebombzen_> so doesn't that mean that you should use -map_metadata -0
[19:20:05 CET] <thebombzen_> another thing to note: -map_metadata -1 is not mentioned in: https://ffmpeg.org/ffmpeg.html#Advanced-options
[19:20:35 CET] <thebombzen_> at least not under the section documenting -map_metadata. maybe that's why so many people ask that question
[20:01:22 CET] <kerio> thebombzen: is metadata taken from inputs that are not the first, tho?
[22:51:55 CET] <mosb3rg> hey there, i have a question about the sirius xm style HLS AAC delivery and ripping with there cookie system
[22:52:57 CET] <mosb3rg> unlike what im customaryly used to seeing with the set cookie: value im seeing a few set cookie values coming from them even in the same playlist etc. could i provide an example and get some feed back on how ffmpeg can parse this set cookie value and correctly dump from the system ?
[23:15:31 CET] <blue_misfit> hey folks, if I have an anamorphic 720x480 source and I want ffmpeg to make it square pixels, and specify the output height but let ffmpeg calculate the appropriate square pixel width, how would I do that?
[23:16:31 CET] <blue_misfit> like for a 720x480 source with a 16x9 DAR I want to do something like -vf scale=w=-2:h=360 and have ffmpeg make a 640x360 output
[23:16:57 CET] <blue_misfit> and for a 720x480 source with a 4x3 DAR I want that same command to create a 480x360 output
[23:25:42 CET] <markvandenborre> blue_misfit: sorry, no idea
[23:25:52 CET] <blue_misfit> I'm getting pretty close
[23:25:57 CET] <blue_misfit> -vf setdar=16:9,scale=w=360*dar:h=360,setsar=1
[23:26:07 CET] <blue_misfit> -vf setdar=4:3,scale=w=360*dar:h=360,setsar=1
[23:26:10 CET] <blue_misfit> that seems to do it
[23:26:18 CET] <markvandenborre> ah, congratulations
[23:26:40 CET] <blue_misfit> I have to force in the beginning, but that's because my sources have slighly screwy DARs so there's some fuzzy logic upstream :)
[23:26:45 CET] <blue_misfit> closeenough.jpg
[23:27:49 CET] <markvandenborre> blue_misfit: do you happen to have any idea how I could solve my problem:
[23:28:03 CET] <markvandenborre> I have ffmpeg output to a udp multicast address
[23:28:22 CET] <markvandenborre> (a h264 encoded video stream, and an aac encoded audio stream)
[23:28:44 CET] <markvandenborre> I can play that stream using mpv
[23:28:48 CET] <markvandenborre> but not using ffplay
[23:29:30 CET] <markvandenborre> actually, scrap that, I can play that stream using ffplay
[23:30:08 CET] <markvandenborre> the problem is when I want to read from that udp multicast source
[23:30:29 CET] <markvandenborre> and send it out as an flv with codec copy
[23:30:36 CET] <markvandenborre> as an rtmp stream basicly
[23:30:40 CET] <markvandenborre> it refuses to
[23:31:12 CET] <markvandenborre> because it gets confused about the video stream in the udp multicast (mpeg ts)
[23:32:25 CET] <blue_misfit> hmmm
[23:32:32 CET] <markvandenborre> it says "could not find codec parameters for stream 0 (Video: h264 ([27] [0] [0] / 0x001B), none): unspecified size
[23:32:51 CET] <markvandenborre> Consider increasing the value for the 'analyzeduration' and 'probesize' options
[23:32:57 CET] <blue_misfit> let me see if I can replicate
[23:33:00 CET] <markvandenborre> but those are already ridiculously high
[23:33:07 CET] <blue_misfit> so make a multicast TS using h264 and aac is the first step right?
[23:33:18 CET] <markvandenborre> what I am using is
[23:33:34 CET] <markvandenborre> ffmpeg -re -i testvid/testvid.mp4 -c copy -f mpegts udp://227.1.3.1:9000
[23:33:46 CET] <markvandenborre> to create the multicast stream
[23:34:57 CET] <mosb3rg> hey gents anyone around with experience using cookies with HLS streams ?
[23:35:37 CET] <markvandenborre> mosb3rg: I've played with HLS streams
[23:35:43 CET] <markvandenborre> but the cookie thing, not really
[23:36:49 CET] <markvandenborre> mosb3rg: have a look at stuff like http://stackoverflow.com/questions/2936329/nginx-redirect-if-cookie-present
[23:36:52 CET] <markvandenborre> ?
[23:36:52 CET] <blue_misfit> ok so I have the multicast stream working markvandenborre
[23:37:01 CET] <blue_misfit> what's next
[23:37:18 CET] <blue_misfit> you want to rewrap to flv and deliver via rtmp?
[23:37:22 CET] <blue_misfit> or save as an flv file
[23:37:27 CET] <markvandenborre> sec
[23:38:36 CET] <markvandenborre> hm, I skipped a crucial step after a long day, sorry...
[23:38:47 CET] <blue_misfit> all good! Glad you sorted it out
[23:39:08 CET] <markvandenborre> nope, didn't
[23:39:21 CET] <markvandenborre> but in showing you what I was trying to do with the multicast...
[23:39:51 CET] <markvandenborre> https://github.com/FOSDEM/video/blob/master/software/ansible/playbooks/role…
[23:39:59 CET] <markvandenborre> is actually what prepares the output
[23:41:02 CET] <markvandenborre> so I guess you could replace the first bit by ffmpeg -y -re -i testvid.mp4
[23:41:40 CET] <markvandenborre> then keep the rest from "-threads:0 0 \"
[23:42:17 CET] <markvandenborre> and replace the ${MULTICAST_SINK} in the last line with something sensible, like udp://227.1.3.3:9000
[23:42:44 CET] <markvandenborre> let me write it out for you
[23:42:54 CET] <markvandenborre> sec
[23:44:39 CET] <markvandenborre> blue_misfit: something like http://pastie.org/10985370
[23:44:54 CET] <markvandenborre> should give you a fairly good replication of the problem I'm bumping into
[23:45:05 CET] <markvandenborre> let me try it on my machine to confirm too
[23:49:54 CET] Action: markvandenborre is trying if this yields the same error message
[00:00:00 CET] --- Sat Dec 24 2016
1
0
[00:31:00 CET] <cone-168> ffmpeg 03Michael Niedermayer 07master:9b9e4a71c572: avformat/mpegenc: Check for av_mallocz() failure
[04:59:49 CET] <zpc> Hi! Is there a face detection and tracking filter in ffmpeg? If not , I'd like to add one
[05:01:54 CET] <jamrial> i don't think there's one
[05:02:04 CET] <atomnuker> zpc: what would the filter do? just draw a box?
[05:02:12 CET] <zpc> mask the face
[05:02:41 CET] <zpc> Somebody is just too ugly like me, so I don't want to appear in a live video
[05:04:42 CET] <zpc> http://item.btime.com/live/51igtgb0jcn9qhpo8221d5lf1dg
[05:06:12 CET] <zpc> Our company is developing live news app, and i need a face mask function
[05:13:49 CET] <Shiz> i uh
[05:13:52 CET] <Shiz> dont think there is one
[05:44:00 CET] <rcombs> michaelni: do you know what score you're getting for each demuxer on that MPA file?
[06:43:23 CET] <Compn> get that cat off his keyboard
[09:49:20 CET] <cone-280> ffmpeg 03Paul B Mahol 07master:4cf96c56420b: avcodec/wmaprodec: cleanup extradata dumping
[10:34:04 CET] <cone-280> ffmpeg 03Paul B Mahol 07master:95fb9e020592: avcodec: add pcm_f16le and pcm_f24le decoder
[10:34:05 CET] <cone-280> ffmpeg 03Paul B Mahol 07master:314269118161: avformat/wavdec: add support for decoding 24.0 and 16.8 floating point pcm formats
[10:46:10 CET] <cone-280> ffmpeg 03Nicolas George 07master:ff8b17c998dc: lavfi: take_samples: free frames after taking all samples.
[11:49:20 CET] <cone-280> ffmpeg 03Carl Eugen Hoyos 07master:0098eeaa6289: doc/filters: Fix vsbmc option name.
[12:14:29 CET] <michaelni> rcombs, http://pastebin.com/DuYJRUS5
[12:41:33 CET] <cone-280> ffmpeg 03Michael Niedermayer 07master:da73d95bad47: avutil/random_seed: Improve get_generic_seed() with higher precission clock()
[14:12:57 CET] <BBB_> michaelni: any further comments or things to test on the wmavoice bitstream checking patch?
[14:25:41 CET] <michaelni> BBB, no further comments from me
[15:47:52 CET] <wm4> this so called CoC doesn't do shit
[15:57:40 CET] <BBB> wm4: ?
[15:58:12 CET] <jamrial> wm4: the only one that bothers to invoke it is carl, and he'll never do it against nicolas
[15:59:14 CET] <BBB> ah politics again :(
[16:00:28 CET] <atomnuker> wm4: what were your concerns about the frame queue, I found it quite useful for my opus encoder?
[16:02:00 CET] <wm4> atomnuker: just details, but read the original post?
[16:02:18 CET] <atomnuker> from october?
[16:02:23 CET] <wm4> probably
[16:03:02 CET] <atomnuker> yeah, you just said you didn't know why it would be useful
[16:06:34 CET] <wm4> you mean this mail? http://ffmpeg.org/pipermail/ffmpeg-devel/2016-October/201657.html
[16:06:51 CET] <atomnuker> huh, I misread
[16:07:03 CET] <wm4> anyway, from now on I'll just ignore Nicolas George reviews
[16:07:11 CET] <wm4> he can start an edit war if he wants
[16:08:00 CET] <durandal_1707> I gonna push pixlet without lowres stuff
[16:12:39 CET] <BBB> are the colors fixed?
[16:33:40 CET] <jamrial> i wonder, are people here going to let nicolas willingly ignore reviews and force his patches into the repo?
[16:33:44 CET] <jamrial> last i checked, unaddressed reviews are blockers
[16:36:13 CET] <durandal_1707> I don't see issues with frame queue api if it's O(1)
[16:37:15 CET] <jamrial> i'm not talking about the implementation in question
[16:37:22 CET] <durandal_1707> BBB: output looks pretty good
[16:37:59 CET] <BBB> jamrial: its not just nicolas, Im getting tired of fighting with pitbulls
[16:38:26 CET] <BBB> durandal_1707: cool
[16:38:30 CET] <jamrial> that's the thing, he knows he can get his way if he just outlasts everyone in arguments
[16:38:56 CET] <BBB> indeed
[16:43:18 CET] <wm4> in this case my comments were rather general, so it's easy to argue that they didn't matter or were not specific enough
[16:44:11 CET] <jamrial> but he didn't even bother to do that
[16:45:58 CET] <jamrial> he in fact went and blew any chance of being in the right by saying "i'm going to ignore you"
[16:49:04 CET] <jamrial> he blabbered for months how technical arguments were the only thing that mattered, but now he intends that to only apply when they are his, and everyone else's can be ignored if they are against his code
[16:50:45 CET] <jamrial> there's an alarming lack of involvement from devs regarding netiquette and community behavior here that allows people like nicolas to pull stuff like this
[16:51:50 CET] <wm4> oh you can be sure that if someone else would pull this, but who wouldn't be considered part of the traditional ffmpeg "camp", they'd all cry loudly
[16:53:37 CET] <wm4> I guess having known each other for over a decade matters to a degree
[17:01:38 CET] <BBB> wm4: sadly, it seems so, yes
[17:04:24 CET] <jamrial> wm4: there, he finally addressed your review, sort of
[17:05:46 CET] <jamrial> he more than nothing complained about the fact you raised concerns and how you "handled it", though
[17:06:50 CET] <Compn> if you guys want to troll just review the patch line by line . much more effective way of killing a patch.
[17:07:02 CET] <Compn> than saying 'is this needed' :D
[17:09:09 CET] <Compn> [10:51] <wm4> oh you can be sure that if someone else would pull this, but who wouldn't be considered part of the traditional ffmpeg "camp", they'd all cry loudly
[17:09:13 CET] <Compn> comment goes against the CoC
[17:13:27 CET] <durandal_1707> says who?
[17:19:31 CET] <BBB> Compn: I dont think anyone wants to kill the patch
[17:20:05 CET] <BBB> Compn: were not politicians, were technically competent programmers
[17:21:43 CET] <wm4> jamrial: he responded to 1 sentence
[17:21:58 CET] <wm4> of my original reply to his patch
[17:22:27 CET] <wm4> Compn: plenty of comments go against the CoC, nobody cares
[17:22:33 CET] <wm4> except cehoyos when he can use it as weapon
[17:22:50 CET] <wm4> the CoC is a joke, like the rest of the ffmpeg development community process
[17:22:57 CET] <nevcairiel> the only time its used is when its use goes against the spirit of such a thing in the first place
[17:24:09 CET] <wm4> what we'd need in this project is some kind of leadership
[17:24:20 CET] <wm4> there's none in sight though (and never was)
[17:27:18 CET] <jamrial> i agree the voting committee is not working as intended. it's too big right now, and full of people not well versed in the issues being raised or fully involved in the project
[17:27:36 CET] <j-b> of course
[17:27:49 CET] <j-b> because committees must be small if you want them to be effective.
[17:27:58 CET] <atomnuker> there's nothing to vote for, so there's no way to demonstrate its effectiveness
[17:28:05 CET] <atomnuker> you people just like to complain for the hell of it
[17:28:35 CET] <j-b> It's not like we have 20 years of knowledge of open source community management...
[17:29:31 CET] <durandal_1707> I'm fully involved in many FFMPEG aspects and I say let Nicolas do what he wants with lavfi up to point it become unusable then I will rewrite it
[17:29:48 CET] <nevcairiel> no amount of community management can fix arrogant people that just play the long time and hope everyone else goes "whatever" after its too much bother
[17:30:16 CET] <wm4> atomnuker: because we know on every vote people we didn't even know they exist will come out of the woodworks and vote against us
[17:30:40 CET] <j-b> nevcairiel: I disagree.
[17:32:06 CET] <jamrial> nevcairiel: a mute, removal of privileges (pushing rights in this case), and ultimately a temp or permanent ban are how you deal with arrogant people when managing a community
[17:32:08 CET] <atomnuker> wm4: and look how it made good decisions every time
[17:32:24 CET] <nevcairiel> jamrial: noone has the balls to do that
[17:32:56 CET] <atomnuker> constructing a committee of people who fully agree defeats the whole point of a committee
[17:32:57 CET] <nevcairiel> because usually afraid to lose manpower, even if its very disruptive
[17:33:03 CET] <jamrial> atomnuker: the ffserver vote should be proof of it not working. people showed up and saw a module being removed, questioned but didn't investigate why would it be removed, and voted against it while ignoring the threads and arguments that lead to the vote in question
[17:33:10 CET] <j-b> jamrial: that's exactly what we did for VideoLAN
[17:33:21 CET] <j-b> and we removed commit access until people understood it.
[17:33:36 CET] <atomnuker> jamrial: I don't mind it and I admit I pushed hard for its removal pointlessly
[17:34:02 CET] <wm4> j-b: lol, who's supposed to do anything of consequence in ffmpeg?
[17:34:08 CET] <atomnuker> however it did give result and now ffserver's back on track
[17:34:14 CET] <wm4> here we hand out commit access like candies
[17:34:18 CET] <jamrial> is it?
[17:34:28 CET] <jamrial> because ever since the vote ended, ffserver hasn't gotten a single commit
[17:34:32 CET] <wm4> lol
[17:34:36 CET] <nevcairiel> we developers are not lawyers or politicians, we don't live to argue about technicalties, so someone who missed his calling in politics will likely always manage to out-argue on sheer stamina alone
[17:34:37 CET] <jamrial> i'd like to say i'm surprised, but i can't
[17:35:07 CET] <BBB> bash-4.4$ grep internal ~/Projects/ffmpeg/ffserver.c
[17:35:08 CET] <BBB> #include "libavformat/avio_internal.h"
[17:35:09 CET] <BBB> #include "libavformat/internal.h"
[17:35:12 CET] <BBB> you mean that ffserver?
[17:35:19 CET] <BBB> /* FIXME: those are internal headers, ffserver _really_ shouldn't use them */
[17:35:24 CET] <BBB> that one, right?
[17:35:25 CET] <jamrial> now, ffserver is still on track to be removed as scheduled on the next major bump, seeing the remaining technical issues haven't been addressed
[17:35:55 CET] <jamrial> i wonder what will happen when that time comes
[17:35:56 CET] <atomnuker> well so it would get removed unless someone starts feeling the fire and spares some time to fix it
[17:36:17 CET] <wm4> also note that this all is with accepting that ffmdec/enc stay
[17:36:17 CET] <BBB> jamrial: it will be filibustered until eternity and pushed to next time, as always
[17:36:32 CET] <BBB> wm4: no, Ive brought up ffm in the relevant thread
[17:36:42 CET] <BBB> wm4: so ffm has to go, including from libavformat
[17:37:05 CET] <nevcairiel> ffm apparently doesnt use deprecated APIs anymore, but doesnt change that its still a rather terribly designed format
[17:37:19 CET] <BBB> ffm is not a multimedia format
[17:37:26 CET] <BBB> theres no reason for gstreamer to support ffm
[17:37:32 CET] <BBB> so it shouldnt live in libavformat
[17:38:03 CET] <wm4> I mean you could argue that ffmdec/enc is ok because as nevcairiel said it doesn't use deprecated API anymore, so it's in the clear in context of the argument that ffserver has to go due to deprecated APIs
[17:38:16 CET] <nevcairiel> i could list a few other formats that qualify for that same criteria, most recently ffprobe demuxer, surprisingly with a key person also involved in it =p
[17:38:19 CET] <wm4> so the argument shrinks to "ffmdec/enc is buttfuck ugly and nonsensical"
[17:38:32 CET] <wm4> which likely won't gather any acceptance from the preservation folks
[17:38:52 CET] <jamrial> ffserver still uses internal api. if it's not fixed by the next major bump, it must go
[17:39:01 CET] Action: BBB luch - brb
[17:39:05 CET] <jamrial> that's what the vote stated
[17:40:02 CET] <wm4> which vote
[17:40:07 CET] <wm4> the original one or the "revised" one
[17:40:18 CET] <jamrial> the only one. there was no "original" one
[17:40:30 CET] <durandal_1707> when merges gonna happen? libav removed some cruft
[17:40:31 CET] <wm4> oh right I keep forgetting that
[17:40:39 CET] <wm4> it was merely a patch that was merged with wide agreement
[17:44:32 CET] <jamrial> originally ffserver was going to be removed and that was it. reynaldo asked for time to fix it and move it to a separate repo (his own personal project, not something we would maintain)
[17:44:56 CET] <jamrial> that request was accepted. after that, that awful thread started and the vote changed ffserver's fate from "fix it and move it somewhere else if you want, but it wont live in our tree any longer"
[17:45:14 CET] <jamrial> to "if and only you can fix it before the next bump, it can stay in our tree. otherwise it's gone"
[17:46:21 CET] <rcombs> michaelni: try this? https://gist.github.com/041a58f6726dd80dd82b8c9d7711b2bd
[17:47:09 CET] <wm4> can't we fix mp3 probing for real
[17:48:06 CET] <rcombs> this case is one where the ID3v2 header is larger than the maximum probe buffer size
[17:49:08 CET] <rcombs> actually, this is probably slightly better: https://gist.github.com/33c688d83d1ad8e5e1dbd677485fdb35
[17:50:21 CET] <wm4> I can't comprehend why the mp3 probe function does all this stuff, instead of just skipping the id3v2
[17:50:50 CET] <wm4> in fact whatever probes should probably skip the id3v2 and feed the data after it to the prober
[17:51:00 CET] <wm4> would be sort of an API behavior change though
[17:53:11 CET] <rcombs> yeah, that would be a good idea
[17:53:17 CET] <jamrial> lol at nicolas reply
[17:53:57 CET] <rcombs> https://gist.github.com/7a5af2095d147f13ccfbe782936bc03b actually this is probably slightly better
[17:54:27 CET] <rcombs> wm4: I guess the concern is around extremely large, or corrupted, ID3v2 tags
[18:02:47 CET] <wm4> which is why skipping it early would be good for probing
[18:27:36 CET] <Chloe> when is the next major bump?
[18:31:46 CET] <Chloe> also wtf @ FFFQ thread, when will this shit end
[18:32:25 CET] <wm4> I think Libav are about to do one
[18:32:48 CET] <wm4> but who knows when this will be merged
[18:32:51 CET] <wm4> merges have stopped
[18:34:54 CET] <wm4> "From my point of view, wm4 no longer exists in this discussion." this guy sure is funny
[18:37:04 CET] <Chloe> Why is no one doing anything about this? Nicolas has been ridiculous in this thread and many previous threads lately.
[18:40:42 CET] <cone-280> ffmpeg 03Paul B Mahol 07master:c5168b4b542b: doc/general: mention recently added PCM codecs
[18:41:19 CET] <wm4> Chloe: lack of leadership
[18:41:23 CET] <Chloe> It's not like we have a 'set way' for repercussions: doesn't this mean it's possible to enact this as-needed and at our discretion?
[18:54:29 CET] <michaelni> rcombs, the VIZ010-01_128.mups file had a mjpeg in it that got displayed which after your patchset + the linked patch is not shown anymore
[18:55:18 CET] <rcombs> &wat
[18:55:27 CET] <rcombs> is the ID3v2 code even crazier than I thought it was
[18:56:29 CET] <wm4> I don't understand how it affects that
[18:56:51 CET] <wm4> probing is run on id3v2 + data after it, but libavformat will always skip the id3v2 in the same way after probing
[19:12:18 CET] <cone-280> ffmpeg 03James Almer 07master:0abcebe3d62d: tests/avstring: free the pointer after calls to av_d2str()
[19:23:28 CET] <cone-280> ffmpeg 03Michael Niedermayer 07master:f9315ea984ef: ffserver_config: Check for failure to allocate FFServerIPAddressACL
[19:32:14 CET] <rcombs> wm4: oh, huh, yeah, that's dumb then
[19:32:57 CET] <rcombs> michaelni: is it still choosing the "mp3" demuxer like it used to, or is it using one of the new ones?
[19:33:44 CET] <wm4> in addition, the id3v2 is read for all formats, AFAIK, but including attached pictures requires cooperation from demuxers (strange shit)
[19:35:46 CET] <rcombs> wat
[19:36:54 CET] <wm4> because there are people who put id3v2 tags on .aac files etc.
[19:37:01 CET] <wm4> and mp4 files etc.
[19:37:12 CET] <wm4> (we had this discussion a longer time ago)
[19:45:32 CET] <rcombs> wait mp4 even
[19:47:31 CET] <wm4> if (!strcmp(s->iformat->name, "mp3") || !strcmp(s->iformat->name, "aac") ||
[19:47:31 CET] <wm4> !strcmp(s->iformat->name, "tta")) {
[19:47:31 CET] <wm4> if ((ret = ff_id3v2_parse_apic(s, &id3v2_extra_meta)) < 0)
[19:47:31 CET] <wm4> goto fail;
[19:47:50 CET] <wm4> this is in utils.c
[19:48:40 CET] <wm4> I think the intention is to prevent attached pictures from adding an attached picture AVStream for demuxers which possibly don't expect it
[19:49:31 CET] <wm4> so yeah, using an id3v2 with a mp4 file works in ffmpeg
[19:54:38 CET] <rcombs> ah
[19:55:27 CET] <rcombs> michaelni: so, yeah, is it picking MP2 or MP1? (would be strange, actually; I intended for that patch to make it pick MP3)
[19:55:40 CET] <rcombs> but based on the code wm4 pasted that would make sense as an explanation
[19:57:11 CET] <wm4> anyway this strcmp orgy should probably be at least an internal format flag, or just move the code to the demuxers
[19:57:53 CET] <Compn> id3 is evil.
[20:08:24 CET] <michaelni> rcombs, "Input #0, mp1 ..."
[20:08:41 CET] <rcombs> wm4: that would be a good plan
[20:09:27 CET] <rcombs> michaelni: is it actually MP1 data, or is my code mistagging it? If you add mp1 to the list in utils.c, does the jpeg show up?
[20:14:09 CET] <michaelni> rcombs, it looks like mp3 data: Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[20:16:11 CET] <michaelni> rcombs, is .mups a standard file extension ? you add it to +DECLARE_LAYER(1, "mp1,mups,mpa")
[20:16:20 CET] <rcombs> I have no idea
[20:16:29 CET] <rcombs> oh, that's probably why though
[20:16:33 CET] <rcombs> what happens if you get rid of that
[20:19:41 CET] <michaelni> that seems to fix the file
[20:20:14 CET] <rcombs> \o/ OK, lemme tweak some things
[20:21:13 CET] <Compn> durandal_1707 : is your pixlet output binary identical to binary codec ?
[20:21:24 CET] <Compn> if not, should it be marked experimental ?
[20:21:27 CET] <Compn> just aksing...
[20:22:13 CET] <durandal_1707> Compn: i will mark you as experiment in human history
[20:22:31 CET] <Compn> people need to know if they will get accurate decoding
[20:22:32 CET] <rcombs> https://gist.github.com/788e0485572441e4520e17e5565868ec alright, that ought to fix it
[20:23:12 CET] <Compn> durandal_1707 : honestly, i like incomplete decoders. i am not trying to insult
[20:24:15 CET] <durandal_1707> Compn: output is pretty much identical afaik
[20:24:27 CET] <durandal_1707> visually
[20:31:36 CET] <Compn> k
[20:36:01 CET] <cone-280> ffmpeg 03Pavel Koshevoy 07master:47cd8effea34: fate: Add test for ticket 6024, truncated decoding mode
[20:39:19 CET] <michaelni> rcombs, this looks unintended: '.extensions = "mp1,m1a,mups",'
[20:40:10 CET] <rcombs> oh, good catch, fixed
[21:53:26 CET] <cone-280> ffmpeg 03Paul B Mahol 07master:fdcb7a85cf2a: avfilter/vf_deband: add planes coupling mode
[22:08:03 CET] <wbs> on the topic of ffserver as I saw discussed before; one technical issue about ffm that I seldom see mentioned, is the fact that it serializes enum values (like codec ids) into the network stream, even though the actual enum values can change at any major bump
[22:08:46 CET] <wbs> so as it currently is designed, ffm can only be parsed by the same major version as it was written with. and the major version is not even written to the stream so you can't know if what you are reading is interpreted right or not
[22:09:47 CET] <wbs> it's of course not a blocking issue like using deprecated apis, but it's still a pretty bad design issue IMO, which at least should be documented and made very clear to any user of it
[22:11:45 CET] <wm4> which is why I suggested replacing ffm with the ffprobe demuxer (and add a muxer)
[22:11:50 CET] Action: wm4 head->table
[22:52:17 CET] <cone-280> ffmpeg 03Paul B Mahol 07master:73651090ca11: avcodec: add Apple Pixlet decoder
[23:43:39 CET] <atomnuker> wait, what's the difference between the framequeue and the bufferqueue?
[23:49:40 CET] <atomnuker> okay, I think I get it, framequeue is something meant to be used by something which allocates frames and puts them in a queue
[23:50:08 CET] <atomnuker> since ff_framequeue_free() will call av_frame_free() on all
[23:50:35 CET] <atomnuker> while the bufferqueue refs and unrefs them (which is what I use)
[00:00:00 CET] --- Fri Dec 23 2016
1
0
[00:27:03 CET] <efface> Question about HLS. I have a working UDP MPEG-TS -> x264 HLS. What I would like to do is add the secondary audio track in....I can -map it in and it's encoded in the mp4 but I think the manifest is missing some indicator to tell the player there are two embedded audios. Anyone know how to resolve this? The only solution I saw was to encode the video and audio all as seperate files and then have the manifest tell them to pull the
[00:41:36 CET] <tokam> Hello
[00:42:20 CET] <tokam> http://vpaste.net/wP7Hc
[00:42:28 CET] <tokam> this leads to a bad video quality.
[00:42:45 CET] <tokam> does the -vf option make my vcodec option obsolte?
[00:50:33 CET] <tokam> furq: can you maybe help me with my ffmpeg commandß
[00:51:05 CET] <tokam> I have a folder with images from 1.jpg ... to n.jpg and with a given size. I have a file watermark.png and a file branding.png
[00:52:13 CET] <tokam> I like now to create a video of the images from 1.jpg to n.jpg with 6 images per frame in a high video quality e.g. with codec libx264 and the watermark should be included and the branding.jpg should be displayed for 7 seconds at the end of the video
[00:58:38 CET] <fahadash> Is there a filter to do -ss and -to?
[01:02:28 CET] <tokam> why does ffmpeg not include m images if after a sequence of n different images follow m unique ones?
[01:23:01 CET] <fahadash> I mapped an audio file using -map, how do I make it stop when at the end of the video source? my audio source is longer
[01:54:28 CET] <Pandela> Hey guys
[01:54:53 CET] <Pandela> When you press the C key while something is playing in ffplay, "Enter command: <target>|all <time>|-1 <command>[ <argument>]" comes up.
[01:55:09 CET] <Pandela> What can be done with that?
[05:06:37 CET] <Pandela> How would I use a command like the one in the answeres Example code on this page? http://superuser.com/questions/736388/crop-triangular-area-with-ffmpeg
[05:06:43 CET] <Pandela> Pretty sure thats for linux
[11:17:00 CET] <nirvanko> I tried to re-scale my video with thi command: /usr/bin/ffmpeg -i "$input" -sn -strict -2 -movflags faststart -crf 28 -vf 'scale=1280:720:flags=lanczos' "$output"_720p.mp4 \
[11:17:25 CET] <nirvanko> But for some reason the result is 1728x720
[11:17:30 CET] <nirvanko> What's wrong?
[11:23:34 CET] <squ> its preserving aspect ratio
[11:24:05 CET] <squ> you can crop with -vf "crop
[11:50:16 CET] <nirvanko> squ: I thought in order to preserve aspect ratio one has to specify -vf scale=:-1:720
[11:50:50 CET] <nirvanko> https://trac.ffmpeg.org/wiki/Scaling%20(resizing)%20with%20ffmpeg
[11:50:56 CET] <nirvanko> ffmpeg -i input.avi -vf scale=320:240 output.avi
[12:21:00 CET] <nonex86> nirvanko: what do you want? stay with supplied dimensions? or/and preserve aspect ratio or not?
[12:24:18 CET] <nonex86> if you need to get supplied resolution and preserve aspect you can use something like this
[12:24:29 CET] <nonex86> "scale=%d:%d:force_original_aspect_ratio=decrease,pad=%d:%d:(ow-iw)/2:(oh-ih)/2"
[12:25:14 CET] <nonex86> replace those %d with desired width and height respectively
[12:25:33 CET] <nonex86> this one will produce correct letterboxed/pillarboxed video
[12:25:47 CET] <nonex86> but will not work in case of SAR are not 1:1
[12:50:04 CET] <nirvanko> nonex86: well, I suppose if I resize a video specifying exact video dimensions the aspect ratio will not be preserved.
[13:41:30 CET] <xeche> Hello good people. I'm looking for information on how integrate Intel QSV with FFMPEG. I have libmfx, and the Intel Media SDK, but I'm unsure what FFMPEG API calls bridge libmfx and FFMPEG.
[13:43:14 CET] <xeche> I'm stopped dead after avcodec_find_encoder_by_name("hevc_qsv")
[13:43:50 CET] <xeche> should I allocate an FFMPEG codec context as usual ( via avcodec_alloc_context3(..))
[13:45:38 CET] <nonex86> xeche: what is your host os?
[13:46:50 CET] <xeche> nonex86: windows 10
[13:47:47 CET] <nonex86> xeche: why dont you use dxva instead?
[13:48:11 CET] <nonex86> xeche: i mean if you will use dxva you will not be bound to concrete hardware engine
[13:48:32 CET] <xeche> firstly because I don't know what dxva is, and secondly because I didn't make the decision. :)
[13:49:37 CET] <xeche> A quick look at the wiki page for dxva seems to state it requires pretty powerful GPUs
[13:49:44 CET] <xeche> while QSV requires a modern CPU
[13:49:51 CET] <xeche> with an optional fallback to GPU if I'm not mistaken
[13:49:52 CET] <nonex86> then i cant help you :) i created a software what used intel quick sync directly
[13:49:57 CET] <nonex86> you are wrong
[13:50:20 CET] <nonex86> dxva is just an api and infrastructure
[13:50:33 CET] <nonex86> intel provided dxva support in his drivers
[13:50:51 CET] <nonex86> so you can use dxva decoder in ffmpeg
[13:51:02 CET] <xeche> I'm encoding
[13:51:06 CET] <nonex86> and it will be mapped to qs (mfx) hardware
[13:55:06 CET] <nonex86> google for AV_PIX_FMT_QSV
[13:55:17 CET] <nonex86> guess this should give you a basic idea
[13:56:40 CET] <xeche> nonex86: Thank you. I'll see what I can dig up. :)
[14:36:24 CET] <xeche> Apparently there's an AVQSVContext, with a corresponding alloc context function. According to header file docs, that context should be passed to a regular FFMPEG CodecContext's hwaccel_context data member
[14:54:57 CET] <nonex86> xeche: sounds reasonable :)
[15:04:32 CET] <nonex86> xeche: and btw guess that alloc function just allocates the memory, you should fill the members by yourself
[15:05:22 CET] <nonex86> xeche: at least some fields
[15:07:48 CET] <nonex86> xeche: but this just my guess...
[16:01:00 CET] <thebombzen_> I just had a thought - why does -map_metadata -1 work?
[16:01:28 CET] <thebombzen_> If it works like -map, shouldn't the command be -map_metadata -0
[16:06:34 CET] <furq> bye
[16:27:38 CET] <efface> good morning
[16:30:21 CET] <efface> I am doing a real time UDP mpeg-ts (mpeg2 or 264) to 264 HLS conversion and I am trying to get it to work with a second embedded audio track. I have read that this was part of an older HLS spec version but I have not been able to figure out how to flag it in the manifest. Anyone able to point me in the right direction?
[16:59:37 CET] <noel> hi
[16:59:59 CET] <Guest42817> i m trying to compile ffmpeg with x265 and I only get ERROR: x265 not found using pkg-config
[17:00:31 CET] <Guest42817> i can't remember this to be so complicated.. is it because I m using a 32 ubuntu?
[17:02:45 CET] <BtbN> you need libx265 and its development files in a location where configure will find them.
[17:04:15 CET] <Guest42817> i wanted to make a static x265 binary, and i copied in /usr/local/bin along with x264 but nothing
[17:04:28 CET] <Guest42817> that s how I did last year I think and it went fine
[17:06:20 CET] <furq> ffmpeg uses the library, not the binary
[17:06:52 CET] <furq> if you're on an old ubuntu then you might as well just use the static builds
[17:06:54 CET] <furq> https://www.johnvansickle.com/ffmpeg/
[17:08:42 CET] <Guest42817> no that's the point, I m trying on ubuntu 16 lts for first time
[17:08:53 CET] <Guest42817> maybe that's why it's not working as on trusty?
[17:09:22 CET] <DHE> you also need the /usr/local/lib/pkg-config/x265.pc file
[17:09:30 CET] <Guest42817> i had them all
[17:09:32 CET] <DHE> and likely need to export PKG_CONFIG_PATH=/usr/local/lib/pkg-config
[17:09:37 CET] <Guest42817> all copied by the cmake script
[17:09:43 CET] <Guest42817> ok I ll try that
[17:12:15 CET] <Guest42817> https://i.gyazo.com/55bf57c08dfb14d12fb3d3ab15fba04b.png
[17:12:22 CET] <Guest42817> doesn't seem good?
[17:12:41 CET] <Guest42817> well i ll try export the pkg path now, as you said
[17:27:03 CET] <araml> y
[17:27:31 CET] <Guest42817> well i give up on x265, too much troubles, while it s working as usual without..
[17:27:40 CET] <Guest42817> thx for the help ;)
[17:27:50 CET] <BtbN> just install it with your package manager?
[17:34:21 CET] <Guest42817> oh thx, didn't know there was a package
[17:34:47 CET] <Guest42817> i guess that's the good thing about going to the last distro
[17:34:58 CET] <Guest42817> especially i m not encoding in x265 anyway..
[17:36:09 CET] <Guest42817> k, installed the libx265 using package manager.. still not working on ffmpeg ./configure
[17:36:13 CET] <Guest42817> geez
[17:36:20 CET] <furq> do you need packages which aren't part of ubuntu's ffmpeg
[17:36:44 CET] <Guest42817> well afaik, ffmpeg can decode x265 so it's enough for me
[17:37:01 CET] <Guest42817> but it's always to keep up with the new codec..
[17:37:05 CET] <Guest42817> nice*
[17:39:41 CET] <BtbN> Did you install the devel package, or just the library?
[17:42:12 CET] <Guest42817> apt-get install libx265-dev
[17:42:40 CET] <Guest42817> installed fine, but still getting the same error with pkg "ERROR: x265 not found using pkg-config"
[17:44:44 CET] <Mista_D> Happy Hoplidays to All Dear Developers, transcoders and rippers! What would be best method to change layout of two live feeds while streaming on demand (at not specific time, but event)? Starting off with one over the other (PIP: 1/4 size in the corner), and want to swicth the feeds around. Any constructive advice is welcome. Thanks!
[17:50:04 CET] <BtbN> check the config log what's going wrong then
[17:56:19 CET] <Guest42817> i ll format and try again on a clean install
[17:57:44 CET] <fritsch> no need to format ...
[17:58:04 CET] <fritsch> that's linux not windows
[17:59:57 CET] <Guest42817> http://pastebin.com/SjTDYw7N
[18:00:23 CET] <Guest42817> yea but maybe I did some mess while trying to compile and that's why it s not working even after installing via the package manager
[18:00:35 CET] <Guest42817> because that doesn't make much sense in 2016
[18:00:47 CET] <Guest42817> haven't had an issue compiling ffmpeg since hardy..
[19:13:24 CET] <Guest42817> after reinstalling ubuntu 16, I can finally make a ./configure with --enable-libx265 without pkg errors
[19:17:52 CET] <BtbN> should just have uninstalled the broken self built one instead.
[20:22:32 CET] <Maverick|MSG> I'm having an issue where ffmpeg is not exiting when the udp input stream stops sending data
[20:22:53 CET] <Maverick|MSG> something like: ffmpeg -i udp://127.0.0.1:1234 ...
[20:23:18 CET] <Maverick|MSG> after the stream finishes sending data ffmpeg just sits there waiting for more data
[20:23:58 CET] <Maverick|MSG> ffmpeg will complete the encoding if I set a timeout (udp://127.0.0.1:1234?timeout=1000000
[20:24:14 CET] <Maverick|MSG> but the ffmpeg process won't exit
[20:24:27 CET] <Maverick|MSG> anyone have any ideas on how to resolve this?
[21:21:33 CET] <efface> Maverick, I actually saw there the was a way to do that the other day. can't find the exact option right now but I could swear it was -x when you declare your input settings
[21:22:29 CET] <efface> actually, -abort_on seems more appropriate
[23:35:30 CET] <teratorn> got a problem (bug?) running this command: ffmpeg -i rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/mp4:bigbuckbunnyiphone_400.mp4 -c copy -an -f hls junk.m3u8
[23:36:13 CET] <teratorn> so, it runs.... but it produces an junk.m3u8 file that only has 5 .ts segments in it, even though the process saves out many many more segments to disk... the m3u8 is being constantly rewritten with only the last 5 segments?
[23:36:59 CET] <teratorn> so at the end of the process, the m3u8 refers to only the last 5 segments which is just a very small part of the input... anyone know why?
[23:37:36 CET] <c_14> -hls_list_size 0
[23:38:14 CET] <c_14> https://ffmpeg.org/ffmpeg-formats.html#Options-4
[23:38:32 CET] <teratorn> c_14: thanks!
[23:39:32 CET] <teratorn> just seems really weird that isn't the default... I guess there is a reason for it
[23:40:00 CET] <c_14> >hls = http live streaming
[23:40:05 CET] <c_14> It's not very life if you have infinite backlog
[23:40:09 CET] <c_14> *live
[23:43:14 CET] <teratorn> c_14: ah, I see, that makes sense. my use-case is different, but yeah..
[00:00:00 CET] --- Fri Dec 23 2016
1
0
[00:01:50 CET] <BBB> and & fixed
[00:02:05 CET] <BBB> happy guys?
[00:02:10 CET] <BBB> because Im going home now
[00:03:25 CET] <nevcairiel> if anything wmavoice is happy, so much attention, its not used to this!
[00:16:46 CET] <BBB> nevcairiel: maybe it should learn to be a ore appreciative codec, its not the cleverest one out there, eve
[00:17:00 CET] <llogan> wiener_denoise was too small
[00:17:06 CET] <BBB> *even lossless codecs are more useful than this one, its acting up like a spoiled brat ;)
[00:17:21 CET] <BBB> anyway enough bad jokes about silly codecs
[01:32:07 CET] <cone-098> ffmpeg 03Andreas Cadhalpun 07master:319438e2f206: swscale: save ebx register when it is not available
[02:51:46 CET] <blue_misfit> can anyone give me some info about what async (the protocol) would be used for?
[03:38:27 CET] <cone-098> ffmpeg 03Thomas Turner 07master:9f76ad2a4643: avutil: Added selftest for libavutil/audio_fifo.c
[03:38:28 CET] <cone-098> ffmpeg 03Michael Niedermayer 07master:54931fd0fb82: avutil/random_seed: Use uint64 instead of uint8 for struct to avoid potential alignment issues
[03:53:17 CET] <crelloc> copy
[04:25:45 CET] <rcombs> so lavf/isom.c identifies codec ID 0x69 as MP3, when in fact it could be MP1 or MP2
[05:29:21 CET] <rcombs> erm, sorry, 0x6B
[06:07:18 CET] <Compn> rcombs : do you mean it could be mp1, mp2 or mp3 ?
[06:07:26 CET] <rcombs> yeah
[06:07:41 CET] <Compn> you have samples where this is a problem ?
[06:07:48 CET] <Compn> he asked, expecting the answer to be yes
[06:07:57 CET] <Compn> or you have the spec open ?
[06:09:00 CET] <Compn> i guess then just add the duplicate lines like is done for 0x69
[06:09:35 CET] <Compn> as long as you comment in the spec chapter, patch lgtm...
[06:10:19 CET] <rcombs> I have one sample
[06:10:38 CET] <Compn> do you happen to know the name of the offending software that created such sample ?
[06:11:03 CET] <rcombs> looked at the spec, and all it says is 11172-3
[06:11:24 CET] <rcombs> which is just MPEG-1 Part 3, i.e. audio
[06:11:37 CET] <rcombs> yeah, it was lavf
[06:12:02 CET] <Compn> is it a bug in our movenc
[06:12:16 CET] <rcombs> I think it probably isn't
[06:13:20 CET] <rcombs> lemme ask the person who encoded it, but I'm guessing they remuxed this from another MOV file, and the whole time lavf thought it was MP3
[06:17:16 CET] <rcombs> oh interesting
[06:17:25 CET] <rcombs> Compn: see mov_write_esds_tag; it explicitly writes 0x6B for MP2 and MP3
[06:17:39 CET] <rcombs> but afaict this is perfectly up-to-spec
[17:46:34 CET] <Zeranoe> Perhaps an unsurprising result, but a conclusive result non the less: https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=2&t=4837
[17:59:02 CET] <kierank> Zeranoe: do you have standard deviations
[17:59:22 CET] <Zeranoe> kierank: I'll get them
[18:06:56 CET] <nevcairiel> considering the other two are basically wrappers around w32 api, unsurprising indeed
[18:10:59 CET] <Zeranoe> About to ditch Excel and calculate these in Bash
[18:11:34 CET] <JEEB> something like python is better for any sort of maths and to keep you more sane than insane
[18:11:50 CET] <Zeranoe> This is true
[18:12:09 CET] <JEEB> personally I just wouldn't dare to think about doing maths in bash or batch :)
[18:12:28 CET] <Zeranoe> It's not bad in a pinch
[18:20:48 CET] <wm4> these use the vista primitives, right?
[18:21:16 CET] <wm4> we should ditch the XP compat already, or hide it behind a configure switch
[18:21:25 CET] <wm4> if idiots want to use XP, let them suffer, not us
[18:21:38 CET] <JEEB> I thought the vista APIs were actually slower?
[18:21:58 CET] <JEEB> because the abstraction somehow ends up doing you overhead or whatever
[18:28:09 CET] <Zeranoe> Assuming Excel didn't freak out in the background, the standard deviation was around 2 sec
[18:28:45 CET] <JEEB> btw, was there any way of libavformat sending signals to the rest of things?
[18:29:02 CET] <JEEB> so that the API user can be warned of required decoder re-init or whatever
[18:31:15 CET] <kierank> JEEB: lol no, text only ofc
[18:31:34 CET] <JEEB> alrighty
[18:31:56 CET] <JEEB> but at least some sort of text-based thing I guess?
[18:32:22 CET] Action: JEEB is still crazy enough to think about fixing PID switches
[18:43:15 CET] <wm4> JEEB: decoder reinit would be handled decoder-internally
[18:43:25 CET] <wm4> you probably mean stream switching or something?
[18:44:08 CET] <JEEB> depends on if the PID switch it left for the API user to handle or if the demuxer should handle it itself
[18:44:20 CET] <JEEB> also re-init might sometimes mean initializing a different decoder
[18:44:30 CET] <JEEB> because I heard PID switches can mean format switches
[18:44:49 CET] <JEEB> and not only stream config switches, which is supported by many decoders
[18:45:08 CET] <JEEB> although I've not seen any PID switches where the video or audio format completely changes
[18:46:16 CET] <nevcairiel> broadcasts typically avoid switching format
[18:46:30 CET] <wm4> JEEB: different format would mean different AVStream
[18:46:37 CET] <JEEB> yea
[18:50:25 CET] <kierank> JEEB: ahahahaha
[18:50:26 CET] <kierank> you are insane
[18:50:40 CET] <kierank> the pid stuff is so complicated
[18:50:52 CET] <kierank> if you do ./ffmpeg -i on a random live feed all the pids are jumbled
[18:50:57 CET] <kierank> because it just ignores PMT and probes
[18:51:03 CET] <JEEB> yup
[18:51:57 CET] <JEEB> (I know the fun side-effects of the whole "let's support MPEG-TS without PMT" thing)
[18:52:15 CET] <bencoh> :]
[18:52:39 CET] <kierank> support mp4 without moov as well
[18:52:48 CET] <JEEB> I did not hear that
[18:53:10 CET] <JEEB> or wait, movie fragments
[18:53:20 CET] <JEEB> yes, I will keep telling myself it's just movie fragments we support
[19:40:32 CET] <durandal_17> anyone here knows intrinsics well?
[19:56:04 CET] <durandal_17> BBB: you?
[19:56:35 CET] <BBB> uhm...
[19:56:41 CET] <BBB> what does know mean?
[19:57:03 CET] <durandal_17> knowing what it does with few input numbers
[20:00:14 CET] <BBB> why dont you ask a specific question and Ill let you know if I know
[20:03:21 CET] <durandal_17> BBB: i have function from pixlet decompiler which postprocess luma stuff
[20:03:35 CET] <BBB> ok
[20:14:01 CET] <durandal_17> BBB: https://paste.ubuntu.com/23665287/
[20:14:27 CET] <BBB> what is that
[20:15:38 CET] <blue_misfit> Zeranoe, thank you for all you do!
[20:15:53 CET] <durandal_17> BBB: thats pixlet luma postprocessing
[20:16:13 CET] <durandal_17> similar to chroma where it shifts by 1 to left
[20:16:48 CET] <BBB> ok
[20:16:53 CET] <BBB> so step 1, the input is signed 16bit
[20:16:57 CET] <BBB> so -32768 to +32767
[20:17:11 CET] <BBB> it clips it to 15bit (non-negative)
[20:17:25 CET] <durandal_17> but its locked to -1024 to 32767
[20:17:30 CET] <BBB> then converst it to 32bit
[20:17:46 CET] <BBB> then to float
[20:19:24 CET] <durandal_17> it does something strange with sqrt()
[20:19:50 CET] <BBB> it compares that to v31, which is a1.m128_f32[0] * *(double *)&v11.m128_u64[0] from line 37
[20:20:18 CET] <BBB> i.e. (double)((1 << wanted) - 1) / 255.9980468675494 * sqrt((double)a7)
[20:20:28 CET] <durandal_17> wanted is 15
[20:21:11 CET] <durandal_17> a7 is 2048
[20:21:17 CET] <BBB> & very strange
[20:21:21 CET] <BBB> anyway
[20:21:43 CET] <BBB> it multiplies the float pixels by v14 and v15
[20:22:04 CET] <BBB> v14 is 1.0 / a1.m128_f32[0];, so it converts it to [0.0,1.0 range]
[20:22:16 CET] <BBB> v15 is (float)a7 / v12;
[20:23:12 CET] <BBB> then depending on the comparison, it takes v14 or v15 and merges that back
[20:23:32 CET] <BBB> so it seems like it converts to some gamma-corrected scale or whatever
[20:23:36 CET] <BBB> dont know exactly
[20:23:44 CET] <BBB> but it seems like gamma application (like TRC)
[20:25:38 CET] <BBB> then convert back to 32bit int, sub is_32768 (?), pack to 16bit, add word_196B0, add v30 and store into the original pixel array
[20:25:42 CET] <BBB> thats all
[20:26:26 CET] <BBB> v30 = a8
[20:26:34 CET] <BBB> does that make sense?
[20:29:23 CET] <durandal_17> yes. a8 is -32768
[20:41:47 CET] <durandal_17> BBB: looks like just doing y * y in 0-1 range does it
[20:42:40 CET] <BBB> if its smaller than some value
[20:43:00 CET] <BBB> you can just input an array of values into that function and see what it does
[20:43:06 CET] <BBB> but to me, this means the values are not 16bit, but 15bit
[20:44:14 CET] <durandal_17> codec provides 16bit rgb(a) output
[21:05:19 CET] <durandal_17> and is more like float format than anything else
[21:40:49 CET] <cone-168> ffmpeg 03Paul B Mahol 07master:9933579a9be7: avfilter/vf_psnr: add gray10 and gray12 support
[22:47:19 CET] <cone-168> ffmpeg 03Michael Niedermayer 07master:fd1fcb59dcdb: avformat/img2dec: Remove dead code from psd_probe()
[23:05:38 CET] <Zeranoe> I'm getting lots of reports of hangs when using x264. I haven't been able to reproduce it yet, but I feel like something must have changed
[23:09:44 CET] <Compn> cant test, wont run on vista :P
[23:09:53 CET] <Compn> (or xp)
[23:10:13 CET] <Zeranoe> lol
[23:10:50 CET] <Compn> well :P
[23:11:11 CET] <Zeranoe> I know I'm going to end up building an FFmpeg with debug symbols for GDB. I wont include MFX/QSV, so others (with vista/xp) can test
[23:11:38 CET] <Compn> yeah we dont need that qsv crap on vista/xp :P
[23:11:53 CET] <Zeranoe> No one needs that QSV crap, it's crap
[23:12:13 CET] <Compn> any of your users use it? why not disable...
[23:12:22 CET] <Zeranoe> Some apparently do
[23:12:27 CET] <Zeranoe> some=many
[23:13:39 CET] <Compn> ok no problem then
[23:13:43 CET] <Compn> just making sure. :)
[23:15:35 CET] <Zeranoe> And of course I'm not going to be able to reproduce this hang using the methods sent to me...
[23:20:17 CET] <rcombs> gotta go fast
[23:23:14 CET] <Zeranoe> Rocking -p veryfast
[23:23:58 CET] <Zeranoe> I feel like my i7-4790K is going to handle anything I throw at it. I need a crappy CPU maybe
[23:24:20 CET] <fritsch> Zeranoe: try a jellyfish sample
[23:24:28 CET] <fritsch> 120 Mbit/s
[23:24:35 CET] <Zeranoe> fritsch: A what...
[23:25:27 CET] <fritsch> http://jell.yfish.us/media/jellyfish-250-mbps-4k-uhd-h264.mkv
[23:25:33 CET] <fritsch> you wanted something your CPU cannot decode
[23:25:36 CET] <fritsch> and h264
[23:25:37 CET] <fritsch> try that
[23:26:15 CET] <fritsch> infact you asked for a slow cpu, I gave you something that makes you feel having a slow cpu
[23:26:40 CET] <Zeranoe> I'm intrigued
[23:27:15 CET] <Zeranoe> Does the preset matter?
[23:27:50 CET] <fritsch> sorry, cannot parse that question with the given ctx.
[23:28:21 CET] <Zeranoe> Does -preset veryslow or -preset veryfast tax more
[23:28:43 CET] <fritsch> the first one
[23:29:28 CET] <Zeranoe> Immediate hang, nice
[23:30:11 CET] <fritsch> perhaps try the 160 Mbit/s first?
[23:32:49 CET] <Zeranoe> I can't tell if the hang is CPU related or simply trying to allocate the memory
[23:34:24 CET] <Zeranoe> Looking at 4GB memory usage to work with those
[23:34:29 CET] <fritsch> I also can't but you asked above to "get some trouble", and as helpfull person I thought to help you
[23:34:46 CET] <Zeranoe> fritsch: Thank you
[23:35:01 CET] <fritsch> :p
[23:40:46 CET] <Zeranoe> fritsch: Those files did it, thanks a lot, I can reproduce this now
[23:40:53 CET] <fritsch> cool
[00:00:00 CET] --- Thu Dec 22 2016
1
0
[00:25:40 CET] <sib> anyone here know how to run ffserver with cuda acceleration?
[00:26:55 CET] <llogan> unfortunately "anyone here know how to run ffserver?" would get the same silent response
[00:26:55 CET] <furq> you probably shouldn't run ffserver at all
[00:27:27 CET] <llogan> the only people that use it are people who try to use it and then give up
[00:27:38 CET] <furq> i thought it had already been removed tbh
[00:28:17 CET] <llogan> no. a few noisy developers squawked at the last minute and turned into a Bikeshedfest 2016.
[00:28:34 CET] <furq> lol
[00:28:52 CET] <llogan> or at least that was the status when i stopped caring about it
[00:28:53 CET] <furq> five commits between january and october, then a bunch of activity in the last two months
[00:29:33 CET] <llogan> more importantly right now is which coworkers office garbage smells like old milk?
[00:29:38 CET] <furq> i mean i guess i should be glad that someone's fixing it but i do feel like they should just throw it in the bin
[00:29:57 CET] <furq> s/fixing it/trying to fix it/
[00:30:00 CET] <furq> important distinction
[00:30:26 CET] <llogan> pretty much the sentiment of the silent majority
[00:31:17 CET] <BtbN> it's not even an attempt to "fix" it
[00:31:35 CET] <BtbN> it's just to make it use newer API, so it won't be dropped when that deprecated API does
[00:32:02 CET] <llogan> FFhoarding
[00:32:07 CET] <BtbN> I'd be surprised if it wouldn't go back into its forgotten state after that is achived.
[00:32:23 CET] <llogan> it will become a "collector's edition".
[00:32:43 CET] <furq> yeah i got that impression from the commits
[00:32:50 CET] <furq> it's all just "update this broken-ass shit to the new api"
[00:33:40 CET] <furq> does it actually depend on ffmpeg internals
[00:33:48 CET] <furq> i'm guessing they can't just split it into its own project or something
[00:34:07 CET] <BtbN> part of it, like the ffm thing, are in libav*
[00:34:29 CET] <furq> by internals i mean private APIs etc
[00:35:33 CET] <furq> oh nvm i read that wrong
[00:42:59 CET] <sib> if not ffserver, then what would be a good alternative to stream h264 through html5
[00:43:37 CET] <BtbN> "through html5"?
[00:44:15 CET] <BtbN> Just any webserver and make ffmpeg output hls I guess?
[00:45:05 CET] <BtbN> Also, how would ffserver help with that in the first place? I'm not aware of any web-browser-streaming qualities it has
[00:52:05 CET] <furq> use the hls muxer, or use nginx-rtmp's hls muxer
[00:52:18 CET] <furq> https://github.com/dailymotion/hls.js/
[00:52:19 CET] <furq> and that
[00:53:39 CET] <sib> @BtbN @furq thanks!
[02:48:11 CET] <blue_misfit> can anyone give me some info about what async would be used for?
[02:48:22 CET] <blue_misfit> *the protocol handler*
[03:28:32 CET] <damdai> x264 core 142 r2479 dd79a61
[03:28:33 CET] <damdai> Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3
[03:28:33 CET] <damdai> / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=abr / mbtree=1 / bitrate=6670 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
[03:28:33 CET] <damdai> Default : Yes
[05:43:51 CET] <k-man> hi
[05:44:05 CET] <k-man> does ffpmeg infer the output format from the extension of the output file?
[05:44:28 CET] <furq> yes
[05:44:43 CET] <furq> you can force it with -f
[05:45:13 CET] <k-man> ah thanks
[05:45:49 CET] <k-man> what would the format be for m4a?
[05:45:55 CET] <furq> probably -f ipod
[05:46:48 CET] <k-man> ah thank you so much!
[05:50:30 CET] <k-man> where do i find the documentation about which file extensions map to which formast?
[05:50:32 CET] <k-man> formats
[09:17:45 CET] <sunil_> I am trying to encode an audio from aac -> vorbis for webm, but I an getting an error. Details are here - http://pastebin.com/p1R9Nkhn
[09:18:53 CET] <atomnuker> sunil_: libvorbis doesn't support bitrates under 45kbps
[10:20:12 CET] <sunil_> atomnuker: I am able to encode a 16k bitrate mono audio using libvorbis
[10:20:24 CET] <sunil_> Is this limitation documented somewhere?
[11:01:30 CET] <fling> which lossless audio codec is less cpu intensive?
[11:01:56 CET] <fling> I want to have a slight compression when capturing
[11:24:00 CET] <durandal_1707> fling: flac
[11:32:00 CET] <fahadash> I have a video that I have to speed up a few portions of. What is the best way to do it? I am thinking about skipping the -i and using the movie filters with seek option as many times as there is a change.
[11:39:56 CET] <fling> durandal_1707: thanks.
[11:40:39 CET] <fling> fahadash: change input fps in these portions
[11:59:06 CET] <fahadash> How ?
[11:59:30 CET] <fahadash> I can only change the fps once how can I specify 3 positions?
[12:33:09 CET] <MoonOwl> Guten Tag!
[12:34:21 CET] <MoonOwl> Has anyone ABXed high resolution music vs the redbook standard
[12:54:52 CET] <dannyzb> The E5 1650v3 processor says it has QuickSync support, but it doesn't have a GPU, how can it support Quicksync and is it usable in FFMPEG?
[12:57:05 CET] <nonex86> as far as i remember quicksync actually used a dedicated chip - mfx engine
[12:57:23 CET] <nonex86> but, it also require gpu functionality
[12:57:42 CET] <nonex86> just test it using ffmpeg
[12:58:00 CET] <nonex86> if it works, well, youll get your profit
[12:58:20 CET] <nonex86> if not... just forget it and use software implementation :)
[13:07:35 CET] <dannyzb> nonex86 I don't have the server in my hands yet - "but, it also require gpu functionality" - it says in the docs that for FFMPEG/QS OpenCL GPU support is required, wouldn't that be a no if there is no GPU?
[13:07:47 CET] <jkqxz> Quick Sync is part of the GPU, and therefore is not present on any E5 or E7 processors.
[13:08:29 CET] <dannyzb> jkqxz: http://ark.intel.com/products/82765/Intel-Xeon-Processor-E5-1650-v3-15M-Cac… Intel says it does
[13:10:02 CET] <jkqxz> Er. No it doesn't? That page doesn't mention it at all.
[13:14:36 CET] <DexterF> hi
[13:16:38 CET] <DexterF> having some problems compiling ffmpeg on a raspi in order to have it in playce for omxplayer. the git pull in Makefile.ffmpeg the omxplayer git provides and calls in its own Makefile does not work, returns a network error. so I pulled ffmpeg from git manually, and then ran make -f Makefile.ffmpeg which worked, actually, *but* on sudo make -f Makefile.ffmpeg install it returns:
[13:16:51 CET] <DexterF> strip: 'ffmpeg_compiled/usr/local/lib/*.so': No such file
[13:17:20 CET] <DexterF> so, the ffmpeg specific question is: where/how/when is that director ffmpeg_compiled generated? is that ffmpeg specific at all?
[13:18:28 CET] <nonex86> dannyzb: not sure about the ffmpeg implementaion, but for hardware qs decoding you dont need the opencl at all
[13:19:02 CET] <nonex86> dannyzb: opencl not related to mfx engine api, i mean their software parts are not related
[14:22:44 CET] <dannyzb> nonex86: ok thanks
[14:22:52 CET] <dannyzb> nonex86: probably related to FFM implementation
[16:34:21 CET] <Mateon1> Hi, I'm having trouble transcoding unsigned 8-bit PCM to wav. I'm using ffmpeg 3.0.1; my command is `ffmpeg -c:a pcm_u8 -i piano.u8 piano.wav` and I get `piano.u8: Invalid data found when processing input` - why is that? Shouldn't PCM always decode successfully?
[16:35:27 CET] <c_14> try ffmpeg -f u8 -i piano.u8
[16:36:28 CET] <Mateon1> c_14: That worked. May I know what was wrong with my previous command?
[16:36:43 CET] <c_14> Tried detecting the format and failed
[16:36:54 CET] <c_14> you set the codec, not the format
[16:37:08 CET] <Mateon1> Ah, thank you. :)
[16:51:30 CET] <Nacht> Hello, I noticed that a certain HLS stream has Timed_ID3 tags. Is it possible to capture these for, say 1 min ?
[16:51:40 CET] <Nacht> Stream #0:7: Data: timed_id3 (ID3 / 0x20334449)
[17:10:12 CET] <rjp421> trying to get an ancient logitech quickcam go working, but ffmpeg wont take it.. http://pastebin.com/raw/fhhU607B , closest i found googling has no solution https://www.mail-archive.com/search?l=ffmpeg-issues@lscube.org&q=subject:%2…
[17:12:04 CET] <rjp421> [video4linux2,v4l2 @ 0x1bd4240] Dequeued v4l2 buffer contains 26058 bytes, but 25344 were expected. Flags: 0x00000001.
[17:12:04 CET] <rjp421> /dev/video1: Invalid data found when processing input
[17:14:01 CET] <rjp421> i tried 'v4l2-ctl -d /dev/video1 --set-fmt-video=width=176,height=144,pixelformat=1' before running ffmpeg, to set the format and res to bayer.. s561 wouldnt work in my attempts. still no luck
[17:15:25 CET] <tommie_> so i'm trying to segment op1a (xdcamhd) files, into chunks of 60 seconds. It does not need to be exactly 60 seconds, aslong as the video "fits" together. unfortunately each segment looses 2 frames.
[17:15:27 CET] <tommie_> http://pastebin.com/4165B1Bu
[17:15:54 CET] <tommie_> 1st segment ends at 60.04, second segment starts at 60.12
[17:16:23 CET] <tommie_> as far as I can figure out, its due to the fact that op1a does not start with i frame, but has 2 B/P frames infront
[17:17:17 CET] <tommie_> stream order vs representation order, where ffmpeg uses the stream order (the i frame) but not the representation order, hence its skipping the 2 B/P frames
[17:18:31 CET] <tommie_> it works fine when using regular mp4, or intra-frame only codecs, all segments fit perfectly together
[17:18:49 CET] <tommie_> seems to be op1a codec only
[17:36:06 CET] <R4md4c> Hi, I'm having an FLV file that I need to convert a portion of it to be played in slow motion into a new file. I've read this link https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20…, and the video is played in slow motion, but the duration of the video is not stretched to accomodate the slowness.
[17:36:06 CET] <R4md4c> Here is my command "ffmpeg -i input.flv -y -q 1 -ss 00:00:01 -t 00:00:16 -filter:v "setpts=(1/0,5)*PTS" . I'm expecting the video to be at least 30 seconds, but it is still 16 seconds. Is it possible to fix that?
[17:36:47 CET] <kepstin> R4md4c: you're using '-t' as an output option, which means that the trimming is being applied after the filtering
[17:37:08 CET] <kepstin> if you put the -t before the input filename (the -ss should probably be there too), then it'll apply the trim before the filtering
[17:37:25 CET] <R4md4c> Ah, OK, Interesting, I'll try that.
[17:38:20 CET] <kepstin> options before input files apply to that specific input file, options before an output file (after input files) apply when saving the video to the output file
[17:40:16 CET] <R4md4c> kepstin: It worked now, thanks a lot!
[18:21:38 CET] <rjp421> is this patch https://patchwork.kernel.org/patch/9324933/ related to the "[video4linux2,v4l2 @ 0x1bd4240] Dequeued v4l2 buffer contains 26058 bytes, but 25344 were expected. Flags: 0x00000001." "/dev/video1: Invalid data found when processing input"
[18:22:18 CET] <rjp421> they say "This patch basically makes it throw away corrupted buffers and then also the first 8 buffers after the last corrupted buffer."
[18:24:38 CET] <JEEB> rjp421: sounds like something more relevant to ffmpeg-devel mailing list, where the patches are posted
[18:25:14 CET] <JEEB> except it seems to have been posted there already?
[18:25:16 CET] <JEEB> "Well Ive posted it to the FFmpeg dev list for feedback, so we will see."
[18:26:38 CET] <rjp421> JEEB, im not sure.. my error is http://pastebin.com/raw/fhhU607B and googling took me to https://www.mail-archive.com/search?l=ffmpeg-issues@lscube.org&q=subject:%2…
[18:26:53 CET] <rjp421> but it still seems to be unsolved?
[18:27:40 CET] <rjp421> i wasnt sure if that was the right mailing list or not
[18:32:51 CET] <rjp421> posibly a duplicate issue, but im using the same webcam, with the same error, as far as i can tell
[18:33:39 CET] <kerio> wait, youtube serves opus audio? ;o
[18:36:55 CET] <JEEB> kerio: for quite a while
[18:37:13 CET] <JEEB> it has AVC+AAC and VP9+opus
[18:44:34 CET] <rjp421> sorry i was confused, that mailing list is not the same error that the patch is for (or is it?)... but http://libav-user.ffmpeg.narkive.com/rLqpcxGy/ffmpeg-webcam-error is the same error with the same type (not model) webcam, and was never solved
[18:45:30 CET] <rjp421> https://www.mail-archive.com/search?l=libav-user@ffmpeg.org&q=subject:%22%5…
[18:50:09 CET] <rjp421> it seems using v4l-ctl to set the pixelformat of the /dev/videoX to bayer (1), or it gives that "format not found" with "I/O error"
[18:52:59 CET] <rjp421> but then i have those errors in that latest paste :(
[19:18:21 CET] <fahadash> Is there a way to change FPS other than using setpts?
[19:18:38 CET] <kerio> -r
[19:18:54 CET] <kerio> it will drop/duplicate frames as needed
[19:20:18 CET] <Sashmo_> does anyone know if there is real way to force FFPLAY to open on specfic window?
[19:20:52 CET] <furq> fahadash: if you want to change the playback speed, you can do it with some formats by demuxing and remuxing the elementary stream
[19:20:56 CET] <furq> without reencoding
[19:21:13 CET] <fahadash> I don't really care much about not reencoding
[19:21:29 CET] <fahadash> Someone told me something about changing FPS, so I thought there was another filter
[19:21:46 CET] <furq> -r and -vf fps will keep the playback speed and drop or dup frames
[19:21:53 CET] <furq> -vf setpts will change the playback speed
[19:21:56 CET] <fahadash> How can I change the FPS at multiple places in the timeline while keeping all other places same original?
[19:22:03 CET] <furq> with difficulty
[19:22:09 CET] <fahadash> haha
[19:22:12 CET] <kerio> :D
[19:22:28 CET] <fahadash> I was thinking about using the movie filter to source the same file multiple time, and crop out the unwanted content
[19:22:44 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#Timeline-editing
[19:22:56 CET] <furq> idk if setpts supports that, but if it does then that's what you want
[19:23:01 CET] <furq> and -vsync vfr
[19:23:25 CET] <rjp421> to test the LD_PRELOAD fix for spca561 webcams, do i use one or the other with ffmpeg, or both v4l1compat.so and v4l2convert.so? like motion suggests http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2010x04x28x191…
[19:26:14 CET] <blue_misfit> JEEB, remember the MP4 vs MKV timestamp thing I was looking into yesterday? I determined that you're totally right, the MVK -> MP4 files oscillate between 672 and 656, and the pure MP4 files have smooth 672.
[19:26:40 CET] <JEEB> blue_misfit: ayup
[19:26:43 CET] <blue_misfit> any thoughts on how I can re-write these timestamps when remuxing from mkv to MP4?
[19:27:37 CET] <JEEB> not in ffmpeg at least, since stuff like setpts is limited to re-encoding
[19:27:54 CET] <blue_misfit> right, that's kind of what I concluded
[19:28:04 CET] <blue_misfit> maybe l-smash?
[19:28:43 CET] <JEEB> yeah, but that only handles ISOBMFF-like things
[19:28:53 CET] <blue_misfit> or alternatively... can you think of a good way to merge MP4s (with identical encoding settings of course) into one continuous MP4?
[19:29:06 CET] <blue_misfit> I'm only using MKV because it can nicely concatenate
[19:29:15 CET] <furq> you could use mpegts
[19:29:19 CET] <blue_misfit> s/MKV/mkvmerge
[19:29:41 CET] <JEEB> was 90k enough for 24000/1001 being exact?
[19:30:02 CET] <blue_misfit> 90k?
[19:30:07 CET] <JEEB> mpeg-ts time base
[19:30:14 CET] <blue_misfit> ahh
[19:30:24 CET] <blue_misfit> not sure
[19:30:54 CET] <blue_misfit> so if I make TS fragments instead of MP4 fragments, and then just use ffmpeg concat I might be able to get a clean MP4
[19:30:55 CET] <blue_misfit> hmm
[19:31:10 CET] <JEEB> also fragmented isobmff is worth a try
[19:31:20 CET] <blue_misfit> interesting!
[19:31:39 CET] <blue_misfit> okay, thanks for the ideas, JEEB and furq
[19:43:40 CET] <rjp421> on a pi2, 'LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l1compat.so ffmpeg' seemed to "fix" the error... but is that a permanently necessary workaround?
[19:49:46 CET] <blue_misfit> JEEB, damn, using MPEG-TS intermediates and concat to remux to mp4 generates timestamp durations that oscillate between 3754 and 3753 lol
[19:49:48 CET] <blue_misfit> so close
[19:50:36 CET] <bencoh> how do you concat? using cat?
[19:50:50 CET] <blue_misfit> ffmpeg -f concat <list_of_files.txt>
[19:51:02 CET] <blue_misfit> err ffmpeg -f concat -i <list_of_files.txt>
[19:51:17 CET] <JEEB> kind of guessed that a 90000 timebase wouldn't be exact
[19:51:25 CET] <blue_misfit> yeah
[19:51:43 CET] <blue_misfit> damn so... fractional 29.97 and 23.98 in TS are kind of hacky in that sense?
[19:52:13 CET] <JEEB> try using -movflags empty_moov+separate_moof+frag_keyframe
[19:52:28 CET] <JEEB> might be interesting to know how things go
[19:52:38 CET] <blue_misfit> when concating the ts fragments?
[19:52:41 CET] <blue_misfit> or when encoding mp4 fragments
[19:52:44 CET] <JEEB> encoding
[19:52:47 CET] <blue_misfit> ok
[19:55:33 CET] <JEEB> blue_misfit: also I think there even was a bug report on the tracker about lavf not fixing those oscillating timestamps when doing MPEG-TS => MP4
[19:55:46 CET] <blue_misfit> JEEB, holy crap I think it worked
[19:56:01 CET] <blue_misfit> what is this sorcery?
[19:56:11 CET] <blue_misfit> what does this do? lol
[19:56:34 CET] <JEEB> writes an empty moov in the beginning of each thing, writes a separate moof for each track and fragments at keyframes
[19:56:38 CET] <JEEB> welcome to movie fragments
[19:56:45 CET] <JEEB> also nice to know that those can be concat'd
[19:57:04 CET] <blue_misfit> timescale is now 11988 and durations are always 500
[19:57:18 CET] <JEEB> a bit funky but at least constant
[19:57:18 CET] <JEEB> lol
[19:57:26 CET] <blue_misfit> yeah
[19:57:27 CET] <JEEB> also you can see docs @ https://www.ffmpeg.org/ffmpeg-all.html#mov_002c-mp4_002c-ismv
[19:57:58 CET] <blue_misfit> so I'm totally familiar with fMP4 in terms of DASH and Smooth Streaming
[19:59:09 CET] <JEEB> well this is nothing special then
[19:59:18 CET] <JEEB> movie fragments fragmented at IDRs
[19:59:38 CET] <JEEB> the two other options are something the smooth streaming mode does by default
[19:59:40 CET] <blue_misfit> right, totally makes sense
[20:01:10 CET] <blue_misfit> okay, so I just repeated the test using mp4 chunks without the special flags to make fMP4
[20:01:19 CET] <blue_misfit> and I get the variable timestamps again
[20:01:30 CET] <blue_misfit> so what I'm trying to understand is.. why does using fMP4 help the situation?
[20:01:53 CET] <JEEB> no idea, you should check the separate segments regarding how the timestamps in those are set
[20:02:40 CET] <JEEB> in the worst case el GOOG's contribution could be ruining your day (they implemented edit lists more or less badly)
[20:03:00 CET] <JEEB> otherwise it could just be some funky detail in how lavf handles the concat
[20:03:00 CET] <blue_misfit> hmm boxdumper "failed to construct timeline" when I do --timestamp
[20:03:11 CET] <JEEB> now that's funky :P
[20:03:21 CET] <blue_misfit> the chunks do play in mpc-hc tho
[20:03:37 CET] <blue_misfit> windows can't calculate their duration either in Explorer haha
[20:03:53 CET] <blue_misfit> mediainfo gives an invalid floating point operation error on them LOL!!!
[20:03:59 CET] <JEEB> and those aren't even the fragmented ones?
[20:04:12 CET] <blue_misfit> sorry, those are the fragmented ones
[20:04:16 CET] <JEEB> ok
[20:04:30 CET] <JEEB> then a lot of stuff will just fail on them
[20:04:39 CET] <JEEB> boxdumper's thing failing is kind of interesting
[20:04:55 CET] <JEEB> if it happens just by encoding something into fragmented isobmff I'll try it out
[20:05:48 CET] <blue_misfit> seems like it does
[20:05:49 CET] <blue_misfit> too weird
[20:06:08 CET] <blue_misfit> okay, I'm not going to chase this much further. I'll do some more testing just to make sure tho. THANK YOU!
[20:06:11 CET] <JEEB> but boxdumper's box mode works I bet
[20:06:16 CET] <JEEB> np
[20:06:26 CET] <blue_misfit> ya sure does
[20:06:28 CET] <JEEB> didn't know concat'ing fragmented isobmff worked well with ffmpeg
[20:06:40 CET] <blue_misfit> MP4 Explorer can read the structure as well
[20:23:54 CET] <fortean_dad> hi all how do i use ffmpeg to strip audio out of an avi file? i'm using ubuntu 1610 if that helps
[20:24:17 CET] <fortean_dad> to be clear i want to remove the audio and keep the video
[20:27:17 CET] <furq> -i foo.avi -an -c copy bar.avi
[20:29:39 CET] <fortean_dad> furq: ta, will give it a bash
[20:41:32 CET] <kuroro> is there a way to apply pitch countour of 1 audio source (i.e song) to another (i.e. speech) using ffmpeg?
[20:41:47 CET] <kuroro> i want to do something similar to songify
[21:59:31 CET] <tokam> Hello, is there a reason why this command ignores images which do not change at the end of the video?
[21:59:33 CET] <tokam> or sequence
[21:59:51 CET] <tokam> ffmpeg -f image2 -framerate 25 -r 6 -i /var/www/tokam_dev/p172_webcam_video/tmp/1482353854/%d.jpg -s 1920x1080 -vcodec libx264 /var/www/tokam_dev/p172_webcam_video/output_videos/1482353854.avi
[22:41:50 CET] <tokam> how can I create a video with ffmpeg from images and than attach a branding image at the end?
[23:03:08 CET] <tokam> http://video.stackexchange.com/q/20207/17541
[23:03:47 CET] <furq> tokam: add -loop 1 before the second -i, then add -shortest somewhere
[23:04:05 CET] <furq> there are filters which can do it but you shouldn't need them for image2 inputs
[23:04:23 CET] <tokam> -shortest somewhere?
[23:04:25 CET] <furq> actually, don't use -shortest with overlay
[23:04:31 CET] <tokam> how to say how long to loop?
[23:04:33 CET] <furq> add :shortest=1 to the overlay command
[23:04:56 CET] <furq> it'll loop the second input forever, and stop encoding when the shortest input (the first one) ends
[23:05:03 CET] <tokam> I do not want an overlay anymore
[23:05:27 CET] <tokam> I want the first input and than show an image for n seconds at the end.
[23:05:31 CET] <furq> oh
[23:05:33 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#loop
[23:05:49 CET] <tokam> in my first attempt, I just added the images multiple times to my input sequence
[23:06:05 CET] <tokam> but ffmpeg somehow outsmarted me and knew that the images, which I added did not change
[23:07:39 CET] <furq> http://vpaste.net/msBNx
[23:07:40 CET] <furq> something like that
[23:10:08 CET] <tokam> furq: [AVFilterGraph @ 0x561144c945a0] No such filter: 'loop'
[23:10:29 CET] <furq> what ffmpeg version is that
[23:11:40 CET] <tokam> maybe this helps
[23:11:40 CET] <tokam> http://superuser.com/questions/683643/how-to-add-my-logo-for-the-first-30-s…
[23:13:06 CET] <tokam> 3.0.5 furq
[23:16:50 CET] <furq> i guess that must be too old for the loop filter
[23:17:06 CET] <c_14> 3.1 afair
[23:17:12 CET] <furq> there you go
[00:00:00 CET] --- Thu Dec 22 2016
1
0
[10:04:03 CET] <cone-244> ffmpeg 03Nicolas George 07master:bec8ea20c88e: lavfi/framequeue: avoid empty structs.
[13:32:34 CET] <cone-244> ffmpeg 03Paul B Mahol 07master:6d09d6edbc46: avcodec/magicyuv: add 10 bit support
[15:38:48 CET] <durandal_1707> michaelni: could you please review pixlet patch?
[17:08:26 CET] <durandal_1707> michaelni: post-processing can't be done before afaik
[17:19:15 CET] <michaelni> it can be added durig the last filter iteration but would need a seperate codepath, it maybe can be added to all low freq coeffs (fewer) bt that may affect precission
[17:20:49 CET] <michaelni> hmm, i see there are av_clip_int16() in there, so its probably not possible to add it to low stuff
[18:10:21 CET] <durandal_1707> BBB: have you found solution to that wmavoice issue?
[18:10:44 CET] <BBB> theres two issues, one is wmapro-in-wmavoice, the other is that were reading the bitstream twice
[18:10:47 CET] <BBB> which one do you mean?
[18:15:59 CET] <durandal_1707> both :)
[18:21:48 CET] <cone-506> ffmpeg 03Thomas Turner 07master:e303e3d4b972: avutil: Improved test coverage for avstring.c
[18:23:48 CET] <BBB> durandal_1707: so, the bitstream reading is relatively simple, I have a hack locally and am trying to make it pretty
[18:24:20 CET] <BBB> durandal_1707: the wmapro in wmavoice I dont remember exactly how it works, and what I tried from memory didnt give me anything audible, so Im currently looking back at the REed code to see if I can get any information on how its supposed to work
[18:31:59 CET] <durandal_1707> BBB: BTW I have strange gamma and contrast issue with pixlet? sounds familiar with wavelets?
[18:32:35 CET] <BBB> screenshot?
[18:34:27 CET] <durandal_1707> basically white is gray
[18:34:56 CET] <durandal_1707> black is black
[18:35:31 CET] <durandal_1707> perhaps they use log something colors
[18:35:42 CET] <kierank> clip it into limited range perhaps
[18:37:11 CET] <BBB> yeah, clipping plus adding base may help
[18:37:24 CET] <BBB> like, everything += 16
[18:53:34 CET] <durandal_1707> I do that already...
[19:02:45 CET] <kierank> into limited range?
[19:02:49 CET] <kierank> or just uint16_t
[20:26:48 CET] <durandal_1707> kierank: i get 32767 as max value
[20:57:32 CET] <BBB> durandal_1707: got a screenshot?
[21:00:23 CET] <BBB> durandal_17: got a screenshot?
[21:00:48 CET] <durandal_17> BBB: i can give you screenshot
[21:01:02 CET] <durandal_17> yuv is basically capped to 32767
[21:01:27 CET] <BBB> ehm
[21:01:32 CET] <BBB> thats very strange
[21:01:35 CET] <BBB> why 32767?
[21:01:39 CET] <BBB> 16bit is 0-65535
[21:01:48 CET] <BBB> is this a 15bit format? or is it signed? or whats going on
[21:02:02 CET] <durandal_17> its apple, everything is possible
[21:02:08 CET] <BBB> that wasnt my question
[21:02:11 CET] <Compn> big endian ? :P
[21:02:11 CET] <BBB> whats the format?
[21:02:19 CET] <durandal_17> yuv422 for sure
[21:02:25 CET] <BBB> thats 8bit
[21:02:30 CET] <BBB> where does the 32767 limit come from?
[21:02:42 CET] <durandal_17> this one uses 16bit coefficients
[21:02:58 CET] <kierank> I think you should use yuv420p10
[21:03:00 CET] <durandal_17> raw 16bit topleft pixel is stored uncompressed
[21:03:06 CET] <kierank> oh
[21:03:07 CET] <kierank> hmm
[21:03:20 CET] <BBB> increase resolution of the coefficients by 1 bit?
[21:03:39 CET] <BBB> (or use a different scalign factor in the wavelet)
[21:04:00 CET] <BBB> also note that the depth of the coefficients doesnt mean much about the output bitdepth
[21:04:08 CET] <BBB> like, you can easily output 8bpc vp9 into 10bits
[21:04:16 CET] <BBB> prores can also be output in a number of bitdepths
[21:04:22 CET] <BBB> youre just scaling the idct to the output bitdepth
[21:04:48 CET] <BBB> the fact that we output prores in 10bit (or is it 12?) is just an implementation detail, itd be trivial to rewrite it to output something else
[21:05:28 CET] <nevcairiel> the interesting questions would be either (a) whats the intended output bitdepth? or if we dont know that (b) what kind of precision do you actually get out of it realistically, no sense scaling it up much if you just end up with more noise
[21:05:38 CET] <BBB> ++
[21:08:22 CET] <durandal_17> here is shot: https://transfer.sh/LWiR1/mpv-shot0001.png
[21:08:36 CET] <durandal_17> top is pixlet, bottom is original
[21:16:29 CET] <BBB> your chroma dna luma are both scaled one bit too low or so
[21:17:02 CET] <BBB> the blackpoint of luma and graypoint of both chroma channels are fine
[21:17:16 CET] <BBB> but the whitepoint of luma and the black/white are scaled too closely to the origin point
[21:17:36 CET] <BBB> so Id just scale the coefficients by some factor (probably sqrt(2) or 2) before the wavelet
[21:17:51 CET] <BBB> (note how sqrt(2) is often the dc scaling factor in idcts, so this is not totally abnormal)
[21:50:22 CET] <durandal_17> BBB: i get artifacts if i multiply coeffs with 2 or sqrt(2)
[21:53:12 CET] <BBB> not surprisingly& is it possible you need a quantization table where not all coeffs use the same quantizer?
[21:58:14 CET] <durandal_17> i think I only need to change gamma
[22:15:00 CET] <BBB> is it true that decoders cant use AV_CODEC_CAP_DELAY and AV_CODEC_CAP_SUBFRAMES at the same time?
[22:16:31 CET] <wm4> what the hell is CAP_SUBFRAMES?
[22:18:53 CET] <nevcairiel> for audio codecs that can decode multiple audio frames from one packet
[22:22:33 CET] <BBB> my decoder does not appear to be called with NULL trailnig packets if I set CAP_DELAY
[22:22:44 CET] <BBB> do I need to do something else for it to be called with NULL packets?
[22:22:58 CET] <BBB> or is DELAY only implemented for video?
[22:23:08 CET] <nevcairiel> delay works for audio too
[22:24:12 CET] <nevcairiel> note that you get called w ith a packet with data=NULL, not a null packet
[22:27:13 CET] <BBB> oh right
[22:27:20 CET] <atomnuker> BBB: is that for the wma decoder or some other decoder?
[22:30:46 CET] <BBB> wma voice
[22:30:53 CET] <BBB> ah ok now it works
[22:31:09 CET] <BBB> ok I think if I do these two together, I get the same output as before without the bitstream checking
[22:31:19 CET] <BBB> also some warnings go away
[22:31:25 CET] <BBB> so thats probably a good thing
[22:50:30 CET] <BBB> patches sent to ML
[22:50:38 CET] <BBB> the first oen of my original set also still applies
[22:50:42 CET] <BBB> so its three patches in total
[22:51:16 CET] <BBB> Im still working out whats going on with the samples sent in that trac ticket, but Im not convinced yet that its actually wmapro
[22:51:31 CET] <BBB> like, with my fixed up bitstream parsing, all the warnings about wmapro in wmavoice go away
[22:51:51 CET] <BBB> (it still doesnt decode at all, but that may be something else, maybe tone related or whatever)
[23:13:00 CET] <durandal_17> nice
[23:14:28 CET] <atomnuker> why the need for CAP_SUBFRAMES though, opus can have multiple frames in a packet but it'll just spit out all the samples concatenated
[23:16:22 CET] <nevcairiel> some decoders decide not to do that and only decode the first frame and have the decode function called again
[23:23:36 CET] <BBB> re-sent it so its a full set and splits cosmetic stuff from other stuff
[23:23:41 CET] <BBB> this should be rather straightforward now
[23:24:18 CET] <BBB> atomnuker: implementation detail& we could indeed output everything concatenated, but this is easier for the way the decoder was implemented
[23:24:37 CET] <BBB> atomnuker: basically what nevcariel says; it can be changed but really why would you do that
[23:24:47 CET] <nevcairiel> historically some decoders also had trouble finding frame boundaries without decoding
[23:24:48 CET] <BBB> atomnuker: its not like performance matters for a shitty format like wmavoice ;)
[23:24:50 CET] <nevcairiel> so they use this
[23:25:07 CET] <nevcairiel> in case they get half-a-frame
[23:25:55 CET] <BBB> now that the decoder isnt crazy anymore
[23:26:11 CET] <BBB> maybe its fun to figure out why that trac thing doesnt decode, I honestly am a little confused...
[23:26:51 CET] <atomnuker> BBB: yeah, but really who uses wma voice?
[23:27:01 CET] <BBB> I know right
[23:29:48 CET] <atomnuker> no, I mean who uses wma voice?
[23:30:03 CET] <atomnuker> radio stations?
[23:30:29 CET] <BBB> I think nobody
[23:31:02 CET] <durandal_17> just to fill all tickets with odd files nobody ever use
[23:31:23 CET] <BBB> I think its a few radio stations& maybe some other things Ive seen *cough*
[23:31:29 CET] <BBB> probably some other stuff
[23:31:30 CET] <BBB> dunno
[23:35:04 CET] <llogan> how does he find these oddball samples 'n bugs?
[23:36:31 CET] <durandal_17> llogan: encoding them, he have nothing else to do...
[23:38:59 CET] <llogan> he has found many
[23:41:07 CET] <BBB> hm yeah something causes the samples to become nan
[23:41:23 CET] <BBB> and since the samples are used as history for the filter, it means everything is nan
[00:00:00 CET] --- Wed Dec 21 2016
1
0
[02:29:45 CET] <Kam> Hello, I'm playing a video file (tested with vp8, vp9, libvpx and libvpx-vp9) that is 2 FPS (500ms each frame) in ffplay with 'loop 0' parameter. The videos play fine, until the last frame, which only appears for a fraction of the time it should. The video has 8 frames overall, ffprobe reports its duration correctly being 00:00:04.00. The time-display in ffplay goes until about 3.50 and then resets too early back to 0.00. What can I do?
[02:52:54 CET] <furq> does it play correctly in mpv or some other actual video player
[02:59:32 CET] <Kam> furq, it looks like the same in mpv. The last frame is shown only for a fraction of time.
[04:58:06 CET] <kepstin> Kam: that's normal; in most containers, frames don't have duration info. If you have an audio track, it'll usually show the last frame until the audio ends.
[05:18:46 CET] <fling> How to use v4l output?
[06:05:59 CET] <ferdna> i need to live stream and save the live stream at the same time... how could i do this?
[06:33:00 CET] <brian_> I am building code based off the filter_audio.c file and for some reason av_frame_get_buffer always returns -22. Is it possible that I did not enable something in the configure that would cause these errors?
[07:45:37 CET] <nonex86> brian_: -22 as far as i remember is invalid parameter, you pass something wrong to function
[07:45:59 CET] <nonex86> brian_: and it not related to build configuration
[07:46:32 CET] <nonex86> brian_: enable verbose debug output in ffmpeg and check the error messages
[07:46:46 CET] <nonex86> brian_: twice check your input parameters
[08:14:17 CET] <ferdna> how do you check the headers of a m3u8 file on a webserver?
[08:39:22 CET] <Pandela> Morning
[08:40:53 CET] <Pandela> Is it possible to start synchronous ffmpeg udp streams with a single batch file?
[12:16:33 CET] <Eiken> so i am overlaying an endcards to a bunch of videos, if the aspect ratio is portrait or landscape it works
[12:16:46 CET] <Eiken> but if the video res and endcard res is square the endcard is incorrectly positioned
[12:20:17 CET] <Eiken> $FFMPEG_BIN -y -i input.mov -loop 1 -i endcard.png -filter_complex "[1:v]fade=in:0:10[v1]; [0:v]setpts=PTS-STARTPTS[v0]; [v1]setpts=PTS-STARTPTS+425/(TB*25)[v3];[v0][v3]overlay=eof_action=pass,scale=600:600[out1]" -map [out1] -map 0:a? -codec:a copy -pix_fmt yuv420p -c:v libx264 -preset veryslow -crf 12 output.mov
[12:20:27 CET] <Eiken> anyone see something that might explain it
[12:20:41 CET] <Eiken> i tried removing scale but same result
[12:25:18 CET] <Eiken> if i scale both the inputs first in the filter it works
[12:25:23 CET] <Eiken> but then it screws up the alpha
[12:42:46 CET] <Eiken> figured it out
[12:42:47 CET] <Eiken> :)
[12:42:55 CET] <Eiken> had to add scale after fade
[13:16:59 CET] <Kam> kepstin, but the duration is determined correctly by ffprobe. I want to use this in games, and adding an empty audio track to every video would unnecessarily add more load. Do you think this is a bug, or on purpose?
[13:28:53 CET] <Nacht> I'm doing some studying on cutting up TS files grabbed from a HLS stream (h.264). Of some of the things I read, people mention the Random Acces Indicator. Where other mention the IDR frame. Do they always 'align' when you're using a TS H.264 file ?
[13:29:22 CET] <Nacht> Cause from what I understood, the RAI is a property of the MPEG2-TS, and IDR of H.264 ?
[13:51:05 CET] <nonex86> in addition to idr h264 has sei recovery point
[14:17:57 CET] <DHE> Nacht: RAI is a bit in the MPEG-TS header to indicate that this frame is a good place to start decoding from. but it's a bit codec-dependent. h264 may make use of it, but mpeg2 doesn't
[14:19:14 CET] <Nacht> But if I wish to cut a TS-file which uses H.264, it's best to search for IDR and SEI Recovery points in order to determine where to cut ?
[14:20:45 CET] <DHE> if the video uses IDR frames, it should set the RAI bit. in that case the video should ideally contain 1 PAT, then 1 PMT, optionally an SDT, and then start at said RAI chunk
[14:22:20 CET] <SouLShocK> I stumbled across this old article a few days ago http://www.streamingmedia.com/Articles/Editorial/Featured-Articles/Streamin… where Netflix all but confirms that they are using FFmpeg to encode
[14:22:23 CET] <SouLShocK> When we reject an upload, and send it back to a content provider, we have to give a detailed reason, he said. We cant just give an FFMPEG error code.
[14:22:36 CET] <SouLShocK> thought that might interest you guys
[14:25:24 CET] <Nacht> I see. Thank you for the information DHE. Ill have something to read upon then.
[14:25:45 CET] <DHE> wow, I'm entertained by their content providers providing provably bad source material :)
[14:47:39 CET] <popara> How i can add a Logo and use th yadif filter at the same time? Because i can do both seperate, but not at the same time. I'm using filter_complex for logo, and -vf yadif for deinterlace
[14:47:45 CET] <popara> And ffmpeg says, i can't use both at the same time
[14:50:01 CET] <popara> ah actually -filter_complex "overlay,yadif" that worked fine
[16:21:34 CET] <nirvanko> I've downloaded a video and ffprobe tells that its resolution is 1920x1040 [SAR 1:1 DAR 24:13, should it be 1920x1080? I mean there is the 1080p TV standard, why 1040?.
[16:24:33 CET] <kerio> nirvanko: why not 1920x1040?
[16:25:05 CET] <DHE> that may be standard, but videos may not conform for whatever reason
[16:25:20 CET] <nirvanko> Because Full HD supposed to be 1920x1080, isn't it?
[16:26:45 CET] <kerio> i mean the alternative is that the video somehow has a SAR of 104:108
[16:27:00 CET] <kerio> do you really want to live in that world
[16:30:15 CET] <DHE> SAR is 1:1 which means square pixels. there will be a bit of black bars on the top and bottom of the video. so it still fits in a 1080p display
[16:30:20 CET] <nonex86> to be really precise its 1920x1088
[16:30:48 CET] <nonex86> because of nature of encoders used
[16:31:19 CET] <nonex86> than it can be downscaled to real fullhd 1920x1080
[16:31:46 CET] <nonex86> so your strange 1040 can be encoder related value
[16:33:35 CET] <nonex86> but for h264 i guess 1040 is really strange
[16:34:35 CET] <nonex86> no, its ok
[16:34:39 CET] <nonex86> my mistake
[16:34:49 CET] <nonex86> 1040 divisible by 16, so its ok
[16:37:22 CET] <nonex86> 120x65 macroblocks
[16:39:24 CET] <sardok> Hi i want to extend given sound duration by adding silence. I tried 'ffmpeg -i sound.mp3 -complex_filter "apad" -t 20 out.aac' . But out file has the same duration as input.
[17:06:10 CET] <fling> sardok: aac counts silence at the end differently
[17:06:31 CET] <fling> D'oh.
[17:14:06 CET] <enderby> hi - I'm trying to modify metadata/ratings on files. Is there a better way to use ffmpeg via CLI than to create an entirely new file? or is there another tool I should be considering?
[17:25:39 CET] <furq> ffmpeg can't modify inplace, so it's probably not the best tool for metadata editing
[17:25:59 CET] <furq> if these are audio files then there are a ton of better tools
[17:26:17 CET] <furq> most of those should also work with video in mp4
[17:26:41 CET] <enderby> furq: thnx, can you name a few to get me started? i would like a cli interface
[17:31:03 CET] <furq> i've only ever really used mutagen and beets
[17:32:05 CET] <enderby> cool, will check them. thank you
[17:39:48 CET] <badasafish> Hi all, I'm trying to switch a 3D video from over under to side by side. I've researched the commands I need, I've swapped the images to be stacked left and right which is fine, but I need to resize and stretch the resulting image. The resize works fine on the test screenshot but doesn't have any stretch affect on the mkv. Thoughts?
[17:51:32 CET] <durandal_1707> badasafish: stereo3d filter
[17:53:24 CET] <nirvanko> Is it a good idea to resize video with a black padding at its bottom for subtitles? I would like to have white on black subtitles.
[17:53:45 CET] <nirvanko> Usually it's black on white but not in my case, not in my case.
[18:12:07 CET] <badasafish_> durandal_1707: I used "ffmpeg -i top-and-bottom.mov -vf stereo3d=abl:sbsl -c:a copy side-by-side.mov" which changed it from OU to SBS but the size/aspect ratio was not correct (i ended up with a 3840x540 video), therefore I resized it to 1920x1020 which worked as expected on a test screenshot, but when running that resize on the mkv although the video is 1920x1080 the video is not stretched as expected vertically
[18:15:30 CET] <durandal_1707> badasafish: sbs2l? note distinction
[18:17:09 CET] <badasafish> durandal_1707: I see, let me try that out. So that should achieve the required output without needing a separate resize?
[18:18:29 CET] <rakshith> Hello guys, I am new to this community. Wanted to contribute. Help me get started :)
[18:20:46 CET] <durandal_1707> badasafish: it sets aspect ratio
[18:21:15 CET] <durandal_1707> rakshith: contribute what?
[18:22:16 CET] <rakshith> code
[18:24:04 CET] <badasafish> durandal_1707: I want to take a clip from my original movie file so I can test the conversion quickly without having to convert the whole file, whenever I create a clip of the original the stereo3d function won't work on the clip, is there a specific way of clipping I should use to preserve everything from the original?
[18:28:45 CET] <durandal_1707> rakshith: write qrcode source filter that use external library for example
[18:30:14 CET] <durandal_1707> badasafish: what doesn't exactly work?
[18:31:16 CET] <badasafish> 8durandal_1707: Thanks for your help with this btw. Running stereo3d sbs2l has given the output that I wanted visually, but the file is still 3840 * 540, can I incorporate a resize filter into the command?
[18:32:34 CET] <rakshith> durandal_1707: something easier?
[18:33:03 CET] <durandal_1707> badasafish: you could resize but I do not know command to not keep aspect ratio
[18:33:29 CET] <durandal_1707> rakshith: spell check documentation
[18:36:19 CET] <badasafish> durandal_1707: I get this error: [h264 @ 000000000215b6c0] Warning: not compiled with thread support, using thread emulation [buffer @ 000000000080ada0] Unable to parse option value "-1" as pixel format Last message repeated 1 times [buffer @ 000000000080ada0] Error setting option pix_fmt to value -1. [graph 0 input from stream 0:0 @ 0000000001f4a6c0] Error applying options to the filter. Error opening filters!
[18:52:49 CET] <badasafish> durandal_1707: I was creating the clip with the copy command, but now if I create the clip without the copy command (although it has to reencode the video) I can run the stereo3d filter on the clip
[19:09:55 CET] <blue_misfit> hey folks, I'm seeing something odd - a mkv that is 23.976 fps cfr is vfr after I remux to MP4 with ffmpeg... any idea why?
[19:11:57 CET] <JEEB> blue_misfit: I'm not sure you can save 24000/1001 as CFR in matroska
[19:12:26 CET] <blue_misfit> uhh... really? why's that??
[19:12:33 CET] <JEEB> timebase is limited
[19:12:50 CET] <JEEB> I think stuff like ffms2 etc have heuristics to try and work around oscillating duration
[19:12:59 CET] <JEEB> mpv's matroska demuxer as well
[19:13:19 CET] <JEEB> also you should check what something actually uses to denote if a file is "CFR" or "VFR"
[19:13:35 CET] <FishPencil> Does VP8 or VP9 provide better compression than x264?
[19:13:44 CET] <__jack__> yes
[19:13:47 CET] <blue_misfit> well I'm just looking at mediainfo metadata because the people I'm delivering the file to are seeing that and whining that it says VFR
[19:13:50 CET] <JEEB> FishPencil: you are comparing formats to encoders
[19:14:05 CET] <FishPencil> JEEB: libvpx then
[19:14:15 CET] <blue_misfit> @FishPencil, vp9 absolutely can provide better compression than avc, and libvpx can provide better compression than x264 ;)
[19:14:58 CET] <FishPencil> So does anything top libvpx then in compression?
[19:15:18 CET] <blue_misfit> yes, x265 is definitely better IMO
[19:15:28 CET] <JEEB> libvpx is not really optimized in the rate control or psychovisual optimizations
[19:15:32 CET] <blue_misfit> correct
[19:15:37 CET] <blue_misfit> its rate control is horrnedous
[19:15:48 CET] <blue_misfit> as is its multithreading since it's designed for cloud scale single thread encoding
[19:15:52 CET] <furq> it's also slower than x265 in my experience
[19:15:58 CET] <furq> mostly because of the multithreading
[19:16:00 CET] <blue_misfit> well... it's better than it was, but it's still not great :D
[19:16:20 CET] <blue_misfit> vp9 decoding is surprisingly fast in software tho, that's one major advantage to the format in general IMO
[19:16:31 CET] <furq> hevc hardware decoders are more widespread though
[19:16:35 CET] <blue_misfit> hence why YouTube streams it by default almost everywhere
[19:16:35 CET] <blue_misfit> sure
[19:16:43 CET] <furq> although still nowhere close to avc
[19:16:45 CET] <blue_misfit> s/everywhere/most browsers
[19:16:46 CET] <JEEB> yeah, BBB who was making his own encoder made a Very Fast decoder
[19:17:01 CET] <JEEB> which was then included in Firefox at least
[19:17:15 CET] <JEEB> (so yes, Firefox has a separate minimal part of libavcodec in there)
[19:17:15 CET] <furq> yeah i noticed firefox finally started playing vp9 by default fairly recently
[19:17:21 CET] <furq> i expect chrome has been doing it for much longer
[19:17:25 CET] <blue_misfit> correct
[19:17:26 CET] <JEEB> (and they call it ffvp9 or so)
[19:17:30 CET] <blue_misfit> and Edge!
[19:17:36 CET] <JEEB> chromium and edge are using libvpx
[19:17:38 CET] <blue_misfit> Safari is the only holdout :D
[19:17:56 CET] <furq> obviously as soon as microsoft starts supporting new standards, apple decide they don't want to
[19:17:57 CET] <JEEB> which are somewhat slower than lavc's vp9 decoder (at least on x86)
[19:18:26 CET] <efface> Im using ffprobe to determine the resolution and aspect ratio of programs in various mpeg-ts muxes. On some programs the information is returned and on other programs the width and height are 0 and the sample ration is 0:1 and display ration is 0:0. Anyone know what would cause this
[19:18:31 CET] <JEEB> anyways, blue_misfit - I'd guess the timestamps in the matroska file are not actually CFR, and if mediainfo is saying it's CFR there's something funky
[19:18:43 CET] <furq> efface: maybe -probesize and -analyzeduration
[19:18:50 CET] <blue_misfit> interesting
[19:19:11 CET] <furq> does mkv really not support 24000/1001 properly
[19:19:13 CET] <JEEB> blue_misfit: in mp4 it can be CFR but I have no idea how that is actually "checked" in mediainfo
[19:19:20 CET] <blue_misfit> JEEB, what I'm doing is using mkvmerge to concat a bunch of MP4s (since I'm doing split 'n' stitch style parallel encoding)
[19:19:23 CET] <furq> does that mean it also doesn't support 30000/1001
[19:19:27 CET] <JEEB> furq: ayup
[19:19:33 CET] <JEEB> oscillating durations
[19:19:38 CET] <furq> nice
[19:19:39 CET] <FishPencil> https://en.wikipedia.org/wiki/Libvpx "Decoding performance is relatively slow, partially in order to keep the code base easier to maintain."
[19:19:41 CET] <JEEB> because you don't get exact timestamps
[19:19:44 CET] <efface> Odd part is i tried analyzeduration and it says its an unknown option
[19:19:49 CET] <furq> i guess it's close enough that you wouldn't notice
[19:20:08 CET] <furq> efface: what ffprobe version
[19:20:23 CET] <efface> Nm the duration issue...im an idiot lol
[19:20:23 CET] <JEEB> a lot of things thus have stuff in their parser that if your timestamps are close enough it will utilize what it thinks the timestamps are
[19:20:32 CET] <furq> FishPencil: that's the libvpx decoder
[19:20:34 CET] <JEEB> like ffms2 or mpv's matroska demuxer
[19:20:38 CET] <furq> ffmpeg doesn't use that
[19:21:02 CET] <blue_misfit> what would you suggest if I needed to unify chunks of video all produced from the same source
[19:21:27 CET] <JEEB> https://github.com/FFMS/ffms2/blob/master/src/core/videoutils.cpp#L71
[19:21:38 CET] <JEEB> this is how ffms2 deals with matroska
[19:21:39 CET] <JEEB> :D
[19:22:11 CET] <furq> nice
[19:22:37 CET] <efface> Analyzeduration 5000000 did not help
[19:23:00 CET] <furq> that's the default isn't it
[19:23:04 CET] <furq> it's in microseconds or something daft
[19:23:28 CET] <efface> It is ms....so 5 secs, let me try 10
[19:24:30 CET] <furq> you might as well just use $((2**31-1))
[19:24:34 CET] <furq> likewise for -probesize
[19:24:41 CET] <furq> if that doesn't work then the problem is elsewhere
[19:26:05 CET] <furq> obviously don't do that if this is streaming because that'll probably never finish
[19:27:31 CET] <efface> It is streaming
[19:28:12 CET] <furq> well yeah you probably don't want to download 2GB before anything happens
[19:28:50 CET] <efface> Lol
[19:29:06 CET] <efface> Ok i set probesize to 150M and i think that worked
[19:29:18 CET] <efface> The mux bitrate is 38mbps
[19:31:24 CET] <efface> That did work, thanks
[19:31:42 CET] <FishPencil> I'd say the most popular video encoders today are x264, x265, and libvpx. For audio encoders I would say opus, and probably acc. Am I forgetting anything in these lists? Obviously libschroedinger and the likes don't belong.
[19:32:08 CET] <furq> opus is not that popular
[19:32:33 CET] <furq> maybe it's in second place if you include youtube, but that's a huge skew of the average
[19:33:02 CET] <furq> aac is almost certainly the most popular, and mp3 is still up there
[19:33:14 CET] <FishPencil> s/popular/modern
[19:33:55 CET] <FishPencil> modern=great compression, actively developed
[19:34:06 CET] <furq> lame is still actively developed
[19:34:19 CET] <FishPencil> what....
[19:34:28 CET] <furq> mp3 is easily the most popular if you're just talking about music
[19:34:53 CET] <furq> itunes, google play music, soundcloud, bandcamp etc etc
[19:35:28 CET] <furq> actually i guess lame hasn't had an update since 2012
[19:35:45 CET] <FishPencil> In almost all other respects I'd say Opus is better, or even AAC
[19:36:03 CET] <furq> those are both definitely better codecs than mp3
[19:36:30 CET] <furq> along with vorbis and probably some other lossy codecs that nobody uses
[19:37:48 CET] <blue_misfit> yeah mp3 is everywhere lol
[19:38:08 CET] <furq> mp3 will probably be the most popular lossy codec for music forever
[19:38:15 CET] <furq> by the time it falls off, everyone will be using lossless codecs
[19:38:33 CET] <blue_misfit> yep, "good enough" for basically everything
[19:38:50 CET] <FishPencil> If it isn't broke don't fix it
[19:39:04 CET] <furq> the compression gains from using opus aren't worth it for most people, especially with the compatibility tradeoff
[19:39:17 CET] <blue_misfit> exactly
[19:39:35 CET] <blue_misfit> but for next gen streaming (vp9 + opus in webm in dash) it's a great fit :)
[19:39:53 CET] <furq> yeah i don't mean to be down on opus, it's a nice codec
[19:39:54 CET] <FishPencil> furq: I'm not seeing active development on lame
[19:40:08 CET] <furq> 18:35:28 ( furq) actually i guess lame hasn't had an update since 2012
[19:41:49 CET] <blue_misfit> JEEB, MP4 does properly support CFR for 24000/1001 right?
[19:42:05 CET] <JEEB> yes
[19:42:23 CET] <JEEB> timebase 24000 and then each sample has a duration of 1001
[19:42:26 CET] <furq> FishPencil: it's worth remembering that some people are still using xvid
[19:42:28 CET] <blue_misfit> how can I be certain I'm producing a CFR output when encoding H.264 in MP4 using libx264 and ffmpeg
[19:42:34 CET] <furq> although in this case, those people are just severely wrong
[19:42:51 CET] <JEEB> blue_misfit: you can utilize l-smash's boxdumper and look at the sample durations
[19:43:03 CET] <blue_misfit> furq, :D yeah tons of people still rock xvid and mp3 in avi :D
[19:43:08 CET] <FishPencil> I'm not sure what you're talking about, xvid all day every day
[19:43:11 CET] <furq> and mpeg2 is still widely used in broadcasting
[19:43:13 CET] <blue_misfit> JEEB, I'll look into that, thanks
[19:43:26 CET] <blue_misfit> OMG we used MPEG-2 everywhere at my last job
[19:43:41 CET] <blue_misfit> _all_ media that plays on air plays from MPEG-2 files, usually 1080i59.94 at 20, 35, or 50 Mbps
[19:43:44 CET] <JEEB> blue_misfit: it can just dump the timestamps, or you can get the whole box dump
[19:44:13 CET] <furq> some stations broadcast avc now don't they
[19:44:21 CET] <blue_misfit> yeah some of them do AVC Intra
[19:44:24 CET] <furq> i know a lot of IPTV stuff does
[19:44:27 CET] <blue_misfit> that's the only AVC format that's gotten any traction
[19:44:34 CET] <JEEB> furq: he's talking pre-broadcast
[19:44:40 CET] <JEEB> so the stuff that goes through in the broadcast house
[19:44:41 CET] <blue_misfit> yeah
[19:44:44 CET] <furq> oh right
[19:44:58 CET] <furq> well a lot of stations still broadcast mpeg2 don't they
[19:45:01 CET] <blue_misfit> most broadcast is AVC (some legacy MPEG-2, and TONS Of it in cable)
[19:45:22 CET] <blue_misfit> but yeah the files that the linear playout servers use are almost all MPEG-2
[19:45:27 CET] <JEEB> blue_misfit: but it (boxdumper) should produce pretty tangible evidence that it's CFR, because with mp4 it's deffo possible
[19:45:37 CET] <JEEB> unlike matroska
[19:45:55 CET] <blue_misfit> damn
[19:46:00 CET] <blue_misfit> what kind of problems could this cause in the real world?
[19:46:07 CET] <blue_misfit> because everyone uses MKV for 23.98 lol
[19:46:21 CET] <JEEB> and almost everything has heuristics for this in playback
[19:46:51 CET] <JEEB> and the timestamps are not too far apart from the correct values, they're just not CFR
[19:47:07 CET] <JEEB> so you switch between two durations for your video samples
[20:02:21 CET] <blue_misfit> @JEEB, where can I get windows binaries of l-smash stuff? I'm having a hell of a time finding any!
[20:06:48 CET] <blue_misfit> nm.. just made my own :D
[20:06:54 CET] <JEEB> yeh, it isn't too hard
[20:07:05 CET] <JEEB> even less so with the MSVS projects now
[20:07:22 CET] <blue_misfit> yeah lol thankfully I have a decent msys environment thanks to ffmpeg-autobuild
[20:07:56 CET] <FishPencil> blue_misfit: What are you looking for? There's Zeranoe'
[20:07:58 CET] <FishPencil> s builds
[20:08:15 CET] <JEEB> https://github.com/l-smash/l-smash
[20:09:21 CET] <FishPencil> Doesn't look like that's included in FFmpeg
[20:09:31 CET] <JEEB> nope, but it's a very useful toolkit for ISOBMFF
[20:09:43 CET] <JEEB> and it's really simple to build
[20:14:10 CET] <FishPencil> Is anyone here familiar with EME or Widevine?
[20:14:19 CET] <blue_misfit> FishPencil, yeah a bit
[20:14:38 CET] <FishPencil> blue_misfit: This isn't FFmpeg related... PM?
[20:15:00 CET] <blue_misfit> sure
[20:32:27 CET] <FishPencil> I'm doing some benchmarking and I'm looking for some native encoders that FFmpeg does a lot of threading work with (assembly optimizations as well). I'm thinking mpeg4, but I'm not sure about audio.
[20:34:19 CET] <JEEB> mpeg4 isn't really optimized
[20:34:27 CET] <JEEB> I mean, compared to something like libx264
[20:34:39 CET] <JEEB> libx264 actually had some use and thus is wroom-wroom
[20:35:08 CET] <FishPencil> Anything internal that is well optimized?
[20:35:21 CET] <FishPencil> Doesn't FFmpeg impliment its own vpx
[20:35:38 CET] <blue_misfit> JEEB, regarding my timestamp issue, any way to regenerate the timestamps when muxing to MP4?
[20:36:06 CET] <blue_misfit> I verified that an encode directly to mp4 has perfectly consistent timestamps but that they oscillate between 672 and 656 for MKV -> MP4
[20:36:26 CET] <JEEB> FishPencil: decoder only
[20:36:30 CET] <JEEB> not encoder
[20:36:39 CET] <FishPencil> oh
[20:36:41 CET] <JEEB> encoding is usually left to the projects best aimed at it
[20:39:11 CET] <phillipk> anyone know of any super basic intros to ffmpeg? I feel this was missing from my early times with ffmpeg. The wiki is okay, but assumes a lot of base knowledge.
[20:39:30 CET] <FishPencil> phillipk: CLI or API
[20:40:06 CET] <FishPencil> phillipk: A "not sure" means CLI
[20:40:07 CET] <phillipk> CLI I suppose... (not api to build off of ffmpeg+)
[20:40:44 CET] <FishPencil> phillipk: #ffmpeg isn't a bad place :) Do you have a specific question?
[20:41:58 CET] <phillipk> I have had questions and worked through everything I need for now. But, for example, the docs on filter graphs seem unclear. And even the language used in the docs could be greatly improved. Not trying to complain but wondering if others have written up blog posts or primers.
[20:46:40 CET] <FishPencil> The docs have always been a sore spot...
[20:52:22 CET] <c_14> phillipk: patches welcome
[20:52:36 CET] <c_14> There are "a bunch" of small guides on trac.ffmpeg.org
[21:01:02 CET] <dalmatinac> Hello from sad Berlin :( I would like to download a hevc/mpeg-2 ts video from my server and as it is being downloaded and increasing in size I would like to encode it to h.264 and play it on my local browser.
[21:02:15 CET] <c_14> Does your browser support fragmented moov?
[21:03:43 CET] <dalmatinac> I'm using Electron, so it would be Chromium. I don't if it is supported by chromium. :/
[21:04:56 CET] <dalmatinac> I'm able to conver the file, and play it in the browser. But the problem is that it is not converting the whole downloaded video. Everytime it stops at a size of couple of hundred bytes
[21:04:59 CET] <dalmatinac> My command is: Spawned Ffmpeg with command: "ffmpeg -re -i testVideo.ts -y -acodec aac -strict experimental -b:a 128k -ac 2 -b:v 1024k -vcodec libx264 -f mp4 -movflags frag_keyframe+faststart -map 0:1 output.mp4" and I get this output: http://pastebin.com/dET5uYq5
[21:07:20 CET] <c_14> Consider updating your copy of ffmpeg, add -map 0:v:0
[21:09:12 CET] <dalmatinac> Thank you c_14! I will now try to update to the latest version for ubuntu, add the argument and report again :)
[21:18:12 CET] <podman> I'm running into an issue where i need to pad the beginning of a video with silence. It looks like asyncts is deprecated. I tried using the aresample filter but it didn't seem to do anything
[21:18:46 CET] <podman> do i need to do anything special to get something aresample=aysnc=1000 to work?
[21:23:23 CET] <podman> do i need to make sure ffmpeg is compiled with --enable-avresample?
[21:29:23 CET] <c_14> No, swresample should be built by default
[21:30:42 CET] <furq> podman: wouldn't adelay be a better choice for that
[21:31:04 CET] <dalmatinac> I have now updated to ffmpeg 3.2.2 and added the argument. The downloaded file was at 20mb(6sec) when I started the ffmpeg command. But at 1.4mb(6sec) ffmpeg finished, altough the downlod was still pending and increasing in size to 60mb(18secs). This is the output: http://pastebin.com/dET5uYq5
[21:31:15 CET] <podman> c_14: interesting. so I have a file that has a delayed audio track that starts about 20 seconds in. I need to create silent audio samples for those first 20 seconds
[21:32:14 CET] <c_14> dalmatinac: that's still the output from the 2.8 ffmpeg
[21:32:48 CET] <dalmatinac> Oh sorry! Here it is: http://pastebin.com/FQf1rgcr
[21:33:31 CET] <podman> c_14: hmm, maybe i want to use first_pts=0 instead?
[21:34:23 CET] <dalmatinac> I thought with the -re argument I'm telling ffmpeg that this file will still increase. But it seems he is only processing till the point, when he started.
[21:34:45 CET] <c_14> podman: have you tried adelay like furq said? (downside is you'll have to know the input channel layout)
[21:35:11 CET] <c_14> dalmatinac: how are you downloading the file?
[21:35:43 CET] <podman> c_14: i don't want to delay the audio channel, i want to pad the audio channel with silence
[21:35:59 CET] <furq> that's what adelay does
[21:36:28 CET] <dalmatinac> @c_14 With "wget www......" in another terminal
[21:36:31 CET] <podman> furq: so i need to know the exact amount of delay there is to get it to work?
[21:36:33 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#adelay
[21:36:41 CET] <furq> well presumably you'd need to know that anyway
[21:36:44 CET] <c_14> dalmatinac: ffmpeg can take input directly from http, try that
[21:37:01 CET] <podman> furq: sounds like the these other filters make more sense
[21:39:17 CET] <podman> furq: also, will that just add extra delay, or remove the delay and insert silence in it's place?
[21:46:17 CET] <dalmatinac> c_14: It worked! Thank you very much! Only one problem... This is just a workaround. I have a DVB-T stick for my laptop and I get a signal from it over a node.js module and I save it to a .ts file. Over the holidays I don't have this stick, so I uploaded a recording from it to a server and right now I try to simulate the stick by downloading the recording to a file.
[21:47:20 CET] <dalmatinac> c_14: So I'm thinking if I get it to work with this increasing file by downloading it, it will later also work with the DVB-stick. Do you know why it's not working when I specify the file, but it works when I specify the link?
[21:48:43 CET] <c_14> Probably because the file is so small that ffmpeg reads a block into the cache and the OS signals EOF
[21:51:52 CET] <dalmatinac> Ah, okay. Can we do anything about it? Maybe tell him, to ignore the EOF or define smaller blocks?
[21:56:16 CET] <c_14> try setting -blocksize 100K before -i
[22:04:44 CET] <podman> c_14: furq so, using aresample=first_pts=0 makes the audio track and the video track have the same length, so that's an improvement
[22:07:54 CET] <dalmatinac> c_14: I tried it but unfortunately, again it will stop when it reached the length of the input file, when I started the ffmpeg command :(
[22:08:38 CET] <c_14> try something smaller maybe? 1K?
[22:14:58 CET] <dalmatinac> c_14: Also not :( I start ffmpeg, when the file has 20%, 6MB. But then it will only create an output.mp4, which has a couple of seconds video and finishes...
[22:15:29 CET] <c_14> hmm, no clue then
[22:19:41 CET] <blue_misfit> hey folks, how can I regenerate timestamps when remuxing from mkv to mp4?
[22:19:43 CET] <dalmatinac> c_14: But thank you very much for your help! :)
[22:19:49 CET] <podman> c_14: furq: so, yeah, that worked! audio packets at the start of the video
[22:44:36 CET] <fling> How to deal with pulse delay when capturing sound and video?
[22:50:01 CET] <EliteHunter> I'm using this command on my batch file --start ffmpeg -ss %stTime% -i %path% -c:a copy -c:v copy -to %endTime% -copyts "output.mp4"-- to split a video. The process is completed successfully and i have no problems with windows media player but when i open the video on VLC the timestamp is all f* ed up. Why is that?
[22:52:14 CET] <fling> EliteHunter: because of -copyts and mp4
[22:53:15 CET] <EliteHunter> what should i do to fix it?
[22:53:22 CET] <fling> EliteHunter: try omitting -copyts
[22:53:42 CET] <EliteHunter> but that results in endtime being runtime
[22:54:02 CET] <EliteHunter> is the reason mp4 not supporting something with timestamps?
[22:54:32 CET] <EliteHunter> what i mean runtime is this
[22:54:35 CET] <EliteHunter> The first command will cut from 00:01:00 to 00:03:00 (in the original), using the faster seek. The second command will cut from 00:01:00 to 00:02:00, as intended, using the slower seek. The third command will cut from 00:01:00 to 00:02:00, as intended, using the faster seek. ffmpeg -ss 00:01:00 -i video.mp4 -to 00:02:00 -c copy cut.mp4 ffmpeg -i video.mp4 -ss 00:01:00 -to 00:02:00 -c copy cut.mp4 ffmpeg -ss 00:01:00 -i video.mp
[22:54:50 CET] <EliteHunter> https://trac.ffmpeg.org/wiki/Seeking
[22:55:41 CET] <fling> ahh
[22:56:21 CET] <EliteHunter> yeah so i don't want to omit copyts since i want to give a specific time range and not calculate how much will the video run for and then enter the time
[22:57:20 CET] <fling> But you should drop and recalculate it in the end somehow anyway as you are copying it in the middle
[22:59:04 CET] <EliteHunter> doesn't -ss and -to already does that?
[23:00:32 CET] <EliteHunter> when i run this even if the timestamps are wrong, there is nothing wrong with the video
[23:01:10 CET] <EliteHunter> if i run -ss 00:10:00 -to 00:11:00 the video runs for 1 minute, but you can't seek on VLC and the end timestamp is wrong
[23:01:34 CET] <EliteHunter> so there are no errors in the cut process but somehow timestamps are wrong in vlc
[23:01:50 CET] <EliteHunter> however windows media player correctly runs the video
[23:01:54 CET] <fling> after -copyts?
[23:02:31 CET] <EliteHunter> what do you mean by after?
[23:03:13 CET] <fling> ffmpeg -i & -copyts output.mp4 && vlc output.mp4
[23:03:55 CET] <EliteHunter> i don't have vlc in the command, i open it using the client
[23:04:14 CET] <fling> Does not matter.
[23:04:16 CET] <EliteHunter> btw my bad after i tried couple more videos windows media player seems to not work either
[23:04:36 CET] <EliteHunter> i run the command and open the output in vlc
[23:04:48 CET] <fling> after -copyts?
[23:04:50 CET] <EliteHunter> yes
[23:05:07 CET] <fling> copyts copies your ts from the input
[23:05:08 CET] <EliteHunter> it is a one line command so there is no way i would be able to open it before
[23:05:30 CET] <fling> so the shrinked output has ts from the longer input
[23:05:41 CET] <fling> your players don't like this behavior and bork
[23:06:05 CET] <fling> try not using copyts or try recalculating it in the end
[23:06:14 CET] <fling> gtg, cya later, good luck!
[23:06:40 CET] <EliteHunter> ok thanks, i'll calculate it in the batch file since it's not that hard. Thanks for your help
[00:00:00 CET] --- Wed Dec 21 2016
1
0
[00:04:34 CET] <kierank> can't get it in hex
[00:05:27 CET] <kierank> I can see it in hex editor
[00:05:30 CET] <kierank> but hopper doesn't want to see it
[00:08:11 CET] <kierank> durandal_1707: size is in bytes?
[00:09:08 CET] <durandal_1707> size is in pixels
[00:09:21 CET] <kierank> ah size is 1024*576 / 4
[00:10:56 CET] <durandal_1707> it's usually in bigger bands with chunk of zeroes
[00:11:21 CET] <kierank> yeah, i wonder if there is a state where you just say the rest of the block is zero if it terminates early
[00:11:31 CET] <kierank> durandal_1707: can you send me hexrays dump of function?
[00:12:21 CET] <durandal_1707> tomorrow maybe, now sleeping
[00:12:32 CET] <kierank> note that kostya's code says "show_unary
[00:12:35 CET] <kierank> your code does get_unary
[00:13:33 CET] <durandal_1707> yes, but it consumes those 8 bits
[00:14:34 CET] <durandal_1707> there are integer overflows if one use unsigned
[00:14:56 CET] <kierank> ok
[00:15:02 CET] <kierank> can't see anything then
[00:16:20 CET] <durandal_1707> usually second part of low coeffs are not reached
[00:16:46 CET] <durandal_1707> *low coeffs function
[00:17:02 CET] <durandal_1707> used lcov coverage tool
[01:20:13 CET] <kierank> michaelni: can you explain
[01:20:14 CET] <kierank> int (*decode_mb)(struct MpegEncContext *s, int16_t block[6][64]); // used by some codecs to avoid a switch()
[01:20:25 CET] <kierank> how does one implement codecs with 4:2:2 and 4:4:4
[01:24:08 CET] <kierank> ret = s->decode_mb(s, s->block);
[01:24:13 CET] <kierank> but then s->block isn't of the right type?
[01:26:46 CET] <michaelni> the type chould be changed if thats the only issue
[01:27:07 CET] <michaelni> mpeg2 support 422 /444 but uses a diferent codepath so iam not sure that helps
[01:27:24 CET] <kierank> yes, i'm asking how to modify mpeg-4 to support 4:2:2 and 4:4:4
[01:28:06 CET] <kierank> I guess I should submit that patch and get people to fate test it alone
[01:28:11 CET] <kierank> there's tons of code that assumes 4:2:0
[01:29:59 CET] <kierank> weird, nothing complains
[01:30:11 CET] <kierank> I guess it's a valid cast
[02:49:22 CET] <kierank> michaelni: so yeah the mpeg-4 framer is totally broken
[02:49:25 CET] <kierank> parser
[02:49:30 CET] <kierank> if ((state & 0xFFFFFF00) == 0x100) {
[02:49:32 CET] <kierank> that's a legal startcode
[02:49:35 CET] <kierank> for other stuff
[02:50:51 CET] <kierank> in fact that doesn't work at all
[02:53:02 CET] <kierank> I get one call to ff_mpeg4_decode_picture_header with 1500000 bytes available
[02:53:04 CET] <kierank> from the parser
[02:53:11 CET] <kierank> then I get one from the decoder with 256 bytes! available
[02:53:13 CET] <kierank> and then I overread
[03:15:21 CET] <kierank> hmm seems to be sourced from extradata
[03:15:29 CET] <kierank> but where the hell does it get the extradata from
[03:21:17 CET] <kierank> is there a way to find out where extradata is set?
[03:23:34 CET] <kierank> in the parser it has no extradata
[03:23:38 CET] <kierank> but suddenly in the decoder it does
[03:23:41 CET] <kierank> this is crazy
[03:42:09 CET] <kierank> oh wow that's a fucking awful hack
[03:42:11 CET] <kierank> oh my god
[03:42:33 CET] <kierank> wm4: the parser calls the decode function, consumes bytes, then the data is put into extradata
[03:42:43 CET] <kierank> but the decoder expects a continuous data stream
[03:42:48 CET] <kierank> what.the.fuck
[16:49:38 CET] <BBB> ubitux: ping
[19:59:39 CET] <cone-984> ffmpeg 03Michael Niedermayer 07master:99af260d0b07: doc/examples/decoder_targeted: Limit max pixels for fuzzing
[21:15:13 CET] <wm4> does does ffmpeg produce mkv files with aac tracks that have no a single packet marked as keyframes
[21:15:31 CET] <wm4> why does ffmpeg include a shitty hack to make seek "work" in such files too
[21:15:42 CET] <wm4> this project is so fucking irresponsible
[21:17:00 CET] <durandal_1707> wm4: please post patch
[21:17:31 CET] <wm4> what would that even look like? should I av_assert0(false) if it muxes an aac packet with keyframe=false?
[21:17:45 CET] <durandal_1707> do anyone know utility like vritual dub which doesn't crash?
[21:18:02 CET] <RiCON> vdfiltermod?
[21:21:20 CET] <nevcairiel> wm4: the keyframe flag isnt even documented in the matroska spec as far as i can see, so what can a muxer do
[21:21:49 CET] <wm4> nevcairiel: that's bullshit
[21:23:56 CET] <durandal_1707> RiCON: thanks
[21:26:08 CET] <nevcairiel> but what is a muxer supposed to do, you don't want to hardcode codec-based checks into a muxer, so it has to somewhat rely on getting valid input - but on the other hand not all containers carry such a flag, so its easy to lose it, i don't think we have any way to identify keyframes and mark them if the container didnt do so
[21:26:37 CET] <nevcairiel> (although for audio iirc all packets are assumed key frames in demuxing, unless someone changed that)
[21:26:38 CET] <wm4> so why does the ffmpeg _demuxer_ do that
[21:27:06 CET] <nevcairiel> who knows, the demuxer has all sort of funny issues
[21:27:34 CET] <wm4> hm I also wanted to change my demuxer to always assume keyframes for all audio packets
[21:27:55 CET] <wm4> but AFAIK libavformat leaves this to the parser to determine
[21:28:29 CET] <nevcairiel> the only audio codec i can even come up with that has non-keyframes is truehd
[21:28:47 CET] <wm4> that's usually broken beyond repair anyway
[21:29:08 CET] <nevcairiel> and the frames are so tiny that just skipping ahead is usually not a problem
[21:29:20 CET] <nevcairiel> .833ms frames yoo
[21:51:07 CET] <llogan> what does tools/ffbisect do? IIRC something to do with merges?
[21:51:45 CET] <llogan> ...when bisecting.
[22:20:43 CET] <cone-984> ffmpeg 03Pavel Koshevoy 07master:4240e5b04737: lavfi/atempo: avoid false triggering an assertion failure
[22:43:31 CET] <nevcairiel> llogan: it allows to skip results from the libav side of the merge commits since those w ouldnt really work
[22:51:51 CET] <JEEB> -32
[23:08:28 CET] <ubitux> BBB: pong
[23:11:14 CET] <cone-984> ffmpeg 03Chen Meng 07master:25e35b34365e: avformat/mov.: Make the process of uuid-xmp atom faster.
[23:25:20 CET] <llogan> nevcairiel: thanks. just "ffbisect start" then "ffbisect need ffmpeg"?
[23:26:55 CET] <nevcairiel> first need i imagine
[23:27:14 CET] <nevcairiel> hm or maybe not
[23:27:49 CET] <nevcairiel> yeah first start then need
[23:28:05 CET] <nevcairiel> and then ffbisect good/bad/skip as appropriate
[23:51:49 CET] <llogan> thanks again
[00:00:00 CET] --- Tue Dec 20 2016
1
0
[00:01:53 CET] <MoonOwl> done
[00:02:00 CET] <MoonOwl> You were right
[00:05:46 CET] <MoonOwl> The output for part of what I'm trying to compress http://pastebin.com/Zv0Q7xNR
[00:08:32 CET] <MoonOwl> Thanks
[00:12:51 CET] <furq> isn't 20 a really low crf for x265
[00:13:17 CET] <furq> apparently 28 is equivalent to x264 23
[00:13:23 CET] <MoonOwl> I am backing up my DVD's
[00:13:26 CET] <furq> so i guess you want 24-25
[00:13:50 CET] <MoonOwl> I thought the CRF's for x264 and x265 corresponded with each other
[00:13:53 CET] <furq> they don't
[00:14:38 CET] <furq> i assume -preset ultrafast was just for that paste
[00:14:38 CET] <MoonOwl> Pink Floyd's Pulse DVD has very poor quality and trying to rip it is a painful experience
[00:14:45 CET] <furq> ultrafast will compress worse than x264 at the same encoding speed
[00:14:53 CET] <MoonOwl> It was just for the paste
[00:14:56 CET] <furq> ok good
[00:15:16 CET] <furq> anything below -preset medium with x265 is a waste of time, x264 will do the same or better at equivalent speed
[00:15:26 CET] <furq> usually, anyway
[00:22:07 CET] <MoonOwl> A higher average bitrate was obtained with -preset medium all else being the same http://pastebin.com/qwX2vAUf
[00:23:07 CET] <MoonOwl> I thought the slower the preset, the better the compression under normal circumstances
[00:26:42 CET] <MoonOwl> Is x265 like the video counterpart of HE-AACv2, the codec Nokia used to ship for syncing to symbian phones in how it relates to its predecessor
[00:29:56 CET] <DHE> super sport version, x265 is an encoder for the H265 codec, intended to be the successor to H264.
[00:33:53 CET] <furq> yeah it's more akin to the difference between xvid and x264
[00:34:25 CET] <furq> maybe not quite that pronounced though
[00:34:30 CET] <furq> x264 is still pretty competitive
[00:35:09 CET] <MoonOwl> "-preset fast" compressed better than "-preset medium" but still did not perform like "-preset ultrafast". It seems HEVC's implementations, x265 in particular, are still work in progress
[00:35:18 CET] <furq> well x264 is the same way
[00:35:40 CET] <furq> slower presets will generally look better rather than compress better at the same crf
[00:35:42 CET] <MoonOwl> Nero's AVC codec was beautiful
[00:36:30 CET] <MoonOwl> But furq, I thought crf implied constant quality
[00:36:56 CET] <MoonOwl> And all you could ever do in terms of fiddling with settings would determine how strong the compression is
[00:37:06 CET] <furq> constant given the same settings other than crf
[00:37:39 CET] <furq> some of the settings defined by the presets make a massive difference, e.g. cabac is disabled with -preset ultrafast
[00:39:00 CET] <furq> qp is true constant quality, but it's not recommended
[00:39:21 CET] <MoonOwl> I saw in the docs
[00:39:23 CET] <furq> i guess you could use it for benchmarking how much difference the presets make, but it's probably not useful information
[00:39:54 CET] <furq> i'll admit it's unintuitive
[00:41:13 CET] <MoonOwl> Do you think video encoding will ever have a FLAC
[00:41:25 CET] <furq> it already does
[00:41:50 CET] <MoonOwl> A lossless standard that makes some lossy transcoding a waste
[00:41:54 CET] <MoonOwl> Which one?
[00:42:00 CET] <furq> well not in terms of usability
[00:42:08 CET] <furq> most lossless video codecs beat flac in terms of average compression ratio
[00:42:17 CET] <furq> but rawvideo is a few orders of magnitude bigger than cd audio
[00:43:21 CET] <furq> 1080p60 yuv420p rawvideo is about 1.5gbps
[00:44:14 CET] <MoonOwl> Most cheap consumer hardware even with flash storage is incapable of such bitrates
[00:44:39 CET] <furq> well you'd need a 90% compression ratio for me to be able to stream that on my internet
[00:44:44 CET] <furq> and my internet is pretty good
[00:45:46 CET] <MoonOwl> HD Audio and 12 bit 4k... some claim these are marketing ripoffs
[00:45:49 CET] <furq> x264 lossless and ffv1 can do better than 2:1 on a good day
[00:46:04 CET] <furq> but yeah, you'd need more like 20:1 really
[00:46:10 CET] <llamapixel> Just to clarify, no uncompressed standard at the moment is really uncompressed.. The lense and capture rate is a form of compression when it is captured. Just be happy if the content is crisp enough and double the intended usage if you are compositing.
[00:46:17 CET] <furq> christ not this again
[00:46:43 CET] <MoonOwl> I'm sorry furq for bringing it up. I'll withdraw it
[00:47:00 CET] <furq> not you
[00:47:03 CET] <furq> remind me what hd audio is
[00:47:20 CET] <llamapixel> It should be understood so there is no confusion with people who assume it is the ultimate.
[00:47:38 CET] <phillipk> I updated my question that was also discussed here--http://ffmpeg.gusari.org/viewtopic.php?f=11&t=3329&p=9970#p9970
[00:48:21 CET] <llamapixel> uncompressed is a misnomer that can confuse people entering the subject.
[00:48:45 CET] <furq> you're the only person i've ever seen get confused about it
[00:48:59 CET] <phillipk> it appears to me, -filter_complex_script (which points to a "command file" --text file with complex filter) has an upper limit for the size of the command file
[00:49:05 CET] <llamapixel> I have no confusion about it. hence why I am not asking questions that relate to it.
[00:49:30 CET] <furq> phillipk: post a bug report i guess
[00:50:46 CET] <phillipk> @furq you think that's appropriate? I noticed some optimizations for captions must address this because you can have a huge data file containing the captions (right?)
[00:51:07 CET] <furq> people normally use libass for captions
[00:51:20 CET] <furq> i've never seen anyone doing it with -filter_complex_script, but who knows
[00:51:33 CET] <phillipk> well, I'm not doing captions but it seems similar
[00:52:05 CET] <MoonOwl> HD Audio is marketted as audo with a sample rate of 92 or 192 kHz and bit depth of 24 bits
[00:52:09 CET] <phillipk> I am wanting to overlay a png on any frame in any location--with data drawn from a text file. (thought originally, I thought maybe I could cram it into the command itself)
[00:52:12 CET] <furq> oh
[00:52:15 CET] <furq> yeah that's snake oil
[00:52:34 CET] <furq> 24-bit is only useful for mastering, and >48khz is completely useless
[00:53:03 CET] <furq> high-bit-depth 4k isn't really a marketing thing but very few people have a good enough display to notice the difference
[00:53:40 CET] <furq> i mean it's a marketing thing in that it's a way to get you to buy a new expensive tv and buy all your films again, but there is actually a noticeable difference
[00:55:29 CET] <furq> phillipk: i take it you couldn't get sendcmd to work
[00:55:43 CET] <MoonOwl> This reminds me of how people were supposed to get excited to be paying extra for 720p broadcasts when people wanted an upgrade to 1080p from 576p not a retardation to 480p to sell 720p encoded content. This happened with one of our local satellite providers
[00:57:01 CET] <MoonOwl> I always ask myself the question: How many ordinary people are willing to fork out extra for 4k tv when almost no one is streaming their content at that resolution
[00:57:17 CET] <furq> is anyone anywhere broadcasting 4k yet
[00:57:32 CET] <thebombzen_> yea. it's somewhat unfair to compare to x264 because it's so good
[00:58:03 CET] <thebombzen_> given that HEVC has like 10 years fewer of development
[00:58:18 CET] <thebombzen_> you can't expect something new like x265 to be anywhere as good relative to the bitstream spec that x264 is
[00:58:44 CET] <DHE> x264 is over a decade old now. x265 not so much
[00:58:55 CET] <iive> x264 got quite good quite fast
[00:58:59 CET] <thebombzen_> my guess is in a few years x265 will be far far better than x264. nowadays x264 is still preferrable over x265 in many cases because x265 is so damn slow
[00:59:05 CET] <furq> tbh i would probably stick with x264
[00:59:17 CET] <furq> x265's future isn't as certain as i'd like
[00:59:18 CET] <DHE> I could disagree. frame-based threading took a while.
[00:59:43 CET] <thebombzen_> although tbh HEVC seems like it's a transitionary technology
[00:59:56 CET] <thebombzen_> H.264 is like mpeg2 as in, super standard around forever
[00:59:58 CET] <MoonOwl> http://www.directv.com/technology/4k
[01:00:06 CET] <furq> i mean av1 will probably not be ready for a good few years
[01:00:15 CET] <furq> and there's no other path forward atm
[01:00:19 CET] <thebombzen_> whereas mpeg4-asp was never fully adopted
[01:00:31 CET] <thebombzen_> I feel like HEVC will be like mpeg4asp
[01:00:42 CET] <furq> yeah the licensing situation is very unhelpful to its cause
[01:00:46 CET] <thebombzen_> ideally the next generation after HEVC and vp9 will work.
[01:00:51 CET] <furq> but also x264 is so embedded now
[01:00:54 CET] <thebombzen_> specifically Daala
[01:00:55 CET] <furq> s/x/h/
[01:01:10 CET] <thebombzen_> Daala looks very promising
[01:01:13 CET] <furq> aren't the daala guys working on av1 now
[01:01:15 CET] <MoonOwl> ASP was bombed on us in Southern Africa as THE codec
[01:01:27 CET] <thebombzen_> well I can't speak for southern africa
[01:01:32 CET] <thebombzen_> I'm in North America
[01:01:37 CET] <furq> i heard some daala tech was going to make it into av1, but then i also heard it wasn't going to any more
[01:01:59 CET] <thebombzen_> well the whole point of daala was that they invented a deblocking filter with a Right Inverse
[01:02:01 CET] <thebombzen_> which is a big deal
[01:02:12 CET] <furq> i thought the whole point was that it didn't use IDCT
[01:02:23 CET] <furq> which is a big patent troll vector
[01:02:35 CET] <thebombzen_> well the DCT is just math
[01:02:40 CET] <thebombzen_> that's not patented
[01:03:13 CET] <thebombzen_> DCT is just a change of basis
[01:03:26 CET] <thebombzen_> it's essentially just linear algebra
[01:03:49 CET] <thebombzen_> either way afaik the point of daala is that there's a deblocking filter P with a right inverse (P')
[01:03:53 CET] <furq> In addition to the technical freedom of starting fresh, this new design consciously avoids most of the patent thicket surrounding mainstream block-DCT-based codecs. At its very core, for example, Daala is based on lapped transforms, not the traditional DCT.
[01:04:01 CET] <MoonOwl> BBC should go back into the game of codec development
[01:04:05 CET] <thebombzen_> huh
[01:04:17 CET] <thebombzen_> either way the right-invertible deblocking filter is a big deal
[01:04:20 CET] <furq> sure
[01:04:32 CET] <thebombzen_> cause if P' is a right inverse of P then you can take P' and then do the transform stuff and then take P
[01:04:37 CET] <furq> you get that for free with the lapped transform don't you
[01:04:41 CET] <thebombzen_> I don't know
[01:04:52 CET] <furq> well i'm no expert on this stuff but that's the impression i got from this article
[01:04:52 CET] <thebombzen_> isn't "lapped transform" like the MDCT used in vorbis
[01:05:47 CET] <furq> something like that
[01:05:55 CET] <thebombzen_> I just find it very weird that P has a right inverse. it's much harder to find a right inverse than a left inverse
[01:05:57 CET] <thebombzen_> so that's nice
[01:06:43 CET] <thebombzen_> but either way I still don't see the issue with DCT
[01:06:47 CET] <thebombzen_> it's just a change of basis
[01:06:57 CET] <thebombzen_> I'm not sure how you can patent that
[01:07:00 CET] <furq> MoonOwl: some of the bbc r&d guys are apparently working on av1
[01:07:32 CET] <furq> thebombzen_: i imagine you can patent using a DCT to compress video in some way
[01:08:20 CET] <furq> oh what
[01:08:25 CET] <furq> http://www.bbc.co.uk/rd/blog/2016/09/turing-codec
[01:08:28 CET] <furq> this is news to me
[01:08:28 CET] <MoonOwl> I hope daala matures and grows in acceptance.
[01:09:11 CET] <thebombzen_> but furq the original idea to use DCT to compress video was actually JPEG
[01:09:17 CET] <thebombzen_> and everything's a derivative of that
[01:09:20 CET] <thebombzen_> afaik the JPEG patent expired
[01:09:22 CET] <furq> shrug
[01:09:24 CET] <furq> i'm not a patent lawyer
[01:09:33 CET] <thebombzen_> patenting an algorithm seems really weird to me
[01:09:37 CET] <furq> or a video encoder writer
[01:09:54 CET] <thebombzen_> especially since the algorithm is simple enough that I could explain it to a college student after one semester of linear algebra
[01:10:15 CET] <MoonOwl> Thank God patents expire
[01:10:26 CET] <furq> but yeah it looks like some daala stuff is on the table for av1
[01:10:29 CET] <thebombzen_> I tutor linear algebra students at uni and I could explain to them after the semester is over how jpeg works
[01:10:35 CET] <MoonOwl> MP3's patent has expirent in most places
[01:10:47 CET] <furq> well it was never patented in most places because most places don't honour software patents
[01:10:55 CET] <furq> the last patent expires in the US at the end of next year
[01:10:57 CET] <thebombzen_> well fraunhofer wanted to charge royalties for anything distributed in the mp3 format
[01:11:04 CET] <thebombzen_> which is just stupid
[01:11:15 CET] <thebombzen_> what a great way to get people to not use your technology
[01:11:26 CET] <furq> isn't that pretty much what you have to do for h264
[01:11:29 CET] <thebombzen_> no
[01:11:55 CET] <thebombzen_> Fraunhofer wanted to make it so if I put an mp3 on my website of music I made in my garage, they'd get royalties
[01:12:12 CET] <thebombzen_> even if I paid a licensee to encode it
[01:12:21 CET] <thebombzen_> and it could only be played on a licensed player
[01:12:26 CET] <furq> oh
[01:12:32 CET] <furq> yeah that is a bit more restrictive then
[01:12:34 CET] <MoonOwl> It's a fair thing to ask for given what mp3 did for consumer world
[01:12:39 CET] <thebombzen_> well they never ended up doing it
[01:12:47 CET] <thebombzen_> because 98 percent of people refused to pay it
[01:13:09 CET] <furq> they probably only decided that would be a good idea after it already took off
[01:13:23 CET] <thebombzen_> maybe. but they never ended up with that stuff
[01:13:37 CET] <thebombzen_> the problem with software patents is that patents are supposed to encourage innovation
[01:13:37 CET] <furq> if only hevc had the same foresight
[01:13:39 CET] <MoonOwl> MP3 became the dreaded infrastructure technology of audio distribution
[01:14:03 CET] <MoonOwl> Has anyone ever used dirac?
[01:14:18 CET] <thebombzen_> patents are supposed to encourage innovation by making it so there's no risk in publishing an invention
[01:14:19 CET] <furq> did dirac ever get beyond the experimental stage
[01:14:34 CET] <thebombzen_> the issue is that software and codec patents in general don't serve to encourage innovation
[01:14:38 CET] <thebombzen_> they essentially do nothing but hinder it
[01:14:57 CET] <MoonOwl> It's all about intellectual property
[01:15:01 CET] <thebombzen_> the fact that the mp3 patents are a pain in the ass makes it not worth it
[01:15:10 CET] <MoonOwl> Not innovation
[01:15:35 CET] <thebombzen_> patents in theory are to encourage innovation. because the idea is to have no fear of publishing an invention or making it public
[01:15:45 CET] <thebombzen_> they just don't work that way in practice with respect to software patents and codecs
[01:15:47 CET] <MoonOwl> I always wondered how LAME got away with implementing MP3 and distributing the binaries of their codec
[01:15:59 CET] <thebombzen_> I don't think they do
[01:16:07 CET] <thebombzen_> afaik LAME was source-only
[01:16:11 CET] <thebombzen_> which is weird
[01:16:12 CET] <thebombzen_> cause like
[01:16:29 CET] <thebombzen_> patent laws are such that LAME is source-only
[01:16:37 CET] <thebombzen_> like who cares if it's in C or in machine code
[01:16:57 CET] <MoonOwl> Anything can be disassembled
[01:16:57 CET] <thebombzen_> how is that any different. but apparently someone managed to convince the US gov't that source code was protected first amendment speech
[01:17:20 CET] <thebombzen_> which is IMO wrong
[01:17:25 CET] <thebombzen_> like that's not what speech is
[01:17:31 CET] <c_14> Why not?
[01:17:48 CET] <c_14> It's just like making a movie.
[01:17:52 CET] <c_14> And that's free speech.
[01:17:54 CET] <thebombzen_> it's a bit complicated. but not all "text" is "speech"
[01:18:02 CET] <thebombzen_> source code in particular is not english text
[01:18:05 CET] <c_14> So?
[01:18:10 CET] <c_14> Does it have to be?
[01:18:14 CET] <MoonOwl> I think 'speech' is now being used where 'expresson' could have been used
[01:18:24 CET] <thebombzen_> well source code is an algorithm description
[01:18:36 CET] <thebombzen_> there's really no difference between source and binaries from a speech perspective
[01:18:39 CET] <c_14> So are books that describe how to build bombs.
[01:18:46 CET] <c_14> Those are protected under freedom of speech.
[01:19:00 CET] <thebombzen_> my point is that source and binary code shouldn't be different
[01:19:03 CET] <thebombzen_> but they are for some reason
[01:19:05 CET] <c_14> There is no difference between source code and binaries from a speech definition
[01:19:11 CET] <thebombzen_> actually yes there is
[01:19:13 CET] <c_14> But lawmakers/lawyers etc don't understand computers
[01:19:21 CET] <thebombzen_> that's my point
[01:19:37 CET] <thebombzen_> someone convinced lawmakers that source code is speech but binaries aren't
[01:19:38 CET] <thebombzen_> which is weird.
[01:19:56 CET] <thebombzen_> I can buy an argument that source code is speech only if binaries are to
[01:20:04 CET] <thebombzen_> but that's now how the law works for some weird reason
[01:20:15 CET] <thebombzen_> of course that doesn't matter that europe doesn't have protectd speech
[01:20:22 CET] <thebombzen_> cause europe also doesn't have software patents ^_^
[01:20:29 CET] <c_14> Because the people who convinced the lawmakers thereof thought it would be easier to just do code.
[01:20:34 CET] <thebombzen_> but like
[01:20:39 CET] <thebombzen_> disassembly exists
[01:20:45 CET] <c_14> Because that looks more like speech
[01:20:45 CET] <thebombzen_> and some languages are even more disassemblable
[01:20:54 CET] <thebombzen_> Java can even be decompiled
[01:20:57 CET] <thebombzen_> not just disassembled
[01:21:06 CET] <furq> https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Sample_09-F9_prot…
[01:21:08 CET] <MoonOwl> The assumption causing problems is that programming languages are all human languages
[01:21:11 CET] <furq> never forget
[01:21:17 CET] <thebombzen_> what about Brainfuck
[01:21:21 CET] <thebombzen_> is that human language
[01:21:45 CET] <thebombzen_> bf is essentially Turing Machines The Language
[01:21:45 CET] <furq> yeah any brainfuck program translates into english as "i fucking suck ass, don't talk to me"
[01:21:55 CET] <MoonOwl> Well, hieroglyphics were a human language
[01:22:04 CET] <thebombzen_> well bf can be compiled with a one-line bash script
[01:22:24 CET] <thebombzen_> because you can translate bf to C with a regular expression and a bit of boilerplate.
[01:23:02 CET] <thebombzen_> does that make it speech
[01:23:10 CET] <thebombzen_> if you can compile it to C
[01:23:13 CET] <thebombzen_> which is 'human readable'
[01:23:26 CET] <thebombzen_> (despite that making it significantly less readable)
[01:23:44 CET] <MoonOwl> Every language is human readable
[01:23:55 CET] <furq> what about java
[01:23:55 CET] <c_14> Well, no
[01:24:01 CET] <c_14> Every Human language is human readable
[01:24:03 CET] <MoonOwl> Otherwise, we wouldn't classify it as a a language
[01:24:06 CET] <thebombzen_> furq: yes
[01:24:15 CET] <thebombzen_> not sure what you mean by that
[01:24:29 CET] <furq> me?
[01:24:36 CET] <thebombzen_> yea. what do you mean "what about java"
[01:24:41 CET] <furq> i'm saying that java sucks. it's a clever and original joke
[01:24:51 CET] <thebombzen_> well what you said is that java isn't human readable
[01:24:53 CET] <thebombzen_> which isn't true
[01:24:58 CET] <MoonOwl> For us to classify an object as a language, don't we first have to have an understanding of it? And by understanding a language, the language becomes readable to us
[01:25:19 CET] <thebombzen_> also it's unfair to say that Java sucks
[01:25:25 CET] <thebombzen_> at least it was designed
[01:25:42 CET] <thebombzen_> you may dislike it. I hate python but I don't think it sucks
[01:25:42 CET] <MoonOwl> Java is actually pretty compared to some of the things that I've tried to write
[01:26:06 CET] <furq> is there a distinction between "i dislike it" and "it sucks"
[01:26:11 CET] <thebombzen_> Yes
[01:26:14 CET] <thebombzen_> PHP sucks
[01:26:33 CET] <thebombzen_> I dislike Javascript
[01:26:40 CET] <thebombzen_> but it doesn't "suck" in the same way PHP does
[01:26:50 CET] <MoonOwl> Languages may suck but the beauty about them is that if you work hard enough you can generate them and even translate to the languages that are descriptions of the produced languages
[01:27:05 CET] <thebombzen_> Java in particular is actually a very well-designed language and does what it's supposed to do very well
[01:27:10 CET] <furq> there is no objective standard against which to define php as a bad language though
[01:27:15 CET] <furq> even though it obviously is
[01:27:23 CET] <thebombzen_> php doesn't do what it's designed to do
[01:27:29 CET] <thebombzen_> it creates net positive work for the programmer
[01:27:30 CET] <MoonOwl> At the end of the day whichever language we decide to use, the end-user could not care if we wrote in C++ or Lisp
[01:27:44 CET] <furq> it's designed to get a website up with minimal effort
[01:27:48 CET] <furq> if anything it does that too well
[01:27:54 CET] <c_14> Unless they happen to not have enough RAM to compile the program in C++ or don't have a Lisp REPL
[01:27:54 CET] <thebombzen_> not really
[01:28:08 CET] <furq> i said "up", not "working to an acceptable level"
[01:28:10 CET] <thebombzen_> c_14: I think they meant the binaries
[01:28:25 CET] <MoonOwl> PHP causes great fatigue
[01:28:45 CET] <thebombzen_> but either way the thing about Java is that it's very double-edged
[01:28:58 CET] <thebombzen_> there's a lot of things that people find very strange about it
[01:29:07 CET] <MoonOwl> Wasn't Java supposed to bring Lisp to C programmers?
[01:29:11 CET] <thebombzen_> no
[01:29:18 CET] <thebombzen_> Java has literally nothing to do with lisp
[01:29:27 CET] <furq> maybe you're thinking of javascript
[01:29:32 CET] <c_14> Well, they're both programming languages
[01:29:36 CET] <MoonOwl> No... Im referring to Java
[01:29:37 CET] <thebombzen_> Javascript is also nothing like lisp
[01:29:41 CET] <furq> which also has little to do with lisp, but it has an association
[01:29:46 CET] <thebombzen_> Java is an objected oriented C-syntax language
[01:29:56 CET] <thebombzen_> not sure how Lisp is relevant there
[01:30:08 CET] <thebombzen_> or rather. it's got a C-like syntax.
[01:30:08 CET] <furq> it's relevant to js because js was almost lisp
[01:30:16 CET] <furq> i have no idea what the association with java is
[01:30:20 CET] <thebombzen_> but I'm not sure how Java has anything do with lisp
[01:30:24 CET] <furq> either with lisp or javascript
[01:30:32 CET] <thebombzen_> Javascript was named after Java
[01:30:36 CET] <thebombzen_> which was a huge mistake
[01:30:46 CET] <MoonOwl> JavaScript to me is like a Scheme imitation that aspired to be like some relatively esoteric programming language and found itself looing like C to the Mr Magoo and Stevie Wonder
[01:30:58 CET] <thebombzen_> JavaScript is an extension of ECMA
[01:31:12 CET] <thebombzen_> I dislike ECMA
[01:31:14 CET] <furq> brendan eich got hired to embed scheme into netscape
[01:31:25 CET] <thebombzen_> to be honest one of the reasons I like Java is that I hate weak typing
[01:31:31 CET] <furq> but then sun got involved and decided that it should be a language with c-family syntax
[01:31:37 CET] <furq> so eich hacked some bullshit together in a couple of weeks
[01:31:50 CET] <furq> and now, 20 years later, we get to reap the benefits of good planning
[01:32:02 CET] <thebombzen_> and Java is a strongly-typed object-oriented language
[01:32:08 CET] <thebombzen_> of which there are extremely few
[01:32:35 CET] <c_14> I mean, I like strong typing as well but I'd much rather write lisp than Java.
[01:32:49 CET] <c_14> The Java syntax is so excessive
[01:32:59 CET] <thebombzen_> Not really. depends on what you're trying to do
[01:33:02 CET] <MoonOwl> Where I took the quote https://news.ycombinator.com/item?id=2323963
[01:33:13 CET] <thebombzen_> If you're trying to write hello world? Yea it takes a lot of lines. Because it's not a scripting language.
[01:33:20 CET] <furq> don't forget the jvm
[01:33:28 CET] <thebombzen_> If you're trying to do something /really simple/ in Java then you're using the wrong tool.
[01:33:50 CET] <MoonOwl> Vala seems nicer than Java to me
[01:33:50 CET] <thebombzen_> so it's a bit silly to say that the syntax is so excessive
[01:34:06 CET] <MoonOwl> Java is not excessive
[01:34:10 CET] <thebombzen_> also I happen to like the fact that Java tends to have keywords rather than nonalphanumeric symbols
[01:34:24 CET] <furq> you'd love lua then
[01:34:24 CET] <thebombzen_> it makes for more characters typed but its' easier to type and it's easier to read
[01:34:54 CET] <MoonOwl> Java just happens to be a language for everyone
[01:35:01 CET] <llamapixel> lua is horrible spaghetti, had to manage some smart device games for McDonalds with that in Corona.
[01:35:12 CET] <thebombzen_> although a big thing about Java is that it's got a lof keywords but it doesn't give up grouping symbols
[01:35:14 CET] <thebombzen_> that's a big deal
[01:35:18 CET] <MoonOwl> Where each individual has to tolerate everyone's preferences
[01:35:19 CET] <DHE> I actually like lua. a few ambiguous syntax issues, but mostly okay
[01:35:20 CET] <furq> lua does not seem like the weak link in that scenario
[01:35:37 CET] <furq> ambiguous syntax?
[01:35:38 CET] <thebombzen_> because people have a bad habit of making langauges with keywords and forgetting that grouping symbols like () [] and {} are still extremely nice
[01:35:53 CET] <DHE> furq: with optional semicolons, it's possible to have ambiguous syntax when omitting them
[01:35:58 CET] <thebombzen_> what I mean for example is "extends" versus "::"
[01:36:03 CET] <furq> you never actually run into that though
[01:36:14 CET] <MoonOwl> A Go and C++ hybrid would be nice
[01:36:17 CET] <thebombzen_> lol you guys would love perl
[01:36:25 CET] <thebombzen_> Perl before Perl6 is parsed in realtime
[01:36:34 CET] <MoonOwl> Perl is not human readable
[01:36:35 CET] <thebombzen_> in some rare cases it can't be parsed
[01:36:35 CET] <furq> it's not doing asi like js where you have to remember all the bullshit asi rules
[01:36:45 CET] <thebombzen_> asi?
[01:36:54 CET] <furq> that only happens in one place in lua and it's if you end a line with ) and start the next one with (, which you never do in practice
[01:36:54 CET] <thebombzen_> automatic semicolon insertion?
[01:36:57 CET] <furq> yeah
[01:37:03 CET] <thebombzen_> oh lol fuck that
[01:37:10 CET] <thebombzen_> it should just give you a compiletime error
[01:37:21 CET] <thebombzen_> asi sounds like it's a kind of thing to reward incompetent programmers who don't care enough
[01:37:22 CET] <furq> if you mean lua, it does
[01:37:36 CET] <thebombzen_> like if someone wants a garage website
[01:37:39 CET] <furq> oh nvm you mean not terminating a statement with ; in js
[01:37:46 CET] <furq> i always just use the semicolons in js
[01:37:49 CET] <llamapixel> smells like measuring chat.
[01:37:52 CET] <thebombzen_> haha
[01:38:01 CET] <thebombzen_> I'm not sure why javascript inserts semicolons for you
[01:38:03 CET] <thebombzen_> I just
[01:38:09 CET] <furq> because it's a terrible mistake of a language
[01:38:12 CET] <thebombzen_> don't understand why they would allow you to be that lazy
[01:38:30 CET] <thebombzen_> furq: I like how if you want to convent a string to a number
[01:38:33 CET] <thebombzen_> you use the unary +
[01:38:37 CET] <furq> ;_;
[01:38:38 CET] <thebombzen_> +"5" === 5
[01:38:45 CET] <thebombzen_> yea
[01:38:52 CET] <furq> the worst thing about that line of code isn't what you just said
[01:38:53 CET] <furq> it's ===
[01:39:02 CET] <thebombzen_> that is what I just said
[01:39:13 CET] <thebombzen_> oh yea
[01:39:15 CET] <MoonOwl> JavaScript is a beautiful language waiting to be discovered... just like C++
[01:39:21 CET] <thebombzen_> the fact that they have === and ==
[01:39:28 CET] <furq> yeah exactly like C++
[01:39:33 CET] <furq> there is a good language in there somewhere
[01:39:40 CET] <c_14> Are you sure?
[01:39:40 CET] <furq> it's just surrounded by seven or eight garbage languages
[01:39:53 CET] <furq> and nobody quite agrees on which is the good subset
[01:39:53 CET] <thebombzen_> in Java they thought of that and the non-identity equals is just an instance method
[01:40:10 CET] <thebombzen_> which can (and should) be overridden as appropriate
[01:40:23 CET] <furq> i generally end up writing js as if it was lua
[01:40:32 CET] <thebombzen_> the most annoying thing about js
[01:40:34 CET] <MoonOwl> Prototype-based OOP vs class-based OOP... what do you prefer
[01:40:37 CET] <furq> and it's tolerable, even with the fucked-up type system
[01:40:46 CET] <thebombzen_> class-based is more readable
[01:40:51 CET] <thebombzen_> more maintainable
[01:40:55 CET] <thebombzen_> and much stricter
[01:41:08 CET] <thebombzen_> it's far easier to mash together a quick script in a prototype OOP language
[01:41:19 CET] <thebombzen_> but it's much easier to maintain a codebase in a class-based OOP language
[01:41:35 CET] <furq> composition is better than inheritance
[01:41:41 CET] <thebombzen_> composition?
[01:41:56 CET] <thebombzen_> what do you mean by composition
[01:42:08 CET] <furq> https://en.wikipedia.org/wiki/Composition_over_inheritance
[01:42:35 CET] <furq> usually expressed with interfaces, like in go
[01:42:50 CET] <thebombzen_> well
[01:42:59 CET] <thebombzen_> they're not mutually exclusive
[01:43:07 CET] <thebombzen_> you can have interfaces and inheritance
[01:43:36 CET] <MoonOwl> Interfaces can inherit each other
[01:43:44 CET] <furq> sounds awful
[01:43:50 CET] <thebombzen_> why is that awful
[01:43:51 CET] <MoonOwl> I know
[01:44:26 CET] <thebombzen_> what's wrong with interfaces having parent interfaces
[01:45:49 CET] <thebombzen_> I happen to like Java a lot which is why I use it for a lot of things
[01:45:53 CET] <phillipk> @furq, correct, -filter_complex_script works until I make the contents of the specified file sort of huge--around 3000 lines (but I suspect the limit depends on how long those 3000 lines are)
[01:45:58 CET] <thebombzen_> but it's not the best tool for everything
[01:46:15 CET] <thebombzen_> phillipk: why would you want a 3000 line filter_complex
[01:46:30 CET] <MoonOwl> Has anyone used OCaml?
[01:46:33 CET] <furq> different overlay for every frame
[01:46:35 CET] <thebombzen_> no
[01:46:39 CET] <furq> i've briefly used ocaml
[01:46:50 CET] <thebombzen_> furq: sounds like it's easier to extract pngs and do it in bash
[01:46:52 CET] <furq> it looks interesting but it has the D problem of having several stdlibs
[01:47:04 CET] <thebombzen_> I don't even know what OCaml is
[01:47:10 CET] <furq> and half the docs/libs/etc are for one and half are for the other
[01:47:28 CET] <thebombzen_> the thing about Java is that people have a hard time getting used to it
[01:47:33 CET] <furq> i think there's more than two ocaml stdlibs but only two are widely-used afaik
[01:47:34 CET] <thebombzen_> so most people either love it or hate it
[01:47:46 CET] <thebombzen_> stuff like the fact that all linking is dynamic
[01:47:47 CET] <furq> but yeah i've been meaning to learn some standard ML dialect properly
[01:47:49 CET] <thebombzen_> people find that very weird
[01:47:51 CET] <furq> i just don't have a project to use it for
[01:48:01 CET] <furq> it seems like a neat language though
[01:48:04 CET] <thebombzen_> furq: if you need a markup language use LaTeX
[01:48:08 CET] <thebombzen_> best markup language
[01:48:10 CET] <furq> not markup
[01:48:17 CET] <thebombzen_> ML = markup language?
[01:48:17 CET] <furq> https://en.wikipedia.org/wiki/Standard_ML
[01:48:25 CET] <furq> what ocaml is based on
[01:48:49 CET] <thebombzen_> oh it's a functional langauge
[01:49:01 CET] <thebombzen_> I use Mathematica for that but it's proprietary
[01:49:10 CET] <thebombzen_> my uni pays for it tho
[01:49:18 CET] <furq> i guess there's also F# if you're a .net guy
[01:49:22 CET] <thebombzen_> eww
[01:49:23 CET] <furq> that seems very similar to ocaml
[01:49:42 CET] <thebombzen_> .net is like
[01:49:55 CET] <thebombzen_> what happens when you could write something but you decide to make it windows only for no reason
[01:49:57 CET] <furq> there's also that other language that starts with an H whose name we can't say or someone who's really enthusiastic about it will come and ruin the channel
[01:50:07 CET] <thebombzen_> like C# is just fake java for windows-only
[01:50:47 CET] <c_14> furq: well, that's just mean
[01:50:55 CET] <thebombzen_> something that seems weird to me
[01:50:58 CET] <thebombzen_> is how huge GHC si
[01:51:01 CET] <thebombzen_> is*
[01:51:07 CET] <thebombzen_> it's like a 2 GB package
[01:51:25 CET] <furq> i tried it once and didn't even write a line of code
[01:51:34 CET] <furq> cabal shat the bed when i tried to install the library i wanted to use
[01:51:45 CET] <furq> i'm told that hasn't got any better in the past few years
[01:51:46 CET] <thebombzen_> sorry it's 1146 MiB
[01:51:50 CET] <thebombzen_> GHC is weird
[01:52:14 CET] <thebombzen_> cause for some reason the people who wrote Haskell didn't realize that maybe there's better things to do than include it four times
[01:52:23 CET] <furq> you said it
[01:52:25 CET] <furq> you said the H word
[01:52:28 CET] <thebombzen_> you'd think the authors of Haskell would have thought of a workaroudn to including it four times
[01:52:29 CET] <furq> you know they all have it on highlight
[01:52:45 CET] <c_14> The worst part about haskell isn't the language, it's the ecosystem.
[01:52:48 CET] <furq> now they're all coming to tell us about monads
[01:52:49 CET] <furq> or monoids
[01:52:53 CET] <furq> or whatever the fuck it is this week
[01:53:02 CET] <thebombzen_> A monad is like a burrito that takes in a cat and spits out another burrito
[01:53:09 CET] <furq> wow! it's so clear now!
[01:53:16 CET] <thebombzen_> that's the best description I"ve ever heard of a monad
[01:53:23 CET] <furq> every other language i've ever used is now worthless
[01:53:24 CET] <thebombzen_> I hope that clears it up
[01:53:43 CET] <furq> i shall shave my head and embark on a pilgrimage to the church of never shutting the fuck up about haskell on irc
[01:54:05 CET] <furq> only my head, though. not my beard
[01:54:50 CET] <furq> i'm debating picking this ocaml book back up now
[01:55:44 CET] <thebombzen_> so what a Monad actually is, it's a functor from a category to itself, coupled with two natural transformations
[01:56:01 CET] <furq> oh no
[01:56:05 CET] <furq> the killer was inside the house all along
[01:56:26 CET] <thebombzen_> whereas a natural transformation in this context is a morphism in the category of functors between two other categories
[01:56:31 CET] <thebombzen_> I have no idea what it means in Haskell
[01:56:35 CET] <thebombzen_> I'm just a mathematician
[01:57:02 CET] <thebombzen_> I'm not just a mathematician. I'm a weird mathematician who likes mathematical logic
[02:03:37 CET] <phillipk> @furq and @thebombzen_ are you thinking create ~3000 png files and turn them into single alpha channel video that I then overlay?
[02:03:55 CET] <furq> i didn't suggest that, but it would probably work
[02:04:14 CET] <phillipk> right I think thebombzen_ did
[02:04:25 CET] <phillipk> or something that sounded like that to me.
[02:04:32 CET] <thebombzen_> by the way it doesn't ping me if you preceed my name with an @
[02:04:42 CET] <phillipk> oh--thanks
[02:05:17 CET] <thebombzen_> although if you're trying to do 3000 different overlays for 3000 different frames
[02:05:29 CET] <thebombzen_> I do not see any reason not to do it separately
[02:06:02 CET] <furq> what i will say is that you'll definitely want to use -v error if you do that
[02:06:08 CET] <thebombzen_> ha
[02:06:17 CET] <phillipk> I just had visions that my filter complex could access a subroutine right inside the dynamic expression
[02:06:38 CET] <thebombzen_> I mean it's possible you could do it with one filter_complex
[02:06:46 CET] <thebombzen_> but it seems like you really don't want to
[02:06:54 CET] <furq> he tried that, it didn't work
[02:06:59 CET] <thebombzen_> especially since if you do it separatelly you can make it faster with GNU Parallel
[02:07:01 CET] <phillipk> I'm fine changing tact--already did a million times anyway
[02:07:02 CET] <furq> ffmpeg bailed out on loading the file
[02:07:10 CET] <furq> also use xargs, not parallel
[02:07:18 CET] <thebombzen_> xargs doesn't parallelize afaik
[02:07:20 CET] <thebombzen_> parallel does
[02:07:21 CET] <furq> it does
[02:07:28 CET] <furq> and you already have xargs
[02:07:37 CET] <thebombzen_> true but xargs also doesn't support find-like syntax
[02:07:38 CET] <phillipk> what does xargs apply to?
[02:07:44 CET] <thebombzen_> like {.} and {/}
[02:07:49 CET] <thebombzen_> parallel does which is nice
[02:08:10 CET] <thebombzen_> also how do you even do that with xargs
[02:08:17 CET] <phillipk> yeah, I need to learn all that syntax--but there's no syntax to "go get line 200 of my 20,000 line file"?
[02:08:38 CET] <thebombzen_> xargs just takes several tokens on stdin and builds one command out of them
[02:08:51 CET] <thebombzen_> parallel actually executes the one command per input token
[02:09:13 CET] <phillipk> I wonder if that can help increase my 2000 limit
[02:09:36 CET] <phillipk> because, my filter_complex_script thing does work...
[02:10:16 CET] <furq> i can do everything with xargs except increment the output filename
[02:10:25 CET] <furq> which there is probably some way of doing but i've never needed it before
[02:10:44 CET] <thebombzen_> furq: http://hastebin.com/uzidafafav.cpp
[02:10:46 CET] <thebombzen_> they don't do the same thing
[02:10:56 CET] <furq> printf "overlay=10,20\0overlay=30,40" | xargs -0 -n1 -P2 -I{} ffmpeg -i foo -i bar -filter_complex "{}" ??.png
[02:11:14 CET] <furq> thebombzen_: -P
[02:11:54 CET] <furq> also obviously you wouldn't actually use printf there, you'd cat a text file
[02:12:32 CET] <thebombzen_> well clearly I don't know xargs syntax
[02:12:52 CET] <thebombzen_> but I'm not sure how you can use xargs to reproduce the behavior of parallel in the above paste
[02:12:55 CET] <furq> cat overlays | xargs -d'\n' -n1 -P2 -I{} ffmpeg -i foo -i bar -filter_complex "{}" ??.png
[02:12:58 CET] <furq> something like that
[02:13:04 CET] <furq> idk how you'd increment the output filename though
[02:13:22 CET] <thebombzen_> oh that? I'd use bash haha
[02:13:52 CET] <phillipk> I think I'll try making 1000s of pngs and then assemble into a single video
[02:13:55 CET] <thebombzen_> cat overlays | while read line; do ...; i=$((i+1)); done
[02:14:23 CET] <furq> thebombzen_: http://vpaste.net/rh1np
[02:14:39 CET] <furq> -d is gnu only, hence gxargs (this is on a bsd box)
[02:15:32 CET] <furq> maybe parallel is better tbh, i tend to try to make my scripts work with a normal base system
[02:16:02 CET] <furq> i tried it a couple of times and couldn't get my head round it
[02:16:20 CET] <furq> but yeah most people don't know that xargs will run jobs in parallel
[02:16:37 CET] <thebombzen_> parallel is nice even if you're not trying to parallelzie
[02:16:50 CET] <thebombzen_> suppose I have a whole bunch of .wavs and I want to convert them to .flacs
[02:17:15 CET] <furq> what's wrong with find -exec
[02:17:17 CET] <thebombzen_> I can do find -name '*.wav' | parallel ffmpeg -i {} {.}.flac
[02:17:36 CET] <thebombzen_> -exec doesn't understand {.}.flac
[02:17:40 CET] <furq> i guess
[02:18:00 CET] <thebombzen_> you could use -exec sh -c "" and basename
[02:18:01 CET] <furq> i would normally just use `for f in **/*.wav` there
[02:18:03 CET] <thebombzen_> or you could not
[02:18:10 CET] <thebombzen_> same thing tbh
[02:18:28 CET] <thebombzen_> the above command I wrote also keeps the directory structure
[02:18:31 CET] <thebombzen_> which is really nice.
[02:18:46 CET] <thebombzen_> find is also very powerful so like if you wanted to say
[02:18:51 CET] <furq> is {.} like ${f%.*}
[02:19:13 CET] <thebombzen_> how does ${f%.*} interact with filenames with more than one period
[02:19:52 CET] <thebombzen_> ffmpeg-3.1.2.tar.gz might be considered a 1.2.tar.gz file extension
[02:19:58 CET] <thebombzen_> you have to be careful with that
[02:20:04 CET] <furq> http://vpaste.net/pb0YG
[02:20:25 CET] <furq> % is shortest, %% is longest
[02:21:22 CET] <furq> you can also use ${f%.wav} if you know the extension
[02:23:53 CET] <thebombzen_> huh
[02:23:55 CET] <thebombzen_> I did'nt know that
[02:23:59 CET] <thebombzen_> but that still doesn't work with exec
[02:24:19 CET] <thebombzen_> the benefit of using parallel over -exec is that ffmpeg is singlethreaded when you're converting pcm to flac usually
[02:24:26 CET] <thebombzen_> and I don't know if you can change that
[02:24:50 CET] <thebombzen_> parallel is a tool that's far more powerful but also not as simple or easy to use than find exec
[02:25:04 CET] <furq> well xargs will do that except for stripping the extension
[02:26:40 CET] <thebombzen_> unfortunately
[02:26:59 CET] <thebombzen_> if you write to /dev/null ffmpeg and many other programs say "do you want to overwrite"
[02:27:02 CET] <thebombzen_> which is very annoying
[02:27:23 CET] <furq> yeah it's weird that you have to use -y for that
[02:27:29 CET] <thebombzen_> well it exists
[02:27:36 CET] <furq> although if you're using -f null you can just write to stdout
[02:27:48 CET] <thebombzen_> yea true
[02:28:16 CET] <thebombzen_> although it's also nice because you can test a muxer with like -f matroska -y /dev/null
[02:28:27 CET] <thebombzen_> -f null disables muxing essentially
[02:29:00 CET] <thebombzen_> tbh ffmpeg should check and if you're writing to /dev/null and /dev/null is a character special, then it should not ask.
[02:42:42 CET] <thebombzen_> huh that's weird
[02:42:50 CET] <thebombzen_> not sure why ffmpeg distributes its source tarballs as bz2
[02:43:00 CET] <thebombzen_> afaik there's essentially no reason to use bz2
[02:59:23 CET] <furq> yeah that is weird
[02:59:35 CET] <furq> is there anyone left who can't use xz
[02:59:52 CET] <c_14> It's "always" been bz2 and changing it is effort
[03:02:43 CET] <c_14> Does ancient CentOS support xz?
[04:03:09 CET] <thebombzen> furq: anyone who can't use xz should be using gzip and bz2
[04:03:15 CET] <thebombzen> so it doesn't matter
[04:28:40 CET] <thebombzen> wow I don't think I've encoded a video so slowly
[04:29:10 CET] <thebombzen> I just transcoded a 0.88 second video at 0.1% speed and it took more than 10 minutes
[04:29:15 CET] <thebombzen> to encode a video at <1 second
[04:29:36 CET] <furq> NICE
[04:29:38 CET] <furq> er
[04:29:39 CET] <furq> nice
[04:29:45 CET] <thebombzen> I can see why people don't like -vf minterpolate:mi=esa
[04:29:53 CET] <thebombzen> "exhaustive search algorithm"
[04:30:07 CET] <furq> yeah esa is what x264 uses in -preset placebo
[04:30:52 CET] <furq> you should combine that with nnedi
[04:31:53 CET] <thebombzen> nnedi?
[04:32:21 CET] <furq> the extremely slow deinterlacer
[04:32:30 CET] <thebombzen> but it's not interlaced
[04:32:38 CET] <thebombzen> so should I artificially interlace it with tinterlace
[04:32:45 CET] <furq> i don't think it matters
[04:32:56 CET] <thebombzen> what happens if you try to deinterlace a progressive video
[04:33:37 CET] <thebombzen> but you're right that I don't think combining these will do anything.
[04:34:11 CET] <furq> i don't actually know
[04:34:12 CET] <thebombzen> cause it's a pipeline. if I feed it to nnedi and then to minterpolate and then into libx264 -preset placebo
[04:34:17 CET] <thebombzen> it'll just use 3 threads instead of 1
[04:34:24 CET] <thebombzen> and there'll just be a bottleneck at the sloweset
[04:34:47 CET] <furq> shouldn't you be using libvpx if you want it to be extremely slow
[04:35:01 CET] <furq> also isn't filterchain processing singlethreaded
[04:54:35 CET] <thebombzen> idk
[04:54:50 CET] <thebombzen> I was considering actually trying that to see how slowly it would encode
[04:54:57 CET] <thebombzen> but I also don't want to wait 20 minutes
[04:55:00 CET] <thebombzen> eating cpu time
[07:00:46 CET] <damdai> x265 2.1:[Windows][GCC 5.4.0][64 bit] 8bit
[07:00:46 CET] <damdai> Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=3 / subme=3 / merange=57 / rect / no-amp / max-merge=3 / temporal-mvp / no-early-skip / rskip / rdpenalty=0 / no-tskip / no-tskip-fast / no-strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0
[07:00:46 CET] <damdai> / keyint=300 / min-keyint=30 / scenecut=40 / rc-lookahead=25 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=4 / limit-refs=3 / limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=4 / psy-rd=2.00 / rdoq-level=2 / psy-rdoq=1.00 / log2-max-poc-lsb=8 / no-rd-refine / signhide / deblock=0:0 / sao / no-sao-non-deblock /
[07:00:46 CET] <damdai> b-pyramid / cutree / no-intra-refresh / rc=crf / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ipratio=1.40 / pbratio=1.30
[07:00:46 CET] <damdai> Default : Yes
[07:01:19 CET] <damdai> x265 2.1:[Windows][GCC 5.4.0][64 bit] 8bit
[07:01:19 CET] <damdai> Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=3 / subme=3 / merange=57 / rect / no-amp / max-merge=3 / temporal-mvp / no-early-skip / rskip / rdpenalty=0 / no-tskip / no-tskip-fast / no-strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0
[07:01:19 CET] <damdai> / keyint=300 / min-keyint=30 / scenecut=40 / rc-lookahead=25 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=2 / ref=4 / limit-refs=3 / limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=4 / psy-rd=2.00 / rdoq-level=2 / psy-rdoq=1.00 / log2-max-poc-lsb=8 / no-rd-refine / signhide / deblock=0:0 / sao / no-sao-non-deblock /
[07:01:19 CET] <damdai> b-pyramid / cutree / no-intra-refresh / rc=crf / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ipratio=1.40 / pbratio=1.30
[07:01:19 CET] <damdai> Default : Yes
[08:38:01 CET] <TMan459> I salvaged a bunch of videos off a dying drive. Some of them are corrupt. I'd like to run a command to read them all and determine which one's are corrupt. Any thoughts?
[08:58:11 CET] <Samuel235> Morning all!
[09:01:54 CET] <Samuel235> Would anyone be able to give me a push in the right directiong, I'm attempting to stream the output of Raspivid on a Raspberry Pi to a h264 stream please? I have FFMPEG installed and compiled myself, took about 4 hours to do so. Its not the pre-packaged one in Raspbian. I'm getting a few little errors with my server.conf file and some issues with opening the stream file.
[09:06:46 CET] <JEEB> just use ffmpeg with nginx-rtmp or something, ffserver is basically black magic. also the first gen raspbi is not capable of doing anything in software, so make sure your chain is 100% hw (video and ausio)
[09:09:19 CET] <Samuel235> Right okay, so you would advise me to take the nginx-rtmp route. Would you advise me against trying to use something like gStreamer or even https://github.com/mpromonet/v4l2rtspserver then? To be honest, i wanted to use FFMPEG just because of the support around it, the community looks pretty large compared to the other options. I have running the first gen Pi, but i have a Pi 3 that i was going
[09:09:19 CET] <Samuel235> to use for the final product.
[09:13:36 CET] <JEEB> nginx-rtmp means that you have nginx with that module somewhere and then you push rtmp into it with normal ffmpeg cli. then nginx-rtmp will serve hls/dash out of it
[09:14:27 CET] <Samuel235> Right ok
[09:14:42 CET] <Samuel235> I have found this, do you have any idea of crtmpserver?
[09:14:46 CET] <Samuel235> http://www.linux-projects.org/uv4l/tutorials/rtmp-server/
[09:15:31 CET] <JEEB> no
[09:16:28 CET] <Samuel235> Okay, and one last question if you don't mind: If i were to use the linux section of "https://trac.ffmpeg.org/wiki/Capture/Webcam" would i still be using the FFserver?
[09:17:00 CET] <Samuel235> Or is that along the lines of what i would need to do to push the data into the nginx-rtmp module to then stream?
[09:58:58 CET] <jubalh> using the ffmpeg activation_bytes thing i was finally able to backup my audible audiobooks and also play them on offline linux. thats very nice since i payed for them i also want to use them not only online. i wondered if ffmpeg can also decrypt the amazon video files?
[10:11:23 CET] <Samuel235> JEEB - Does this look like the process you would advise for nginx-rtmp?
[10:11:24 CET] <Samuel235> https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-r…
[10:18:06 CET] <Samuel235> Or even https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04 - Would this still work on a debian raspberry pi, or would you not touch it since its for Ubuntu 14-04, different build and config processes maybe or?
[10:59:22 CET] <Samuel235> Does anyone have any experience with Nginx that could help me with a little error i get when trying to install?
[11:02:13 CET] <Samuel235> Would it be best to install the generic nginx package and then install the RTSP module for it or would that be too much for what is needed for a ffmpeg/nginx stream config?
[14:00:08 CET] <Samuel235> Is there anyone running a nginx server with RTMP module?
[14:14:19 CET] <Samuel235> [tcp @ 0x27acf60] Connection to tcp://localhost:1935 failed (Connection refused), trying next address
[14:15:25 CET] <Samuel235> I don't understand why this is giving me an error, i thought the server IP should be that of localhost as ffmpeg and the nginx server are on the same machine.
[14:16:23 CET] <kerio> are you sure that's not rtmp?
[14:16:33 CET] <kerio> tcp:// is a raw stream
[14:17:07 CET] <Samuel235> I'm running ffmpeg -f video4linux2 -i /dev/video0 -c:v libx264 -an -f flv rtmp://localhost/myapp/mystream
[14:17:27 CET] <Samuel235> and its throwing that error at me, along with codec issues, but one error at a time
[14:17:41 CET] <Samuel235> but i need to sort one error at a time*
[14:41:25 CET] <Kadigan_KSB> Hey. Can I have ffmpeg/ffprobe detect whether the content is really Interlaced, or Progressive Segmented Frame?
[14:44:27 CET] <relaxed> Kadigan_KSB: look at the idet filter
[14:48:09 CET] <Kadigan_KSB> Ah, okay. So it CAN detect it. Cool.
[14:48:25 CET] <Kadigan_KSB> Now, how do I get rid of the "Truncating likely oversized PPS" spam?
[14:48:27 CET] <fling> How do I capture two webcams keeping streams in sync?
[14:52:14 CET] <relaxed> fling: are you using one ffmpeg command to do it?
[14:52:58 CET] <fling> relaxed: I tried to use one command and also tried piping with three ffmpegs
[14:56:01 CET] <fling> relaxed: http://dpaste.com/08ETS1T
[14:59:03 CET] <relaxed> do they begin at different times or do they drift?
[14:59:33 CET] <fling> With one command the output is not playable because it is getting corrupted because ffmpeg is single threaded
[14:59:48 CET] <fling> With pipes it could not be in sync because ffmpegs are starting with a delay
[15:00:15 CET] <fling> and yes atleast audio should drift
[15:01:55 CET] <relaxed> did you try transoding the video streams with one instance of ffmpeg?
[15:02:42 CET] <relaxed> using pipes I gues you could play with -itsoffset to sync up when they start
[15:08:35 CET] <thebombzen_> fling: what do you want to do with the two streams?
[15:08:57 CET] <thebombzen_> if you're doing something like hstack or vstack then you can get ffmpeg to respect the timestamps
[15:11:44 CET] <thebombzen_> fling: in particular, the overlay filter respects the PTS (timestamps) of the input video
[15:12:53 CET] <thebombzen_> this can work for or against you, depending on how important the timestamps are. in your case it means that you might want to sync them up with the overlay filter.
[15:13:52 CET] <thebombzen_> that will allow ffmpeg to keep the streams in line
[15:37:39 CET] <adgtl> Hi guys
[15:37:58 CET] <adgtl> I have an mp4 of 15 minutes.. but first 10 minutes there is silence
[15:38:23 CET] <adgtl> How can I trim mp4 to just 5 minutes, where person starts talking?
[15:38:34 CET] <adgtl> I need ffmpeg command for that?
[15:38:42 CET] <adgtl> Is this simply possible?
[15:40:48 CET] <relaxed> adgtl: use -ss to seek to the desired start position
[15:41:06 CET] <adgtl> relaxed how will know what's desired start position?
[15:41:18 CET] <adgtl> I don't know when the person starts talking
[15:41:18 CET] <relaxed> https://trac.ffmpeg.org/wiki/Seeking
[15:41:26 CET] <adgtl> I am looking for programmatic solution
[15:41:32 CET] <adgtl> where I don't know what time to seek?
[15:42:41 CET] <relaxed> there's a filter called silencedetect
[15:44:26 CET] <adgtl> relaxed there is silenceremove .. but does this work with mp4 or webm?
[15:46:53 CET] <durandal_1707> adgtl: it works for anyou audio but there is no way to drop video too
[15:47:04 CET] <adgtl> durandal_1707 :(
[15:47:12 CET] <adgtl> anyone here has some recommendation?
[15:47:30 CET] <adgtl> I want to basically cut video parts where audio was silent for certain decibels
[15:48:14 CET] <durandal_1707> you could use silencedetect to detect silence and in another trim it with trim filters
[15:49:39 CET] <relaxed> you can do just about anything when scripting with ffmpeg
[15:51:34 CET] <adgtl> durandal_1707 hmm
[15:51:47 CET] <adgtl> durandal_1707 any example that you know of? I am googling for it anyway
[15:54:21 CET] <relaxed> learn how the filters you need work, write a script, ???, profit
[15:55:25 CET] <__jack__> that's my boy :3
[15:58:41 CET] <durandal_1707> adgtl: it's not hard to write scripts in any language you want
[15:58:50 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#silenceremove
[15:58:54 CET] <furq> that looks like what you want
[15:59:29 CET] <furq> oh nvm, video
[15:59:31 CET] <relaxed> furq: what about the video stream?
[15:59:40 CET] <furq> yeah, silencedetect is your best bet then
[16:00:41 CET] <fling> thebombzen_: I don't know what hstack and vstack are
[16:01:00 CET] <furq> hstack stacks two videos horizontally
[16:01:04 CET] <furq> you can probably guess what vstack does
[16:01:20 CET] <furq> s/two/multiple/
[16:01:23 CET] <fling> thebombzen_: I don't want to stack the streams.
[16:01:42 CET] <fling> furq: but I want this feature in mpv :P
[16:01:49 CET] <thebombzen> fling: what do you mean by "I want to align them"
[16:02:04 CET] <furq> i don't think mpv supports complex filterchains
[16:02:05 CET] <fling> furq: or better separate/muliple windows/tiles per video stream
[16:02:41 CET] <fling> thebombzen: >> How do I capture two webcams keeping streams in sync?
[16:02:41 CET] <thebombzen> furq: it does support weird stream notation but it's only the stuff in -vf.
[16:02:55 CET] <thebombzen> fling: what does it mean to keep them in sync if you're not displaying them next to each other.
[16:03:01 CET] <thebombzen> what are you doing with the two outputs
[16:03:32 CET] <fling> thebombzen: there are no two output. I have a single output http://dpaste.com/08ETS1T
[16:04:05 CET] <relaxed> he means when you watch them
[16:04:34 CET] <thebombzen> if you use -vsync 0, then it should pass all the timestamps from the v4l2 to the muxer.
[16:04:57 CET] <thebombzen> that should preserve the timestamps in the resulting file which you can then use to sync them up
[16:05:04 CET] <fling> I mean this example does not work ^ but I _will_ have a playable and not corrupted single output piping multiple ffmpegs to a single muxing ffmpeg. But this way I will loose not only audio but also video sync
[16:05:57 CET] <fling> >> which you can then use to sync them up
[16:05:59 CET] <thebombzen> well the timestamps are the most important thing
[16:06:00 CET] <fling> How? :P
[16:06:13 CET] <thebombzen> -copyts before -i preserves input timestamps
[16:06:28 CET] <thebombzen> and -vsync 0 prevents them from being recreated by the encoder/muxer
[16:06:47 CET] <thebombzen> so as long as you always use a timestamp-friendly container format like matrsoka, all the infromation will be there.
[16:06:59 CET] <thebombzen> that's how you can preserve the data that would be used to sync them up
[16:07:10 CET] <thebombzen> the issue is that it's all meaningless until you go to watch them both at the same time
[16:07:59 CET] <fling> thebombzen: are the timestamps going to be taken from the v4l devices? This should break sync with everything because each device is using separate clock. But if the timestamps are local then everyng is going to be fine.
[16:08:19 CET] <thebombzen> afaik they will be
[16:08:32 CET] <thebombzen> or at least. there's some option to make it that way
[16:08:51 CET] <klevin> hello
[16:08:58 CET] <klevin> anybody?
[16:09:14 CET] <fling> ¿poquP
[16:10:11 CET] <thebombzen> fling: so I just looked at it. some v4l drivers use the wall clock (UTC) and some use "uptime" which is a timestamp based on when the computer booted. but it should be consistent between the iterations as long as you don't reboot
[16:10:21 CET] <klevin> when i use this option "-r 1/90 images/tematv%04d.jpg" in the ffmpeg command i do not see any frame log in the linux terminal console and i see a lot of drop frames
[16:10:40 CET] <thebombzen> well of course you're dropping frames
[16:10:48 CET] <kerio> timestamp from cameras is a crapshoot most of the times
[16:10:48 CET] <thebombzen> you set the framerate to 1 frame every 90 seconds
[16:11:02 CET] <kerio> LOL
[16:11:09 CET] <kerio> he did, the absolute madman
[16:11:16 CET] <thebombzen> I think I know why
[16:11:27 CET] <thebombzen> it's a way to extract a tumbnail every 90 seconds
[16:11:38 CET] <relaxed> klevin: paste your whole command
[16:11:42 CET] <klevin> yes to take a screenshot every 90 seconds
[16:11:50 CET] <klevin> but is normal the frames drop?
[16:11:53 CET] <thebombzen> well yes
[16:11:55 CET] <furq> yes
[16:11:59 CET] <thebombzen> you're dropping 89 out of every 90 frames.
[16:12:03 CET] <thebombzen> or rather
[16:12:09 CET] <thebombzen> all but 1 frame every 90 seconds
[16:12:17 CET] <klevin> the system i sstreaming as well from one source to another
[16:12:18 CET] <thebombzen> so you should drop the vast majority of your frames
[16:12:35 CET] <klevin> i just need to take 1 out of every 90 frames and store it like img
[16:12:45 CET] <furq> well then congratulations
[16:12:45 CET] <klevin> the rest should proceed normaly\
[16:12:48 CET] <fling> thebombzen: ok so fist step is to add all these timestamp flags to capturing ffmpegs piping this to the single muxing ffmpeg. Should I somehow preserve timestamps in the pipes for aligning in muxing ffmpeg?
[16:13:02 CET] <thebombzen> as much as possible yes
[16:13:02 CET] <klevin> how?
[16:13:11 CET] <fling> will it also work for alsa?
[16:13:26 CET] <thebombzen> I don't know about alsa timestamps I'm afraid
[16:13:31 CET] <thebombzen> Sorry about that.
[16:13:37 CET] <fling> I was never able to sync multiple alsa inputs without special hardware.
[16:13:53 CET] <thebombzen> I've never been able to do that either without using something very low-level
[16:14:04 CET] <thebombzen> but I've also never had to so I generally gave up when I couldn't
[16:14:41 CET] <klevin> any open source script for monitoring the rtmp links?
[16:14:46 CET] <klevin> in node js?
[16:15:10 CET] <fling> klevin: ffprobe
[16:15:31 CET] <klevin> i am building one, but would be nice if the client can have the posibility to check every 90 sec the frame content
[16:15:48 CET] <klevin> ffprobe when detects black frames stop
[16:16:05 CET] <klevin> instead ffmpeg contionue display
[16:16:24 CET] <klevin> developering via linux terminal, so the node js will received live data
[16:16:38 CET] <fling> What is linux terminal?
[16:16:40 CET] <klevin> but now abkle to work with the images without droping
[16:16:49 CET] <klevin> kind of windows cmd
[16:16:49 CET] <fling> >> instead ffmpeg contionue display
[16:16:52 CET] <klevin> bu in linux
[16:16:56 CET] <fling> ^ what are you doing?
[16:17:09 CET] <klevin> if you have a rtmp linkj
[16:17:13 CET] <fling> Give us some command examples and their output
[16:17:22 CET] <klevin> you need to check all the time the signal
[16:18:38 CET] <klevin> ffmpeg -i blacknormalblack.mp4 -s 720x576 -y -strict -2 -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -x264opts keyint=5:min-keyint=10 -g 60 -minrate 2000k -maxrate 4000k -bufsize 9000k -preset ultrafast -vf blackframe=100:84 -f flv rtmp:link 2>&1
[16:18:59 CET] <klevin> this detect the black frame
[16:19:02 CET] <klevin> all the time is on
[16:19:22 CET] <klevin> now i need ti implement on the command as well the images screenshoot as well
[16:19:36 CET] <klevin> to check periodically the source content
[16:19:41 CET] <klevin> any idea?
[16:20:55 CET] <fling> klevin: do you want to save screenshots from blacknormalblack.mp4 the same time you are streaming to rtmp:link?
[16:21:13 CET] <klevin> yes
[16:21:14 CET] <fling> klevin: just add another jpeg output saving to files
[16:21:24 CET] <klevin> save img without stoping the isgnale
[16:21:25 CET] <fling> klevin: or you could save to the same jpeg file
[16:21:49 CET] <klevin> i tried but i have a log of drop
[16:22:02 CET] <klevin> -r 1/90 images/tematv%04d.jpg
[16:22:24 CET] <klevin> also some data (frames, size, speed ) have nor results if i insert this
[16:22:55 CET] <fling> You will drop frames anyway
[16:23:29 CET] <klevin> so teorically i will have to rtmp source, first output and second input
[16:23:56 CET] <klevin> the function will transmit from the first to second rtmp and every 90 sec will take a screeenshot
[16:24:05 CET] <fling> klevin: no you will have blacknormalblack.mp4 input and rtmp output and jpeg output
[16:24:35 CET] <klevin> the blacknormalblack.mp4 is just for testing purpose
[16:25:13 CET] <klevin> so fling what is your suggestion?
[16:27:49 CET] <fling> klevin: ffmpeg -i rtmp:input -c copy -f flv rtmp:output -f mjpeg -r 1/90 screenshot.jpg
[16:28:12 CET] <fling> klevin: this will copy the input stream to the output stream and save a screenshot to screenshot.jpg each 90 seconds
[16:28:59 CET] <klevin> so you suggesting to add a second command only for this purpose?
[16:29:13 CET] <fling> this is a single command
[16:29:19 CET] <fling> I'm not suggesting using two commands.
[16:30:01 CET] <klevin> -vf blackframe=100:84 need to added as well
[16:32:23 CET] <klevin> so the command transmit, check the source for blackframes, take screenshot every 90 sec
[16:32:34 CET] <klevin> ffmpeg -i blacknormalblack.mp4 -s 720x576 -y -strict -2 -acodec aac -ab 128k -ac 2 -ar 48000 -vcodec libx264 -x264opts keyint=5:min-keyint=10 -g 60 -minrate 2000k -maxrate 4000k -bufsize 9000k -preset ultrafast -vf blackframe=100:84 -f flv rtmp:link 2>&1
[16:35:15 CET] <fling> klevin: why are you reencoding video and audio?
[16:35:35 CET] <fling> klevin: ffmpeg -i rtmp:input -c copy -f flv rtmp:output -vf blackframe=100:84 -f mjpeg -r 1/90 screenshot.jpg
[16:37:31 CET] <klevin> ok checking this command
[16:41:26 CET] <teratorn> anyone have suggestions for how I might remux (-c copy) an rtmp source stream to hls on disk? I'm having issues and wondering if this is even possible or not
[16:41:48 CET] <klevin> where can i find the optionts for blackframe detect, kind of : pblack, pts
[16:42:33 CET] <DHE> teratorn: loosely speaking, ffmpeg -i $RTMPURL -c copy -f hls [hls-options] /path/to/output.m3u8
[16:42:40 CET] <teratorn> sorry, rtsp stream
[16:42:45 CET] <DHE> still...
[16:43:07 CET] <teratorn> DHE: yeah... that's basically what I'm doing. let me check some things and I'll come back with more details :)
[16:43:22 CET] <DHE> do note that HLS is rather strict in its list of supported codecs. some players will refuse anything except AAC and H264 because that's all the spec allows for. other players will be more tolerant
[16:43:39 CET] <teratorn> DHE: it's h264 and no audio so im in luck
[16:44:04 CET] <DHE> well, when in doubt..
[16:44:33 CET] <klevin> can someone explain what this logs means?
[16:44:34 CET] <klevin> frame:826pblack:100pts:7434000t:82.600000type:Plast_keyframe:800
[16:50:17 CET] <thebombzen> fling: it's -f image2 -c mjpeg
[16:50:30 CET] <thebombzen> image2 is the format for 'sequence of images'
[16:52:12 CET] <furq> you shouldn't need either
[16:52:20 CET] <thebombzen> correct, but I prefer to
[16:52:26 CET] <furq> just `-update 1 screenshot.jpg` should do it
[16:52:40 CET] <thebombzen> although fling had written -f mjpeg
[16:52:43 CET] <thebombzen> which afaik is wrong
[16:52:46 CET] <furq> yeah that's definitely wrong
[16:52:56 CET] <furq> that'll write an mjpeg stream
[16:53:02 CET] <thebombzen> yea that's what I thought
[16:53:15 CET] <thebombzen> but what is -update 1
[16:53:35 CET] <furq> image2 will bail out if the output filename isn't a pattern
[16:53:48 CET] <furq> -update 1 forces it to just keep overwriting the output file
[16:54:32 CET] <furq> it'll bail out of writing multiple frames, that is
[16:55:11 CET] <thebombzen> oh so update 1 will write the first frame, and then the second frame will just write it again, etc
[16:55:14 CET] <klevin> where can i find the description for this logs? frame:1281pblack:100pts:11529000t:128.100000type:Plast_keyframe:1250
[16:55:25 CET] <thebombzen> klevin where did you find that?
[16:55:34 CET] <thebombzen> post the full log where you found that on a paste site
[16:55:40 CET] <furq> i'm guessing that's the output of -vf blackframe
[16:55:57 CET] <thebombzen> it looks like it's missing some whitespace though
[16:56:09 CET] <klevin> i removed all the white sp<ce
[16:56:23 CET] <klevin> so i can extract data with regular expresion
[16:56:34 CET] <klevin> yes the blackframe output
[16:56:51 CET] <thebombzen> why would you keep the whitespace removed when you show it to a human
[16:56:59 CET] <furq> i mean
[16:57:11 CET] <furq> why would you remove the whitespace to write a regex
[16:57:16 CET] <thebombzen> also have you considered using tr instead: tr ' ' ','
[16:57:23 CET] <thebombzen> that'll change it to CSV
[16:57:45 CET] <klevin> i remove the whitespace, and than i extract specifich data with regual expresion
[16:57:49 CET] <klevin> to display in web
[16:58:08 CET] <klevin> another story
[16:58:11 CET] <thebombzen> no you don't
[16:58:21 CET] <klevin> why?
[16:58:23 CET] <thebombzen> regular expressions can work across whitespace
[16:58:25 CET] <adgtl> found this command to trim video for silence parts
[16:58:27 CET] <adgtl> ffmpeg -i final.mp4 -filter_complex "[0:a]silencedetect=n=-90dB:d=0.3[outa]" -map [outa] -f s16le -y /dev/null | F='-aq 70 -v warning' perl -ne 'INIT { $ss=0; $se=0; } if (/silence_start: (\S+)/) { $ss=$1; $ctr+=1; printf "ffmpeg -nostdin -i final.mp4 -ss %f -t %f $ENV{F} -y %03d.mkv\n", $se, ($ss-$se), $ctr; } if (/silence_end: (\S+)/) { $se=$1; } END { printf "ffmpeg -nostdin -i final.mp4 -ss %f $ENV{F} -y %03d.mp4\n", $se,
[16:58:27 CET] <adgtl> $ctr+1; }' | bash -x
[16:58:48 CET] <klevin> i found more simpler to work without spaces
[16:58:49 CET] <furq> i have no idea why that's using -filter_complex instead of -af but sure
[16:58:53 CET] <adgtl> but looks like it's not finding enough silence parts.. tweaked with decibels.. but did not help much
[16:58:57 CET] <thebombzen> furq: it's also using perl
[16:59:05 CET] <klevin> i am working with node js
[16:59:20 CET] <furq> well my brain shuts off when i see perl so i can't comment on that bit
[16:59:39 CET] <thebombzen> klevin: well javaScript regular expressions work with whitespace
[16:59:44 CET] <thebombzen> so I guess you're in luck
[17:00:10 CET] <klevin> the number didn't acording to the number the spaces between numbers changed and can not display properly
[17:00:14 CET] <klevin> trust me i tested this part
[17:00:19 CET] <klevin> an entire day
[17:00:40 CET] <furq> \s*
[17:01:43 CET] <fling> Try this ^
[17:01:50 CET] <thebombzen> for reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expre…
[17:02:04 CET] <thebombzen> \s is one of the 6 whitespace characters
[17:02:42 CET] <thebombzen> * is "zero or more of that"
[17:02:47 CET] <efface> I am trying to create a monitor for our internal video network and I am wondering if there is a way to make the encoder strict without failing? For instance, if I pulled the input UDP into VLC when there is a problem with the source, I will see macroblocking and other problems. I would like the x264/ac3 encoder to not conceal any problems with the source and continue encoding
[17:02:49 CET] <thebombzen> so \s* is zero or more whitespace characters
[17:03:30 CET] <JEEB> efface: that's more up to the decoder, and most formats really can't conceal issues too much
[17:03:50 CET] <JEEB> you can get a partial decoded picture with artifacts, or no picture at all until one can be decoded
[17:04:17 CET] <efface> I would like to have the artifacts included
[17:04:19 CET] <thebombzen> yea. if you see artifacts caused by a bad bitstream (which in turn is caused by packet loss) then that's a decoder issue
[17:04:30 CET] <thebombzen> well that's not the encoder's decision
[17:04:32 CET] <efface> ok
[17:04:44 CET] <thebombzen> the encoder takes raw video input and encodes it.
[17:05:01 CET] <JEEB> whether or not the whole chain breaks because of the input being considered utterly broken is a separate issue.
[17:05:04 CET] <thebombzen> if that raw video had ugly macroblocky things then so should the encoded video
[17:05:10 CET] <efface> Any recommendations for an HLS website plugin that does such? I am currently using clappr
[17:05:15 CET] <JEEB> and it depends on the decoder's error cases :P
[17:05:26 CET] <thebombzen> yea different decoders will beheave differently
[17:05:33 CET] <thebombzen> as will different players.
[17:05:47 CET] <thebombzen> some players will discard garbage and some players will attempt to display it
[17:06:02 CET] <efface> clappr seems to be fairly limited, especially since it's built on flashls
[17:06:23 CET] <thebombzen> fling: another idea might be to do the syncing separately
[17:06:52 CET] <thebombzen> using the system clock with "date +%s.%N" means you can do it manually
[17:06:56 CET] <thebombzen> but with a bit of work.
[17:07:28 CET] <thebombzen> %s is unix time in seconds and %N is fractional time in nanoseconds
[17:08:14 CET] <fling> thebombzen: this will only work if streams are running with the same speeds which is not the case for alsa afaik
[17:08:31 CET] <thebombzen> speeds?
[17:08:36 CET] <thebombzen> wouldn't it be 1.0x speed?
[17:08:51 CET] <fling> sound cards are using their own clocks
[17:09:18 CET] <fling> There will be drift anyway with multiple alsa inputs :<
[17:09:25 CET] <fling> I need to test this once again
[17:12:42 CET] <thebombzen> also
[17:12:55 CET] <thebombzen> have you looked at trying to sync stuff with -map
[17:13:05 CET] <fling> no
[17:13:26 CET] <fling> I thought map is only for specifying what is where
[17:13:35 CET] <thebombzen> I thought that too until 3 minutes ago
[17:13:41 CET] <thebombzen> when I saw something in the docs
[17:13:49 CET] Action: fling is opening the doc
[17:15:24 CET] <thebombzen> "With -map you can select from which stream the timestamps should be taken. You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one."
[17:15:35 CET] <thebombzen> https://ffmpeg.org/ffmpeg.html
[17:15:46 CET] <thebombzen> unfortunately, under -map's optiosn it says very little about how that works
[17:19:08 CET] <fling> thebombzen: so I hope this will allow me to sync multiple pipe inputs together.
[17:19:19 CET] <fling> Which container to use for piping? nut?
[17:20:17 CET] <thebombzen> I don't know. I think matroska or nut are fine
[17:20:25 CET] <thebombzen> I'd try both and see which one works better
[17:20:53 CET] <thebombzen> furq: so apparently libavfilter is multithreaded
[17:21:06 CET] <thebombzen> -filter_complex_threads nb_threads (global): "Defines how many threads are used to process a filter_complex graph. Similar to filter_threads but used for -filter_complex graphs only. The default is the number of available CPUs."
[17:21:23 CET] <fling> >> With -map you can select &
[17:21:36 CET] <fling> But I don't see how exactly could I select!
[17:22:09 CET] <BtbN> filters can be multi threaded
[17:22:38 CET] <BtbN> Not a filter graph though
[17:35:39 CET] <fling> The question is why are the intputs not multi threaded.
[17:36:41 CET] <thebombzen> idk
[17:37:24 CET] <thebombzen> threading in ffmpeg be like https://i.imgur.com/XuRZsVQ.jpg
[17:41:01 CET] <BtbN> ffmpeg.c is not multi threaded
[17:42:27 CET] <thebombzen> sometimes I feel that threads are just easier to use programmatically
[17:42:38 CET] <thebombzen> given that ffmpeg is like a pipeline I'd do it asychronously
[17:42:41 CET] <thebombzen> even on a singlecore cpu
[17:42:44 CET] <thebombzen> is there any reason ffmpeg doesn't
[18:02:46 CET] <BtbN> Because it's everything but easy.
[18:03:45 CET] <furq> threads are very eas to usye
[18:04:18 CET] <BtbN> Patches without regressions are allways welcome then.
[18:04:59 CET] <furq> noth couing ld be splimer
[19:07:03 CET] <fahadash> Can we build a one gigantic filter-graph and call it a project?
[19:08:25 CET] <fahadash> I have about 20 different shots of a scene, now I have to pick and choose portions from each, time-lapse some portions and add captions and what not as well. Can I use FFMPEG with 20 -i FILE statements and one big filter-graph for this purpose to build my output?
[20:03:31 CET] <kepstin> fahadash: yep, but at that point it might be easier to put a bunch of 'movie' filters in your filter script as sources rather than keeping track of input indexes.
[20:04:22 CET] <kepstin> (note that ffmpeg inputs and 'movie' filter inputs have slightly different behaviour wrt timestamps when seeking)
[20:43:03 CET] <fahadash> What are the 'movie' filters?
[20:50:38 CET] <phillipk> I keep getting a white background but expected alpha. I have two alpha pngs and this command:
[20:51:39 CET] <phillipk> ffmpeg -y -r 25 -t 2 -loop 1 -s 4cif -i background.png -i overlay.png -filter_complex overlay=x=10:y=200 -pix_fmt rgba -vcodec png output.mov
[20:51:52 CET] <phillipk> I'm not sure if -loop 1 is necessary... or -s 4cif
[20:52:27 CET] <phillipk> comes out with a white background every time.
[20:54:43 CET] <DHE> fahadash: they let you use a file on-disk as a video/audio source. kinda like the nullsrc except rather than solid black they'll do video playback
[20:56:56 CET] <fahadash> Can we put the whole filter graph, and possibly -i FILE switches in a text file and just do /usr/bin/ffmpeg /path/to/filethathasmyswitches ?
[20:57:33 CET] <BtbN> just use your shell to expand it
[20:58:48 CET] <fahadash> I would've loved to put at least the filter graph in a file so I can do ffmpeg -WHATEVERSWITCH /path/to/file
[21:02:49 CET] <llogan> fahadash: -filter_complex_script
[21:03:30 CET] <phillipk> my current issue is that when -filter_complex_script is crazy long, it fails.
[21:03:51 CET] <phillipk> of course it fails earlier if I just put the filter inline using -filter_complex
[21:04:16 CET] <llogan> phillipk: you probably need to add "format=rgb" to your overlay
[21:04:22 CET] <llogan> regarding the alpha junk
[21:04:32 CET] <phillipk> I'll try, thanks
[21:04:49 CET] <llogan> and remove -r 25 and -s 4cif
[21:05:29 CET] <phillipk> oky, but I want framerate 25
[21:05:49 CET] <llogan> taht's the default
[21:06:20 CET] <llogan> if you want it to be different then use -framerate, not -r when using image file demuxer.
[21:06:39 CET] <phillipk> ok
[21:07:11 CET] <furq> png in mov?
[21:12:25 CET] <phillipk> I'm just trying to assemble some pngs to create a video that contains transparency--so that I can overlay THAT video with my other content
[21:13:26 CET] <llogan> why not use multiple overlay?
[21:14:25 CET] <phillipk> nearly every frame has to overlay the png in a different location (based on a user's mouse movement). So, there are ~7000 overlays
[21:15:05 CET] <furq> phillipk: i imagine it's less overhead to just write pngs
[21:15:20 CET] <furq> using mov just confuses the matter
[21:16:33 CET] <phillipk> except I figured I could make a filter graph that specifies a few seconds worth of x/y locations--output a 2 second .mov. Then, assemble those. That way, I'd have a few thousand movs vs. 30x that (in pngs)
[21:16:56 CET] <furq> 7000 pngs isn't that many
[21:17:18 CET] <phillipk> how about 210,000?
[21:17:32 CET] <furq> that should probably be fine
[21:18:07 CET] <furq> by all means use an intermediate format if that many pngs causes an issue
[21:18:14 CET] <furq> but i don't think it will, and it's much simpler to do it that way
[21:19:11 CET] <phillipk> ok, let me try... BTW, changing "overlay=x=10:y=300:format=rgb" didn't exactly work--just made the edges of my png sharp
[21:19:57 CET] <furq> i'd have thought you'd need format=rgba
[21:20:12 CET] <furq> actually nvm there is no such thing
[21:21:04 CET] <thebombzen> I'm pretty sure rgba is a thing
[21:21:24 CET] <furq> not as an argument to overlay
[21:21:35 CET] <llogan> phillipk: which player are you using?
[21:21:50 CET] <phillipk> potplayer--yeah, I thought maybe that just wasn't showing the alpha
[21:22:11 CET] <phillipk> but it shows alpha as black when I take an old .flv I have with alpha
[21:22:36 CET] <llogan> i'll be lazy and blame the player
[21:22:55 CET] <furq> the flv is probably using yuva rather than rgba, if that makes any difference
[21:24:53 CET] <phillipk> okay, I'll just make pngs and see how that plays out
[21:26:38 CET] <fahadash> I have to rotate the video 90 degrees clockwise, transpose=1 is rotating it 180 degrees clockwise. What am I missing?
[21:29:42 CET] <thebombzen> fahadash: how does one rotate a video 180 degrees clockwise
[21:29:47 CET] <thebombzen> that's just 180 degrees
[21:31:47 CET] <fahadash> Ok. You are right. But that is not my issue
[21:31:58 CET] <thebombzen> and tranpose is working fine for me
[21:31:58 CET] <fahadash> My issue is to rotate only 90 degrees not 180
[21:32:07 CET] <thebombzen> post exact command?
[21:32:25 CET] <thebombzen> the usual drill. post exact command and output on a paste site
[21:33:26 CET] <fahadash> working on windows currently, have to figure out how to stream the output directly to a paste site
[21:33:44 CET] <llogan> ffmpeg -i input ... output 2> log.txt
[21:33:54 CET] <llogan> I guess...for Windows. Not a Windows user.
[21:34:05 CET] <fahadash> there you go: http://pastebin.com/raw/XzU10dgY
[21:34:28 CET] <llogan> why do you ahve two inputs?
[21:34:37 CET] <thebombzen> yea I was just about to ask that
[21:34:43 CET] <thebombzen> you do realize you have two inputs right
[21:34:57 CET] <fahadash> I have to overlay them side by side; but at this time I am only concerned with rotating them. I am building it brick by brick
[21:35:16 CET] <thebombzen> well first let's do the rotation
[21:35:23 CET] <thebombzen> which one are you trying to rotate?
[21:35:25 CET] <fahadash> I was also going to ask how could I rotate both
[21:35:42 CET] <thebombzen> you'd do that one at a time.
[21:35:49 CET] <thebombzen> that's how you'd rotate both.
[21:35:56 CET] <fahadash> Can't put that in a filter graph?
[21:36:01 CET] <thebombzen> you can. but you're not.
[21:36:14 CET] <thebombzen> and the filter graph would involve applying the transpose filter to two separate streams
[21:36:24 CET] <thebombzen> either way you're still doing it one at a time.
[21:36:31 CET] <llogan> for each rotation you can chain two transpose: transpose=1,transpose=1. or use vflip,hflip, or use rotate=PI:bilinear=0
[21:36:54 CET] <thebombzen> well llogan that would rotate it 180 degrees
[21:37:10 CET] <fahadash> Let me get this right... you guys do not want me to put transpose as part of my filter graph because it will complicate things?
[21:37:10 CET] <llogan> oh, i transposed what he wanted.
[21:37:14 CET] <furq> vstack,transpose=1
[21:37:37 CET] <thebombzen> fahadash, no I want to know why your transpose filter is rotating it 180 degrees
[21:37:42 CET] <thebombzen> and the extra stuff is just getting in the way
[21:37:47 CET] <thebombzen> so let's diagonise one problem at a time.
[21:37:55 CET] <thebombzen> and then we can worry about hte fact that you have two videos later.
[21:37:55 CET] <fahadash> ok. Let me drop one input
[21:38:26 CET] <furq> Side data:
[21:38:27 CET] <furq> displaymatrix: rotation of -90.00 degrees
[21:38:32 CET] <furq> that probably has something to do with it
[21:38:43 CET] <kuroro> hello, does anyone have experience w/ Separating Background Music from Vocals given an mp3 ?
[21:38:49 CET] <fahadash> alright, I got one video input and transpose=1 is still doing 90 deg clockwise
[21:38:51 CET] <thebombzen> oh yea that's a good point
[21:38:57 CET] <furq> fahadash: ^
[21:39:01 CET] <furq> your input has rotation metadata set
[21:39:08 CET] <thebombzen> so iPhone records have EXIF data that say "rotate this video"
[21:39:08 CET] <furq> you probably want to get rid of that
[21:39:23 CET] <thebombzen> kuroro: that's generally impossible.
[21:39:32 CET] <furq> kuroro: not without an instrumental version of the same song
[21:40:07 CET] <fahadash> How do I get rid of that rotation metadata or override that?
[21:40:09 CET] <kuroro> just seeing some papers on people using deep learing to separate vocals, so i thought there might be new tools/advancements
[21:40:14 CET] <thebombzen> -map_metadata -1
[21:40:15 CET] <furq> -map_metadata -1
[21:40:21 CET] <kuroro> https://arxiv.org/abs/1504.04658
[21:40:23 CET] <thebombzen> says "discard all metadata"
[21:40:41 CET] <furq> although if the input is rotated by -90 degrees, you might not need to transpose
[21:41:16 CET] <furq> there's probably some tool which can get rid of that inplace, but `ffmpeg -i foo.mp4 -map_metadata -1 -c copy -map 0 bar.mp4` works
[21:41:16 CET] <thebombzen> lol kuroro did you read the abstract
[21:41:21 CET] <thebombzen> "However, it is not yet known whether these methods are capable of generalizing to the discrimination of voice and non-voice in the context of musical mixtures. "
[21:41:36 CET] <thebombzen> "used to estimate 'ideal' binary masks for carefully controlled cocktail party speech separation problems"
[21:41:56 CET] <kuroro> ah ic
[21:41:57 CET] <fahadash> I added -map_metadata -1 after the -i FILE and I still get it rotated 180 instead of 90
[21:42:20 CET] <thebombzen> that's because the output is being played without the rotation
[21:42:25 CET] <thebombzen> and the input is being played with it.
[21:42:36 CET] <phillipk> I'm curious what workflow you all use? I'm using node with fluent-ffmpeg and it seems fine--I think a plain old .bat file might be enough however.
[21:42:38 CET] <thebombzen> try ffmpeg -i input -map_metadata -1 -c copy output and working with that
[21:42:59 CET] <thebombzen> that'll copy the video without transcoding but discard the metadata
[21:43:04 CET] <fahadash> I have a video which is turned on its side counterclockwise 90 degrees. I need to tilt it back. How do I do it?
[21:43:06 CET] <thebombzen> then work with that as your source.
[21:43:16 CET] <thebombzen> fahadash: we are literally explaining this to you right now.
[21:43:43 CET] <thebombzen> why do you just jump in like you just joined the channel and haven't been speaking with us for the last 8 minutes
[21:44:46 CET] <fahadash> 15:42 <thebombzen> try ffmpeg -i input -map_metadata -1 -c copy output and working with that , ended in less than 10 ms and did nothing to the video. Input and output are same
[21:46:06 CET] <fahadash> thebombzen: I was trying to restate my question in simple terms
[21:47:37 CET] <thebombzen> it didn't do nothing
[21:47:41 CET] <thebombzen> it discarded the metadata
[21:47:59 CET] <thebombzen> it should be fast if you're not transcoding
[21:48:06 CET] <fahadash> ok
[21:48:10 CET] <llogan> -noautorotate
[21:48:34 CET] <llogan> although i can't remember if autorotate is even used then filtering
[21:50:11 CET] <fahadash> I did -map_metadata -1 -c copy, then used the output with another command with -vf "transpose=1" and I still end up with 180 deg
[21:51:46 CET] <thebombzen> can you post the exact command and output of the second command
[21:51:54 CET] <fahadash> http://pastebin.com/raw/kNxLkvWZ
[21:52:04 CET] <fahadash> this has both
[21:53:07 CET] <fahadash> I still see the following in the 2nd command
[21:53:11 CET] <fahadash> Side data:
[21:53:11 CET] <fahadash> displaymatrix: rotation of -90.00 degrees
[21:54:30 CET] <thebombzen> interesting
[21:54:39 CET] <thebombzen> that's apparently because -map_metadata -1 isn't discarding that
[21:56:02 CET] <thebombzen> I don't know why
[21:56:40 CET] <fahadash> Ok. Thank you
[21:57:38 CET] <furq> well yeah just don't use transpose
[21:57:50 CET] <furq> evidently it's discarding the side data when you reencode
[21:57:52 CET] <fahadash> How do I tilt it then?
[21:58:01 CET] <furq> reencoding will reset the rotation to 0
[21:58:09 CET] <furq> and since the original is -90, that'll effectively rotate by 90
[22:03:08 CET] <fahadash> furq: You are right, I applied the overlay to the two inputs and they were not tilted on their sides
[22:14:49 CET] <fahadash> in filter graph the W is the width of what? I am assuming the widest of the input videos
[22:36:05 CET] <fahadash> I am trying to resize two inputs to 350x500, and put them on side by side; since the output frame can only fit one source; I am using pad=700:500:0:0 at the end of the filter chain but all I see is only one source and a blank area on the other side, why?
[22:36:12 CET] <fahadash> ffmpeg -y -i c:\temp\del\bowling\IMG_4548.MOV -i c:\temp\del\bowling\IMG_4549.MOV -filter_complex "[0:v] scale=w=350:500 [tim]; [1:v] scale=w=350:h=500 [scott]; [scott][tim] overlay=W:0, pad=700:500:0:0" c:\temp\del\bowling\out\final.avi
[22:36:49 CET] <thebombzen> fahadash: -vf hstack
[22:37:02 CET] <furq> yeah don't use pad and overlay for that
[22:37:18 CET] <thebombzen> you could but it's unnecessarily slow and complicated
[22:37:34 CET] <furq> i would probably just do hstack,scale=700:500
[22:39:11 CET] <fahadash> doesn't work: ffmpeg -y -i c:\temp\del\bowling\IMG_4548.MOV -i c:\temp\del\bowling\IMG_4549.MOV -filter_complex "[0:v] scale=w=350:500 [tim]; [1:v] scale=w=350:h=500 [scott]; hstack=[tim]:[scott]" c:\temp\del\bowling\out\final.avi
[22:39:23 CET] <fahadash> [AVFilterGraph @ 000000000075a7a0] Unable to parse graph description substring: ":[scott]"
[22:41:25 CET] <fahadash> found the problem, works perfect
[22:44:23 CET] <fahadash> Why can't we provide more than two inputs to hstack?
[22:44:29 CET] <furq> you can
[22:44:32 CET] <furq> hstack=inputs=3
[22:44:57 CET] <fahadash> got it. thanks
[23:01:01 CET] <fahadash> how do we join two conditions within drawtext? If I want to add text between 3 and 6 seconds into the timeline
[23:26:29 CET] <llogan> use "enable" option. see "man ffmpeg-filters" for examples.
[23:26:38 CET] <llogan> search for "between"
[00:00:00 CET] --- Tue Dec 20 2016
1
0
[00:13:50 CET] <cone-324> ffmpeg 03Ståle Kristoffersen 07master:d8b9bef1a06e: avformat: Auto-detect mjpeg 2000 in mpeg-ts
[00:33:15 CET] <kierank> michaelni: so, any suggestions where I do slice header decoding in mpeg4videodec?
[00:49:06 CET] <michaelni> kierank, i have just briefly looked at the new stuff but the studio slice stuff seems at a similar level as the video packet (header) stuff
[00:49:21 CET] <michaelni> as in an alternative
[00:49:42 CET] <kierank> well there's a vop and a slice header
[00:49:45 CET] <kierank> instead of just a vop
[00:50:10 CET] <michaelni> with video packets theres a vop and video packet headers IIRC
[01:22:52 CET] <kierank> will look tomorrow ig uess
[08:15:53 CET] <cone-954> ffmpeg 03Rostislav Pehlivanov 07master:38a13155827b: opus: remove redundant ff_celt_window2 declaration
[08:45:47 CET] <bp0> Can anyone here add some samples to fate for me? (re: http://ffmpeg.org/pipermail/ffmpeg-devel/2016-December/204597.html)
[09:28:31 CET] <nevcairiel> note that we can't delete samples since old versions of fate should remain functional, so knowing that would that change your choices of adding new samples, as the net size change would only ever increase
[10:08:00 CET] <cone-954> ffmpeg 03Paul B Mahol 07master:14090b705029: avcodec/get_bits: add av_assert2 to get_bits_long()
[10:49:37 CET] <cone-954> ffmpeg 03Nicolas George 07master:62b11db0a08c: lavfi: add FFFrameQueue API.
[10:49:38 CET] <cone-954> ffmpeg 03Nicolas George 07master:02aa0701ae0d: lavfi: make filter_frame non-recursive.
[11:05:24 CET] <fritsch> wm4: you got a minute? Having a question concerning the new send / receive API and using own memory in AVPacket?
[11:06:08 CET] <fritsch> with old API I allocated my outputbuffer, e.g. set the data and the size field via: https://ffmpeg.org/doxygen/2.7/group__lavc__encoding.html
[11:06:39 CET] <fritsch> with new API this is ignored and I have to memcpy the resulting data which points to somewhere else, via: https://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga5b8eff59cf259…
[11:06:51 CET] <fritsch> is there a possibility to use my own memory also with that new API?
[11:35:47 CET] <nevcairiel> Don't think packets having your own memory was officially supported ever
[11:36:51 CET] <nevcairiel> Because you had no good way to guess the output size
[11:37:52 CET] <nevcairiel> In any case that's definitely dead with the new api
[11:46:00 CET] <fritsch> oki, we just did what the 2.7 documentation said
[11:46:13 CET] <fritsch> oki, so when I need to copy the data afterwards in my own buffers I need a memcpy?
[11:50:46 CET] <fritsch> I took the chance to ping you on github as we currently do the 3.2 API transition
[11:50:52 CET] <fritsch> thx for your reply
[11:51:13 CET] <atomnuker> wait, what? I thought ff_alloc_packet2 can return any memory
[11:51:48 CET] <fritsch> the problem is with giving it into the receive_packet api
[11:54:00 CET] <fritsch> we used it to encode textures rgba to jpeg to save thumbnails in code
[11:54:20 CET] <fritsch> means, allocate buffer, give it to a avpacket, use the old encode_video2 api
[11:54:39 CET] <fritsch> and use the resulting jpeg data to save it to disk
[11:55:17 CET] <atomnuker> huh, I guess the custom allocator DR1 stuff only applies to decoders
[11:55:28 CET] <fritsch> i think we talk to something different :-)
[11:55:42 CET] <fritsch> new: https://github.com/FernetMenta/kodi-agile/pull/48/commits/e45beb95df1a548e1…
[11:57:42 CET] <fritsch> old with corruption: https://github.com/fernetmenta/kodi-agile/blob/master/xbmc/guilib/FFmpegIma…
[11:57:44 CET] <atomnuker> memcpy on compressed data isn't really that big of a problem (also the input memory might have to be aligned to some value for some codecs because SIMD)
[11:58:21 CET] <fritsch> old before transition: https://github.com/fritsch/kodi-agile/blob/master/xbmc/guilib/FFmpegImage.c…
[11:58:27 CET] <fritsch> honoring my .data and my .size
[11:58:35 CET] <fritsch> I think this needs some documentation update
[11:58:56 CET] <fritsch> atomnuker: it's a memcpy for every packet that you could have easily allocated from a memory pool before
[11:59:37 CET] <fritsch> all we did was a "smooth" transition from avcodec_encode_video2 to the new send / receive api
[12:00:23 CET] <fritsch> for our use case: getting exactly one frame in and giving one pkt out, this double the memory usage
[12:08:13 CET] <wm4> if you really want the old behavior we could add get_buffer style API
[12:08:24 CET] <fritsch> no no - it's not about the API
[12:08:27 CET] <wm4> but probably not worth it
[12:08:41 CET] <fritsch> just wanted to ask: is there any way I can give my own allocated memory to that?
[12:08:52 CET] <wm4> not at all
[12:08:59 CET] <fritsch> oki
[12:09:20 CET] <fritsch> for my use case (1 frame in only, or 1 pkt in only) I did a 1:1 transition via: https://blogs.gentoo.org/lu_zero/2016/03/29/new-avcodec-api/
[12:09:29 CET] <wm4> so just likewith decoding this could be solved with an alloc casllback
[12:11:23 CET] <fritsch> it's fine - just wanted to make sure I don't do something wrong cause of a misunderstanding
[12:12:00 CET] <fritsch> I also only need to unref this paket, right? no need to free anything?
[12:13:38 CET] <wm4> yeah
[12:14:12 CET] <fritsch> Then I need to also relook into the decode case as there I should also get a new self allocated frame
[12:15:14 CET] <wm4> if you used get_buffer2 nothing changes
[12:15:40 CET] <fritsch> I allocate a frame and give it into that method: https://github.com/fritsch/kodi-agile/blob/e45beb95df1a548e130af07ab9a279a0… - now I wonder if the avcodec_receive_frame allocates a second frame
[12:15:53 CET] <fritsch> so that I need to unref the one I get after this method and free my original frame?
[12:16:07 CET] <wm4> (maybe you should make sure to send refcounted packets to avoid copies, if you don't yet)
[12:17:56 CET] <fritsch> in the encode case it's a ptr to a stack AVPacket
[12:18:23 CET] <fritsch> in Decode case, too, while the avpkt was filled with av_read_frame
[12:18:41 CET] <wm4> not sure why you call av_frame_clone
[12:19:21 CET] <fritsch> you mean I could drop the free? and just continue using it?
[12:19:30 CET] <fritsch> and then freeing it when "clone" is freed?
[12:23:47 CET] <fritsch> yeah makes sense
[12:23:52 CET] <fritsch> I added a commit
[12:24:29 CET] <wm4> yes receive guarantees that a refcounted frame is returned
[12:24:46 CET] <fritsch> but one question left
[12:24:52 CET] <fritsch> you see that I do av_frame_alloc
[12:25:23 CET] <fritsch> before, that one I need to free somewhere, while I thought I should only unref the frame I get from receive?
[12:26:24 CET] <nevcairiel> If you use alloc, you need free somewhere. Unref gets rid of the data inside a frame, but not the frame structure itself
[12:26:57 CET] <wm4> yeah, unref just resets an AVFrame to blank
[12:27:18 CET] <fritsch> when I get an AVPacket from this new method, who calls free?
[12:27:38 CET] <fritsch> is it when context is destroyed of the encoder?
[12:28:27 CET] <wm4> for the decode/encode API, the data you give it you still own
[12:28:36 CET] <wm4> and the data it returns changes ownership to you
[12:30:45 CET] <fritsch> oki - when I got that right, this: https://github.com/FernetMenta/kodi-agile/pull/48/commits/5160562682a5feeab… this is what you had in mind with the clone?
[12:31:13 CET] <fritsch> just returning the refcounted frame, but later on unref and free it?
[12:32:59 CET] <wm4> yes
[12:33:05 CET] <wm4> but _free also does _unref
[12:33:09 CET] <wm4> so the extra call is not needed
[12:33:19 CET] <fritsch> oki, thx very much.
[12:33:35 CET] <fritsch> yeah - still kind of confusing
[14:45:25 CET] <sylvain> hi
[14:46:17 CET] <Guest28871> we have a strange problem building ffmpeg for chromium (x86) can find report here https://github.com/iteufel/nwjs-ffmpeg-prebuilt/issues/28
[14:46:45 CET] <Guest28871> an idear ? problem with h264_cabac and hevc_cabac
[14:46:57 CET] <Guest28871> works if i add --disable-asm in configure
[14:47:11 CET] <Guest28871> (but seems a bad idear)
[14:47:52 CET] <JEEB> that looks like a bug in clang 4 rather than FFmpeg, no?
[14:48:06 CET] <JEEB> I mean, clang crashed
[14:48:35 CET] <JEEB> also llvm+clang 4.0 isn't even stable yet
[14:48:49 CET] <JEEB> see: http://llvm.org/
[14:49:01 CET] <JEEB> so yes, go provide a bug report to the llvm+clang people
[14:49:06 CET] <JEEB> it shouldn't crash
[14:51:03 CET] <smolleyes> seems yes ok i ll do that thanks
[15:03:29 CET] <BtbN> https://bpaste.net/show/04d891fa4fce gcc warnings have become quite verbose
[15:04:37 CET] <JEEB> yeah, they've been trying to improve after clang started improving things
[15:05:21 CET] <BtbN> This seems quite a bit too much though
[15:05:28 CET] <BtbN> I have no idea what it's trying to show me there
[15:06:11 CET] <BtbN> ah, there is one char marked in those 180 lines
[15:10:52 CET] <BtbN> Timothy_Gu, https://btbn.de/public/build-log.txt that's the build log from a docker container. (It's huge, over 30MB)
[15:11:41 CET] <BtbN> The only error I can spot is a bunch of "/usr/lib/gcc/x86_64-linux-gnu/6/include/xmmintrin.h:52:1: error: conflicting types for '_mm_prefetch'"
[15:11:42 CET] <jkqxz> The warning is also wrong, though I admit the compiler would have a hard time working that out. There is only ever one layer there, so nothing inside the loop gets run. (That code fragment is present to make it match the standard exactly.)
[18:35:39 CET] <Timothy_Gu> BtbN: thanks
[18:35:54 CET] <BtbN> I have no idea how to fix it though
[18:35:57 CET] <BtbN> That error is weird
[18:36:10 CET] <BtbN> Almost seems like the gcc and stuff is too new for their tools?
[18:42:22 CET] <Timothy_Gu> ... yeah
[18:44:11 CET] <Timothy_Gu> but why didn't this pop up before?
[18:45:07 CET] <nevcairiel> we recently added stdatomic support which sets the compiler into c11 mode if appropriate
[18:45:22 CET] <nevcairiel> which might break it
[18:45:40 CET] <nevcairiel> http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=6a4e24280dd7f15c41628e…
[18:54:08 CET] <BtbN> hm, so we should somehow force it to c99 for the cov build
[19:01:30 CET] <BtbN> Timothy_Gu, what about adding "sed -i 's/-std=c11/-std=c99/g' configure"?
[19:01:44 CET] <Timothy_Gu> Will that work with stdatomic then?
[19:01:53 CET] <BtbN> It will just disable it I think
[19:02:09 CET] <BtbN> But as it can't be tested anyway, that's no loss
[19:02:21 CET] <BtbN> And gets rid of like 30 errors
[19:02:43 CET] <Timothy_Gu> yeah, but I know coverity does certain smart things with pthread functions
[19:03:04 CET] <BtbN> It will basically revert it to before that patch
[19:12:54 CET] <Timothy_Gu> hmm I can use stdatomic without -std=c11
[19:14:04 CET] <Timothy_Gu> echo -e '#include <stdatomic.h>\nint main(void) { int *ptr, *oldval; int newval; __atomic_compare_exchange_n(ptr, oldval, newval, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); }' | gcc -x c -
[19:14:58 CET] <Timothy_Gu> my Internet here is kinda shitty so I can't test on FFmpeg
[19:17:31 CET] <Timothy_Gu> indeed in gcc 5 the default for C has been changed from gnu89 to gnu11 so I don't know if that is the problem
[19:17:39 CET] <durandal_1707> why I can't get gcno files to generate?
[19:18:28 CET] <Timothy_Gu> https://gcc.gnu.org/gcc-5/changes.html
[20:08:19 CET] <kierank> why is h263dec doing the job of a parser
[20:08:39 CET] <kierank> why is AV_CODEC_FLAG_TRUNCATED a thing
[20:17:25 CET] <atomnuker> why does a segfault sometimes just print it's a segfault and other times it prints "memory corruption" + backtrace + memory map and spams the terminal?
[20:18:01 CET] <kierank> nondeterminisms
[20:23:49 CET] <jkqxz> That's glibc saying "you messed up the malloc arena", not a segfault. (Though it probably would be very quickly if glibc didn't catch it first.)
[20:26:16 CET] <atomnuker> how do you mess up the malloc arena, it's still your own address space, you can do whatever you want there
[20:28:23 CET] <nevcairiel> writing beyond your allocation can still damage things
[20:28:54 CET] <jkqxz> Well, yes. And glibc isn't going to be very pleased if you go and overwrite glibc's bookkeeping information about where all of the allocated/free blocks are.
[20:29:21 CET] <kierank> michaelni: so I guesss a video packet header is analagous to a slice header
[20:42:15 CET] <atomnuker> nevcairiel: well, yeah, but that's then a segfault
[20:44:21 CET] <kierank> not if you rewrite glibc's reserved space
[20:44:55 CET] <atomnuker> I guess it needs somewhere to store that data
[21:00:25 CET] <Compn> kierank : because h263 decoder was made before we split parsers out of decoders ? maybe ? no ?
[21:53:28 CET] <wm4> kierank: last it came up the arguments were API compatibility and SPEED
[21:53:32 CET] <wm4> you know, the usual bullshit
[21:54:47 CET] <kierank> pfft
[21:55:57 CET] <wm4> you could try to send a patch to deprecate it and remove its functionality
[21:56:24 CET] <wm4> (we had changes which keep API artifacts for compatibility but remove the implementation before)
[22:48:57 CET] <durandal_1707> kierank: i cleaned up all functions for pixlet, only remain to fix bugs with ed-pixlet.mov file
[22:49:53 CET] <durandal_1707> give a look and say what's obvious source of bug which I can't find
[22:53:59 CET] <kierank> Nice
[22:54:11 CET] <kierank> Ok i will look with your repo
[23:00:08 CET] <durandal_1707> ed-pixlet.mov is big file in xiph media of elephants dream
[23:14:48 CET] <kierank> hmmm quite big
[23:14:52 CET] <kierank> durandal_1707: link to repo?
[23:16:31 CET] <durandal_1707> kierank: https://github.com/richardpl/FFmpeg/tree/pixlet
[23:20:30 CET] <kierank> downloading file
[23:26:06 CET] <kierank> durandal_1707: yuv420? really?
[23:26:17 CET] <durandal_1707> yes
[23:26:31 CET] <kierank> I would port it to yuv420p10
[23:26:41 CET] <kierank> makes it easier to see overflows
[23:27:14 CET] <durandal_1707> overflows are in parsing
[23:27:28 CET] <durandal_1707> output is fine
[23:28:36 CET] <durandal_1707> some bits are over reading
[23:39:00 CET] <kierank> [pixlet @ 0xf366e0] wrong magic number: 0x0000 for plane 0, level 10
[23:39:49 CET] <kierank> looks fine to me
[23:41:57 CET] <kierank> durandal_1707: does it actually do floating point filter?
[23:42:48 CET] <durandal_1707> afaik yes
[23:43:50 CET] <durandal_1707> those errors shouldn't happen
[23:45:07 CET] <kierank> looks like padding
[23:47:09 CET] <kierank> uint32_t magic2 = bytestream2_get_be32(&ctx->gbc);
[23:47:10 CET] <kierank> uint32_t magic3 = bytestream2_get_be32(&ctx->gbc);
[23:47:10 CET] <kierank> uint32_t magic4 = bytestream2_get_be32(&ctx->gbc);
[23:47:10 CET] <kierank> uint32_t magic5 = bytestream2_get_be32(&ctx->gbc);
[23:47:10 CET] <kierank> uint32_t magic6 = bytestream2_get_be32(&ctx->gbc);
[23:47:10 CET] <kierank> printf("\n %x %x %x %x %x %x \n", magic2, magic3, magic4, magic5, magic6);
[23:47:11 CET] <kierank> all zero
[23:47:46 CET] <durandal_1707> bitreader prior that consumes all bits
[23:48:05 CET] <kierank> oh
[23:48:31 CET] <durandal_1707> either bug is in low or high somewhere
[23:51:45 CET] <kierank> exactly one byte overread
[23:52:01 CET] <kierank> so basically escape is weird
[23:55:33 CET] <jamrial> durandal_1707: in filter(), either make value a double, or make the constants float. otherwise those loops may end up being slow
[23:55:47 CET] <kierank> it's slow as hell already :)
[23:55:54 CET] <jamrial> slower then :p
[23:56:08 CET] <kierank> durandal_1707: does the binary decoder not have an escape condition?
[23:56:15 CET] <jamrial> but yeah, pointless double to float then float to int if he leaves it as is
[23:56:17 CET] <kierank> durandal_1707: can you let me know where the binary decoder does it's highpass
[23:56:58 CET] <durandal_1707> kierank: search for deadbeef in hex
[23:57:57 CET] <durandal_1707> there are 3 functions but 2 are dead code
[23:58:02 CET] <kierank> my guess is your termination condition is wrong
[00:00:00 CET] --- Mon Dec 19 2016
1
0
[00:02:01 CET] <ThomasEgi> some random windows build from 2011 appears to run, but doesn't feature gdigrab as input
[00:28:39 CET] <ThomasEgi> limited success, version build 2.7.something seems to run on xp and at least outputs sane values for the screencap.
[00:50:31 CET] <furq> building yourself with mingw and copying across should work
[00:50:40 CET] <furq> the reason the zeranoe builds no longer support xp is because of libmfx
[00:51:05 CET] <furq> you have no use for that anyway so it shouldn't be an issue
[01:32:47 CET] <ThomasEgi> furq, i got it working .. somewhat. at least ffmpeg is now the better working part. the application displaying that old thing appears to be very very picky when it comes to switching to fullscreen mode. puzzles me a bit. i'll report back on ultimate failure/success
[01:32:55 CET] <ThomasEgi> thanks for all your shared brain capacities
[01:37:38 CET] <Kam> Hello, I'm trying to decode a VP9 video in yuva420p and get the following error, any ideas? "Failed to decode frame: Corrupt frame detected" -- "Additional information: Keyframe / intra-only frame required to reset decoder state". I'm using the latest git version of libvpx and ffmpeg. The file has been encoded with ffmpeg before and I'm forcing to use libvpx-vp9 for decoding.
[04:04:52 CET] <damdai> how do i playback hddvd (not bluray)
[08:32:06 CET] <thebombzen_> Kam: It sounds like you have a corrupt file
[08:32:32 CET] <thebombzen_> and that libvpx's vp9 decoder is more forgiving than ffmpeg's vp9 decoder.
[08:57:31 CET] <thebombzen> JEEB: I read that article you wrote on github gist about 10bit H.264
[08:58:16 CET] <thebombzen> I'm still a bit confused how upscaling a yuv420p source to yuv420p10le with swscale before feeding it to x264 can save quality per bitrate.
[08:59:44 CET] <thebombzen> the article explained that losing 3 bits in 10-bit space is the same as losing 1 bit in 8bit space so there's more error tolerance, but why does that matter if we introduced two bits
[09:04:43 CET] <thebombzen> the ateme pdf linked says that it's because of the prediction, but that again is confusing.
[09:07:48 CET] <thebombzen> afaik when you run the DCT to decompose a block into a liner combination of waves, most of the coefficients are zero (that's the point of jpeg-like stuff, right?) but I'm not sure how introducing 2 extra bits per pixel will make the quantization more accurate. like will it make it so we will generally have more zeroes after quanization? does it make it so we can have more zeroes?
[09:07:51 CET] <thebombzen> I'm just a bit confused
[10:39:34 CET] <thebombzen> uh, so there appears to be a problem with VDA autodetection. It says --disable-vda to disable apple's vda [autodetect]
[10:39:49 CET] <kerio> heh
[10:39:56 CET] <thebombzen> but when I try to configure, it says "vda requested but unable to find vda_framework" or something very similar
[10:40:00 CET] <thebombzen> which is weird
[10:40:12 CET] <thebombzen> cause if it can't find vda then it should just autodisable it. that's what autodetect means right
[10:40:18 CET] <thebombzen> for the record, I don't have VDA. I'm on Arch Linux
[10:40:31 CET] <kerio> ...wat
[10:40:32 CET] <thebombzen> that sounds like it's a bug in the configure script
[10:40:54 CET] <kerio> yeah ok
[10:40:59 CET] <thebombzen> ERROR: vda requested, but not all dependencies are satisfied: vda_framework pthreads
[10:41:00 CET] <kerio> it's hardly a showstopper
[10:41:09 CET] <thebombzen> that's the exact error message
[10:41:11 CET] <thebombzen> word for word
[10:41:24 CET] <thebombzen> I mean definitely not a big deal. I just addded --disable-vda and went on my way
[10:41:37 CET] <thebombzen> but it was annoying because I have a script set to git pull and rebuild ffmpeg every day
[10:42:05 CET] <thebombzen> and sometimes it fails for no reason. in this case it failed because I didn't have --disable-vda and it became necessary.
[10:42:09 CET] <thebombzen> which tbh sounds like a regression
[10:42:52 CET] <thebombzen> is this the right place to takl about this or would #ffmpeg-devel be a better one
[10:44:26 CET] <thebombzen> oop, looks like nvidia 375.20 is acting up... again... Dx
[10:44:38 CET] <thebombzen> sometimes it just doesn't want to work and I have to reboot
[10:45:20 CET] <thebombzen> it becomes really obvious when you pull up a video in MPV and it cannot create the opengl context so it defaults to x11, and the tearing is really awful
[14:24:35 CET] <blubee> hi guys i have a quesiton about ffmpeg and recording x11
[14:24:54 CET] <blubee> there's a new xcb screen grab because it says x11grab is legacy
[14:25:19 CET] <blubee> what do i pass to ffmpeg -f instead of x11grab to use the new xcb flag?
[14:27:17 CET] <relaxed> I think it's the default not, see "ffmpeg -devices"
[14:27:29 CET] <relaxed> s/not/now/
[14:29:17 CET] <blubee> hmm
[14:29:31 CET] <blubee> the devices show
[14:29:44 CET] <blubee> bktr, lavfi, oss, v4l2, video4linux2
[14:29:55 CET] <relaxed> I see "D x11grab X11 screen capture, using XCB"
[14:30:15 CET] <blubee> hmm
[14:30:16 CET] <blubee> nope
[14:30:32 CET] <blubee> i guess i'll just enable the legacy x11
[14:30:58 CET] <DHE> XCB mode still uses the same name. just keep using x11grab
[14:31:24 CET] <relaxed> did you configure ffmpeg with --enable-x11grab ?
[14:33:33 CET] <blubee> okay
[14:33:42 CET] <blubee> well thanks i'll just configure x11grag
[14:33:45 CET] <blubee> thanks
[14:56:43 CET] <N_ick> Hi there ! i'm attempting to replace first two audio streams within a MXF File with two WAV audio streams + the ideal would be to keep the existing stream IDs. i've read the documentation and tried for a few hours now but i'm still stuck. I understand i have to use the -map option but can't succed to map only the first two streams and keep the others.
[15:06:30 CET] <ChocolateArmpits> N_ick: Why do you need to keep the others if you don't want that originally?
[15:09:29 CET] <N_ick> the imput .mxf contains one video and 8 audio streams in total. i need to replace the first two. i've tried this : ffmpeg -i input.mxf -i audio1.wav -i audio2.wav -map 0 -map -0:a:0 -map -0:a:1 -map 1:0:1 -map 2:0:2 output.mxf
[15:10:18 CET] <N_ick> but that looks like rubbish and doesn't work. my idea was first to map everything, then to use negative mapping (as suggested in documentation) to exclude the first two streams i want to replace
[15:10:48 CET] <N_ick> do i have to explicitely specify each of the 8 audio streams to keep them in the output file?
[15:11:10 CET] <ChocolateArmpits> N_ick: map 0 will map the entirety of the first input
[15:11:41 CET] <ChocolateArmpits> you need -map 0:v instead of that
[15:12:19 CET] <ChocolateArmpits> Do those wav files contain only one audio stream per file?
[15:12:34 CET] <ChocolateArmpits> then you only need to specify each like this -map 1:a -map 2:a
[15:13:41 CET] <N_ick> yep', that's mono! great, i'll try that, thank's dude. the tricky part is i have to keep the remaining 6 audio streams from the input...
[15:14:25 CET] <ChocolateArmpits> Then don't write -map 0 as I said
[15:14:44 CET] <ChocolateArmpits> because that will pass along every stream from the first input to the output
[15:15:16 CET] <N_ick> well, that's what i want (except the first two audio streams that i need to replace... )
[15:15:33 CET] <ChocolateArmpits> oh then specify each stream separately
[15:16:06 CET] <ChocolateArmpits> so it would be -map 0:v -map 1:a -map 2:a -map 0:a:2 -map 0:a:3 -map 0:a:4 -map 0:a:5
[15:16:28 CET] <ChocolateArmpits> the sequence of maps will determine the stream order in output
[15:16:50 CET] <ChocolateArmpits> though it's possible to tell it via text too
[15:17:01 CET] <N_ick> via text? what do you mean?
[15:18:29 CET] <ChocolateArmpits> well nevermind
[15:18:33 CET] <ChocolateArmpits> just follow the order thing
[15:20:08 CET] <N_ick> okay i'll try. but i'd like to understand because i was afraid of the long -map sequence, Lol. isn't there a 'cleaner' way?
[15:21:50 CET] <ChocolateArmpits> not cleaner and more complex but there are others
[15:23:04 CET] <ChocolateArmpits> like reading streams via filters or via text files with file names and stream indexes
[15:23:21 CET] <ChocolateArmpits> more advanced stuff imo
[15:24:39 CET] <N_ick> sorry, something strange hapened here, i sort of lost my connection -_-
[15:25:13 CET] <N_ick> ChocolateArmpits: okay i'll try. but i'd like to understand what you meant 'via text' because i was afraid of the long -map sequence, Lol. isn't there a 'cleaner' way?
[15:26:42 CET] <ChocolateArmpits> I maybe forgot but I think there was a way to point where a specific map should fit, like should it go to the stream index 1 or 2 you know , independent of the placement of the command itself in relation to other map commands
[15:29:34 CET] <N_ick> mh, i see, something like specifying the map order in some text file?
[15:29:46 CET] <ChocolateArmpits> no that's different
[15:30:28 CET] <ChocolateArmpits> you input a text file via a concat formatter, inside the text file are links to files and streams
[15:31:00 CET] <N_ick> okay then, i think i'll have a go with my long -map sequence and see what it does :) tkx.
[15:31:05 CET] <ChocolateArmpits> it's useful when you need to concatenate several files and doing it via command line would be more troublesome
[15:32:08 CET] <Kiicki> 4 hours elapsed and got 30 min too go for a movie -.-
[15:32:36 CET] <N_ick> well, i'm on Windoze writing a batch script so.....
[15:37:12 CET] <N_ick> ChocolateArmpits: think i need more infos on the -map usage : i understand the first number is the file index starting at 0, v for video or a for audio, what's the last number used for? i thought that was the output's stream number but i feel i'm misunderstanding something...
[15:38:11 CET] <ChocolateArmpits> N_ick: when you reference things like this -map 0:a:1 you are telling ffmpeg to look at the second audio stream of the first input
[15:38:40 CET] <N_ick> Ah okay, now i get it, thanks for the refresh ! :D
[15:38:43 CET] <ChocolateArmpits> -map 0:a means all audio streams of the first input
[15:38:53 CET] <yati> Hi, I'm piping video to an avconv process on a *raspberry pi*. This is the avconv command: https://dpaste.de/JWnL Now the video thus produced plays much faster than reality. I measured how fast the source process is able to produce frames, and it is ~9fps. Using -r 8 for the output (with -re for the input) also does not help. What could I be missing? :)
[15:54:42 CET] <yati> ok, just figured the output framerate is somehow set to 25fps, and this is why time is shrunk. How do I make sure the output frame rate is the same as the input frame rate?
[15:55:48 CET] <ChocolateArmpits> yati: by not setting -r at the output of course
[16:04:13 CET] <N_ick> ChocolateArmpits: It works ! :D thanks dude
[16:04:21 CET] <ChocolateArmpits> N_ick: np
[16:05:14 CET] <N_ick> now the best would be to keep the original input stream id's, should i use -map_metadata for that?
[16:05:20 CET] <N_ick> or specify them 'by hand'?
[16:09:05 CET] <ChocolateArmpits> i'm not sure about that, sorry
[16:48:09 CET] <yati> ChocolateArmpits: Tried that (not keeping -r at the output, also removing -r from both input and output). The fps is still 25 :(
[16:48:54 CET] <ChocolateArmpits> yati: so you want the file framerate to be that of the actual source ?
[16:49:04 CET] <ChocolateArmpits> Try the fps filter
[16:49:13 CET] <ChocolateArmpits> -vf fps=8
[16:50:00 CET] <ChocolateArmpits> it'll drop/duplicate frames to match the number you request
[16:51:21 CET] <yati> ChocolateArmpits: Yes, I want it to be the same (or about the same, since the source drops frames sometimes). Trying the filter nw
[16:58:14 CET] <yati> ChocolateArmpits: No luck. Here's the incantation: https://dpaste.de/8PrL (I first using another -vf, but that got rid of the timestamps, so added it in the chain after drawtext, is that how it's supposed to be done?)
[16:58:27 CET] <yati> *I first tried using...
[16:59:00 CET] <N_ick> Does anyone know if preserving Track IDs from input to output is ever possible?
[17:01:26 CET] <ChocolateArmpits> yati: yeah, but that will draw the timestamps before dropping frames, so you should probably have fps happen first
[17:07:02 CET] <yati> ChocolateArmpits: Heh, tried that too. It still produces a 25 fps video. I tried this on my Fedora box with a v4l2 (/dev/video0 as the source) and it does work. I am tempted to try getting video4linux2 on the pi and try, but exactly what is wrong with the current approach is the interesting question :D
[17:07:47 CET] <ChocolateArmpits> yati: What do you mean works? the command line ?
[17:08:14 CET] <yati> ChocolateArmpits: yep. works == produces 8fps vid from the /dev/video0 input
[17:08:32 CET] <yati> the same command line, (of course s/avconv/ffmpeg/ on fedora)
[17:34:35 CET] <taliptako> Heyyyy
[17:34:44 CET] <taliptako> can i use ffmpeg for MPEG DASH encoding
[18:24:27 CET] <Kuun-Lann> Hello guys, i try to convert some .al files to .mp3 (or .flac). I try the simplest way with ffmpeg -i file.al file.mp3 but the sound is just awful. Any idea of options to get a decent sound ?
[18:27:40 CET] <thebombzen> Kuun-Lann: you should set the bitrate with -b:a bitrate
[18:27:53 CET] <thebombzen> such as ffmpeg -i input -b:a 128k output.mp3
[18:28:02 CET] <Kuun-Lann> okay i see
[18:28:08 CET] <thebombzen> the default bitrate is very low
[18:28:23 CET] <kerio> 128k is also very very very low for mp3
[18:28:28 CET] <thebombzen> it is
[18:28:34 CET] <thebombzen> but it depends on the source
[18:28:39 CET] <Kuun-Lann> so i could try -b:a 320 ?
[18:28:41 CET] <Kuun-Lann> at least
[18:28:42 CET] <thebombzen> 320k
[18:28:43 CET] <kerio> -q:a 0
[18:28:46 CET] <thebombzen> 320 is 320 by itself
[18:28:51 CET] <thebombzen> 320k is 320 thousand
[18:28:57 CET] <Kuun-Lann> okay
[18:29:01 CET] <kerio> it's 2016, use VBR
[18:29:05 CET] <thebombzen> that works too. to be honest I don't see any reason to use mp3
[18:29:07 CET] <Kuun-Lann> kerio what is -q:a 0 ?
[18:29:20 CET] <thebombzen> constant quality
[18:29:28 CET] <Kuun-Lann> (sorry for the noobish question, first time i use fmmpeg this wayà
[18:29:33 CET] <Kuun-Lann> oh ok
[18:29:43 CET] <thebombzen> it's fine. -q is quality and 0 is the quality setting
[18:29:54 CET] <thebombzen> usually lower numbers are higher quality which is counterintuitive at first
[18:30:06 CET] <kerio> with lame, vbr with quality 0 is pretty damn good
[18:30:12 CET] <kerio> ...for a shit codec like mp3, at least
[18:30:16 CET] <thebombzen> I still don't know why you'd be using mp3
[18:30:22 CET] <Kuun-Lann> errr
[18:30:41 CET] <thebombzen> mp3 is extremely old and primitive
[18:30:44 CET] <thebombzen> like early 90s old
[18:31:04 CET] <Kuun-Lann> so .. flac ?
[18:31:08 CET] <Kuun-Lann> is it better ?
[18:31:10 CET] <thebombzen> well flac is literally lossless
[18:31:24 CET] <thebombzen> so yes the audio will be identical to the input
[18:31:30 CET] <Kuun-Lann> that sound great to me
[18:31:35 CET] <thebombzen> but lossless audio is large (although nowadays it's not unmanageably large)
[18:31:41 CET] <thebombzen> flac = Free Lossless Audio Codec
[18:31:56 CET] <thebombzen> uncompressed audio is around 1500k
[18:32:20 CET] <thebombzen> but depending on the source, I've seen flac achieve between 400k and 1100k
[18:32:33 CET] <Kuun-Lann> and what i need to input in -b:a for convert in flac ?
[18:32:37 CET] <thebombzen> nothing
[18:32:42 CET] <thebombzen> it's lossless so don't set the bitrate
[18:32:54 CET] <thebombzen> that one if you're trying to be simple you can just do ffmpeg -i input output.flac
[18:33:04 CET] <kerio> i wonder if there's a compression setting tho
[18:33:08 CET] <thebombzen> there is
[18:33:11 CET] <thebombzen> but one step at a time
[18:33:12 CET] <kerio> trading longer encoding/decoding for space
[18:33:18 CET] <thebombzen> there is definitely
[18:33:20 CET] <thebombzen> but the default is fine
[18:33:25 CET] <kerio> fair enough
[18:33:26 CET] <Kuun-Lann> i'll try for flac
[18:33:34 CET] <thebombzen> and the gains/losses are not noticable unless you set it to the fastest
[18:33:35 CET] <Kuun-Lann> hum
[18:33:37 CET] <kerio> Kuun-Lann: if you're used to mp3, flac is going to feel insanely big
[18:33:38 CET] <Kuun-Lann> i got an error at the end
[18:33:44 CET] <thebombzen> what error?
[18:33:48 CET] <Kuun-Lann> draam1.al: Input/output error
[18:33:48 CET] <Kuun-Lann> size= 24411kB time=00:32:40.16 bitrate= 102.0kbits/s speed= 124x
[18:33:48 CET] <Kuun-Lann> video:0kB audio:24403kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.033168%
[18:33:53 CET] <thebombzen> that's not an error
[18:33:55 CET] <thebombzen> oh
[18:33:57 CET] <thebombzen> input/output error
[18:34:02 CET] <Kuun-Lann> ? :/
[18:34:02 CET] <thebombzen> that means it couldn't read your input file
[18:34:07 CET] <Kuun-Lann> oO
[18:34:10 CET] <Kuun-Lann> oh
[18:34:17 CET] <thebombzen> becaues it's corrupt or you deleted it or something
[18:34:17 CET] <Kuun-Lann> weird
[18:34:30 CET] <thebombzen> although if it's corrupt it probably wouldn't say that
[18:35:14 CET] <furq> pcm_alaw to flac should be pretty small
[18:35:24 CET] <thebombzen> I mean in general yea
[18:35:32 CET] <thebombzen> but again it depends on what you have as the source
[18:35:33 CET] <kerio> furq pls
[18:35:40 CET] <thebombzen> if it's speech it'll be small
[18:35:44 CET] <thebombzen> if it's metal music it won't be
[18:36:45 CET] <thebombzen> speaking of converting
[18:36:51 CET] <Kuun-Lann> weird i try with anoter file but same error
[18:36:55 CET] <thebombzen> Kuun-Lann: is there any particular reason you need to convert it
[18:37:05 CET] <Kuun-Lann> thebombzen yes indeed
[18:37:13 CET] <thebombzen> what is that reason
[18:37:36 CET] <kerio> what's .al anyway?
[18:37:48 CET] <Kuun-Lann> in fact, my .al files comes from a game. This is the soundtrack of this game. And i want to listen it. But the files are in .al files and i didn't find the origginal soundtrack on steam or on game's editor website
[18:37:59 CET] <kerio> Kuun-Lann: first step, ffprobe
[18:37:59 CET] <Kuun-Lann> :/
[18:38:08 CET] <kerio> figure out what ffmpeg thinks is inside the files
[18:38:16 CET] <thebombzen> Kuun-Lann: ffprobe input_file
[18:38:21 CET] <thebombzen> it'll spit out info on the file
[18:38:32 CET] <thebombzen> second of all, if ffmpeg can read it, you can play it with mpv
[18:38:51 CET] <Kuun-Lann> https://zerobin.net/?59683b335583f56f#QuhpEBg+kP1RbrZAwSnBJIf5bECNLiwrswKX9…
[18:38:56 CET] <Kuun-Lann> result of ffprobe
[18:39:34 CET] <thebombzen> sounds like the file has the wrong extension ^_^
[18:39:38 CET] <Kuun-Lann> oO
[18:39:40 CET] <Kuun-Lann> really ?
[18:39:44 CET] <Kuun-Lann> wow
[18:39:57 CET] <kerio> no it doesn't
[18:40:04 CET] <Kuun-Lann> but what is the good extension in this case ?
[18:40:09 CET] <thebombzen> it doesn't? hm
[18:40:17 CET] <kerio> according to https://www.reddit.com/r/Dominions4/comments/45lmxn/dominions_music/czypen6/
[18:40:18 CET] <thebombzen> I'm wrong then. TIL the correct extension for gsm audio
[18:40:31 CET] <kerio> it's a-law
[18:40:44 CET] <thebombzen> either way you can play it with mpv
[18:40:48 CET] <furq> 17:35:14 ( furq) pcm_alaw to flac should be pretty small
[18:40:49 CET] <furq> ahem
[18:40:51 CET] <thebombzen> you don't need to convert it first
[18:40:51 CET] <kerio> furq pls
[18:40:52 CET] <Kuun-Lann> kerio : exactly this is the sondtrack from dominion xD
[18:40:59 CET] <thebombzen> or you can play it with ffplay too
[18:41:03 CET] <kerio> furq: ffprobe is misguessing tho
[18:41:05 CET] <thebombzen> ffplay input_file
[18:41:13 CET] <furq> well it might be the wrong file extension
[18:41:23 CET] <thebombzen> ffplay is a very primitive media player that comes with ffmpeg
[18:41:29 CET] <kerio> nah, "sampled at 22050 Hz"
[18:41:33 CET] <kerio> that ffprobe says 8kHz
[18:41:39 CET] <furq> all bets are off when it comes to games
[18:41:48 CET] <thebombzen> why don't games just like
[18:41:51 CET] <thebombzen> use vorbis or opus audio
[18:41:51 CET] <furq> if it's only intended to be read by one custom player, it could be anything
[18:41:56 CET] <furq> most modern games do
[18:41:59 CET] <thebombzen> okay
[18:42:04 CET] <thebombzen> cause afaik that was the primary thing they did
[18:42:15 CET] <furq> older games are all over the map though
[18:42:20 CET] <thebombzen> speaking of opus
[18:42:27 CET] <furq> old games use just about every obscure pcm format you can imagine
[18:42:28 CET] <thebombzen> how good is libopus compared to libfdk_aac
[18:42:34 CET] <furq> it should be better
[18:42:45 CET] <furq> that multiformat listening test ranks it above apple aac
[18:42:52 CET] <furq> and apple aac is supposed to be the best aac encoder
[18:42:58 CET] <thebombzen> is libopus the best (lossy) audio encoder in libavcodec?
[18:43:03 CET] <furq> i should have thought so
[18:43:18 CET] <thebombzen> is there any reason not to use it as long as the target supports it
[18:43:38 CET] <furq> hardware decode?
[18:43:44 CET] <thebombzen> hm. I guess. but audio is not super relevant there
[18:43:56 CET] <thebombzen> also does opus go inside mp4
[18:43:59 CET] <thebombzen> cause for some reason vorbis does
[18:44:00 CET] <furq> idk how much difference it makes but pretty much every phone has hardware aac decode
[18:44:11 CET] <furq> iirc opus does in theory but doesn't in practice
[18:44:18 CET] <thebombzen> what does that mean
[18:44:19 CET] <c_14> There's a spec, but it's not final yet
[18:44:23 CET] <furq> yeah
[18:44:23 CET] <thebombzen> as in what roadblocks happen
[18:44:26 CET] <thebombzen> ah
[18:44:35 CET] <furq> it is or will soon be part of the spec but nothing supports it yet
[18:44:38 CET] <thebombzen> so it could if someone does the heavy lifting
[18:44:42 CET] <thebombzen> but nobody's fleshed it out yet?
[18:44:47 CET] <furq> and hardware players rarely have fixes backported
[18:45:10 CET] <thebombzen> anothe question (lots of questions)
[18:45:31 CET] <thebombzen> what's the best intermediary format for WIP stuff
[18:45:35 CET] <thebombzen> file format I mean
[18:45:41 CET] <thebombzen> I've been using matroska
[18:45:44 CET] <furq> probably mkv or nut
[18:45:59 CET] <furq> depends what you're loading it into though
[18:46:02 CET] <thebombzen> nut is supposed to hold anything ffmpeg can produce but in my experiences there's stuff that's gone in mkv that's not in nut
[18:46:10 CET] <furq> i imagine a lot of commercial NLEs won't accept either of those
[18:46:10 CET] <thebombzen> feeding it back into lavf
[18:46:24 CET] <furq> i think nut is streamable, if that makes a difference
[18:46:30 CET] <thebombzen> mkv is to if you use -live 1
[18:46:38 CET] <thebombzen> when muxing I mean
[18:46:42 CET] <furq> oh
[18:47:05 CET] <thebombzen> essentially what I'm saying is, I've been using mkv and I havne't had any problems
[18:47:10 CET] <furq> i imagine you'd want to redo it from the start anyway
[18:47:25 CET] <thebombzen> -live 1 is nice if you're dumping a 1 minute thing
[18:47:28 CET] <thebombzen> and you want to preview it
[18:47:37 CET] <kerio> opus doesn't do 44100Hz
[18:47:42 CET] <kerio> which could be an issue
[18:48:02 CET] <furq> i can only imagine that wouldn't be the case if resampling to 48khz was a big deal
[18:48:08 CET] <furq> i'm pretty clueless when it comes to audio though
[18:48:43 CET] <thebombzen> uhhh
[18:48:48 CET] <thebombzen> why does opus not do 44.1 kHz
[18:48:51 CET] <thebombzen> that sounds like a design flaw
[18:48:58 CET] <thebombzen> given that that's what comes off of a CD
[18:49:02 CET] <furq> https://en.wikipedia.org/wiki/Opus_(audio_format)#Sample_rates
[18:49:08 CET] <kerio> the high-res release of supercollider/the butcher by radiohead had one song at 48khz and the other at 44.1khz
[18:49:12 CET] <kerio> :|
[18:49:17 CET] <furq> nice
[18:49:43 CET] <thebombzen> also
[18:49:46 CET] <furq> Note that it's generally preferable for a decoder to output at 48kHz, even when you know the original input was 44.1kHz. This is not only because you can skip resampling, but also because many cheaper audio interfaces have poor quality output for 44.1kHz.
[18:49:50 CET] <furq> that's their justification for it
[18:50:03 CET] <fritsch> furq: haha
[18:50:04 CET] <thebombzen> hm
[18:50:14 CET] <furq> https://wiki.xiph.org/OpusFAQ#But_won.27t_the_resampler_hurt_the_quality.3F…
[18:50:18 CET] <furq> and that as well
[18:50:30 CET] <thebombzen> another question
[18:50:35 CET] <thebombzen> is there any reason to use TS over mkv
[18:50:36 CET] <thebombzen> in general
[18:51:06 CET] <thebombzen> the MKV muxer in OBS's recording is bugged so if you seek you lose the audio stream
[18:51:13 CET] <thebombzen> but I'm not sure any other reason
[18:51:16 CET] <kerio> lmao
[18:51:16 CET] <furq> i use ts if i want something streamable, but idk if it's actually more reliable than mkv with -live 1
[18:51:31 CET] <thebombzen> I know ts is concatenation-friendly
[18:51:35 CET] <thebombzen> but that's like it
[18:51:47 CET] <kerio> that bit about resampling being way more precise than any lossy compression is a fair point
[18:52:18 CET] <furq> yeah i trust the xiph guys to have not made a major oversight like that without being able to justify it
[18:52:30 CET] <thebombzen> that's a reasonable justification
[18:52:44 CET] <thebombzen> "we didn't want to support 44.1 kHz because yall idiots shouldn't be using it"
[18:52:49 CET] <kerio> :D
[18:52:51 CET] <furq> all my music is flac or mp3 anyway
[18:52:56 CET] <thebombzen> mp3 :P
[18:53:00 CET] <thebombzen> feels bad man
[18:53:05 CET] <kerio> "we didn't want to support 44.1kHz because it's $current_year and srsly now"
[18:53:12 CET] <furq> i'll gladly upgrade to flac if you can find me a source for it
[18:53:26 CET] <furq> i didn't choose mp3, mp3 chose me
[18:53:34 CET] <thebombzen> I actually have most of my collection as alac-in-mp4
[18:53:39 CET] <furq> eww
[18:53:40 CET] <thebombzen> becaues I'm weird and have an iPhone
[18:53:41 CET] <kerio> furq: http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz
[18:53:48 CET] <kerio> here's the source for flac :^)
[18:53:48 CET] <furq> you sicken me
[18:53:49 CET] <furq> both of you
[18:53:57 CET] Action: kerio has alac because itunes
[18:54:03 CET] <thebombzen> same
[18:54:13 CET] <kerio> also because the alac encoder gave me *slightly* more compression than flac
[18:54:16 CET] <thebombzen> I need iTunes to put stuff on my iphone
[18:54:21 CET] <furq> really?
[18:54:23 CET] <thebombzen> well alac is generally worse that flac
[18:54:26 CET] <furq> yeah
[18:54:34 CET] <kerio> was better here, idk :|
[18:54:34 CET] <thebombzen> it's an inferior codec
[18:54:40 CET] <thebombzen> although
[18:54:48 CET] <thebombzen> I'm loving the VLC iphone app
[18:54:49 CET] <furq> it's a codec that has no reason to exist
[18:55:03 CET] <furq> it is worse than flac in every measurable way
[18:55:04 CET] <thebombzen> the VLC iphone app works through afc
[18:55:06 CET] <thebombzen> so like
[18:55:12 CET] <thebombzen> I can plug it into my linux box
[18:55:21 CET] <kerio> D; flac was better here
[18:55:28 CET] <furq> that reminds me, i should get mpv running on my phone
[18:55:28 CET] <thebombzen> using gvfs I can transfer an lavf/lavc compatible file
[18:55:29 CET] <kerio> 1823kbps vs 1826kbps
[18:55:38 CET] <thebombzen> all on linux
[18:55:40 CET] <thebombzen> and I don't have to sync
[18:55:41 CET] <furq> what is this 24-bit bullshit
[18:55:43 CET] <thebombzen> and I can play it on vlc
[18:55:50 CET] <thebombzen> 24-bit bullshit?
[18:55:54 CET] <thebombzen> what do you mean
[18:55:56 CET] <furq> 17:55:29 ( kerio) 1823kbps vs 1826kbps
[18:55:59 CET] <thebombzen> haha
[18:56:09 CET] <thebombzen> 24-bit flac is useful if you're going to be editing the audio
[18:56:12 CET] <kerio> furq: sing a song of sixpence that goes BUUUUUURN THE WIIIITCH
[18:56:20 CET] <thebombzen> but straight up it's convereted to 16 anyway before it's sent to the hardware
[18:56:35 CET] <thebombzen> it's like 96 kHz audio
[18:56:41 CET] <kerio> i have a 1077kbps 16bit 44.1khz
[18:56:48 CET] <thebombzen> you can't hear the difference cause the hardware supports 48
[18:56:54 CET] <thebombzen> but it's useful for editing
[18:56:56 CET] <furq> anyway yeah
[18:56:57 CET] <furq> https://xiph.org/flac/images/all-tracks-encode.png
[18:56:59 CET] <furq> https://xiph.org/flac/images/all-tracks-decode.png
[18:57:14 CET] <thebombzen> 1000k is on the high end for cd quality lossless
[18:57:24 CET] <thebombzen> most of my cd quality flacs are ~800k
[18:57:24 CET] <furq> cue somebody saying "wtf is wma lossless"
[18:57:30 CET] <thebombzen> is that a thing
[18:57:34 CET] <furq> it sure is
[18:57:38 CET] <thebombzen> why would anyone use it
[18:57:38 CET] <kerio> why wouldn't it be
[18:57:51 CET] <furq> well i've heard that some people use alac
[18:57:55 CET] <kerio> o/
[18:57:57 CET] <furq> so why wouldn't microsoft think they can pull the same bullshit
[18:58:07 CET] <thebombzen> becaues nobody has windows phones
[18:58:07 CET] <kerio> because microsoft doesn't have the hardware to support it
[18:58:11 CET] <kerio> where are you going to play that shit
[18:58:12 CET] <kerio> on a zune?
[18:58:16 CET] <furq> yes
[18:58:19 CET] <furq> i will play it on my zune
[18:58:21 CET] <kerio> fair
[18:58:31 CET] <kerio> thebombzen: my hardware claims to support 96/24
[18:58:35 CET] <kerio> it's like a mode i can set
[18:58:36 CET] <thebombzen> haha
[18:58:44 CET] <thebombzen> that's specialty hardware right there
[18:58:45 CET] <kerio> idk
[18:58:50 CET] <thebombzen> my speakers don't
[18:59:05 CET] <kerio> to be fair i don't necessarily doubt it does
[18:59:09 CET] <thebombzen> lol APE
[18:59:15 CET] <thebombzen> I'm not sure why anyone uses monkey's audio
[18:59:16 CET] <furq> i still see a ton of ape
[18:59:17 CET] <thebombzen> when flac is a thing
[18:59:21 CET] <thebombzen> I see it all the time
[18:59:23 CET] <kerio> it's just that when on speakers i hear a lot of farting if i crank up the volume
[18:59:24 CET] <thebombzen> I just don't know why
[18:59:30 CET] <thebombzen> ape is weird cause it's symmetric
[18:59:32 CET] <furq> people use it because it compresses ~3% better according to that chart
[18:59:34 CET] <kerio> so frankly the distinction between 48khz and 96khz is probably lost on me
[18:59:35 CET] <thebombzen> like decoding is just a slow as encoding
[18:59:37 CET] <furq> and they think that's important
[18:59:39 CET] <thebombzen> haha
[18:59:47 CET] <thebombzen> those are people with too much time on their hands
[18:59:53 CET] <furq> although i see plenty compressed with the faster presets
[19:00:01 CET] <thebombzen> that makes no sense XD
[19:00:02 CET] <thebombzen> like
[19:00:03 CET] <kerio> i want opus lossless :<
[19:00:09 CET] <thebombzen> opus lossless is kinda silly?
[19:00:12 CET] <thebombzen> like what's the point
[19:00:14 CET] <thebombzen> why not just flac
[19:00:31 CET] <furq> ape beats flac -8 for encoding speed and compression at the faster presets
[19:00:37 CET] <furq> but then the decoding speed is trash
[19:00:53 CET] <thebombzen> yea idk what the ponit is
[19:01:01 CET] <thebombzen> speaking of lossless is there any consensus on the best lossless video codec
[19:01:12 CET] <furq> i've seen probably half of those codecs in the chart in the wild
[19:01:16 CET] <thebombzen> I've been using ffv1 but I'm not sure how good it is relative to x264 -crf 0
[19:01:16 CET] <kerio> ffv1 i guess
[19:01:30 CET] <furq> never seen la, optimfrog, mp4 als or wma lossless
[19:01:37 CET] <kerio> x264 doesn't support a lot of pixel formats tho
[19:01:42 CET] <thebombzen> so
[19:01:50 CET] <thebombzen> who needs a lot of pixel formats
[19:02:03 CET] <thebombzen> what do people use to record the screen btw?
[19:02:16 CET] <furq> it does yuv420/422/444 and bgr
[19:02:24 CET] <furq> i guess if you're some gray16-using weirdo that's not good enough
[19:02:26 CET] <thebombzen> I actually discovered that utvideo-in-matroska is pretty decent
[19:02:39 CET] <thebombzen> cause my cpu can't do ffv1 in realtime
[19:02:51 CET] <thebombzen> what do other people use to record the screen
[19:02:52 CET] <furq> x264 lossless seems decent
[19:02:59 CET] <thebombzen> x264 -preset ultrafast -crf 0?
[19:03:02 CET] <furq> i haven't recorded the screen in a long time though
[19:03:03 CET] <furq> -qp 0, but yeah
[19:03:19 CET] <furq> you will get noticeable gains with slower presets, but obv it's slower
[19:03:22 CET] <thebombzen> is x264 not smart enough to automatically do -qp 0 from -crf 0
[19:03:31 CET] <furq> -crf 0 == -qp 0 with 8-bit x264
[19:03:34 CET] <furq> it's not the same with 10-bit
[19:03:58 CET] <furq> it's a minor nitpick but it's best to mention it now
[19:04:20 CET] <furq> i wonder if 10-bit x264 is noticeably better at lossless
[19:05:04 CET] <fritsch> try to find out on a raspberry pi2
[19:05:14 CET] <furq> sounds like a plan
[19:05:21 CET] <fritsch> it won't be able to decode it
[19:05:27 CET] <fritsch> like not any other hw decoder
[19:05:31 CET] <furq> sure it will
[19:05:35 CET] <fritsch> no it won't
[19:05:39 CET] <thebombzen> hm I'm testing hevc_nvenc's lossless right now
[19:05:40 CET] <furq> it'll decode the shit out of it at 1fps
[19:05:41 CET] <thebombzen> I wonder how awful it is
[19:05:48 CET] <fritsch> furq: hehe
[19:05:50 CET] <fritsch> yeah
[19:05:57 CET] <thebombzen> probably not bad given that I'm just typing into KVIrc
[19:06:06 CET] <fritsch> I really like hevc, even 8 bit makes some good results
[19:06:08 CET] <fritsch> see: 2.2 MB
[19:06:33 CET] <furq> isn't nvenc's hevc generally worse than x264
[19:06:35 CET] <fritsch> https://dl.dropboxusercontent.com/u/55728161/servus-extracted.ts
[19:06:41 CET] <furq> that's what i've heard from people in here anyway
[19:07:27 CET] <thebombzen> welp
[19:07:45 CET] <thebombzen> I got 2.5 Mbps with hevc_nvenc's lossless
[19:07:47 CET] <thebombzen> that's not bad
[19:07:59 CET] <thebombzen> but I've also got very minimal movement
[19:08:05 CET] <furq> yeah record a game or something
[19:08:05 CET] <thebombzen> x264 probably could do it with 800 kbps
[19:08:19 CET] <thebombzen> record a game? but then I have to reboot into windows XD
[19:08:36 CET] <furq> mame works just fine on linux
[19:08:38 CET] <thebombzen> I could try something like Mincraft but x11grab doesn't liek grabbing it
[19:08:54 CET] <thebombzen> I've had isues grabbing minecraft with x11grab. lots of flickering a zfighting and stuff
[19:08:55 CET] <thebombzen> it's weird
[19:09:25 CET] <furq> mame supports mng output iirc
[19:09:34 CET] <furq> actually why am i still talking as if you have mame there
[19:09:59 CET] <kerio> why wouldn't they have mame
[19:10:06 CET] <furq> i always forget that normal people don't have mame and 50GB of roms installed on all their machines
[19:10:06 CET] <thebombzen> wow I'm getting a really annoying spam of effors
[19:10:12 CET] <thebombzen> errors*
[19:10:17 CET] <kerio> but furq
[19:10:18 CET] <thebombzen> or rather warnings I should say
[19:10:24 CET] <kerio> the t7z-split set is only 35gb
[19:10:25 CET] <thebombzen> apparently when I record with hevc_nvenc to matroska
[19:10:33 CET] <thebombzen> it spams that the past duration is whatever
[19:10:39 CET] <furq> or more than 50GB of roms in my case because i have the 148 roms and then diffs of every version above that
[19:10:49 CET] <thebombzen> liike I get "past duration 0.95 is too large" spam
[19:10:53 CET] <thebombzen> do yo know how to fix that
[19:10:59 CET] <kerio> 32 versions behind? ð
[19:11:04 CET] <furq> that message doesn't necessarily mean anything iirc
[19:11:12 CET] <thebombzen> I agree that it's harmless
[19:11:17 CET] <furq> kerio: shmupmame
[19:11:23 CET] <thebombzen> but it's annoying because it makes the status hard to read
[19:11:25 CET] <furq> unless the lagless drivers made it into mainline now
[19:11:28 CET] <furq> i've not been keeping up
[19:11:38 CET] <thebombzen> you know how ffmpeg prints a line of status
[19:11:43 CET] <thebombzen> and then a \r and keeps going
[19:11:50 CET] <furq> -v error -stats
[19:11:51 CET] <thebombzen> well because the past duration warning prints a \n it spams the terminal
[19:11:57 CET] <thebombzen> uh
[19:11:57 CET] <kerio> but the best game ever (dfkbl) was only added since a couple of versions D;
[19:12:09 CET] <thebombzen> oh okay I didn't know you could print stats with -v error
[19:12:20 CET] <thebombzen> I've always thought that setting the verbosity lower suppressed stats. thank you :)
[19:12:21 CET] <furq> well yeah that's why i have newer versions so i can use newer mame to play zero team 2000
[19:12:30 CET] <thebombzen> also what's mame
[19:12:44 CET] <kerio> arcade game emulator
[19:12:48 CET] <furq> but i need the 148 roms so i can play battle garegga (the actual best game ever) with one frame less lag
[19:12:57 CET] <kerio> smh
[19:13:12 CET] <furq> and dangun feveron, unquestionably cave's magnum opus
[19:13:17 CET] <furq> it's all been downhill from there
[19:13:52 CET] <kerio> has it
[19:14:33 CET] <kerio> esprade was pretty good
[19:16:43 CET] <furq> this is reminding me that i should play strania
[19:18:36 CET] <kerio> you should play pokemon sun/moon ;o
[19:18:42 CET] <kerio> it's the greatest pokemon of all time
[19:24:39 CET] <thebombzen> nope x11grab still hates minecraft
[19:24:58 CET] <furq> who can blame it
[19:25:06 CET] <kerio> it's an opengl game
[19:25:13 CET] <kerio> use syphon or whatever it's called
[19:26:23 CET] <thebombzen> what should I use to grab the screen?
[19:26:24 CET] <thebombzen> syphon?
[19:26:31 CET] <thebombzen> does it have an avdevice input
[19:27:36 CET] <kerio> hold on whats the reason you're not using OBS
[19:30:28 CET] <thebombzen> cause I like ffmpeg?
[19:34:14 CET] <kerio> OBS uses ffmpeg
[19:55:00 CET] <thebombzen> well I figured out why not to use obs
[19:55:02 CET] <thebombzen> it can't stop recording
[19:58:22 CET] <ThomasEgi> thebombzen, most opengl applications record fine if you don't run them in native fullscreen.
[19:58:33 CET] <thebombzen> okay
[19:58:34 CET] <ThomasEgi> a borderless window at the screen resolution often does a great job
[19:58:51 CET] <thebombzen> sure
[19:58:52 CET] <ThomasEgi> given you'r not running anything fancy like 3d-accelerated desktops
[19:59:00 CET] <thebombzen> lol MATE
[19:59:27 CET] <ThomasEgi> i'd recommend lxde. or awesomewm (later makes it really easy to run borderless windows in fullscreen
[20:04:47 CET] <thebombzen> well I use MATE
[20:05:11 CET] <thebombzen> I can just use Ctrl+Alt+F11 to borlessly fullscreen a window
[20:05:20 CET] <thebombzen> or rather. Alt+F11 my bad.
[20:42:56 CET] <phillipk> trying to learn more about ffmpeg to make my conversion project function. I think I need to see some variations--for example, the filter_complex I created (to put a fake mouse cursor in a different location of every frame) is too long for the cmd to work.
[20:43:32 CET] <phillipk> in case anyone has a minute, I am eager to solve: http://ffmpeg.gusari.org/viewtopic.php?f=11&t=3329
[21:34:09 CET] <phillipk> as for my question above, I've found how I can put a dynamic expression inside my overlay=x=2 vs. overlay=x=t*100, but what I'd like to do is dump all the x coordinates into a text file and then have something like "overlay=x=getLineFromFile(2)" and "getLineFromFile()" serves as a function that reads from file. Is there a way to put subroutines inside a command?
[21:49:19 CET] <thebombzen> phillipk: it sounds like if you use -vf tile you can do this easily
[21:49:37 CET] <phillipk> i'll check it out...
[21:50:24 CET] <thebombzen> I already have the docs up so here's a link: https://ffmpeg.org/ffmpeg-filters.html#tile
[21:50:53 CET] <furq> you could maybe do it with sendcmd
[21:50:55 CET] <furq> https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd
[22:34:53 CET] <phillipk> @furq it looks like that should work, I'm just having issues...
[22:35:32 CET] <phillipk> ffmpeg -i input.mp4 -i cursor.png -filter_complex sendcmd=f=test.cmd output.mp4
[22:35:39 CET] <phillipk> then, the test.cmd:
[22:35:49 CET] <phillipk> 00:00:01.000-00:00:03.00 [enter] overlay=x=20:y=30; [leave] overlay=x=20:y=40;
[22:36:55 CET] <phillipk> I think I should be able to forgo the [leave].... but the issue with sendcmd that's confusing it that it's supposed to be inbetween two exisiting filters
[22:38:20 CET] <phillipk> this (ffmpeg -i input.mp4 -i cursor.png -filter_complex sendcmd=f=test.cmd output.mp4) gives me "error configuring filters"
[22:38:56 CET] <furq> i think you need sendcmd=f=test.cmd,overlay
[22:39:10 CET] <furq> otherwise there's no overlay filter in the chain to send commands to
[22:39:27 CET] <furq> i've never had much luck with sendcmd though
[22:39:57 CET] <phillipk> I think I'm closer--this helps.
[23:09:18 CET] <phillipk> filter_complex_script looks promising, I just have to format my file correctly it seems.
[23:13:26 CET] <MoonOwl> hi
[23:14:01 CET] <phillipk> hey, I'm trying to make filter_complex_script (pointing to a file containing the filter)
[23:14:46 CET] <durandal_1707> script is fIle with filtergraph
[23:14:49 CET] <MoonOwl> I am new to FFMPEG and wanted to know how I can prevent the bitrate from rising exponentially during encoding to x264 and x265 using the crf option
[23:16:19 CET] <MoonOwl> Using crf 20 with x265 the bitrate rises from the 200 - 300 kbps region to close to 4 Mbps from MPEG2 source
[23:16:51 CET] <MoonOwl> The output bitrate never goes down again
[23:19:47 CET] <MoonOwl> I tried setting -preset to placebo just to test if it's got anything to do with that setting but it seems not to
[23:30:50 CET] <furq> MoonOwl: pastebin the full command and output
[23:37:02 CET] <kerio> MoonOwl: aiui placebo is mostly harmful
[23:40:03 CET] <MoonOwl> That is the most ironic thing I have read today lol. Let me redirect the output of a sample just to illustrate what I'm referring to
[23:40:13 CET] <MoonOwl> Thanks btw guys and gals
[23:41:27 CET] <kerio> well
[23:41:45 CET] <kerio> it's just that it's appreciably slower than veryslow whilst not delivering many improvements
[23:46:57 CET] <BtbN> the bitrate ffmpeg shows is the average overall bitrate.
[23:47:15 CET] <BtbN> If it's low in the beginning it's because of initial blackness, the intro, or something
[23:48:15 CET] <MoonOwl> http://pastebin.com/EdGUFC87
[23:48:24 CET] <MoonOwl> That's the command
[23:48:48 CET] <DHE> what's the resolution of the video and what is it? (video game play? security camera footage?)
[23:48:54 CET] <MoonOwl> I suspect ffmpeg writes to stderrr like git and redirecting the output is a bit of a problem
[23:49:00 CET] <MoonOwl> It's 720x540
[23:49:05 CET] <MoonOwl> after cropping
[23:49:16 CET] <BtbN> why is that a problem? Just redirect stderr
[23:49:28 CET] <DHE> stdout is reserved for pipe outputs and stuff
[00:00:00 CET] --- Mon Dec 19 2016
1
0
[00:52:07 CET] <kierank> any idea how to reset the dc predictor in mpeg4video dec?
[00:56:55 CET] <kierank> mpegvideoenc is insane
[01:24:19 CET] <kierank> michaelni: ping
[01:26:49 CET] <kierank> what does int (*decode_mb)(struct MpegEncContext *s, int16_t block[6][64]); // used by some codecs to avoid a switch()
[01:26:50 CET] <kierank> mean?
[01:26:52 CET] <kierank> switch what?
[01:27:11 CET] <kierank> hardcode the function in order ot avoid a switch(chroma_format)?
[01:27:13 CET] <iive> switch {case}
[01:28:19 CET] <iive> mpeg2 mpeg4asp and wmv1/2 use different decode_mb
[01:29:07 CET] <kierank> mpeg4videodec sets this but doesn't call it
[01:38:25 CET] <iive> h263dec uses it, so does error_resilence
[02:16:11 CET] <kierank> michaelni: am I right in saying the code assumes that there is one slice per row of MBs?
[02:24:41 CET] <BBB> kierank: omg poor you
[02:24:49 CET] <BBB> kierank: youre not actually working on mpegvideoenc are you?
[02:25:15 CET] <kierank> I want to fix https://trac.ffmpeg.org/ticket/4447
[02:25:36 CET] <kierank> implement mpeg-4 sstp
[02:28:43 CET] <michaelni> kierank, the mpeg4 decoder supports arbitrary slice sizes, so does mpeg1 & 2. The encoders should too but i think not as 1 thread per slice but its all long ago that i worked with the code
[02:28:56 CET] <kierank> but there's nowhere for the slice header to be decoded
[02:29:06 CET] <kierank> ret = s->decode_mb(s, s->block);
[02:29:14 CET] <kierank> if (ret == SLICE_END) {
[02:29:21 CET] <kierank> but where should one decode the slice header?
[02:29:46 CET] <kierank> and it's all hardcoded to 4:2:0
[02:30:39 CET] <michaelni> ff_mpeg4_decode_video_packet_header()
[02:31:03 CET] <michaelni> terminology is from the spec IIRC
[02:31:09 CET] <kierank> yes but studio profile adds a slice header
[02:31:15 CET] <kierank> and there's nowhere to decode it
[02:33:59 CET] <michaelni> where is that header documented ?
[02:34:38 CET] <kierank> in the latest version of the spec
[02:34:59 CET] <kierank> https://usercontent.irccloud-cdn.com/file/SEEjO79P/ISO_IEC_14496-2_2004(e).…
[02:35:06 CET] <kierank> I've implemented the bitstream: https://github.com/kierank/ffmpeg-sstp
[02:35:23 CET] <kierank> but I can't get the dc coeff decode and ac coeff decode to fit into all of this stuff
[02:45:28 CET] Action: michaelni see field pictures in mpeg4, not want to touch this, no no no
[02:46:27 CET] <kierank> the samples on the ticket are progressive
[02:46:50 CET] <kierank> mpeg-4 doesn't have mbaff so i think it's not too bad anyway if we get interlaced samples
[02:48:39 CET] <michaelni> mpeg4 does have something quite similar to mbaff and we support it, adding field pictrures really was dumb from the comitee IMHO
[02:49:25 CET] <kierank> it has mpeg-2 style "mbaff, no?"
[02:49:49 CET] <kierank> I have implemented all the studio header parsing
[02:50:04 CET] <michaelni> yes it probably can be called mpeg2 style
[02:51:17 CET] <kierank> StudioSlice() is my problem
[02:51:28 CET] <Compn> is there any other open source decoder that supports this ? just curious... xvid ? etc
[02:51:58 CET] <kierank> it's a layer between VOP and MB
[02:52:06 CET] <kierank> which the code doesn't have
[02:53:13 CET] Action: Compn mumbles something about putting wrapper lib in ffmpeg and then waiting for someone to pay to get it in lavc...
[03:00:46 CET] <rcombs> fuck mbaff though
[03:01:20 CET] <rcombs> (fuck field pictures more)
[03:07:45 CET] <kierank> fuck 1080p25
[03:07:52 CET] <kierank> blurry as hell
[03:22:25 CET] <Compn> fuck interlaced
[03:23:32 CET] <BBB> woohoo Im not the only one that hates interlacin
[03:24:15 CET] <Compn> i think most people here do heh
[03:27:10 CET] <kierank> I am not sure whether to merge studioslice with vop or with mb
[03:27:51 CET] <kierank> or how to get it into that
[03:32:03 CET] <kierank> I don't know where the dc predictor is reset
[03:36:43 CET] <TD-Linux> kierank, when I was in the tate modern art museum I was surprised how much 50hz crts flicker compared to 60hz
[03:46:59 CET] <kierank> hmmm maybe it's not a predictor as such
[03:47:02 CET] <kierank> just used for ER
[03:47:18 CET] <kierank> but something doesn't make sense
[04:23:41 CET] <kierank> michaelni: where is the dc predictor reset for intra blocks in a new slice?
[04:23:43 CET] <kierank> I can't find that
[04:30:17 CET] <michaelni> i hope iam not telling you something wrong, its a while ago, but i think it isnt reset, ff_mpeg4_pred_dc() instead checks for slice borders
[04:33:24 CET] <kierank> but how does it know where the slices end
[04:33:44 CET] <kierank> pretty sure it has to make shape assumptions
[04:33:59 CET] <kierank> or maybe mpeg-4 asp has some stuff to aid
[04:34:38 CET] <kierank> this resync_mb_x stuff isn't in sstp
[04:41:34 CET] <rcombs> http://inta.re
[04:46:27 CET] <kierank> michaelni: and do you know how the hardcoded number of 1024 is derived
[04:46:40 CET] <kierank> I will need to get rid of dozens of hardcoded values
[04:48:23 CET] <kierank> 2 ^ (bits_per_pixel+dct_precision+intra_dc_precision-1)
[04:48:45 CET] <kierank> but you set it to 1024
[04:48:49 CET] <kierank> so I'm missing 3
[04:48:51 CET] <kierank> in the exponent
[04:53:33 CET] <kierank> ah it's different
[04:53:34 CET] <kierank> never mrind
[04:54:55 CET] <michaelni> 1024 probably is the dc value after dequat
[04:55:32 CET] <michaelni> i need to go afk now (for sleeping :)
[04:55:35 CET] <kierank> same
[04:55:43 CET] <kierank> night, will ask more q's tomorrow
[04:55:53 CET] <michaelni> night
[11:02:52 CET] <wm4> can somebody point out where av_vdpau_bind_context is defined if ffmpeg is compiled without vdpau?
[11:07:29 CET] <fritsch> wm4: https://lists.freedesktop.org/archives/mesa-dev/2016-December/138472.html
[11:07:37 CET] <fritsch> trivial - the rest continues to work as is
[11:08:01 CET] <wm4> fritsch: saw that (I'm CCed on that email thread)
[11:08:06 CET] <wm4> is that really all that's needed?
[11:08:29 CET] <wm4> also, disabling vdpau in ffmpeg gets me "undefined reference to `av_vdpau_bind_context'"
[11:08:29 CET] <fritsch> VAAPI changes: https://github.com/fritsch/kodi-agile/commit/ee41bc539fa4dd1f69ddc1f5ca98d2…
[11:08:49 CET] <fritsch> wm4: yes, that's all - you need to patch the kernel for the defines
[11:09:17 CET] <fritsch> those color formats are (in retrospective) very easy to implement, cause you just need to define the "structure" the memory shall have
[11:09:23 CET] <fritsch> and this memory sharing is generic
[11:09:53 CET] <fritsch> + { __DRI_IMAGE_FOURCC_R16, __DRI_IMAGE_COMPONENTS_R, 1,
[11:09:53 CET] <fritsch> + { { 0, 0, 0, __DRI_IMAGE_FORMAT_R16, 1 }, } },
[11:10:00 CET] <fritsch> these things here are the important part
[11:10:17 CET] <fritsch> and that's it no memory handling, nothing
[11:12:52 CET] <wm4> Libav have 10 bit handling in the generic vaapi context creation code too (unmerged in ffmpeg)
[11:24:10 CET] <fritsch> wm4: what does that mean? As we don't seem to miss somehting :-)
[11:27:05 CET] <wm4> jkqxz: what part of the "old" vaapi API has been deprecated?
[16:34:24 CET] <cone-975> ffmpeg 03Paul B Mahol 07master:334fad364530: avfilter/vf_ssim: add >8 bit depth suppport
[16:36:25 CET] <jkqxz> wm4: struct vaapi_context is removed completely (excepting backward compatibility during the deprecation period). lavc then does everything which the user used to have to provide through it.
[16:37:21 CET] <wm4> jkqxz: so it's not possible to provide the vaapi context yourself anymore?
[16:38:14 CET] <jkqxz> So the user just provides the output frames in an AVHWFramesContext: lavc picks the device out of it, creates its own VAAPI stuff on that device and decodes into those frames.
[16:38:57 CET] <jkqxz> It's there for backward compatibility now, but will be removed later.
[16:39:08 CET] <wm4> ok that breaks API users like mpv and kodi once the deprecation is finished, CC fritsch
[16:39:52 CET] <jkqxz> Yes, but there's plenty of time to do it.
[16:40:11 CET] <wm4> for now I can't even start working on it, lol
[16:40:41 CET] <jkqxz> I was intending to send patches to fix at least mpv and vlc once it's merged in ffmpeg.
[16:41:21 CET] <jkqxz> (I've half done the merge, maybe I should finish it soon so that we don't get too far out of sync.)
[16:41:34 CET] <wm4> I can do mpv (I plan to put an entire new source file in place)
[16:42:01 CET] <wm4> since the old API use will annoyingly have to be in place for a few years
[16:42:54 CET] <jkqxz> Don't you mandate pretty-much-current lavc (whichever one) on your master branch?
[16:43:31 CET] <wm4> no
[16:43:42 CET] <wm4> until recently it was compatible back to ffmpeg 1.6 or so
[16:43:43 CET] <wm4> *2.6
[16:43:48 CET] <wm4> (1.6 would be too crazy)
[16:44:04 CET] <jkqxz> Oh. That sounds like an immense bundle of fun.
[16:45:26 CET] <wm4> recently I bumped to latest ffmpeg/libav releases, the commit removing the compat stuff did: 22 files changed, 10 insertions(+), 278 deletions(-)
[16:46:58 CET] <JEEB> right, forgot they finally made the libav 12 release
[17:33:48 CET] <BtbN> https://github.com/FFmpeg/FFmpeg/pull/242/files uhm...
[17:34:08 CET] <BtbN> Failed at reading that very text
[17:39:19 CET] <J_Darnley> Probably some stupid bot making idiotic corrections (like wikipedia)
[17:39:41 CET] <kierank> nice torrll
[17:40:09 CET] <wm4> kierank: Hanlon's razor
[17:41:52 CET] <fritsch> i think the patch is wrong
[17:41:54 CET] <fritsch> :-)
[17:42:05 CET] <fritsch> but at least the title says it correctly
[18:45:53 CET] <cone-975> ffmpeg 03Zhou Xiaoyong 07master:5b74ebe93723: avcodec/mips: version 1 of vc1dsp optimizations for loongson mmi
[18:45:54 CET] <cone-975> ffmpeg 03Pavel Koshevoy 07master:6b517a194da4: lavc: Fix ticket 6024, truncated mode decoding
[19:50:25 CET] <Compn> anyone want a 4k prores 422 sample? its only 16gb...
[19:50:41 CET] <Compn> 4096x3072
[20:19:04 CET] <cone-975> ffmpeg 03Jay Ridgeway 07master:295601bba302: avformat/tls: add tls url_get_file_handle
[20:27:13 CET] <durandal_1707> Compn: what's in it?
[21:18:18 CET] <Compn> durandal_1707 : captain ron 35mm trailer (4k scan)
[21:21:59 CET] <durandal_1707> Compn: is it special somehow?
[21:28:37 CET] <Compn> durandal_1707 : its got kurt russel in it, otherwise its a fun film. but no, not special
[21:30:23 CET] <Compn> i dont really feel like downloading and uploading it anyway
[21:30:25 CET] <Compn> so nevermind :D
[21:55:42 CET] <durandal_1707> Compn: find pixlet samples, not from xiph?
[21:56:05 CET] <durandal_1707> I already havery one from xiph it's 3.6gb
[21:56:53 CET] <atomnuker> Compn: sure, I'll have it, got any way to send it?
[22:30:17 CET] <TD-Linux> we have pixlet samples?
[22:30:51 CET] <TD-Linux> oh you were referring to meridian
[23:48:42 CET] <Compn> those mac video people are stingy with samples
[23:48:52 CET] <Compn> but if you need them write up a ffmpeg.org entry requesting them
[23:49:03 CET] <Compn> im sure we get a few if we post to our front page
[00:00:00 CET] --- Sun Dec 18 2016
1
0
[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-f…
[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
1
0
[00:01:51 CET] <blue_misfit> hey you responded! more than most folks on #ffmpeg ever did lol!!
[00:02:09 CET] <Compn> thats why they pay me the big bucks!
[02:07:41 CET] <cone-892> ffmpeg 03Martin Vignali 07master:6672a49e5a38: fate/psd: add tests for uncompress and rle samples
[02:07:42 CET] <cone-892> ffmpeg 03Michael Niedermayer 07master:d4c1cc2b876a: avutil/imgutils: Clarify doxy for av_image_check_size2()
[03:52:21 CET] <Zeranoe> Anyone know if FFmpeg works with libjpeg-turbo
[03:52:21 CET] <Zeranoe> , or if openjpeg 2 is supported?
[04:06:31 CET] <jamrial> Zeranoe: the latter is supported
[04:15:35 CET] <Zeranoe> jamrial: But not the former?
[04:15:45 CET] <jamrial> afaics, no
[04:16:06 CET] <Zeranoe> Thanks
[04:56:06 CET] <Zeranoe> FFmpeg doesn't care if x264 was compiled with pthread support right? It uses its own threading methods to run
[05:07:18 CET] <Zeranoe> I think I'm going to switch the Windows builds to native win32 threading instead of pthread
[05:09:47 CET] <Compn> i was unable to run your nightlies on my vista box, Zeranoe
[05:10:15 CET] <Zeranoe> Compn: The latest ones?
[05:10:26 CET] <Compn> no, let me grab an updated build
[05:10:30 CET] <Zeranoe> Compn: And vista.... really....
[05:10:37 CET] Action: blb giggles @ vista
[05:10:47 CET] <rcombs> Zeranoe: x264 just has an internal implementation of the pthread API on top of win32threads
[05:10:51 CET] <rcombs> as does ffmpeg
[05:11:08 CET] <rcombs> neither cares what the other was built with
[05:11:24 CET] <Zeranoe> rcombs: That's what I thought, wanted to make sure
[05:12:46 CET] <Compn> wow some fast speeds from your host
[05:12:55 CET] <Zeranoe> :)
[05:13:50 CET] <Compn> ffmpeg-20161210-edb4f5d-win32-static.zip , reports this on vista the procedure entry point get numa node processor mask ex could not be located in the dll kernel32.dll
[05:14:02 CET] <Compn> then it crashed
[05:14:25 CET] <Zeranoe> Compn: interesting, that's due to MFX
[05:14:25 CET] <Compn> a kernel32 dll function call that isnt available on vista
[05:14:39 CET] <Compn> mfx ?
[05:15:17 CET] <Zeranoe> qsv
[05:15:25 CET] <Zeranoe> https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=7&t=3728
[05:15:27 CET] <Compn> is there qsv on windows ?
[05:15:48 CET] <rcombs> Compn: dat buttflare
[05:15:53 CET] <Zeranoe> It's in the build
[05:16:08 CET] <Zeranoe> Compn: Are you just a fan of Vista or...
[05:16:32 CET] <Zeranoe> I dropped XP support because it's so old, and I didn't know it effect vista too. I didn't think anyone uses it
[05:16:45 CET] <rcombs> if Compn uses Vista he's the only one
[05:16:53 CET] <rcombs> Chrome even dropped support
[05:16:57 CET] <Compn> rip chrome
[05:17:09 CET] <Zeranoe> Compn: Think it's time for an upgrade?
[05:17:19 CET] <rcombs> did you miss the memo on Win10 having been free
[05:17:24 CET] <Compn> you're talking to the guy who was running win2k into this decade.
[05:17:54 CET] <rcombs> why do you seek to harm yourself and the people around you
[05:18:04 CET] <Zeranoe> Anything is free if you know where to look...
[05:18:17 CET] <Compn> damn you and your latest os upgrading automatically all the time!
[05:18:19 CET] <rcombs> it's okay, there are people who care about your well-being
[05:18:40 CET] <rcombs> just, nobody wants to maintain backwards-compatibility with your ancient OS
[05:18:45 CET] <Zeranoe> I have to agree with that. Win10 likes to f me all the time
[05:19:15 CET] Action: rcombs rings doorbell
[05:19:19 CET] <Zeranoe> "Oh you're clearly working but stepped away for two milliseconds? Time for a reboot."
[05:19:21 CET] <rcombs> HELLO!
[05:20:00 CET] <rcombs> My name is elder rcombs! And I would like to share with you this most amazing code!
[05:20:20 CET] <rcombs> It's some code to replace Windows and sucks slightly less
[05:20:51 CET] <Zeranoe> Compn: https://ffmpeg.zeranoe.com/forum/viewtopic.php?f=13&t=3572
[05:21:01 CET] <rcombs> &turns out I'm far too lazy to turn the opening number from The Book of Mormon into a song about Linux
[05:21:34 CET] <Zeranoe> Compn: Turns out there's a community of you update refusers
[05:21:49 CET] <rcombs> but yeah if you hate current Windows so much you use old Windows& have you considered not-Windows
[05:23:15 CET] <Zeranoe> Compn: I didn't design my site for IE8, so lemme know how many issues you find.
[05:26:23 CET] <rcombs> issues -> 🗑
[05:26:34 CET] <rcombs> but you can't read that character because your font doesn't support it
[05:26:58 CET] <Compn> boxes :D
[05:27:07 CET] <Zeranoe> lol
[05:27:10 CET] <Compn> also im using a web browser that isnt even made anymore
[05:27:15 CET] <Compn> old opera
[05:27:33 CET] <Zeranoe> I'm out, I can't deal with this on my Win10, bleeding edge workstation.
[05:55:13 CET] <Zeranoe> I'm sure this will upset no one, but schrodinger support was dropped from the builds.
[12:32:54 CET] <durandal_1707> BBB: do you have wmavoice specification?
[13:23:40 CET] <cone-199> ffmpeg 03Mark Harris 07master:a5cf600ccb7f: avformat/wavdec: Eliminate goto for clang -O0 DCE
[13:37:01 CET] <BBB> durandal_1707: https://wiki.multimedia.cx/index.php/Windows_Media_Audio_Voice
[13:38:17 CET] <BBB> durandal_1707: I never wrote down the postfilter, but its fairly straightforward if you read the code, its just a combination of gain control, kalman smoothening filter, wiener denoise filter and DC filter, I dont remember details
[13:40:34 CET] <durandal_1707> BBB: but it doesn't mention decoding of wmapro superframes in bitstream
[13:41:04 CET] <durandal_1707> how that one looks?
[13:41:11 CET] <BBB> its literally one wmapro superframe
[13:41:16 CET] <BBB> its not hard to wrap, I had example code once
[13:41:24 CET] <BBB> but I only ever saw it used for silence so I didnt care
[13:41:30 CET] <BBB> (sorry)
[13:41:48 CET] <BBB> it doesnt implement some other features also
[13:41:52 CET] <BBB> but it does some things correctly :)
[13:41:59 CET] <BBB> got a sample?
[13:43:16 CET] <durandal_1707> BBB: see trac timeline
[13:43:40 CET] <durandal_1707> #5426
[13:46:21 CET] <BBB> too many things in that bug report...
[13:46:26 CET] <BBB> is there a summary?
[13:48:59 CET] <BBB> ffplay(56101,0x7fff740d3000) malloc: *** error for object 0xbdbbe8443e2b635c: pointer being freed was not allocated
[13:49:00 CET] <BBB> ...
[13:52:53 CET] <jkqxz> nevcairiel: I think it wouldn't be unreasonable to add a weird tiled format as a pixfmt if there is more than one thing which uses it. They can be passed around, but most components will just treat them like opaque hwaccel pixfmts (so maybe a new flag or otherwise make clear in the component information that the layout is not sane).
[13:53:51 CET] <nevcairiel> if its fully opaque, but it isnt, its trying to be shoehorned into existing functions like swscale and imgutils, which leads to a lot of ifs all around
[13:53:53 CET] <jkqxz> It needs to be much clearer what hardware this applies to and what uses it, though. (Certainly can't be called NV12_TILED, because there are many such formats.)
[13:54:50 CET] <BtbN> could just act like the CUDA format. With an upload and download filter, so it doesn't mess up swscale
[13:56:41 CET] <nevcairiel> and even worse if there is various different variants from different hardware
[13:57:15 CET] <jkqxz> Some swscale support doesn't seem objectionable, though it needs to be cleaner than the patch currently.
[13:57:32 CET] <BtbN> nvenc also supports tiled NV12 as input, but I never saw a point in bothering with it
[13:58:11 CET] <jkqxz> I assume this specific version is the format used by some IP core, and the SoC they integrated it on doesn't have a linear remapper for it.
[14:00:48 CET] <jkqxz> (Most hardware which actually uses tiled formats also has a linear remapper in the MMU so that you can access it sensibly.)
[14:11:30 CET] <durandal_1707> BBB: i use mpv for playback, have ffplay disabled
[14:13:09 CET] <iive> tile format could be handled as pixel formats, if they do contain pixels
[14:13:18 CET] <iive> e.g. hm12
[14:20:12 CET] <BBB> its quite irritating if people who have no idea start patching decoders but dont do it correctly...
[14:23:41 CET] <BBB> durandal_1707: let me see if I can get wmapro-in-wmavoice working at least in a hacky way
[14:23:48 CET] <BBB> durandal_1707: maybe others can finish it cleanly then
[14:33:30 CET] <wm4> jkqxz: pixdesc can't represent tiled formats, so it'll have to be opaque
[14:56:59 CET] <jkqxz> Yeah, it has to be opaque in lavu and common code. swscale could deal with it, though.
[14:58:19 CET] <Compn> just woke up, whats DCE
[14:58:35 CET] <JEEB> Dead Code Elimination
[15:04:29 CET] <Compn> does not compute, back to sleep
[15:07:56 CET] <JEEB> oh fucking wow
[15:08:08 CET] <JEEB> someone ported the lavc PGS decoder to java
[15:08:17 CET] <JEEB> and is trying to push it to google's player library for android :D
[15:08:33 CET] <JEEB> https://github.com/google/ExoPlayer/pull/2143/commits/7dc4e73cae2f327aca9b8…
[15:08:43 CET] <JEEB> https://github.com/google/ExoPlayer/pull/2143/commits/7dc4e73cae2f327aca9b8…
[15:08:47 CET] <JEEB> this is just fabulous
[15:09:07 CET] <JEEB> AVSubtitleRect just pushed into java
[15:19:28 CET] <wm4> JEEB: I think this is a LGPL violation
[15:19:36 CET] <wm4> the license only talks about Apache 2
[15:22:20 CET] <JEEB> yes, the exoplayer license is Apachev2
[15:23:46 CET] <wm4> it's just a PR, commented
[16:45:47 CET] <BBB> speaking of copied code & https://github.com/webmproject/libvpx/blob/master/vpx_dsp/x86/inv_txfm_ssse…
[16:49:06 CET] <wm4> BBB: " Part; of the functions are originally derived from the ffmpeg project."
[16:49:12 CET] <wm4> but license is not LGPL
[16:49:16 CET] <BBB> indeed
[16:49:28 CET] <wm4> copyright violation by google? lol
[16:55:39 CET] <kierank> LOL
[17:06:00 CET] <durandal_1707> sue them!
[17:09:54 CET] <durandal_1707> to anyone interested: on my github branch pixlet is some code I'm looking if it can be simplified
[17:14:10 CET] <BBB> direct link?
[17:14:17 CET] <BBB> is it dsp code or is it bitreading code?
[17:14:33 CET] <BBB> I fixed the fate issue with wmavoice btw, but its a little ugly
[17:14:36 CET] <BBB> need to make it nicer
[17:14:49 CET] <BBB> Im thinking maybe I should split the bitreading from the synthesis
[17:14:56 CET] <BBB> it looks like itd make everything better
[17:25:53 CET] <wm4> lol this andreas guy has no sense for nice code
[17:33:19 CET] <durandal_1707> BBB: bitreading, dsp is multiplication with floats
[17:37:35 CET] <durandal_1707> BBB: https://github.com/richardpl/FFmpeg/tree/pixlet
[17:38:18 CET] <BBB> another_param :D
[17:39:05 CET] <durandal_1707> hey, I could pick our nicks
[17:39:24 CET] <BBB> I didnt say it was bad
[17:39:43 CET] <BBB> I did what youre using elsewhere, just v%d with reg/mem location in comments
[17:39:54 CET] <BBB> although I probably used another character, probably d
[17:39:56 CET] <BBB> I dont know why
[17:40:21 CET] <durandal_1707> look at other function which have nice names
[17:40:38 CET] <durandal_1707> ignore one with gotos
[17:40:51 CET] <durandal_1707> it's in rewritting stage
[18:08:40 CET] <Compn> another_param :D
[18:18:37 CET] <durandal_1707> Compn: renamed to compn
[18:32:58 CET] <Compn> YES
[18:33:17 CET] <Compn> theres a lot of compN functions out there tho
[19:35:08 CET] <Timothy_Gu> Compn: I'm < 18 so nah
[19:36:00 CET] <Timothy_Gu> (re mailing hard drives)
[19:36:41 CET] <Timothy_Gu> BtbN: did you see the weird PARSE_ERRORS in Coverity?
[19:37:30 CET] <BtbN> No PARSE_ERRORS yes, but some of the stuff it reported today seems odd, didn't take an in depth look yet though
[19:37:34 CET] <BtbN> *yet
[19:38:23 CET] <BtbN> uh, now I see them.
[19:38:33 CET] <BtbN> Only looked at high impact ones
[19:38:59 CET] <BtbN> "Please see the build output log for more information." just, where is it?
[19:44:10 CET] <nevcairiel> it looks like their parser dies from usage of c11 atomics =p
[19:44:47 CET] <BtbN> https://travis-ci.org/FFmpeg/FFmpeg-Coverity#L1244 it's at least not this build log.
[20:15:08 CET] <Timothy_Gu> BtbN: I think there's a separate log file in cov-int
[20:15:27 CET] <Timothy_Gu> cov-int/build-log.txt
[20:15:35 CET] <BtbN> hm
[20:16:15 CET] <Timothy_Gu> it's really big though, so I wouldn't try to `cat` it in the build script
[20:16:25 CET] <Timothy_Gu> maybe try building locally?
[20:16:41 CET] <BtbN> can just run the docker container locally
[20:17:11 CET] <Timothy_Gu> yep
[22:15:50 CET] <durandal_1707> how can compile ffmpeg with integer sanitizer?
[22:16:17 CET] <Compn> hmm sounds like special gcc option
[22:17:14 CET] <Compn> durandal_1707 : https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
[22:37:49 CET] <durandal_1707> Compn: i use clang
[22:48:34 CET] <durandal_1707> I get linking errors
[22:49:12 CET] <durandal_1707> perhaps using undefined will do same
[22:52:26 CET] <BBB> you need cflags and ldflags to use -fsanitize=integer
[22:52:42 CET] <BBB> so extra-cflags=.. and extra-ldflags (or extra-libs, I Cant remember)=..
[22:58:50 CET] <Compn> tgg
[22:58:58 CET] <Compn> wrong window.
[00:00:00 CET] --- Sat Dec 17 2016
1
0
[05:30:56 CET] <KittyCat156> Any way to horizontally flip a video in ffmpeg without re-encoding but by using metadata?
[05:32:00 CET] <furq> you can rotate 180 degrees with metadata but i don't think you can flip
[05:33:28 CET] <KittyCat156> I know you can do a lot more by changing the displaymatrix, but AFAIK you can only read it through ffmpeg/probe
[05:33:38 CET] <KittyCat156> not write to it
[05:34:30 CET] <KittyCat156> *can -> could be able to, thought that sounded strange the way I worded it
[05:38:14 CET] <furq> it looks like there's code to set display matrices in libavutil
[05:38:23 CET] <furq> i don't know if ffmpeg exposes it though
[06:07:09 CET] <fahadash> When using two or more inputs, how can I refer to them separately in filter graph?
[06:07:11 CET] <fahadash> sorry I am a noob
[06:34:48 CET] <DHE> the first is [0:a] for preferred audio or [0:v] for preferred video or [0:1] for the stream that was labeled 0:1 in the console output
[06:34:59 CET] <DHE> and the second is similarly [1:a] or [1:v] or [1:1] etc
[06:42:03 CET] <fahadash> why two labels separated by a colon?
[06:42:13 CET] <fahadash> Why couldn't it just be [1] or [2] or [a]?
[06:56:11 CET] <DHE> file number, a colon, and a stream identifier.
[06:56:28 CET] <DHE> with 'v' and 'a' as convenience labels.
[08:37:28 CET] <gion> For this example filter ffmpeg -i input.mp4 -i logo.png -filter_complex "[0:v]scale=512:-1[bg];[bg][1:v]overlay=(w-ow)/2:(h-oh)/2" is there any way to affect the graph while it runs ? I want to control the w and ow from a websocket server, anything on how to approach this problem ?
[08:45:44 CET] <ferdna> gion, sounds complicated
[08:46:03 CET] <ferdna> you could do it with php
[08:47:15 CET] <DHE> yeah, sounds like you need to do some API stuff. there are some triggerable filter commands during execution via stdin, but it's limited
[08:48:32 CET] <gion> I know gstreamer is something more proper for this, but it is quite heavy compared to just the ffmpeg binary
[08:49:01 CET] <ferdna> i always had problems with gstreamer
[08:51:59 CET] <sunny_26_> Hi I wanna submit a patch to ffmpeg
[08:52:16 CET] <sunny_26_> How can I summit a patch using git --send-email ?
[08:52:41 CET] <sunny_26_> Like how to write body and subject to it ?
[08:52:49 CET] <sunny_26_> I am unaware of it
[08:52:55 CET] <sunny_26_> please help
[08:54:27 CET] <sunny_26_> and I have to submit patch to "ffmpeg-devel(a)ffmpeg.org" ! is that correct ?
[08:55:31 CET] <ferdna> sunny_26_, if you dont know how to do that... please refrain from do it so...
[08:56:08 CET] <ferdna> from doing it
[08:59:21 CET] <DHE> or at least email yourself first to make sure it turns out okay.
[09:03:38 CET] <ferdna> sunny_26_, get an account github.com...
[09:03:47 CET] <ferdna> then fork the code you are going to modify
[09:04:02 CET] <ferdna> submit it.. and you are done...
[09:04:03 CET] <ferdna> https://github.com/FFmpeg/FFmpeg
[09:04:09 CET] <ferdna> that is the github repo for ffmpeg
[09:19:07 CET] <ferdna> markvandenborre, you here?
[09:19:26 CET] <ferdna> llamapixel, you here?
[09:22:46 CET] <sunny_26_> "Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored."
[09:44:00 CET] <markvandenborre> ferdna: what's your question?
[09:44:50 CET] <ferdna> sunny_26_, ohh cool.. i didnt know that... sorry i dont submit patches to ffmpeg
[09:44:57 CET] <ferdna> markvandenborre, can i priv msg?
[09:45:12 CET] <durandal_1707> sunny_26_: yout can attach patches to mail instead
[09:46:01 CET] <ferdna> sunny_26_, https://git-scm.com/docs/git-format-patch
[09:49:27 CET] <ferdna> https://robots.thoughtbot.com/send-a-patch-to-someone-using-git-format-patch
[09:54:10 CET] <ferdna> good night must go to bed
[09:54:11 CET] <ferdna> =S
[10:18:12 CET] <sunny_26_> durandal_1707 : Can i send my patch directly to ffmpeg-devel(a)ffmpeg.org Using my outlook ? I have already registered to ffmpeg-devel.
[10:19:00 CET] <durandal_1707> sunny_26_: yes
[10:19:45 CET] <sunny_26_> Ok
[10:20:03 CET] <sunny_26_> But what does this statement means "Is the mime type of the patch correct? It should be text/x-diff or text/x-patch or at least text/plain and not application/octet-stream. " ?
[10:20:29 CET] <sunny_26_> I am following https://ffmpeg.org/developer.html#Submitting-patches-1
[10:20:54 CET] <durandal_1707> ignore it if you can't follow
[10:21:25 CET] <sunny_26_> So they will accept my patch ? Or atleast reply back !
[10:21:50 CET] <sunny_26_> and I must send it to "ffmpeg-devel(a)ffmpeg.org" ? Right !
[10:22:49 CET] <sunny_26_> durandal_1707, Is my understanding is correct !
[10:23:58 CET] <sunny_26_> Hi u there ?
[10:56:19 CET] <karklud> \msg NickServ identify ken12damaer
[10:56:35 CET] <karklud> doh
[11:09:26 CET] <kerio> karklud: nice
[11:09:45 CET] <karklud> kerio, i'm wwaaayy to tired to be at work now........
[11:13:33 CET] <karklud> kerio, but it just showed up liked *******, right??
[11:26:45 CET] <kerio> karklud: ofc
[11:26:53 CET] <kerio> you can ken12damaer my ken12damaer
[11:30:35 CET] <durandal_1707> it's now logged and available to everyone
[11:31:10 CET] <karklud> that's good, i'll never forget it then
[11:32:09 CET] <karklud> kerio, wait i just realized that there's a typo in there...
[11:32:16 CET] <kerio> phew!
[11:32:32 CET] <karklud> (i wish)
[13:22:23 CET] <chaks> Hello, everybody!
[13:23:17 CET] <chaks> Can anyone assets me for my problem using ffmpeg?
[16:36:28 CET] <kerio> does youtube understand ffvhuff
[16:37:40 CET] <furq> there's only one way to find out
[16:38:24 CET] <kerio> yes
[16:38:27 CET] <kerio> asking about it in #ffmpeg
[16:38:38 CET] <kerio> :^)
[16:38:59 CET] <JEEB> it should understand it
[16:39:07 CET] <JEEB> at least whatever lavc could encode in 2011
[16:39:17 CET] <JEEB> because I think that's the version of FFmpeg they're using
[16:44:41 CET] <kerio> bitrate: 1240640 kb/s
[16:44:43 CET] <kerio> ay dios mio
[16:46:17 CET] <kerio> ...how did i manage to put 0rgb into huffyuv
[16:46:24 CET] <kerio> i thought the "yuv" part implied yuv
[16:53:35 CET] <kerio> JEEB: yuv444p gets compressed MUCH harder than rgb24
[16:53:44 CET] <kerio> even though it should be roughly the same info
[17:02:03 CET] <furq> it's probably packed
[17:02:17 CET] <kerio> ur packed
[17:02:31 CET] <kerio> hm is there a packed rgb format
[17:02:44 CET] <furq> most of them are packed
[17:02:56 CET] <kerio> er
[17:02:57 CET] <kerio> a planar
[17:03:02 CET] <furq> gbrp is the only planar one i know of
[17:07:45 CET] <kerio> why is it gbr
[17:07:46 CET] <kerio> instead of rgb
[17:11:07 CET] <durandal_1707> kerio: that's way how it's coded in first codec using planar format
[17:11:23 CET] <kerio> anyway planar rgb didn't help the compression
[17:11:27 CET] <kerio> with ffvhuff
[17:11:50 CET] <durandal_1707> because it doesn't support it directly
[17:12:14 CET] <kerio> holy crap ffv1 is so much better with it
[17:12:30 CET] <kerio> (in bgr0 mode, apparently)
[17:12:53 CET] <kerio> (gbrp is not compatible with ffv1 :( )
[17:13:30 CET] <kerio> 1235691 kb/s vs 273357 kb/s
[17:13:38 CET] <kerio> ffv1 doesn't achieve realtime here tho :(
[17:38:13 CET] <durandal_1707> kerio: are you on toaster?
[17:38:26 CET] <kerio> 2880x1800p60
[17:38:30 CET] <kerio> :3
[17:54:39 CET] <durandal_1707> kerio: utvideo? I could mention magicyuv but there's no encoder in ffmpeg for it
[18:02:35 CET] <durandal_1707> there's also vc1 iirc
[20:00:39 CET] <norbert> hi all, I'm on Linux and from what I'm reading I need a "tainted" ffmpeg to get the WebM profile(s) in the kdenlive video editor; anyone here know the apt - or other - command to get this "tainted" ffmpeg?
[20:04:25 CET] <relaxed> norbert: you mean avconv?
[20:05:04 CET] <relaxed> (the ffmpeg fork)
[20:05:27 CET] <norbert> I don't know
[20:05:37 CET] <norbert> "You might be missing tained ffmpeg and it's libraries." is what someone wrote here https://forums.mageia.org/en/viewtopic.php?f=7&t=10014
[20:05:51 CET] <norbert> in a topic "no webm rendering on kdenlive"
[20:06:46 CET] <relaxed> yeah, I have no idea then.
[20:07:41 CET] <relaxed> norbert: try my build and see if it works: https://www.johnvansickle.com/ffmpeg/
[20:07:48 CET] <kerio> "tainted" is a little harsh
[20:09:00 CET] <furq> apparently "tainted" is the name of the mageia repo which contains patented codecs
[20:09:14 CET] <furq> so if you're on a debian-alike it's probably meaningless
[20:09:43 CET] <relaxed> oh, I thought it was more libav trashing :)
[20:09:56 CET] <furq> https://wiki.mageia.org/en/Archive:_Mageia_3_Release_Notes#The_Mageia_onlin…
[20:10:10 CET] <furq> not sure why that would affect webm though
[20:13:31 CET] <norbert> hm, yeah, I'd think webm would be a free format
[20:17:49 CET] <norbert> I installed the ubuntu-restricted-* packages, but that didn't fix it
[20:20:09 CET] <norbert> I'm probably missing an entire apt repo with the non-free software or something
[20:22:26 CET] <norbert> nope, I have multiverse in the apt config file
[20:23:24 CET] <norbert> is there any other way to get a 'full' ffmpeg without asking people if they can share a customly compiled binary?
[20:51:17 CET] <nodeclear5> http://ilredentore.dynv6.net regards...
[22:31:49 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?
[23:05:48 CET] <norbert> hi again, I've decided to just export the kdenlive video to mp4, and then use ffmpeg to convert from mp4 to webm
[23:05:59 CET] <norbert> my question now is, how can I get the absolute best webm quality?
[23:06:36 CET] <norbert> I did see https://trac.ffmpeg.org/wiki/Encode/VP8 (and VP9)
[23:06:48 CET] <norbert> but it's unclear to me what I should do to get the highest possible quality
[23:07:05 CET] <norbert> I could set, for instance, a constant bitrate, but then how high should it be?
[23:07:14 CET] <norbert> 2M, 10MB?
[23:11:21 CET] <furq> you probably want -b:v 0 -crf 30
[23:11:25 CET] <furq> tune the crf value as needed
[23:11:45 CET] <furq> also obviously going from mp4 to webm will lose quality unless you're using lossless h264 or something
[23:13:07 CET] <DHE> you can't improve on the image quality of the original by reprocessing the video
[23:16:03 CET] <norbert> yes, I wish kdenlive could render to webm, but I need to work with what I've got :)
[23:16:13 CET] <norbert> I'll try what you suggested
[23:18:30 CET] <furq> if you have enough disk space you could render to ffv1 or something and then create the mp4 and webm from that
[23:18:59 CET] <furq> from a brief look at the manual kdenlive doesn't support just piping yuv to stdout, because it's an NLE and life should be painful
[23:20:31 CET] <norbert> ffv1... should this be listed inside kdenlive? it's not listed for me
[23:20:55 CET] <norbert> the webm output by the way contains short millisecond blinks that mean I cannot use it this way
[23:21:04 CET] <norbert> also the quality simply isn't good enough for me, I'm afraid
[23:22:13 CET] <norbert> oh wait, I see it
[23:22:16 CET] <norbert> I had to change the destination
[23:22:38 CET] <norbert> and now I also see everything else, including WebM
[23:22:40 CET] <norbert> so problem solved
[23:22:45 CET] <norbert> but man, not userfriendly IMO
[23:22:52 CET] <norbert> anyway, thanks for all the feedback and such
[00:00:00 CET] --- Sat Dec 17 2016
1
0
[01:27:55 CET] <cone-706> ffmpeg 03Andreas Cadhalpun 07master:e558a6348ac1: 4xm: prevent overflow during bit rate calculation
[01:27:56 CET] <cone-706> ffmpeg 03Andreas Cadhalpun 07master:baba9c6aef88: cafdec: prevent overflow during bit rate calculation
[01:27:57 CET] <cone-706> ffmpeg 03Andreas Cadhalpun 07master:076c3a9fa23c: mov: prevent overflow during bit rate calculation
[01:31:49 CET] <cone-706> ffmpeg 03Andreas Cadhalpun 07master:ed412d285078: tiff: fix overflows when calling av_reduce
[04:37:09 CET] <cone-433> ffmpeg 03Chris Cunningham 07master:ab87df9a47cd: avformat/mp3dec: fix msan warning when verifying mpa header
[11:42:00 CET] <nevcairiel> does anyone happen to have a HDR broadcast test clip using Hybrid-Log-Gamma?
[11:42:14 CET] <JEEB> yeah I tried to look for those as well but didn't find any
[11:42:26 CET] <JEEB> to test the mpv opengl renderer implementation
[11:42:33 CET] <JEEB> because it was just done according to the spec :P
[12:25:48 CET] <kierank> nevcairiel: I can ask someone tonight
[13:10:04 CET] <durandal_1707> strange issue I have, clang miscompiles code if optimizations are used
[13:56:15 CET] <durandal_1707> BBB: is it ok to add >8 bit support to ssim filter?
[13:56:24 CET] <BBB> of course
[13:56:30 CET] <BBB> what an awfully strange question
[13:56:39 CET] <BBB> unless it breaks 8bit support?
[13:57:26 CET] <durandal_1707> I thought one could get same results
[14:06:12 CET] <BBB> durandal_1707: should be good then :)
[15:04:33 CET] <durandal_1707> is there some program which removes gotos from source code while still keeping it functional?
[15:04:56 CET] <ubitux> yes, $EDITOR
[15:29:35 CET] <BBB> is there a problem with gotos?
[15:32:32 CET] <funman> if you have just a couple, gotos are considered handful
[15:33:27 CET] <durandal_1707> any goto is harmful
[15:35:02 CET] <wm4> I use gotos instead of loops because I'm a prick
[15:38:04 CET] <BBB> I agree gotos can make code unreadable, I also believe that in some situations, they are more readable than other solutions.. its very situation-dependent
[15:53:52 CET] <iive> agree
[16:05:14 CET] <cone-828> ffmpeg 03Paul B Mahol 07master:745f4bcc2c1d: avfilter/vsrc_testsrc: draw_bar: make sure width is not negative
[17:50:58 CET] <BBB> so nobody gives a crap about the massive butload of overflow checks andreas wants to add to each and every single decoder in our tree?
[17:51:12 CET] <BBB> thats rather saddening TBH :(
[17:53:25 CET] <wm4> haven't even checked the ML today
[17:53:37 CET] <wm4> too busy doing more important things
[17:53:41 CET] <wm4> (baking christmas cookies)
[17:53:53 CET] <jamrial> BBB: aren't they all in header parsing functions and such? it's not like they are in the middle of a decode loop
[17:54:22 CET] <wm4> BBB: those 6 patches?
[17:54:29 CET] <BBB> Im not worried about runtime complexity
[17:54:33 CET] <BBB> Im worried about code complexity
[17:54:43 CET] <jamrial> ah
[17:54:54 CET] <BBB> the extension of this is that each and every multiplication in our whole tree needs an overflow check to make ubsan happy
[17:55:00 CET] <BBB> I find that terribly worrying
[17:55:39 CET] <BBB> as in, Im not sure ubsan is that helpful in that case (see also previous arguments Ive made about helgrind)
[17:56:09 CET] <jamrial> you can tell him you're against all these, and it would be a blocker until he comes up with a better generic solution
[17:56:17 CET] <rcombs> don't necessarily need actual checks in all cases
[17:56:18 CET] <BBB> but at the very least I dont like the proposed fixed because - as said - at the extreme, this approach means every single multiplication needs a overflow check, specific error message and return value
[17:56:22 CET] <BBB> I Dont think that makes sense
[17:56:30 CET] <BBB> the error message certainly isnt helpful to users
[17:56:42 CET] <BBB> nor is the error return value
[17:56:42 CET] <rcombs> like, you can assert(a < INT_MAX && b < INT_MAX); a * b
[17:56:56 CET] <rcombs> (for a 64-bit mul)
[17:57:04 CET] <BBB> I think I said that Im against that already, but he pushed some anyway
[17:57:27 CET] <BBB> (I dont want to get into revert war territory, Im trying to see if others agree with my point of view)
[17:57:29 CET] <rcombs> which is basically a hint that "the overflow will never happen"
[17:58:30 CET] <jamrial> BBB: as long as you say "please listen" instead of "I'm against this, don't push it and find a better solution", he will consider it a suggestion he can ignore and will go ahead with the first positive review he gets afterwards
[17:58:41 CET] <rcombs> well there he goes
[17:58:44 CET] <rcombs> I think ubsan is generally worthwhile, and if asserts like that are necessary for it to work properly, that's probably not too much to ask
[17:58:52 CET] <rcombs> though I haven't seen the patches in question
[17:59:48 CET] <rcombs> BBB: <rcombs> I think ubsan is generally worthwhile, and if asserts like that are necessary for it to work properly, that's probably not too much to ask
[17:59:48 CET] <rcombs> <rcombs> though I haven't seen the patches in question
[18:00:16 CET] <BBB> i wish ubsan could tell us about values being used, similar to valgrind
[18:01:05 CET] <BBB> sorry for the offline, had to switch locations for something...
[18:01:15 CET] <rcombs> though
[18:01:22 CET] <rcombs> why not just change bit_rate to be unsigned
[18:02:16 CET] <rcombs> (reading the patches now)
[18:03:26 CET] <nevcairiel> Negative bitrate is not very meaningful indeed, but still only fixes one particular occurrence of such troubles and he'll find others
[18:03:44 CET] <jamrial> BBB: as long as you say "please listen" instead of "I'm against this, don't push it and find a better solution", he will consider it a suggestion he can ignore and will go ahead with the first positive review he gets afterwards
[18:03:48 CET] <nevcairiel> So a generic agreement is needed either way
[18:05:15 CET] <nevcairiel> Checking every single signed multiplication is of course quite ugly and should be avoided
[18:06:21 CET] <rcombs> maybe we should have a function in mathematics.h that multiplies its arguments and returns INT64_MAX if it would overflow
[18:08:12 CET] <rcombs> a la __builtin_mul_overflow
[18:08:51 CET] <rcombs> could have a varadic that does this on an arbitrary number of inputs
[18:10:58 CET] <nevcairiel> Can most of these overflows even happen? Most of the time we read a fixed amount of bits, less then 32, and such analyzer are often too dumb to know. So should we uglify code because of limited analyzers?
[18:15:21 CET] <rcombs> the 4xm one is multiplying 3 32-bit integers from the file, so that could legitimately happen
[18:15:45 CET] <rcombs> but would be solved by a mul function that returns INT64_MAX on overflow
[18:16:55 CET] <nevcairiel> Definitely less ugly then if checks everywhere
[18:18:39 CET] <rcombs> CAF is a 32-bit int casted from a double, multiplied by 32-bit int from the file, times 8, divided by a 64-bit int
[18:19:00 CET] <jamrial> rcombs: no, it's three signed 32bits integers, since there's already a check for <= 0 for all three of them
[18:19:12 CET] <jamrial> that can't overflow int64_t
[18:19:35 CET] <jamrial> so the new checks andreas added are not necessary, but the int64_t cast probably is
[18:20:35 CET] <rcombs> (2^31-1)^3?
[18:21:26 CET] <rcombs> is my math badly wrong
[18:25:48 CET] <jamrial> rcombs: no, you're right, seems i messed up mine
[18:26:19 CET] <rcombs> mov has a 64-bit int in the multiplication, so yes that can also happen
[18:26:44 CET] <rcombs> but in general since bitrate isn't that important a value, just clamping to INT64_MAX on overflow seems fine
[18:27:09 CET] <rcombs> I guess in theory when dividing at the end you should upcast to something higher-precision, or to double, but I can't bring myself to care
[18:27:29 CET] <rcombs> and someone will yell at me for using FPU unnecessarily =
[18:28:29 CET] <durandal_1707> wait to see if he will start adding this for every nonsense case..
[18:50:10 CET] <BBB> durandal_1707: he said hes currently doing it for codec parameters, it sounds like he wants ot do it for anything ubsan notices
[18:50:45 CET] <BBB> so as a generic solution, maybe its a good idea to make all these values unsigned? if that prevents the ub, then we can ignore the weird values and do clipping in a more generic way in something/utils.c
[18:50:52 CET] <BBB> that might make everyone happy
[18:51:22 CET] <BBB> Im just trying to prevent every decode from having 10-20 if (bla bla > INT_MAX / sizeof(bla bla)) { av_log(some error); return some error; } blocks
[18:51:33 CET] <BBB> especially because the some error isnt going to be helpful to any user
[18:51:57 CET] <BBB> av_log(your file was fuzzed, stop doing that!);
[18:52:10 CET] <durandal_1707> lol
[18:53:58 CET] <rcombs> for cases where the overflow is ridiculous, we could have a macro for the content of the block
[18:54:34 CET] <rcombs> like FAIL_CRAZY_FILE(INT64_MAX / int1 > int2)
[18:54:57 CET] <rcombs> which expands to if (&) {av_log(&); return AVERROR_INVALIDDATA}
[18:59:57 CET] <BBB> that would be slightly nicer, yes
[19:00:27 CET] <wm4> <BBB> av_log(your file was fuzzed, stop doing that!); <- I like this solution
[19:00:47 CET] <wm4> fuzz files -> watch ubsan output -> fix every single of them -> send 1000s of patches
[19:01:08 CET] <wm4> is this really a good way to spend time, does it really make anything safer or less buggy
[19:01:44 CET] <BBB> I dont think ubsan fundamentally helps in that respect
[19:01:52 CET] <BBB> Ive complained about helgrind before also, its sort of the same problem
[19:02:13 CET] <BBB> I would like tools to help us find and fix bugs, not tell us things the authors of that tool hated but arent necessarily harmful in and by themselves
[19:02:28 CET] <iive> are the result of overflow used in memory address calculations?
[19:03:26 CET] <BBB> no, theyre printed out in some tools as metadata
[19:03:40 CET] <BBB> so you get things like bitrate: -100000000000 bps
[19:54:50 CET] <Compn> BBB : would it be better to have asserts than overflow checks ?
[19:54:55 CET] <Compn> dumb question possibly
[19:55:04 CET] <Compn> same amount of buttload.
[20:16:08 CET] <BBB> Compn: asserts are for programming mistakes
[20:16:15 CET] <BBB> Compn: some of these fields exist in files
[20:16:29 CET] <BBB> Compn: e.g. imagine a ffm (ffservers internal format) file with channels=UINT_MAX
[20:16:39 CET] <BBB> Compn: so no asserts
[20:16:59 CET] <Compn> BBB : my ultimate idea was to run over every file to find out the valid and invalid numbers and then assert any out of bounds...
[20:17:07 CET] <Compn> for each function.
[20:17:11 CET] <Compn> yes , i may be mad.
[20:17:17 CET] <Compn> but it would work :D
[20:18:05 CET] <Compn> every file = at least 1000 files for each codec that is
[20:26:45 CET] <BBB> Compn: youre mad :D
[20:30:15 CET] <RobertHorstmann1> Hello ... a short question about NVENC functionality in FFMPEG ... NVIDIA released version 7.1 of the NVENC SDK a few weeks ago. FFMPEG currently is at 7.0. Are there any plan to upgrade to 7.1 ? Thank you!
[20:31:21 CET] <J_Darnley> Isn't that for the users to do?
[20:33:07 CET] <RobertHorstmann1> I am not sure, sorry. Usually, once a new SDK comes out, there a changes to the FFMPEG code. There were a number of git commits related to SDK 7.0, for example.
[20:33:21 CET] <JEEB> nevcairiel: btw I wonder if anyone ripped the BBC Planet Earth II HLG sample
[20:33:31 CET] <JEEB> http://www.bbc.co.uk/mediacentre/latestnews/2016/planet-earth-2-uhd
[20:35:44 CET] <durandal_1707> this channel is publically logged
[20:35:48 CET] <Compn> BBB : but i am smart.
[20:36:35 CET] <Compn> RobertHorstmann1 : a number of our devs have been reading the nvenc sdk changes... its complicated ?
[20:36:52 CET] <Compn> im not sure what the plans are exactly
[20:37:01 CET] <Compn> is there a change you want done, specifically , RobertHorstmann1 ?
[20:37:51 CET] <Compn> BBB : also my suggestion is smarter than running fuzz testing haha
[20:37:56 CET] <RobertHorstmann1> Changelog for SDK version 7.1 lists quality improvements for temporal adaptive quantization.
[20:38:26 CET] <BBB> Compn: that is probably true
[20:38:56 CET] <Compn> by "complicated" i meant the sdk changes are poorly documented.
[20:39:14 CET] <durandal_1707> Compn: don't type
[20:41:24 CET] <Compn> durandal_1707 : you can never take muh freedommmmm!
[20:42:04 CET] <durandal_1707> you are CoC evader
[20:42:28 CET] <Compn> you know it
[20:42:36 CET] <Compn> no one likes a big coc in their face
[20:43:06 CET] Action: Compn hides
[20:43:20 CET] <Compn> RobertHorstmann1 : so yes, the plan is to keep updated with the sdk. i dont have a timetable/
[20:44:08 CET] <Compn> feel free to file a bug on the trac though. http://trac.ffmpeg.org
[20:45:45 CET] <RobertHorstmann1> thank you ... that's good to know ... and I'll have a look at the trac. have a nice evening!
[22:30:09 CET] <cone-828> ffmpeg 03Michael Niedermayer 07master:c62beba49a90: avcodec/rscc: return the packet size instead of 0
[22:30:10 CET] <cone-828> ffmpeg 03Michael Niedermayer 07master:2eebcda10a65: avcodec/screenpresso: return the packet size instead of 0
[22:30:11 CET] <cone-828> ffmpeg 03Michael Niedermayer 07master:0888c5a24273: avcodec/tdsc: return the packet size instead of 0
[22:30:12 CET] <cone-828> ffmpeg 03Michael Niedermayer 07master:c869e00f8810: avcodec/smvjpegdec: return the packet size instead of 0
[22:30:13 CET] <cone-828> ffmpeg 03Michael Niedermayer 07master:eb7aa6bde42c: avcodec/h263dec: Return the correct error code in explode mode
[22:34:06 CET] <blue_misfit> hey guys, any words of wisdom on using ffmpeg to transcode large files from S3?
[22:34:34 CET] <blue_misfit> we're reading via HTTP and in some cases we end up with truncated results
[22:34:50 CET] <blue_misfit> working theory is that the connection is closed for some reason and ffmepg thinks the source is finished
[22:37:32 CET] <blue_misfit> can somebody help me understand how ffmpeg would (for example) deal with reading a 200 GB ProRes MOV file over HTTP?
[22:37:41 CET] <blue_misfit> like, I assume it does a series of range requests?
[22:38:59 CET] <BtbN> it will most likely just do one normal http get request, and keep reading from it at however fast the chain after it can consume it.
[22:39:15 CET] <blue_misfit> BtbN, thanks for the info
[22:39:21 CET] <BBB> blue_misfit: is the terminal point reproduceable?
[22:39:24 CET] <blue_misfit> any thoughts on a best practice here?
[22:39:29 CET] <BBB> blue_misfit: like, does it always truncate at the same point?
[22:39:30 CET] <blue_misfit> BBB, yes, in about 10-15% of cases
[22:39:34 CET] <blue_misfit> oh, no
[22:39:37 CET] <blue_misfit> different point each time
[22:39:40 CET] <BtbN> Don't access huge files via http.
[22:39:41 CET] <BBB> blue_misfit: yeah, so its just connection close then
[22:39:53 CET] <BBB> you could make the http reader udnerstand disconnects and auto-reconnect
[22:39:54 CET] <BtbN> Sounds to me like the server just closes the connection at some point, because it has a hard timeout
[22:39:59 CET] <blue_misfit> yeah
[22:40:04 CET] <BBB> but dont forget your token on s3 only has limited lifespan
[22:40:21 CET] <BBB> so you need to change the default lifespan for the token to keep it alive in addition to auto-reconnect
[22:40:22 CET] <blue_misfit> maybe - AWS support basically told me I am not familiar with how ffmpeg reads the source files, but it I would guess that it reads using a single thread sequentially. It might be running into an issue if it is making all the requests over the same HTTP connection. S3 will only accept up to 100 requests before it will close the connection on its side. Unfortunately there isn't much we can do to alter the way the software reads data
[22:40:22 CET] <blue_misfit> from the video source
[22:40:30 CET] <BBB> otherwise itll give you a connection refused because the token is no longer valid
[22:40:37 CET] <blue_misfit> ok we can check that for sure
[22:40:38 CET] <BtbN> There is only one request
[22:41:01 CET] <BBB> yeah its one request
[22:41:07 CET] <blue_misfit> ok
[22:41:14 CET] <blue_misfit> so given the use case (AWS encoding of files on S3)
[22:41:23 CET] <blue_misfit> having to pull down a 200 gig file is pretty painful
[22:41:31 CET] <blue_misfit> hugely more efficient to just read directly
[22:41:39 CET] <BtbN> Well, you download it anyway, so might as well cache it for the moment
[22:41:42 CET] <blue_misfit> do you guys see a better way to do this?
[22:41:50 CET] <BBB> add some code to http.c to reconnect
[22:41:59 CET] <blue_misfit> ;)
[22:42:05 CET] <BBB> and make sure it didnt close it because the token expired
[22:42:10 CET] <BBB> thats what I would look for
[22:42:13 CET] <blue_misfit> yeah our tokens are good for 24h
[22:42:15 CET] <BtbN> Or rather to automatically do range-requests, for a given max size
[22:42:19 CET] <blue_misfit> and these jobs take a couple hours max
[22:42:40 CET] <blue_misfit> is there code to already to the range requests or are we going to have to write code regardless?
[22:42:50 CET] <BBB> youll need to write code I think
[22:42:56 CET] <BBB> not 100% sure :-p
[22:43:28 CET] <BBB> brb
[22:44:30 CET] <blue_misfit> haha someone ping me if you're potentially interested in writing this for me as a contract
[22:45:19 CET] <BtbN> adding a max request size wouldn't even be that hard
[22:45:21 CET] <Compn> blue_misfit : why not just wget files first and work locally ?
[22:45:35 CET] <Compn> or probably adjust the tcp timeout and retry settings in http
[22:45:39 CET] <BtbN> Might just not be enough space for that.
[22:45:51 CET] <BtbN> It's not a tcp timeout, the connection is busy
[22:45:59 CET] <BtbN> Just the server having a hard max connection time or something.
[22:46:49 CET] <blue_misfit> we could make enough space
[22:47:00 CET] <blue_misfit> but then we wait x amount of time before even starting the transcode
[22:47:09 CET] <blue_misfit> considering 200 GB sources, it's pretty painful
[22:47:20 CET] <Compn> blue_misfit : why not mount the http (or other server) as a fuse ?
[22:47:28 CET] <Compn> and then let fuse take care of it
[22:47:32 CET] <blue_misfit> that's kind of a neat idea actually
[22:47:37 CET] <blue_misfit> feels a little hacky but it might work :D
[22:47:50 CET] <Compn> i accept paypal or bitcoin :P
[22:48:01 CET] <Compn> or cash/checks
[22:48:05 CET] <Compn> i'm easy going lol
[22:48:11 CET] <blue_misfit> hehehe
[22:48:29 CET] <Compn> not sure if there is AWS fuse module
[22:48:41 CET] <Compn> althought that would be $$$ to code up... probably lot of people want that
[22:49:00 CET] <Compn> im not sure what kind of connections you can run between you and amazonian
[22:49:53 CET] <blue_misfit> what does the 'multiple_requests' flag do for the http protocol handler?
[22:49:55 CET] <Compn> you probably figured it out already and im just talking to myself now lol
[22:50:05 CET] <Compn> in which handler ?
[22:50:13 CET] <blue_misfit> nah not at all, I'm screwed lol
[22:50:16 CET] <Compn> i mean ... what interface ? ffmpeg? aws?
[22:50:19 CET] <blue_misfit> https://ffmpeg.org/ffmpeg-protocols.html#http
[22:50:20 CET] <blue_misfit> yeah ffmpeg
[22:50:46 CET] <Compn> enables persistent connections , which you want
[22:50:50 CET] <Compn> so you should enable that
[22:50:58 CET] <Compn> the default is no persistnent connections
[22:51:01 CET] <blue_misfit> nice!
[22:51:03 CET] <blue_misfit> I will try
[22:51:23 CET] <Compn> now wether or not that fixes things or introduces more problems, i have no idea ;)
[22:51:54 CET] <blue_misfit> so I'd do ffmpeg -multiple_requests 1 http://foo/bar/bas.mov
[22:52:01 CET] <Compn> oh yeah here you go , blue_misfit https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon
[22:52:26 CET] <blue_misfit> max file size = 64 GB :(
[22:52:30 CET] <blue_misfit> I need 200+ GB
[22:52:38 CET] <Compn> ah i see that :D
[22:53:26 CET] <Compn> anyway yuou could change your filesizes on the aws to 64gb ? ffmpeg can cut at 64gb mark...
[22:53:45 CET] <blue_misfit> It would be a little tricky
[22:53:52 CET] <blue_misfit> I'm running an x264 first pass encode
[22:54:17 CET] <Compn> x264 should possibly be able to do so too, but i have not checked dont quote me
[22:54:18 CET] <blue_misfit> so ideally that process would read the whole source straight through
[22:54:25 CET] <blue_misfit> yeah
[22:54:34 CET] <blue_misfit> I could possibly split the first pass into a few pieces and then combine the stats files
[22:54:40 CET] <Compn> well i mean its just ffmpeg -i 1 -i 2 -i 3 -i 4...
[22:54:45 CET] <blue_misfit> OH
[22:55:00 CET] <Compn> or whatever program should do multiple input maybe
[22:55:05 CET] <Compn> but this might just complicate things further
[22:55:12 CET] <blue_misfit> we're all ffmpeg (libx264 in ffmpeg)
[22:55:16 CET] <Compn> which you probably dont need.
[22:55:17 CET] <Compn> oh
[22:55:30 CET] <blue_misfit> when I do that, can I concatenate all those input statements and have it look like a single input stream to libx264?
[22:55:38 CET] <Compn> 200 gb over http, i'm impressed any of that works actually.
[22:55:39 CET] <Compn> yes
[22:55:44 CET] <blue_misfit> it does!! most of the time!!
[22:55:47 CET] <blue_misfit> lol like 90% of the time!
[22:55:54 CET] <Compn> thats crazy to me honestly
[22:55:59 CET] <blue_misfit> can you give me an example of how to do that?
[22:56:05 CET] <blue_misfit> S3 is pretty wicked honestly
[22:56:07 CET] <Compn> lets seeeee
[22:56:41 CET] <Compn> https://trac.ffmpeg.org/wiki/Concatenate
[22:57:42 CET] <llogan> maybe sshfs would be worth a look. never used s3 so maybe it's a dumb idea. also, it's fuse client based.
[22:58:10 CET] <Compn> yes sshfs is also useful
[22:58:16 CET] <Compn> and very easy
[23:01:25 CET] <blue_misfit> how could sshfs help me? Isn't that for mounting sftp servers?
[23:04:19 CET] <Compn> if you can access your aws via ssh, sshfs just makes the ssh connection a local hd
[23:04:37 CET] <blue_misfit> well, but that would connect me to maybe the ebs store of an ec2 instance
[23:04:44 CET] <blue_misfit> it wouldn't connect me to s3
[23:05:02 CET] <Compn> ok, so the connections to the s3 are limited, i just dont know s3 stuff...
[23:05:12 CET] <Compn> we're kind of throwing darts in the dark here
[23:05:18 CET] <blue_misfit> ya
[23:05:30 CET] <blue_misfit> s3 is the big massive object storage system that you interact with via http(s) only
[23:05:53 CET] <Compn> ah
[23:05:57 CET] <blue_misfit> ebs = basically kinda like local disks on a vm
[23:06:00 CET] <blue_misfit> mounted kinda via iscsi
[23:06:02 CET] <blue_misfit> but it's block data
[23:06:12 CET] <blue_misfit> s3 is all object storage via rest
[23:06:19 CET] <blue_misfit> then there's also glacier which is their offline cold storage
[23:06:43 CET] <Compn> blue_misfit : as to your question, i'm not sure concat works over http. i'm trying to find more info
[23:07:13 CET] <blue_misfit> yeah, trying to cobble something together for a POC
[23:10:00 CET] <Compn> see mencoder cound do this ez :P
[23:10:10 CET] <Compn> just mencoder kinda sucks
[23:10:59 CET] <blue_misfit> lol!!!
[23:11:13 CET] <Compn> oh wait i got it working
[23:11:26 CET] <Compn> for some reason it doesnt work in a txt file
[23:11:43 CET] <Compn> ffmpeg -i "concat:http://1|http://2" -encodingoptions
[23:11:48 CET] <Compn> there you go blue_misfit
[23:12:07 CET] <blue_misfit> so I'd need to support -ss and -to for each of those segments
[23:12:21 CET] <Compn> you're busting my balls.
[23:12:24 CET] <blue_misfit> hehehehehe
[23:12:29 CET] <Compn> let me seeeeee...
[23:13:43 CET] <blue_misfit> works locally
[23:13:44 CET] <blue_misfit> ffmpeg -ss 0 -i AlvinAndTheChipmunks3Chipwrecked_Feature_ENG.mov -t 5 -ss 5 -i AlvinAndTheChipmunks3Chipwrecked_Feature_ENG.mov -t 5 -ss 10 -i AlvinAndTheChipmunks3Chipwrecked_Feature_ENG.mov -t 5 -ss 15 -i AlvinAndTheChipmunks3Chipwrecked_Feature_ENG.mov -t 5 -ss 20 -i AlvinAndTheChipmunks3Chipwrecked_Feature_ENG.mov -t 5 -filter_complex "[0][1][2][3][4]concat=n=5:v=1[outv]" -map "[outv]" -c:v libx264 -preset superfast
[23:13:44 CET] <blue_misfit> local-concat.mp4
[23:13:57 CET] <blue_misfit> trying over s3 now..
[23:13:58 CET] <nevcairiel> Seeking is probably not accurate enough, it would likely be easier to hack up a new protocol to just open a new connection occasionally
[23:14:09 CET] <blue_misfit> well, seeking is accurate in our case since we have all-intra sources
[23:14:15 CET] <blue_misfit> pro-res :)
[23:14:52 CET] <Compn> blue_misfit : try dis ffmpeg -ss 1 -i "concat:http://1" -ss 30 -i "concat:http2"
[23:15:14 CET] <Compn> hmm no i dont think that works
[23:15:38 CET] <blue_misfit> hmm so it worked in this short test
[23:16:00 CET] <Compn> oh ok theres a concat protocol and a concat demuxer , i see now
[23:16:00 CET] <blue_misfit> https://paste.ee/p/oRXws
[23:18:16 CET] <Compn> your job is to make sure people can watch the chipwrecked sequel lol
[23:18:21 CET] <Compn> put that on the old resume :D
[23:18:57 CET] <Compn> so if your example works with the local file, does it work with the http files ?
[23:19:08 CET] <Compn> oh you are trying
[23:19:14 CET] Action: Compn sits back and enjoys
[23:19:42 CET] <blue_misfit> hahahaha
[23:19:46 CET] <blue_misfit> it's just a sample trailer
[23:19:55 CET] <blue_misfit> it does
[23:20:03 CET] <blue_misfit> using 5 second chunks did actually work
[23:20:06 CET] <blue_misfit> trying more now..
[23:20:11 CET] <Compn> but does this actually solve your problem ?
[23:20:15 CET] <blue_misfit> unknown
[23:20:20 CET] <blue_misfit> we'll have to deploy and test at scale
[23:20:27 CET] <blue_misfit> like I said - what we're doing now works most of the time :D
[23:20:43 CET] <blue_misfit> oh....
[23:20:46 CET] <blue_misfit> actually I think I messed up
[23:26:34 CET] <blue_misfit> sooo it kinda works
[23:26:37 CET] <blue_misfit> it seems to read all the data
[23:26:43 CET] <blue_misfit> but the final output file only contains the first chunk
[23:27:43 CET] <blue_misfit> https://paste.ee/p/bW4FT
[23:29:19 CET] <Compn> blue_misfit : i think you want ffmpeg -i http:// -f http -multiple_requests output.mp4
[23:29:25 CET] <Compn> to enable multiple requests feature
[23:29:41 CET] <blue_misfit> without any of this crazy concat stuff?
[23:29:43 CET] <Compn> or maybe add a 1 after multiple_requests
[23:29:45 CET] <Compn> yes
[23:29:47 CET] <blue_misfit> ok
[23:29:48 CET] <blue_misfit> let me try
[23:30:03 CET] <Compn> oop,s dont add any numbers after multiple_requests
[23:30:18 CET] <blue_misfit> oh yeah?
[23:30:28 CET] <blue_misfit> I assumed it would be -multiple_requests 1 -i http://.....
[23:30:30 CET] <blue_misfit> but ok
[23:31:07 CET] <Compn> well try both see what happens
[23:31:14 CET] <blue_misfit> Requested output format 'http' is not a suitable output format
[23:31:17 CET] <Compn> note that im no expert ;)
[23:33:04 CET] <Compn> blue_misfit : oh this is probably maybe what you need http://blog.yo1.dog/fix-for-ffmpeg-protocol-not-on-whitelist-error-for-urls/
[23:33:10 CET] <blue_misfit> -multiple_requests 1 -i http:// seems to at least not throw errors
[23:33:12 CET] <Compn> to do concat stuff
[23:33:22 CET] <Compn> i think my ffmpeg maybe too old to help :D
[23:33:26 CET] Action: Compn needs to update
[23:52:06 CET] <blue_misfit> thanks for your help, Compn ! We're going to deploy a test build with -multiple_requests 1 and see the impact
[23:52:20 CET] <blue_misfit> I verified it's setting http connection type 'keep-alive' instead of 'close'
[23:52:27 CET] <blue_misfit> not sure what S3 will do with that, but we'll see :)
[23:53:14 CET] <Compn> technically you found that option, i didnt help much
[00:00:00 CET] --- Fri Dec 16 2016
1
0
[00:14:26 CET] <blue_misfit> hi friends, I'm having issues with consistency when reading input files from S3 over https
[00:14:34 CET] <blue_misfit> sometimes I end up with truncated outputs
[00:14:36 CET] <blue_misfit> any suggestions?
[07:11:04 CET] <ferdna> anyone has the book... http live streaming a practical guide?
[08:37:53 CET] <llamapixel> Looks like it is special for $12 at the moment ferdna http://hlsbook.net
[08:38:13 CET] <ferdna> llamapixel, dont they have free? =\
[08:39:03 CET] <llamapixel> There is a forum associated with it
[08:42:20 CET] <llamapixel> How much is a Big Mac where you live ferdna ?
[08:42:39 CET] <ferdna> 6 bucks
[08:43:08 CET] <llamapixel> Sounds like a bargain at the moment then.
[08:46:32 CET] <ferdna> :(
[08:48:02 CET] <llamapixel> Why sad? Just save up and buy it
[08:50:21 CET] <markvandenborre> ferdna: just read through the nginx rtmp module docs
[08:50:35 CET] <markvandenborre> it's rather simple really
[08:50:42 CET] <ferdna> llamapixel, i could get two big macs with that =|
[08:50:47 CET] <ferdna> markvandenborre, cool thanks
[09:37:37 CET] <ferdna> markvandenborre, i am reading on the docs... but everything seem that is built into ngnix module
[09:37:46 CET] <ferdna> i am not going to be able to get it working on apache
[09:41:06 CET] <markvandenborre> don't know about doing this on apache, sorry
[09:41:36 CET] <ferdna> markvandenborre, i just need the settings
[09:41:46 CET] <markvandenborre> "the settings"?
[09:42:02 CET] <ferdna> markvandenborre, yeah the ffmpeg parameters to achieve what i need
[09:42:07 CET] <ferdna> this is what i need:
[09:42:29 CET] <ferdna> record 60mins segments and live stream at the same time
[09:42:53 CET] <ferdna> i can do all of it...
[09:43:11 CET] <markvandenborre> so where is the problem then?
[09:43:21 CET] <ferdna> but... the live streaming doesnt play at the end of the m3u8... it starts at the begining of the playlist
[09:43:25 CET] <ferdna> instead of the end of it
[09:43:45 CET] <markvandenborre> and you want to do this using apache, right?
[09:43:48 CET] <ferdna> please let me know if i dont explain my self...
[09:43:54 CET] <ferdna> markvandenborre, it doesnt matter what webserver
[09:44:04 CET] <markvandenborre> then _read_ the nginx rtmp module docs
[09:44:06 CET] <ferdna> as longest i can get the functionality
[09:44:18 CET] <markvandenborre> it's possible to do it with that
[09:44:22 CET] <markvandenborre> we do something very similar
[09:44:33 CET] <ferdna> markvandenborre, it has to be independet webserver independent..
[09:44:34 CET] <ferdna> i mean
[09:45:01 CET] <ferdna> that ffmpeg parameters can be used with any webserver it doesnt even have anything to do with the webserver
[09:46:15 CET] <markvandenborre> ah, so you mean you don't want to use the functionality of the nginx rtmp module that gives you most of this?
[09:46:21 CET] <ferdna> yeah
[09:46:23 CET] <ferdna> i dont
[09:47:22 CET] <markvandenborre> well, I guess you'd have to look for ways to do hls in a different way then, yourself
[09:47:41 CET] <ferdna> markvandenborre, ive been looking... but i havent been able to do it... =(
[09:48:01 CET] <markvandenborre> the rest of the equation should be relatively trivial with ffmpeg -f tee
[09:48:01 CET] <ferdna> i dont know if getting that book will help me
[09:48:12 CET] <markvandenborre> so let me get this straight...
[09:48:25 CET] <markvandenborre> you don't want to use the solution that will work (almost) out of the box
[09:48:43 CET] <markvandenborre> you don't want to spend a tiny bit of money on a book
[09:48:54 CET] <markvandenborre> that might contain some hints
[09:49:18 CET] <ferdna> i will give you even 50 dllrs if you come with the solution
[09:49:20 CET] <markvandenborre> I thought you were having to work around a pointy haired boss
[09:49:31 CET] <ferdna> markvandenborre, is not for anyone
[09:49:32 CET] <ferdna> is for me
[09:49:33 CET] <markvandenborre> whose requirements were "apache and nothing else"
[09:49:39 CET] <ferdna> i only work for linux
[09:49:43 CET] <ferdna> with*
[09:49:50 CET] <ferdna> is my main OS
[09:50:00 CET] Action: markvandenborre too, has nothing to do with it, right?
[09:50:21 CET] <ferdna> too?
[09:50:24 CET] <markvandenborre> if it's for yourself, look it up and do report back here
[09:50:43 CET] Action: markvandenborre uses free and open source only since 1998
[09:50:48 CET] <ferdna> yeah me too
[09:51:15 CET] <markvandenborre> if this is for you to satisfy an intellectual interest, fine
[09:51:42 CET] <markvandenborre> but I can't save any energy for finding that out for you
[09:51:51 CET] <ferdna> markvandenborre, 1998... hmmm...
[09:52:02 CET] <markvandenborre> there is a perfectly working tool for what you want to do
[09:52:08 CET] <ferdna> which one?
[09:52:12 CET] <markvandenborre> you want to use something else
[09:52:14 CET] <markvandenborre> fine
[09:52:22 CET] <markvandenborre> go find out and report back here if you do
[09:52:32 CET] <markvandenborre> what else is there to say...
[09:52:58 CET] <ferdna> hmmm
[09:53:10 CET] <ferdna> i thought this was ffmpeg channel...
[09:54:42 CET] <markvandenborre> well, of course, it's perfectly valid for you to ask here
[09:54:52 CET] <ferdna> :)
[10:13:14 CET] <zpc> Hi! Is there a ffmpeg option that show pts of all frames, including video and audio?
[10:35:02 CET] <ferdna> zpc, -vf "drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf: text='\%T': fontcolor=white(a)0.8: x=7: y=460"
[10:35:35 CET] <ferdna> zpc, https://einar.slaskete.net/2011/09/05/adding-time-stamp-overlay-to-video-st…
[10:45:35 CET] <Melatonina> Hello
[10:45:51 CET] <Melatonina> Can I encode a video with the "dash" format with ffmpeg?
[10:48:30 CET] <Melatonina> I'm cutting a piece of a video with ffmpeg. I can't use the "copy" encoder because that would cause a missing key frame at the beginning. I'd like to use the same encoding as the original file. I checked it with MediaInfo and it appears to be encoded as "dash"
[10:51:41 CET] <nonex86> ffmpeg -encoders
[10:51:49 CET] <nonex86> ffmpeg -encoder | grep dash
[10:51:58 CET] <nonex86> guess something like that can help ;)
[10:52:13 CET] <nonex86> *ffmpeg -encoders | grep dash
[10:53:10 CET] <Melatonina> there is nothing called dash there, unfortunately
[10:53:32 CET] <Melatonina> I'll pastebin the output of ffprobe. 1 sec
[10:54:09 CET] <JEEB> there's a dash muxer
[10:54:31 CET] <Melatonina> this is the output of ffprobe of my source file: http://pastebin.com/B6Dn6cPX
[10:54:38 CET] <JEEB> ffmpeg -formats |grep dash
[10:54:49 CET] <JEEB> E dash DASH Muxer
[10:54:56 CET] <nonex86> well, thats just h264 stream...
[10:55:00 CET] <JEEB> the output extension for it is ".mpd"
[10:56:05 CET] <Melatonina> this is the output of ffprobe on my output video file: http://pastebin.com/Lt4tnCC9
[10:56:31 CET] <Melatonina> both are h264 but my player can handle the original file but not the second one
[10:56:56 CET] <Melatonina> well, the player I need to use. I can play both file with videolan
[10:57:08 CET] <nonex86> what player do you use?
[10:57:20 CET] <nonex86> or its a top secret? :)
[10:57:20 CET] <Melatonina> but I need the file to be compatible with exoplayer on Android
[10:57:35 CET] <Melatonina> ^ no secret :)
[10:58:37 CET] <nonex86> i assume that exoplayer support h264 streams
[10:58:38 CET] <nonex86> so
[10:58:46 CET] <nonex86> why dont you just try another container
[10:58:50 CET] <nonex86> for result file?
[10:59:04 CET] <nonex86> and check, is it able to demux and play it
[10:59:08 CET] <Melatonina> what container could I try?
[10:59:24 CET] <nonex86> what containers it support? :)
[10:59:59 CET] <nonex86> mkv perhaps? but not everyone "likes" it unfortunatly
[11:01:17 CET] <Melatonina> https://google.github.io/ExoPlayer/supported-formats.html
[11:01:29 CET] <Melatonina> FMP4, WebM, Matroska
[11:01:35 CET] <Melatonina> should be candidates, I guess
[11:02:09 CET] <Melatonina> I don't know what those name mean, sincerely
[11:02:25 CET] <Melatonina> I'll try WebM because I read it somewhere
[11:02:52 CET] <nonex86> matroska = mkv
[11:03:01 CET] <Melatonina> I don't understand why it can read the original mp4 but not the one that is produced by ffmpeg
[11:03:04 CET] <nonex86> so just give the output file a name something.mkv
[11:03:46 CET] <Melatonina> I'll try to use mkv
[11:03:49 CET] <nonex86> welcome to the wonderful world of video content :D
[11:03:55 CET] <Melatonina> eh :)
[11:03:58 CET] <nonex86> for exmple
[11:04:08 CET] <nonex86> i have a video file
[11:04:24 CET] <nonex86> if i seek it in different players
[11:04:31 CET] <nonex86> but for same time
[11:04:37 CET] <nonex86> i got different picture :D
[11:04:57 CET] <nonex86> mpc show correct frame, vlc and mpv are not :D
[11:05:06 CET] <nonex86> so, enjoy the ride :D
[11:05:20 CET] <Melatonina> thanks
[11:05:30 CET] <Melatonina> :)
[11:22:20 CET] <zpc> ferdna: Thanks a lot!
[11:22:41 CET] Last message repeated 1 time(s).
[11:22:41 CET] <ferdna> zpc, no problem :)
[11:22:50 CET] <Melatonina> nonex86: my mistake, I was using .mpg instead of .mp4 as extension for the ffmpeg output file.
[11:22:59 CET] <Melatonina> nonex86: wasted lot of time
[11:23:43 CET] <Melatonina> nonex86: but if I didn't review the source code of my server to use .mkv I wouldn't have noticed the mistake
[12:03:31 CET] <ferdna> good night
[12:24:18 CET] <yanzay> hey guys, I have a video streaming connfiguration: stream from phone to server (nginx-rtmp) -> live transcode (ffmpeg) -> stream to player (ffserver -> ffplay). Is there any way to trace and understand where latency is? How to figure out the bottleneck? Any ideas?
[12:34:24 CET] <BtbN> why ffserver?
[13:50:01 CET] <aib> Hi, I'm trying to get ffmpeg to split and concat an AAC stream. Now, I created two perfect AAC files without ANY gaps in them, but passing them on to -f concat still causes a final stream with a bit of a gap in it. What should I do?
[13:59:30 CET] <fling> Will the compression be bad if all the frames are I frames?
[14:06:40 CET] <durandal_1707> fling: depends
[14:07:40 CET] <fling> This is a low fps stream.
[14:10:28 CET] <Melatonina> it will probably be 3x the size of a "normal" stream
[14:31:31 CET] <nonex86> fling: for example in mjpeg stream all frames are idr, does it looks bad for you ? :)
[14:31:58 CET] <nonex86> Melatonina: 3x? guess we can think about 10x+ :)
[14:32:18 CET] <nonex86> Melatonina: depending of the scene
[14:33:58 CET] <Melatonina> I obtained that number experimenting.
[14:34:20 CET] <Melatonina> Don't know. The videos were of the same kind, admittedly
[14:35:13 CET] <nonex86> it all depends on scene and gop size i guess
[14:35:17 CET] <DHE> fling: the compression ratio will be bad, but the quality will be fine if you're using qp or crf mode
[14:36:23 CET] <nonex86> for example some camera allow to set up gop to auto and will generate recovery point frames in 1-2 minute
[14:50:18 CET] <fling> The idea is to make it seekable
[14:50:41 CET] <fling> The scene is mostly static, some text moving here and there
[14:50:56 CET] <fling> It is from a screen capture
[14:56:36 CET] <DHE> any idr frame is a seek point. all-idr frames merely make seeking precise
[15:46:40 CET] <Threads> with ffmpeg how can i get rid of the x264 encoding settings ?
[15:46:50 CET] <Threads> i remember trying with map and that didnt work
[15:47:01 CET] <__jack__> which one ?
[15:47:10 CET] <__jack__> map has nothing to do with libx264
[15:47:50 CET] <__jack__> if you want to pass specific libx264 opts to the lib, you may use -x264-params
[15:47:52 CET] <Threads> i mean when muxing
[15:50:23 CET] <c_14> x264 always writes those into the h264 bitstream, you can't get rid of them
[15:53:10 CET] <DHE> you mean how you can extract the encoding settings with "strings" or the like? you'd have to edit x264's source code and recompile the whole thing
[15:57:25 CET] <nonex86> encoding parameter is just sei nalu
[15:57:39 CET] <nonex86> why just not skip them?
[15:58:23 CET] <nonex86> dont stream this nalu, dont write it to file, whatever you do with the stream
[17:38:56 CET] <kepstin> I suppose you could make a bsf for ffmpeg that strips them, but that's still gonna require coding. probably easier to modify x264.
[17:40:13 CET] <furq> there are x264 patches out there which do it, although idk if they apply to new versions
[18:26:29 CET] <karklud> hello
[18:26:39 CET] <karklud> how do i get ffprobe to print ALL metadata ?
[18:27:45 CET] <karklud> other tag-readers (such as mediainfo) shows that there's some tags which ffmpeg doesn't show
[18:29:07 CET] <karklud> i've tried "ffprobe --help" but jesus christ that's the longest help text i've ever seen
[18:29:33 CET] <karklud> there's gotta be some option i can pass to ffprobe to get it to print all tags, or what?
[18:29:42 CET] <kurufu> have you tried `ffprobe -show_metadata`?
[18:29:53 CET] <kurufu> I think thats the flag.
[18:31:00 CET] <karklud> show_metadata: option not found
[18:31:15 CET] <kurufu> idk id suggest looking around here to see if its possible https://ffmpeg.org/ffprobe.html
[18:31:37 CET] <karklud> i've also tried "-show_entries format_tags" to no avail
[18:32:10 CET] <kurufu> see what -sections
[18:32:11 CET] <karklud> yeeah, i'm already there.. i was hoping someone could give me a hint though ;)
[18:32:13 CET] <kurufu> prints out
[18:33:18 CET] <kurufu> I also dont think ffmpeg supports all kind of exotic tagging that something like mediainfo may support.
[18:33:38 CET] <karklud> kurufu, okay, that was what i was afraid to hear
[18:33:41 CET] <karklud> hmm
[18:33:51 CET] <llogan> what are you trying to do?
[18:33:52 CET] <furq> -show_format -show_entries format=0
[18:33:58 CET] <karklud> i've found the tag i'm looking for in a hexeditor
[18:34:10 CET] <karklud> i can see that it's right next to some other tags, which ffprobe DOES print
[18:34:43 CET] <furq> although if it doesn't show up in -show_format then you're pretty much screwed
[18:34:50 CET] <karklud> i'm looking for the isrc codes of a bunch of .m4a files from itunes
[18:35:07 CET] <karklud> i know that the codes are stored in a tag called "xid:"
[18:36:06 CET] <karklud> furq, yeah, -show_format -show_entries format=0 didn't do it either :(
[18:36:22 CET] <kurufu> it mmight also help to know what kind of media and tags you are trying to dump.
[18:36:42 CET] <karklud> kurufu, i'm looking for the isrc codes of a bunch of .m4a files from itunes
[18:36:53 CET] <karklud> it could also be .mp3 or .aac
[18:37:10 CET] <karklud> err
[18:37:45 CET] <karklud> it's m4a but only with one stream: Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D)
[18:38:08 CET] <furq> try with mutagen
[18:38:12 CET] <karklud> (err again actually, there's also some video, but it doesn't matter)
[18:38:22 CET] <karklud> (the video is just the cover, it seems)
[18:39:16 CET] <karklud> furq, okay, i might try that
[18:39:27 CET] <karklud> i need to use js, but i can see that there is a js port, so it might work.....
[18:40:05 CET] <furq> well if ffprobe would have worked then presumably you can just make a mutagen script that dumps the tag you want to stdout
[18:40:12 CET] <furq> but yeah if there's a js library that does it then use that
[18:40:32 CET] <karklud> furq, yeah, you're right ofc
[18:40:49 CET] <karklud> furq, just trying to find the shortest path
[18:41:16 CET] <furq> i don't think anyone uses ffmpeg for metadata editing because it can't edit inplace, so this sort of thing lags behind dedicated apps/libs
[18:41:50 CET] <karklud> that makes sense
[18:42:28 CET] <karklud> thanks for the help!
[21:38:57 CET] <OrthATG> calling av_interleaved_write_frame what does the return code -32 indicate?
[21:41:17 CET] <DHE> errno == 32
[21:41:24 CET] <DHE> if you're on linux, that means broken pipe
[21:47:18 CET] <OrthATG> awesome! thx. is there a place that specifies those codes?
[22:21:50 CET] <c_14> pass the return code to av_strerror, or strerror after calling AVUNERROR <- OrthATG
[23:45:45 CET] <OrthATG> c_14: ty
[00:00:00 CET] --- Fri Dec 16 2016
1
0
[00:58:53 CET] <cone-555> ffmpeg 03Muhammad Faiz 07master:2b0112d42d4d: swresample/resample: remove swri_resample function
[01:10:21 CET] <cone-555> ffmpeg 03Andreas Cadhalpun 07master:ad5807f8aa88: avformat: fix overflows during bit rate calculation
[03:22:07 CET] <cone-555> ffmpeg 03Martin Vignali 07master:90af962911bb: libavcodec : add decoder for Photoshop PSD image files
[03:22:08 CET] <cone-555> ffmpeg 03Martin Vignali 07master:a534862b278a: libavformat : add Photoshop PSD demuxer.
[03:44:37 CET] <KGB> [13FFV1] 15michaelni pushed 1 new commit to 06master: 02https://git.io/v11SA
[03:44:37 CET] <KGB> 13FFV1/06master 14f13bedd 15dericed: left-align some table columns
[04:56:53 CET] <KGB> [13FFV1] 15dericed opened pull request #29: add subsections (06master...06WIP-adding-narratives) 02https://git.io/v1175
[08:34:27 CET] <fy> I am trying the skip_initial_bytes option to skip the first 8 bytes of my video file, which is my own file header of size 8. but it seems not working.
[08:35:08 CET] <fy> sorry for posting in the wrong channel...
[11:34:30 CET] <michaelni> durandal_170, gbrap16be/le pixfmts-scale fails on qemu-mips it seems http://fate.ffmpeg.org/report.cgi?time=20161214093528&slot=mips-ubuntu-qemu…
[11:35:46 CET] <durandal_170> michaelni: is that only big endian instance?
[11:37:29 CET] <michaelni> durandal_170, it does seem to work on loongson (mips64) http://fate.ffmpeg.org/report.cgi?time=20161214011218&slot=loongson-fedora-…
[11:37:36 CET] <michaelni> so i dont know what is happening
[11:39:03 CET] <michaelni> its also failing on http://fate.ffmpeg.org/report.cgi?time=20161214060811&slot=ppc64be-RHEL7.0-…
[11:51:03 CET] <cone-706> ffmpeg 03Michael Niedermayer 07master:457e93391964: Bump for psd demuxer and decoder
[13:39:45 CET] <michaelni> Timothy_Gu, some pages on fatebeta always seem to timeout for example: http://fatebeta.ffmpeg.org/report/sparc-solaris-32bit-gcc-5.2/20161214061859
[14:41:01 CET] <durandal_170> is there gui for gdb of some kind to step through program with source code?
[14:42:18 CET] <BtbN> Any IDE i guess
[14:46:35 CET] <robUx4> qtcreator does the job
[15:08:20 CET] <J_Darnley> durandal_170: Do you want more than GDB's own tui?
[15:10:50 CET] <durandal_170> J_Darnley: KDbg using right now, seems fine
[17:34:14 CET] <cone-706> ffmpeg 03Diego Biurrun 07master:2d7aadf3d95c: Add missing #includes for standalone spherical-information-related headers
[19:42:23 CET] <cone-706> ffmpeg 03Andrey Utkin 07master:c4afd4abce58: doc/filters: drawtext: add example of printing texts on same baseline
[20:09:49 CET] <durandal_170> ubitux: some guy is trying to use 128 level Lut with ffmpeg
[20:25:06 CET] <ubitux> lut3d?
[20:27:08 CET] <durandal_170> yes
[20:27:48 CET] <ubitux> it's going to be a bit large, but that might be doable
[20:28:28 CET] <ubitux> does it really make a meaningful difference to change the MAX_LEVEL to 128?
[20:28:35 CET] <ubitux> (in the output)
[20:29:14 CET] <ubitux> 128 will create a 25M malloc afaict
[20:29:45 CET] <ubitux> we can dynamically allocate them though
[20:30:48 CET] <ubitux> (currently it's about 3M, which is already quite large)
[20:31:18 CET] <llogan> michaelni: how can i (user "llogan") get permissions to set a patch as "Accepted" in patchwork? apparently I forgot to use one of the magic words to auto-deal-with-it.
[20:35:04 CET] <michaelni> llogan, you should have the power now
[20:38:17 CET] <llogan> michaelni: thanks. https://www.youtube.com/watch?v=-dJolYw8tnk
[20:39:35 CET] <llogan> has patchwork been helpful for you?
[20:40:53 CET] <michaelni> its usefull to find (old) patches that have not been applied
[20:41:46 CET] <michaelni> or not reviewed
[20:43:24 CET] <michaelni> its less than fully automatic though, it needs someone to update patches which where rejected or otherwise changed their status in ways that cant be automatcially detected
[20:44:55 CET] <michaelni> ive also written a dumb script to do a bit more automatic updating: https://github.com/michaelni/patchwork-update-bot
[20:45:17 CET] <michaelni> if you have ideas to improve this so more is auto updated, pull req or patch is welcome
[20:51:43 CET] <Compn> llogan : person asked webmaster@ about getting a samples repo on hd. you arent interested in that are you? i ask because you are one of the few usa devels...
[20:51:54 CET] <Compn> and the person asking was in n carolina i think
[21:02:12 CET] <durandal_1707> ubitux: simple increasing level doesn't help, there's some other issue with file
[21:11:21 CET] <sunny26_> <c_14> Are you present on this chat list also ?
[21:12:02 CET] <sunny26_> <durandal_1707> told me to post my queries here.
[21:13:45 CET] <durandal_1707> sunny26_: nicks are typed without <>
[21:15:11 CET] <c_14> sunny26_: yeah, I'm here as well
[21:15:40 CET] <sunny26_> Hey man thanks, for so much help. make fate is now doing its work
[21:16:04 CET] <sunny26_> If any error comes will let you know. Thank you so much.
[21:17:05 CET] <sunny26_> No body at my company is enthu to post updates to ffmpeg. Its me who is working overnight so that I can atleast contribute to this open source culture
[21:17:23 CET] <sunny26_> Thanks c_14 ....
[21:35:44 CET] <llogan> Compn: aren't you in US too? do how know how big samples is? internet service sucks in Alaska. Expensive and relatively slow.
[21:52:42 CET] <wm4> so there is this ffmpeg.c issue that using a hwaccel will trigger a format switch on the first frame
[21:52:52 CET] <wm4> avconv.c apparently had this fixed
[21:52:59 CET] <wm4> was the merged yet?
[21:53:25 CET] <nevcairiel> i skipped those changes in the merge because it requires huge refactoring of ffmpeg.c, outside of merge-size changes
[21:53:32 CET] <wm4> heh, ok
[21:56:30 CET] <nevcairiel> i tried to get it to work for a while too, but it quickly turned out that our filtering infrastructure is too different to just adapt it in the scope of a merge
[21:56:40 CET] <nevcairiel> filtering is just way different for us
[22:41:43 CET] <Timothy_Gu> michaelni: those pages have a lot errors, and to fix it would mean that I'll have to rewrite some parts of the parsing routine
[22:43:17 CET] <Timothy_Gu> Compn: I'm located in California if that helps
[22:51:50 CET] <cone-706> ffmpeg 03Paul B Mahol 07master:458fbee22154: avfilter/af_sofalizer: warn if user gives unknown channel names
[22:51:51 CET] <cone-706> ffmpeg 03Paul B Mahol 07master:e54b61a9ce19: doc/filters: fix channel names in sofalizer example
[22:55:13 CET] <Compn> Timothy_Gu : oh , nice to know. are you interested in making copies of the samples repo on hd and mailing them to people ?
[22:56:00 CET] <Compn> knowing full well that the repo contains clips of a pornographic nature and that we do not have the specific age and verified ID of the actressed to ensure full us title code compliance?
[22:57:13 CET] <Compn> llogan : yeah, but i'm not going to do it.
[22:57:36 CET] <Compn> llogan : ~100gb last i remembered, i havent checked as of late
[22:58:05 CET] <BtbN> 100GB still needs sending HDDs around?
[22:58:22 CET] <nevcairiel> some parts of the world are rather backwards
[22:58:30 CET] <nevcairiel> more interesting would be w hy people want the samples archive
[22:58:32 CET] <BtbN> But there are SD cards big enough for that.
[22:58:33 CET] <Compn> usually people just say that because they are scared of downloading or scared we wont give them permission
[22:59:05 CET] <Compn> i asked why he wants samples (when i gave him permission to download them), did not get reply back
[22:59:24 CET] <Compn> previous people wanted the samples include western digital who tested their hardware media player with the samples
[22:59:37 CET] <Compn> just to make sure it didnt crash, because they were not interested in supporting everything haha
[23:00:40 CET] <Compn> some guy @nla.gov.au asked for permission for the samples last year
[23:00:56 CET] <Compn> which is the national library of australia
[23:01:04 CET] <Compn> probably checking to see if they support all of our samples...
[23:01:09 CET] <Compn> for archiving formats
[23:01:32 CET] <nevcairiel> majority of the samples are butt-old formats without much relevance, or broken samples to some degree
[23:01:33 CET] <nevcairiel> so shrug
[23:02:13 CET] <Compn> heres an email we got this year, "I found the link, where there are lots of samples. I want to use them to test my transcoding program. It's inconvenient to download those samples by click each url link. Where and how to get those samples collection?"
[23:02:25 CET] <Compn> so this guy wanted to test his transcoding program
[23:02:44 CET] <JEEB> I think we have the way of getting those samples with rsync mentioned somewhere...
[23:02:56 CET] <JEEB> that person just didn't want to keep clicking http links I guess
[23:03:08 CET] <BtbN> Downloading 100GB isn't even that bad in terms of traffic cost anymore.
[23:03:20 CET] <durandal_1707> ban then from Internet nobody wants that ugly samples
[23:03:23 CET] <Compn> some software vendor wanted a copy of the samples repo. probably for testing youtube-like knockoff solution website
[23:05:19 CET] <Compn> guy at UTC aerospace systems wanted a copy of the repo too
[23:08:20 CET] <durandal_1707> Compn: who pays all that transactions?
[23:08:31 CET] <Compn> which transactions?
[23:08:40 CET] <nevcairiel> if they want physical delivery, they get to pay that themself
[23:08:43 CET] <Compn> yes
[23:08:50 CET] <Compn> they offer to pay, but they want a price quote
[23:08:58 CET] <durandal_1707> server data transfer
[23:09:01 CET] <Compn> i havent found anyone who wants to do it , so i dont have price quote
[23:09:18 CET] <Compn> our host pays the bandwidth costs
[23:09:31 CET] <durandal_1707> price is 1000$
[23:09:45 CET] <Compn> you would do it for $1000 ? :)
[23:10:58 CET] <Compn> (its really not hard or a lot of work haha)
[23:11:03 CET] <durandal_1707> add more zeroes as you like
[23:11:08 CET] <BtbN> If it's a company or something, overcharging a bit and putting the excess money into the ffmpeg fund thing seems not too bad?
[23:11:22 CET] <Compn> sure
[23:11:27 CET] <Compn> i think most people just end up downloading it
[23:11:28 CET] <BtbN> But companies usually have good internet, so they can just download it.
[23:11:31 CET] <Compn> yea
[23:12:59 CET] <durandal_1707> Compn: why MPlayer development seems dead?
[23:13:50 CET] <rcombs> I mean, mpv is a thing
[23:15:40 CET] <Compn> durandal_1707 : developers got jobs, lives
[23:15:51 CET] <Compn> no one pays people to work on mplayer
[23:15:59 CET] <Compn> (except youtube pays someone to work on mencoder lol)
[23:16:10 CET] <Compn> but they dont share back with us
[23:16:37 CET] <durandal_1707> really? who?
[23:16:39 CET] <Compn> durandal_1707 : it could happen to any software project
[23:18:01 CET] <Compn> i dont know persons name . i just know that youtube used mencoder in the past for some binary codec loading
[23:18:18 CET] <Compn> so someone had to fix mencoder up a little...
[23:18:45 CET] <durandal_1707> **** ****
[23:18:59 CET] <Compn> durandal_1707 : how do you think some of these codecs are being decoded when there is no ffmpeg decoder ?
[23:19:52 CET] <Compn> nevcairiel : yes, the samples repo is mostly a museum piece at this moment in time
[23:20:12 CET] <durandal_1707> people should be shot immediately after attempting implementing codec
[23:20:13 CET] <Compn> and its kind of the only one , besides vlc's repo.
[23:20:44 CET] <Compn> durandal_1707 : how is pixlet ?
[23:20:52 CET] <Compn> durandal_1707 : will you work on vivo codecs next?
[23:21:17 CET] <durandal_1707> pixlet is almost finished
[23:21:36 CET] <durandal_1707> vivo rip ;)
[23:22:02 CET] <Compn> i wish i could find vdo sample. all i came up were playlist files :\
[23:23:45 CET] <durandal_1707> there are other wavelets, besides qdmc need is too
[23:24:00 CET] <Compn> oh yea theres a bunch of wavelets
[23:24:24 CET] <Compn> i put a couple in mplayer binary codecs :)
[23:24:49 CET] <durandal_1707> I hope qdmc description on wiki is correct enough
[23:25:17 CET] <Compn> ancient quicktime format
[23:26:49 CET] <durandal_1707> I still haven't pushed bonk decoder
[23:27:18 CET] <durandal_1707> it's shitty like shorten
[23:27:58 CET] <Compn> is that like bink decoder ?
[23:28:16 CET] <Compn> oh no, lossless audio
[23:28:38 CET] <Compn> well, cant hurt to push it as experimental and let the users fix it :D
[23:28:54 CET] <Compn> assuming you fuzz it a little
[23:29:21 CET] <Compn> better to push it than to let it rot
[23:29:31 CET] <llogan> Compn: i don't feel like being a samples mule either. I suggest our official policy is to only offer downloads.
[23:31:40 CET] <Compn> llogan : no problem at all. just figured i would ask around.
[23:32:33 CET] <Compn> i wonder if we should be doing anything since ffmpeg (or lavc) is now on billions of computers..
[23:33:02 CET] <Compn> such a weird thing to go from a hobby project to installed on all phones, tv and computers worldwide
[00:00:00 CET] --- Thu Dec 15 2016
1
0
[00:00:39 CET] <edgy> JEEB: so complicated that I couldn't swallow this at all! based upon whatever could be based upon!
[00:01:26 CET] <JEEB> basically, as long as it's considered a modification of an existing patent it's a'ok or something
[00:01:49 CET] <JEEB> so if you work around a patent knowingly or unknowingly, it can be modified to also apply to your way of doing it
[00:02:53 CET] <edgy> JEEB: but this is something that is very difficult to measure, every new invention is a modifiction of a previous one in some way or another
[00:03:27 CET] <JEEB> yes, and then the patent office decides whether or not the thing is different enough from prior art
[00:03:31 CET] <JEEB> or an improvement or whatever
[00:03:38 CET] <JEEB> but that's when you are applying for a new patent
[00:03:48 CET] <JEEB> modifying a patent is a different thing methinks
[00:06:29 CET] <edgy> JEEB: so if vc1 got it patented, then misubishi modified its patent, they can canel vc1 acquired patents? oh! my head
[00:07:25 CET] <JEEB> no, the point is that if the patent applies to the format, then mitsu could start asking for licensing fees
[00:07:32 CET] <JEEB> simple as that
[00:07:44 CET] <JEEB> and not only had to be originally written like that, but they can even edit it
[00:08:51 CET] <edgy> this is complete trash!
[00:09:03 CET] <JEEB> :D
[00:10:07 CET] <edgy> JEEB: so now what do normally use to encode your dvd's? with this bad vp9 situation shall I just use x265?
[00:10:27 CET] <JEEB> at this point x264
[00:10:37 CET] <JEEB> because you'd have to test if x265 is worth the wait for you
[00:11:03 CET] <JEEB> MCW never got a real developer community around x265
[00:11:11 CET] <JEEB> (MCW being the company that licensed the name from x264 LLC)
[00:11:37 CET] <JEEB> so it does improve, but it's definitely hard to beat x264 in stuff like detail retention with higher bit rates
[00:12:03 CET] <JEEB> I will say though, that if you are aiming just for lower bit rates then libx265 is already better than libx264. both look like shit, and x265 gives you less shit.
[00:12:16 CET] <JEEB> but if you want to go to the area where one looks not shit, then usually x264 hits that line quicker
[00:13:01 CET] <JEEB> also this reminds me that I should do another test with 10bit x265
[00:16:11 CET] <edgy> JEEB: thanks a lot will stick to that. Is it safe just to use ffmpeg -i input -c:v libx264 -preset medium -crf 26 output.mp4 for all my videos? I am not an expert here
[00:16:39 CET] <JEEB> use -ss and -t to encode like 5 minutes of footage
[00:16:44 CET] <JEEB> test various crf values
[00:16:48 CET] <JEEB> start at 23
[00:16:52 CET] <JEEB> if it looks bad, go down
[00:16:57 CET] <JEEB> if it looks good, go up
[00:17:08 CET] <JEEB> then when you get the highest value that still looks good enough for you
[00:17:11 CET] <JEEB> use that
[00:17:19 CET] <JEEB> preset medium is a'OK
[00:17:51 CET] <furq> 26 is pretty high
[00:18:04 CET] <JEEB> that's why I said start with 23
[00:18:14 CET] <JEEB> and then go up/down depending on the short clip's results
[00:18:28 CET] <furq> 23 is also pretty high but i guess it does the job
[00:18:31 CET] <JEEB> that way you don't waste time and find your workable value
[00:18:39 CET] <JEEB> the idea is to start with something that might not look perfect :P
[00:18:49 CET] <JEEB> otherwise you start so low you don't know if it's bad or not yet
[00:19:59 CET] <furq> filtering is often more important with dvd anyway
[00:20:18 CET] <edgy> JEEB: I tried 26 and couldn't see a difference. is this because I am not trained to notice details or because the videos are low quality I don't know
[00:20:42 CET] <JEEB> edgy: could just be the content too
[00:20:46 CET] <JEEB> it's content dependent
[00:21:06 CET] <JEEB> also make sure you are actually testing the short clip how you'd actually watch it
[00:21:28 CET] <edgy> JEEB: what do you mean by short clip?
[00:21:46 CET] <JEEB> use -ss and -t
[00:21:48 CET] <JEEB> ss seeks
[00:21:55 CET] <JEEB> t limits how much it encodes
[00:22:05 CET] <JEEB> you don't usually encode a full clip when picking settings
[00:22:19 CET] <edgy> JEEB: oh! I didn't know that
[00:22:20 CET] <JEEB> of course if the whole clip encodes quickly enough then you can do without that :P
[00:22:27 CET] <JEEB> but yunno
[00:22:33 CET] <JEEB> it's a good general hint
[00:22:42 CET] <JEEB> because people usually complain they don't have the time to test different values
[00:22:48 CET] <furq> you'll definitely want to do that when you're testing different presets
[00:23:16 CET] <JEEB> also do note that the same CRF value does not mean the same thing between a) different types of content and b) different presets
[00:23:17 CET] <edgy> JEEB: and for the audio, are the defaults to use aac or copy? should I specify a bitrate like 128 or 160 or what?
[00:23:19 CET] <furq> 480p at medium should be much faster than realtime on any modern cpu, but veryslow won't
[00:23:25 CET] <JEEB> edgy: unless you need to re-encode, don't
[00:23:37 CET] <furq> yeah keep ac3 audio unless you need browser compatibility or something
[00:23:54 CET] <JEEB> furq: I remember laughing out loud when 720p encoded at like 8fps with preset placebo
[00:23:56 CET] <furq> it's usually not worth the space saving
[00:23:58 CET] <JEEB> on my 4790K
[00:24:02 CET] <furq> nice
[00:24:21 CET] <JEEB> I still remember encoding on an old Athlon XP and Turion 64x2
[00:24:30 CET] <furq> fwiw for dvd i normally use -preset slower -bf 5 -subq 10 -crf 20
[00:24:40 CET] <furq> but yeah filtering is generally more important than the settings you use
[00:24:53 CET] <edgy> furq: why you mentioned ac3? I guess it was mp3
[00:24:56 CET] <furq> unless it's a pal film dvd or something
[00:24:59 CET] <furq> because you said dvd
[00:25:13 CET] <edgy> furq: so all dvd's are ac3?
[00:25:27 CET] <furq> ac3, dts, lpcm or mp2
[00:25:50 CET] <furq> 99% of them are ac3 though
[00:26:12 CET] <edgy> furq: so, I would leave it as it's because I thought mp4 works well with aac and might not play with other audio codecs
[00:26:27 CET] <furq> ac3 is supported in mp4
[00:26:31 CET] <furq> maybe not my browsers though
[00:26:38 CET] <furq> s/my/by/
[00:27:08 CET] <edgy> furq, JEEB and all I learned a lot from you today. It's my first time using ffmpeg and really thank you
[00:27:32 CET] <furq> we haven't even got onto deinterlacing and IVTC yet
[00:27:35 CET] <edgy> JEEB: is there something like best practices doc?
[00:27:49 CET] <furq> or properly demuxing titles
[00:27:56 CET] <edgy> furq: if you have the patient to tell me I will love it ;)
[00:28:16 CET] <furq> well i'm in a pal region so i don't know shit about IVTC
[00:29:04 CET] <furq> `-vf yadif=1` is as good as ffmpeg has got for deinterlacing
[00:29:18 CET] <furq> that's not really a thing for film dvd though
[00:30:53 CET] <edgy> furq: when people speak about pal/secam/ntsc I got lost because I play videos in my pc not a tv so I don't even know why that matters
[00:31:20 CET] <furq> pal dvd is 25fps 720*576, ntsc is 30(ish) fps 720*480
[00:31:42 CET] <furq> film is 24fps so how you get that onto a dvd varies depending on the region
[00:31:49 CET] <furq> pal is normally sped up by 4%, ntsc is telecined
[00:32:29 CET] <furq> the first one of those is significantly easier to deal with
[00:34:13 CET] <furq> that only applies to film, tv shows were often shot on video which is normally just 50i/60i, so it's the same either way
[00:34:44 CET] <edgy> furq: how can i tell what kind of dvd I have currently?
[00:35:03 CET] <furq> watch it in mpv
[00:35:08 CET] <edgy> furq: and?
[00:35:29 CET] <furq> http://www.doom9.org/images/Interlace.jpg
[00:35:33 CET] <furq> look for that sort of thing
[00:35:51 CET] <furq> hit . to step frame-by-frame
[00:36:18 CET] <furq> if it happens on some frames with movement at regular intervals, it's telecined
[00:36:24 CET] <furq> if it happens on every frame with movement it's interlaced
[00:36:34 CET] <furq> otherwise it's either been deinterlaced already or it's pal film
[00:38:53 CET] <edgy> furq: you previously complained that every one know mpv better than you. certainly not me. where did you get this .to from?
[00:41:29 CET] <furq> .to?
[00:41:50 CET] <edgy> furq: I don't have a dvd handy now but I have .VOB file in VIDEO_TS folder so I tried . in mpv and it seems it jumps frame by frame
[00:42:05 CET] <edgy> furq: you told me to try ".to" in mpv?
[00:42:18 CET] <edgy> furq: ah!
[00:42:27 CET] <edgy> furq: you mean the . sorry
[00:42:32 CET] <furq> ok good
[00:42:37 CET] <furq> that would have been embarrassing
[00:42:42 CET] <edgy> furq: yes the . now shows that effect
[00:42:54 CET] <furq> i don't normally use mpv, but my regular player deinterlaces automatically and it's a pain to turn it off
[00:43:00 CET] <furq> so this is one of the things i use mpv for
[00:43:27 CET] <edgy> furq: I am rereading your steps again ...
[00:44:08 CET] <furq> you probably also want to check the resolution/framerate
[00:44:08 CET] <edgy> furq: i see that effect when the frame has something moving fast
[00:44:20 CET] <furq> all ntsc dvds are 480p, 29.97fps
[00:44:33 CET] <furq> if it's not ntsc then it won't be telecined
[00:45:34 CET] <edgy> furq: this is stuff is so complicated for me
[00:46:06 CET] <edgy> I guess it's better to leave it since I don't want to annoy you
[00:47:15 CET] <edgy> furq: just if you recommend me to read something like best practices or faq, I will appreciate it
[00:55:06 CET] <edgy> furq: ok again thanks a lot will save this so I re-read it again, bye for now
[02:10:18 CET] <wodim> anybody knows if there's anywhere I can grab a recent package of ffmpeg for ubuntu xenial?
[02:17:06 CET] <KurousagiMK2> https://launchpad.net/~mc3man/+archive/ubuntu/ffmpeg-test
[02:19:02 CET] <wodim> a bit late, I decided to compile it and the binary is being linked as we speak
[02:19:11 CET] <wodim> I looked at that, I didn't like the /opt thing
[02:19:37 CET] <furq> wodim: https://www.johnvansickle.com/ffmpeg/
[02:54:04 CET] <KCat156> Hello! I want to use ffprobe to find the displaymatrix of a video, but in an easily parsable way.
[02:55:14 CET] <KCat156> I've tried to use show_entries, but I don't know how to specify the entry for the displaymatrix because it is in a section within a section
[02:56:57 CET] <llogan> ffprobe -loglevel error -show_entries side_data=displaymatrix -of default=nw=1 input.foo
[02:57:22 CET] <llogan> or "default=nw=1:nk=1"
[02:57:56 CET] <KCat156> That worked! Thanks!
[03:01:10 CET] <llogan> ]\
[03:01:38 CET] <llogan> ^ Wrong console syndrome.
[03:26:30 CET] <kurufu> So, if i have a video with non-square pixels (SAR 8:9, DAR 4:3), is there a setting to square up the pixels when re-encoding?
[03:26:45 CET] <kurufu> encoding as I normally would resulted in a squashed image.
[03:27:07 CET] <kurufu> meanwhile ffplay and all other plays present the image as I would expect.
[03:27:20 CET] <kurufu> (present the image of the original video, the rencoded one is squashed).
[03:46:52 CET] <TestIrchatNICK> "ffmpeg -i in.mp4 -i b1 -i b2.png -filter_complex overlay=0:0 overlay=100:100 output.mp4" return> Unable to find a suitable output format for 'overlay=100:100'
[03:47:29 CET] <TestIrchatNICK> ffmpeg -i in.mp4 -i b1.png -i b2.png -filter_complex overlay=0:0 overlay=100:100 output.mp4
[03:48:24 CET] <teratorn> TestIrchatNICK: quote everything so that your argument to filter_complex is one thing
[03:50:59 CET] <TestIrchatNICK> teratorn Can you give me an example? Thank you
[03:52:02 CET] <teratorn> -filter_complex expects one thing to follow it, you're trying to pass it two things
[04:12:38 CET] <kurufu> Well to answer my question, to get sar and dar set properly when re-encoding. Use -vf setsar=sar,setdar=dar. But wtf why is this not the default why does it reshape pixels if I dont put this?!
[04:59:35 CET] <zpc> http://pastebin.com/iwDFv6zC
[05:00:03 CET] <zpc> Hi! the duration of source video and substracted wav is different , why?
[05:01:51 CET] <zpc> ffmpeg -i http://cdn.live.360.cn/huikan_news/vod-media/_XW_203286B417B7C6466B3B_20160… -vn test.wav -y
[05:03:25 CET] <zpc> I'm recorgnizing subtitle from audio, and I need to add subtitle back to video. So I want the duration of audio and video the same
[05:14:05 CET] <kurufu> zpc: set the samplerate correctly and it should fix your problem
[05:14:53 CET] <kurufu> It looks like its taking the 44.1 input and outputing 48. Or that is just a devilish coincidence of time reduction
[05:17:59 CET] <zpc> kurufu: I run ffmpeg -i http://cdn.live.360.cn/huikan_news/vod-media/_XW_203286B417B7C6466B3B_20160… -b:a 44.1k -vn test.wav -y
[05:18:06 CET] <zpc> and the result is the same
[05:21:01 CET] <kurufu> Hmm
[05:23:04 CET] <kurufu> oh you use -b:a
[05:23:11 CET] <kurufu> you need ot use... I think -ar? for sample rate
[05:25:03 CET] <zpc> ffmpeg -i http://cdn.live.360.cn/huikan_news/vod-media/_XW_203286B417B7C6466B3B_20160… -ar 44.1k -vn test.wav -y
[05:25:14 CET] <zpc> Duration: 00:06:10.40, bitrate: 705 kb/s
[05:25:20 CET] <zpc> result the same :(
[05:25:38 CET] <zpc> I'm very confusing
[05:29:17 CET] <kurufu> well im at a loss lol. Im not to proficient at ffmpeg myself.
[05:30:01 CET] <kurufu> but if it makes you feel better my ffmpeg is doingthe same thing :)
[05:30:50 CET] <zpc> kurufu: No problem, thank you all the same !
[05:50:52 CET] <dr_pardee> zpc: it's the conversion to wav that causing the timing issue. ffmpeg -y -i http://cdn.live.360.cn/huikan_news/vod-media/_XW_203286B417B7C6466B3B_20160… -vn -acodec copy -bsf:a aac_adtstoasc test.m4a
[06:31:07 CET] <KCat156> How can I rotate an mp4's metadata in ffmpeg? Re-encoding the video is too slow.
[06:49:24 CET] <Prelude2004c> hey guys.. running with ffmpeg -i rtmp://localhost/whatever/whatever.. logs show it gets to " sending play command for 'stream' " but then nothing else
[06:49:29 CET] <Prelude2004c> just sits there.. anyone have any idea why?
[06:59:48 CET] <MrMonkey31> KCat156: the param you want to set is -metadata:s:v
[07:00:21 CET] <MrMonkey31> ex, -metadata:s:v "rotate=90" for a (I think) left hand quarter turn
[07:01:21 CET] <MrMonkey31> and of course -c copy
[08:24:15 CET] <fy> I am trying the skip_initial_bytes option to skip the first 8 bytes of my video file, which is my own file header of size 8. but it seems not working.
[08:24:17 CET] <fy> ffmpeg -skip_initial_bytes 8 -i new.mp4.cache
[08:24:29 CET] <fy> ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 8.0.0 (clang-800.0.42.1) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-ffplay --disable-lzma --ena
[08:24:40 CET] <fy> [aac @ 0x7f9b7a001000] Format aac detected only with low score of 1, misdetection possible! [aac @ 0x7f9b7b000600] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [aac @ 0x7f9b7b000600] Assuming an incorrectly encoded 7.1 channel layout instead of a spec-compliant 7.1(wide) la
[08:24:43 CET] <pzich_> !paste fy
[08:25:15 CET] <pzich_> damn, what's the command again?
[08:25:26 CET] <pzich_> fy: use pastebin or equivalent
[08:25:27 CET] <fy> ffmpeg -skip_initial_bytes 8 -i new.mp4.cache
[08:27:33 CET] <fy> http://pasted.co/c2ce9848
[08:30:06 CET] <fy> I checked avformat_open_input, seems this option is used after probe the file format...
[08:33:36 CET] <fy> should I increase probe size?
[08:38:00 CET] <IamTrying> Windows 10. User1, User2 is using Google hangout and connected, now i need to record the audio coming to the PC and going out from the PC. How can i get help out of FFMpeg on this please?
[08:39:56 CET] <nonex86> pzich, !pb
[08:49:07 CET] <IamTrying> Can anyone please reference me god level book for FFmpeg? i am getting lost with FFmpeg irc no feedback, stackoverflow politics. Is there no God level FFmpeg book which covers all street fighting facts to accomplish?
[08:51:51 CET] <ItWasntMe2013> IamTrying: https://trac.ffmpeg.org/
[08:53:03 CET] <IamTrying> ItWasntMe2013: do they have paper printed books (old school like) or is this book from FFMpeg community ? https://www.amazon.com/Streaming-Media-Bible-Steve-Mack/dp/0764536508/ref=s…
[08:53:29 CET] <ItWasntMe2013> IamTrying: by the time it goes to print..... its out dated... not gonna happen mate
[08:54:29 CET] <IamTrying> ItWasntMe2013: but i just want be god level on FFmpeg on old versions, its not important i have to sync myself with nightly builds. On one old version i want to make my skill as god level in FFmpeg. there are too many random FFmpeg informations and that confuse the research.
[08:54:51 CET] <ItWasntMe2013> https://trac.ffmpeg.org/
[08:54:56 CET] <ItWasntMe2013> thats your best bet
[08:54:56 CET] <IamTrying> OK thank you
[08:54:59 CET] <ItWasntMe2013> trust me
[08:56:20 CET] <ItWasntMe2013> IamTrying: https://ffmpeg.org/ffmpeg.html
[08:56:23 CET] <ItWasntMe2013> this is the god manual
[08:56:25 CET] <ItWasntMe2013> all is there
[08:56:29 CET] <ItWasntMe2013> everything you could ever need
[08:56:31 CET] <ItWasntMe2013> is there
[08:56:37 CET] <ItWasntMe2013> dont forget to donate :)
[08:58:10 CET] <IamTrying> OK - thank you, please make one donate button "do you want it print copy to your home address? donate 100 USD i will appreciate the payment even its more"
[08:58:34 CET] <ItWasntMe2013> IamTrying: https://co.clickandpledge.com/advanced/default.aspx?wid=56226
[08:59:24 CET] <IamTrying> Sure i will donate ItWasntMe2013, but i did not personally got any help from FFmpeg. if i get a book at-least in printed copy and i would pay 400 USD then its atleast something for me in return.
[09:00:18 CET] <ItWasntMe2013> IamTrying: the free version is here: https://ffmpeg.org/ffmpeg.html
[09:00:25 CET] <ItWasntMe2013> dont forget to donate :)
[09:04:02 CET] <IamTrying> ItWasntMe2013: this is how i donate. i buy books first (i get a paper copy not digital web link, i lose track following and maintaining my reading track, once that book i read and i found what i was looking for, i go back to the donate pages and i donate more then expected)
[09:04:34 CET] <IamTrying> donate is natural for me, but i need it my way, i have to feel like i was helped by ffmpeg, still not yet i was helped by it ItWasntMe2013
[09:05:07 CET] <ItWasntMe2013> IamTrying: dude..... http://www.123inkcartridges.ca/p-345708-p2500w-pantum-p2500w-monochrome-las… go buy that.... and print to your hearts content....
[09:06:01 CET] <IamTrying> OK - thank you
[09:07:00 CET] <ItWasntMe2013> tabarnak de câlisse
[11:39:11 CET] <maziar> how can i fix this error : "Invalid UE golomb code"
[12:18:54 CET] <sunny26> what make fate does ? I am submitting a patch and the steps required to do is to check the patch with make fate
[12:19:02 CET] <sunny26> what does make fate do ?
[12:19:10 CET] <sunny26> and what if it fails ?
[12:19:16 CET] <sunny26> Please help
[12:19:18 CET] <BtbN> It runs the test suite.
[12:19:23 CET] <BtbN> If it fails, you fix what makes it fail.
[12:20:09 CET] <sunny26> mine failing with this error : <my_dir>/source/tests/checkasm/checkasm: cannot execute binary file: Exec format error
[12:20:20 CET] <sunny26> I am cross compiling my ffmpeg source
[12:20:35 CET] <BtbN> Well, you obviously can't run it then.
[12:20:50 CET] <sunny26> So what should I do ?
[12:20:56 CET] <BtbN> Don't cross compile
[12:21:04 CET] <sunny26> Compile on my X86_64 platform
[12:21:06 CET] <sunny26> !!!
[12:21:12 CET] <sunny26> ok...
[12:21:21 CET] <sunny26> let me check...
[12:59:28 CET] <sunny26> Hi <BtbN> still its vailing with the error Test source failed. Look at tests/data/fate/source.err for details.
[12:59:52 CET] <sunny26> And When I open it, its blank
[12:59:55 CET] <sunny26> :-(
[13:13:54 CET] <sunny26> Hi guyz
[13:14:26 CET] <sunny26> While running "make fate" I am getting error like "Look at tests/data/fate/source.err"
[13:14:39 CET] <sunny26> And when I opens it, it is blank
[13:15:17 CET] <sunny26> Is there anything needed to be downloaded before we run the fate suite
[13:15:18 CET] <sunny26> ??
[13:15:23 CET] <sunny26> Please Help
[13:24:26 CET] <durandal_170> sunny26: what are you submitting?
[13:29:01 CET] <nonex86> well, i asked about this before, but i still hope another way exists... its about seeking using ffmpeg on mpegps files, as far as i understand i CANT seek this kind of files to the timestamps
[13:29:22 CET] <nonex86> so right now i just read frames from file till i find pts i needed
[13:29:49 CET] <nonex86> it take some time on big files
[13:30:38 CET] <nonex86> is there are any way to make the process faster?
[13:57:25 CET] <wodim> sunny26, I have no clue, but I don't think you can run the test suite if you're cross compiling
[14:02:40 CET] <termos> are there any good example of using the tee muxer from the libavformat API?
[14:06:35 CET] <sunny26> <wodim> : I am not cross compiling
[14:06:48 CET] <wodim> you just said you are
[14:06:53 CET] <sunny26> I am now compiling it on my onw PC
[14:07:28 CET] <sunny26> Yes I had cross compiled it because i have test my hardware also, that's another story
[14:07:42 CET] <sunny26> make fate-rsync SAMPLES=fate-suite/
[14:07:50 CET] <sunny26> rsync -vrltLW --timeout=60 --contimeout=60 rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/
[14:07:56 CET] <sunny26> rsync: safe_read failed to read 1 bytes [Receiver]: Connection reset by peer (104)
[14:08:02 CET] <sunny26> rsync error: error in rsync protocol data stream (code 12) at io.c(251) [Receiver=3.1.0]
[14:08:09 CET] <sunny26> make: *** [fate-rsync] Error 12
[14:08:15 CET] <wodim> well there you have your error
[14:09:06 CET] <sunny26> But i dont understan it what is going wrong ?
[14:09:21 CET] <sunny26> I have enough memory on my PC
[14:09:27 CET] <wodim> there was an error connecting to the rsync server
[14:09:49 CET] <sunny26> So what should i do now ?
[14:10:03 CET] <wodim> what do you do when you try to download something and it fails?
[14:10:25 CET] <sunny26> donot know...
[14:10:33 CET] <wodim> you try again
[14:10:37 CET] <sunny26> please suggest
[14:10:46 CET] <DelphiWorld> hey
[14:10:56 CET] <sunny26> oh great.. Tried 4-5 times
[14:11:01 CET] <DelphiWorld> someone able to transcode hd video from tvheadend?
[14:11:16 CET] <wodim> sunny26, maybe your connection is not working well, or maybe the remote ffmpeg server is having problems
[14:11:38 CET] <sunny26> Ok.. Will try it tomorrow then
[14:11:48 CET] <sunny26> Hope your suggesion works
[14:15:11 CET] <sunny26> <wodim> at http://fate-suite.ffmpeg.org/ the fate-suite folder doesn't exit !
[14:15:18 CET] <sunny26> can you look at it ?
[14:15:34 CET] <wodim> that's http
[14:15:40 CET] <wodim> rsync is another protocol
[14:15:42 CET] <sunny26> So ?
[14:15:45 CET] <wodim> it does not have to appear there
[14:15:46 CET] <sunny26> ok
[14:15:55 CET] <wodim> the error message clearly indicates a connection problem
[14:16:01 CET] <sunny26> ok ok
[14:16:50 CET] <sunny26> So where it should be available ?
[14:17:01 CET] <sunny26> can I "wget" it ??
[14:17:57 CET] <sunny26> I am submitting my first patch in ffmpeg community. The last part remainig is "make fate".
[14:18:20 CET] <wodim> maybe you can. I don't know
[14:18:24 CET] <DelphiWorld> wodim: isn't wodim a cd riping app or something?
[14:18:38 CET] <wodim> a cd burning app
[14:18:43 CET] <DelphiWorld> lol
[14:18:47 CET] <wodim> I liked the name so I kept it
[14:18:49 CET] <DelphiWorld> HAHAHA i could remember it ;)
[14:18:55 CET] <DelphiWorld> i see
[14:19:01 CET] <DelphiWorld> WOW! DIM!
[14:22:12 CET] <c_14> sunny26: does fate pass without the samples? what are you patching?
[14:27:27 CET] <sunny26> means ?
[14:27:33 CET] <sunny26> only make fate !
[14:27:50 CET] <sunny26> <c_14> you me "make fate" ?
[14:27:52 CET] <c_14> yes
[14:27:56 CET] <sunny26> *mean
[14:27:58 CET] <sunny26> no
[14:28:04 CET] <sunny26> error is as below
[14:28:18 CET] <sunny26> Test source failed. Look at tests/data/fate/source.err for details.
[14:28:38 CET] <sunny26> cat tests/data/fate/source.err
[14:28:43 CET] <sunny26> It shows nothing
[14:28:48 CET] <sunny26> its blank
[14:30:05 CET] <sunny26> I have executed "make fate" before refering to https://ffmpeg.org/fate.html
[14:33:50 CET] <durandal_170> sunny26: that fate thing might not be needed
[14:34:32 CET] <durandal_170> what are you actually doing regarding your patch you wish to send?
[14:35:13 CET] <sunny26> <durandal_170> : I am adding support for nv12 tile format conversion to nv12 and yuv420p
[14:35:22 CET] <sunny26> Its done, and tested.
[14:35:37 CET] <sunny26> Only one last thing remainig in my checklist is "make fate".
[14:35:49 CET] <sunny26> What should I do ?
[14:36:16 CET] <durandal_170> you can run fate without samples
[14:36:35 CET] <sunny26> Ok but its failing
[14:37:02 CET] <durandal_170> only if you add/change codecs/formats that's relevant
[14:37:24 CET] <durandal_170> sunny26: woks fine here
[14:38:33 CET] <durandal_170> maybe you connection have special rules
[14:39:05 CET] <sunny26> http://pastebin.com/wDTqM0KT
[14:39:13 CET] <sunny26> this error
[14:40:57 CET] <sunny26> <durandal_170> What am missing ?
[14:41:25 CET] <durandal_170> sunny26: valid connection
[14:41:37 CET] <sunny26> :-))
[14:41:40 CET] <sunny26> ok
[14:42:38 CET] <durandal_170> sunny26: your headers are missing guards
[14:43:06 CET] <durandal_170> look at other headers
[14:43:20 CET] <c_14> And license headers
[14:45:03 CET] <sunny26> Ok let me investigate again.
[17:51:06 CET] <MrMonkey31> my head hurts a lot after trying to use filter graphs
[17:51:26 CET] <MrMonkey31> one persistent error I seen is "Input link in1:v0 parameters (size 946x532, SAR 1:1) do not match the corresponding output link in0:v0 parameters (946x532, SAR 255:254)"
[17:52:42 CET] <MrMonkey31> I've decided that I need setsar=sar=1 but inserting this in a logical (to me) manner fails, as does inserting it at all steps of the filtering
[17:53:17 CET] <MrMonkey31> the error's from the line [vr][blended]concat=n=2[fin]
[17:54:43 CET] <MrMonkey31> depending on which input file I choose I have also seen 'in1:v0 parameters (size 946x532, SAR 4256:4257)' and wondered, what's it all mean?
[18:03:01 CET] <agrathwohl> Anyone know of a good place to get color test frames for Rec 709?
[18:03:09 CET] <agrathwohl> Can FFmpeg generate them?
[18:41:19 CET] <MrMonkey31> wow, an hour-long ordeal has ended. apparently the only thing to fix my complex filter was to put setsar=r=1 on a separate line
[19:23:48 CET] <GuiToris> hello, could anyone tell me why I can't run this command ffmpeg -f concat -i mylist.txt -c copy output.mkv ? 'Unsafe file name'
[19:27:15 CET] <c_14> add -safe 0 before -i
[19:37:54 CET] <GuiToris> c_14, yes it does the trick, but is it the standard way to execute this command?
[19:38:21 CET] <c_14> that or ensure that the paths in mylist.txt are relative
[19:38:56 CET] <GuiToris> they are, I just followed the wiki and I created the list with for f in ./*.wav; do echo "file '$f'" >> mylist.txt; done
[19:39:44 CET] <c_14> I don't really get how the safe paths thing works
[19:39:56 CET] <GuiToris> c_14, no problem, thank you for your help :)
[19:40:02 CET] <c_14> as long as you're not processing untrusted input use -safe 0
[19:40:15 CET] <GuiToris> got it :)
[20:53:33 CET] <sunny26> Hi guyz I wanna submit a new patch to ffmpeg, but I am stuck with "make fate" error http://pastebin.com/0Pm5Zy3n
[20:53:39 CET] <sunny26> Please help
[20:54:20 CET] <sunny26> same thing I also posted on the mailing list on this link http://ffmpeg-users.933282.n4.nabble.com/make-fate-is-failing-td4678569.html
[20:55:16 CET] <sunny26> I am subbmiting a patch for the first time, please help me out.
[20:57:30 CET] <c_14> you're missing inclusion guards
[20:59:05 CET] <sunny26> "you're missing inclusion guards" please elobrate !
[20:59:23 CET] <c_14> #ifndef AVUTIL_AES_H #define AVUTIL_AES_H
[20:59:26 CET] <c_14> ^those
[20:59:31 CET] <sunny26> Oh
[20:59:36 CET] <sunny26> let me see
[21:00:02 CET] <sunny26> ya true...
[21:02:13 CET] <c_14> should be AVUTIL_SPECIAL_FORMAT_H/SWSCALE_NV12TILED2NV12_H I think
[21:03:33 CET] <sunny26> ok
[21:04:27 CET] <durandal_1707> sunny26: development talk is on #ffmpeg-devel
[21:07:51 CET] <sunny26> ok sorry.
[23:15:45 CET] <pw_> exit
[00:00:00 CET] --- Thu Dec 15 2016
1
0
[00:02:17 CET] <cone-706> ffmpeg 03Andreas Cadhalpun 07master:3ab8436ff611: opt: reject denominator zero as out of range
[00:07:10 CET] <cone-706> ffmpeg 03Michael Niedermayer 07master:4cf3def805cf: avutil/tests/imgutils: Remove unused variable
[00:17:03 CET] <Compn> another person asking about shipping a copy of samples repo on HD
[00:17:10 CET] <Compn> wonder if llogan wants to do this? :D
[00:39:47 CET] <cone-706> ffmpeg 03Wan-Teh Chang 07master:fed50c4304ee: avutil: fix data race in av_get_cpu_flags()
[09:19:06 CET] <durandal_1707> kierank: -disable-hwaccels ?
[10:02:33 CET] <cone-972> ffmpeg 03Marton Balint 07master:265d45183be1: avfilter/avfilter: fix filtering frames with unknown channel layouts for filters needing writable frames
[12:12:56 CET] <ElAngelo> does anyone know when zeranoe normally builds again?
[12:20:10 CET] <BtbN> every day I think?
[12:20:31 CET] <durandal_1707> maybe when someone stops leeching all stuff repeatedly
[12:21:51 CET] <ElAngelo> nah last build is from 10 december
[12:22:54 CET] <wm4> ElAngelo: wrong channel
[12:25:02 CET] <ElAngelo> yeah i actually realized that after i typed my question :)
[12:25:08 CET] <ElAngelo> sorry for the noise...
[12:35:35 CET] <kierank> durandal_1707: sure but it's a bug
[13:50:30 CET] <nevcairiel> kierank: just ping BtbN directly about any issues with the cuda/nvenc stuff
[13:50:59 CET] <kierank> BtbN: see trac 6018
[13:51:03 CET] <kierank> 6017 I mean
[13:51:53 CET] <nevcairiel> how come your system passes the dlopen configure check but then doesnt have dlsym anyway?
[13:53:50 CET] <nevcairiel> unless there is a bug th at even bypasses the configure check
[13:54:42 CET] <BtbN> Not doing anything fancy with those, I'd expect other stuff to be affected as well
[14:09:47 CET] <kierank> Why does nvidia stuff get included in the first place
[14:10:03 CET] <kierank> --disable-everything shouldn't require anything more
[14:10:36 CET] <BtbN> I have no idea how that works in the first place. It seems to disable all components, but the component list only contains entires like decoders/demuxers/...
[14:42:44 CET] <Compn> carl usually checks --disable-everything
[14:42:55 CET] <Compn> at least i remember him fixing it multiple times in the past
[14:52:14 CET] <BBB> kierank: want to help me clickbait something?
[14:52:23 CET] <kierank> yeah why not
[14:53:26 CET] <BBB> https://blogs.gnome.org/rbultje/2016/12/13/overview-of-the-vp9-video-codec/
[14:53:59 CET] <BBB> I just posted it on n.ycomb
[14:54:54 CET] <BBB> (https://news.ycombinator.com/item?id=13166720)
[15:16:23 CET] <Shiz> >A video stream consists of frames, and each frame consists of color planes.
[15:16:32 CET] <Shiz> akshually, a stream consists of pictures, which can either be frames or fields :P
[15:17:48 CET] <wm4> vp9 doesn't support interlacing
[15:17:57 CET] <wm4> unless they have a field mode thing?
[15:18:50 CET] <BBB> no interlacing
[15:18:59 CET] <BBB> interlacing=evil
[15:19:13 CET] <BBB> and then theres mbaff
[15:23:01 CET] <JEEB> the HEVC way kind of serves interlacism people well enough, you just have a field/frame flag and that's it
[15:23:41 CET] <nevcairiel> its double terrible though
[15:24:07 CET] <nevcairiel> still the terrible interlacing and not even coding tools to make it more efficient
[15:24:37 CET] <JEEB> lol
[15:24:52 CET] <JEEB> it was still noted that it gives benefits over AVC so (Ž4@)
[15:25:01 CET] <JEEB> or you just don't give a damn about interlacism, of course
[15:25:04 CET] <nevcairiel> i dont think our decoder ever learned to do that, did it
[15:26:06 CET] <BBB> that sounds worthy of a fate test?
[15:26:07 CET] <nevcairiel> someone was once working on it but I was concerned about his approach because it wouldnt allow hwacceling it, so he might have given up
[15:26:32 CET] <BBB> the fact that nobody has fixed it yet probably means nobody cares
[15:26:39 CET] <JEEB> :)
[15:26:41 CET] <nevcairiel> (iirc he made it decode both fields into separate frames and then interlaved them manually)
[15:26:46 CET] <JEEB> oh
[15:26:46 CET] <BBB> either because nobody cares about ffmpeg (unlikely), or b/c nobody cares about hevc
[15:26:55 CET] <BBB> so Ill just conclude nobody cares about hevc
[15:26:57 CET] <JEEB> yeah, because our filters expect both fields to be together
[15:27:01 CET] <nevcairiel> more like interlaced hevc
[15:27:03 CET] <BBB> not at all partial or biased ;)
[15:27:14 CET] <wm4> actually it would be cleaner if all decoders just returned fields
[15:27:28 CET] <nevcairiel> still breaks hwaccel =p
[15:27:34 CET] <wm4> all those hacks to recover timestamps with deinterlacing field doubling
[15:27:40 CET] <JEEB> :D
[15:27:55 CET] <JEEB> man I just had forgotten about those
[15:38:53 CET] <BBB> maybe I should blog about how interlacing is dead
[15:40:42 CET] <BBB> although Ive always wanted to write a blog about that one time when one compiler beat my hand-written assembly
[15:40:45 CET] <BBB> I was so pissed
[15:40:58 CET] <nevcairiel> lol
[15:42:17 CET] <nevcairiel> you should be happy to have a competent compiler instead
[15:51:58 CET] <bencoh>
[15:56:53 CET] <cone-972> ffmpeg 03Michael Niedermayer 07master:30581c51e72a: avformat/options_table: Set the default maximum number of streams to 1000
[15:56:54 CET] <cone-972> ffmpeg 03Michael Niedermayer 07master:f0bdd538712d: avformat/utils: Print verbose error message if stream count exceeds max_streams
[16:11:07 CET] <wm4> so when will we revert this max_streams abomination
[16:13:12 CET] <nevcairiel> everything gets done in the name of security
[16:13:29 CET] <nevcairiel> just register a CVE for whatever problem you have and greenlight any patches!
[16:14:21 CET] <wm4> I'm really not sure why we need to fight so hard for dumb things like this
[16:14:58 CET] <nevcairiel> because security handling is dumb
[16:15:06 CET] <kierank> BBB: upvoted
[16:15:09 CET] <kierank> sorry, was a bit busy
[16:15:17 CET] <nevcairiel> we're open source but we cant take time to discuss patches and share all information, because muh secrets
[16:15:18 CET] <BBB> np, ty
[16:15:28 CET] <kierank> nevcairiel: muh youtube samples
[16:15:32 CET] <wm4> I'm not aware of any secrets
[16:15:35 CET] <BBB> theyre never yt samples
[16:15:48 CET] <BBB> theyre always fate samples or h264 conformance suite samples fuzzed in some way
[16:15:55 CET] <BBB> but security because meh legal
[16:16:03 CET] <BBB> ask lawyers whether & and they say no
[16:16:28 CET] <BBB> Ive learned that in these cases, its best to ask for forgiveness, not permission
[16:16:36 CET] <BBB> use your own judgement ;)
[16:16:36 CET] <nevcairiel> wm4: half the oss projects have hidden/priveledged tickets on their issue tracker in the name of security
[16:16:48 CET] <nevcairiel> i'm surprised we dont have that yet
[16:16:54 CET] <nevcairiel> its apparently all on some non-public ML
[16:18:09 CET] <wm4> we have a security ML
[16:18:22 CET] <wm4> which I don't have access to, so dunno what's there
[16:22:17 CET] <rcombs> standard responsible-disclosure procedure; fix bug, then wait to discuss details publicly until the patch is deployed
[16:22:28 CET] <nevcairiel> this wasnt a bug
[16:22:44 CET] <nevcairiel> you can craft a perfectly valid file with thousands of empty stream
[16:22:46 CET] <nevcairiel> +s
[16:22:48 CET] <nevcairiel> uses a lot of memory
[16:22:50 CET] <nevcairiel> is that a bug?
[16:23:10 CET] <rcombs> so, what is this, supposedly a DoS?
[16:23:18 CET] <nevcairiel> so the CVE claims
[16:23:21 CET] <wm4> it was generated by a fuzzer
[16:23:45 CET] <wm4> and it's essentially a DoS because some malloc fails (and/or causes it get OOM killed)
[16:24:55 CET] <nevcairiel> noone minds quick bug fixes in the name of security, if it goes bad we can always fix it
[16:25:04 CET] <nevcairiel> defining new API and rushing it thorugh for some shady OOM DoS report
[16:25:07 CET] <nevcairiel> its just meh
[16:25:52 CET] <wm4> ffmpeg development, lol
[16:55:24 CET] <wm4> BtbN: are the nvenc presets documented anywhere? i.e. what the heck do they mean
[16:58:59 CET] <BtbN> I'm not aware of any actual definition on what they are
[16:59:01 CET] <nevcairiel> in the nvidia docs, kinda
[16:59:05 CET] <nevcairiel> but not very well
[16:59:32 CET] <BtbN> The pdf docs have some hints and numbers here and there, but no real explanation.
[17:00:15 CET] <nevcairiel> its really not that opaque, tbh
[17:00:25 CET] <nevcairiel> high performance, high quality speak for themself
[17:00:44 CET] <nevcairiel> low latency kinda does as well, probablly primarily for live streaming to their tablets
[17:01:14 CET] <nevcairiel> and dual-pass is just a RC mode
[19:03:00 CET] <cone-972> ffmpeg 03Muhammad Faiz 07master:6a8c0d83572d: swresample/resample: do not allow negative dst_size return value
[19:45:48 CET] <cone-972> ffmpeg 03Alex Converse 07master:bf15981b1262: libvpxenc: Don't spam level errors for VP8 encodes
[00:00:00 CET] --- Wed Dec 14 2016
1
0
[08:28:35 CET] <julienff> Hello all, i'm looking for a ffmpeg command to create x number of thumbnails, anyone for help ?
[08:34:11 CET] <julienff> whatever the duration of the video i would like to extract x number of thumbnails
[08:35:56 CET] <thebombzen> julienff: if you're looking at evenly spaced intervals, you can use -frames:v X, and set the framerate of the output appropriately
[08:36:11 CET] <thebombzen> so if you're looking for 1 per second, you can do -r 1 -frames X
[08:36:43 CET] <thebombzen> if you're looking for a smarter method, you could check out the thumbnails filter
[08:41:10 CET] <julienff> thebombzen: sorry i don't understand, what are v and X, i just want to specify for example 15 thumbnails, spaced calculated by the total duration
[08:42:08 CET] <thebombzen> what is X?
[08:42:14 CET] <thebombzen> whatever the duration of the video i would like to extract x number of thumbnails
[08:42:16 CET] <thebombzen> that's x
[08:42:23 CET] <thebombzen> so it depends on the duration
[08:42:31 CET] <thebombzen> if the duration, were say, 617 seconds
[08:42:47 CET] <thebombzen> you could do -r 15/617
[08:42:56 CET] <thebombzen> which makes the framerate 15 frames per 617 seconds
[08:43:02 CET] <thebombzen> and just transcode it like that
[08:43:20 CET] <julienff> yes but can i have a uniq command line to do that?
[08:43:30 CET] <julienff> or does a script exist ?
[08:43:31 CET] <thebombzen> that doesn't reference the duration? I don't know
[08:43:56 CET] <julienff> because ffmpeg doesn't know the total duration ?
[08:45:14 CET] <julienff> thebombzen could you give me an example of command please ?
[08:45:25 CET] <thebombzen> well if you know the duration
[08:45:37 CET] <thebombzen> which I'll use as 617 for this example
[08:46:11 CET] <thebombzen> you could do ffmpeg -i input_file -r 15/617 frame_%4d.png
[08:46:15 CET] <thebombzen> or something like that
[08:46:22 CET] <thebombzen> where 15 is the number of frames you want to generate
[08:46:40 CET] <julienff> exact yes i have this command but i don't have the duration
[08:46:42 CET] <thebombzen> cause if you're trying to generate a 15 thumbnails over the duration, you will need to reference the duration
[08:47:00 CET] <julienff> this is the problem do i need a special script ?
[08:47:06 CET] <thebombzen> because if you don't know how much video you'll receive, say if it's from a live device, you cannot generate 15 thumbnails evenly spaced on the duration
[08:47:14 CET] <thebombzen> if you do not know what the duration is
[08:47:26 CET] <thebombzen> the thing you're asking is impossible to do without knowing the duration
[08:47:33 CET] <thebombzen> you can find the duration by doing ffmpeg -i input_file
[08:47:35 CET] <thebombzen> and it'll say
[08:48:14 CET] <julienff> so i need to make a script to automatize it ?
[08:48:19 CET] <julienff> because i have various videos
[08:48:24 CET] <thebombzen> yes
[08:48:52 CET] <julienff> there is no script which ever exist ?
[08:49:12 CET] <thebombzen> well why would it exist
[08:49:24 CET] <thebombzen> if you're trying to get the duration of a file you can use this:
[08:49:24 CET] <julienff> some people maybe ever coded it
[08:49:33 CET] <julienff> i m not very good at coding
[08:49:41 CET] <thebombzen> ffprobe -show_format input_file 2>/dev/null | grep duration= | cut -d '=' -f 2
[08:50:04 CET] <thebombzen> that would be a primitive way of doing it
[08:50:29 CET] <thebombzen> and then if you wanted X thumbnails
[08:50:31 CET] <thebombzen> like 15
[08:51:56 CET] <julienff> so i have to stock the result of ffprobe in a variable
[08:51:57 CET] <thebombzen> you could do inputfile=input the filename here; DUR=$(ffprobe -show_format "$inputfile" 2>/dev/null | grep ^duration= | cut -d '=' -f 2); ffmpeg -i "$inputfile" -r 15/$DUR "$inputfile_%2d.png"
[08:52:02 CET] <thebombzen> yes
[08:52:03 CET] <julienff> and then use it in ffmpeg command
[08:52:07 CET] <thebombzen> yes
[08:52:50 CET] <julienff> ok
[08:53:29 CET] <julienff> thanks a lot
[09:02:06 CET] <julienff> thebombzen: how can i resize the thumb directly in the command without deform the thumb ?
[12:38:08 CET] <zpc> Hi! I use "ffmpeg -i test.flv -acodec aac -vn test.aac" to extract audio from flv, but the duration of test.aac is shorter than test.flv. Could you help?
[12:39:03 CET] <zpc> Duration of test.flv is "00:06:52.07", but the duration of test.aac is "00:06:06.91"
[12:39:52 CET] <zpc> I want to get subtitle from the audio, so I want the duration of aac just the same as flv
[12:49:12 CET] <BtbN> use a proper container, not raw aac.
[12:49:23 CET] <BtbN> the duration of that is probably just a wild guess
[12:49:40 CET] <zpc> what's a proper container?
[12:50:01 CET] <BtbN> anything that's not raw aac works.
[12:52:18 CET] <zpc> Thanks !
[13:03:53 CET] <cry0> I need help syncing 2 streams in C. One is audio AAC over RTP, the other is video h264 over RTP. I issue an SDP file. Each stream works correctly, but audio is always ahead of video when testing with VLC.
[13:04:10 CET] <zpc> I run this command "/bin/ffmpeg -i test.flv -q:a 0 -map a test.mp3 -y", but the duration of test.mp3 is "00:06:10.63", still different from test.flv
[13:15:54 CET] <nonex86> zpc: check the actual duration of streams in source flv file (using ffprobe for example)
[13:16:32 CET] <nonex86> zpc: usually video and audio stream has different duration, but in your case the gap is to big, so, check the source file to be sure
[13:17:05 CET] <zpc> Input #0, flv, from 'test.flv': Metadata: encoder : Lavf57.41.100 Duration: 00:06:52.07, start: 0.000000, bitrate: 715 kb/s Stream #0:0: Video: h264 (Baseline), yuv420p(tv, smpte170m/bt709/bt709), 668x376, 15 tbr, 1k tbn Stream #0:1: Audio: adpcm_swf, 44100 Hz, mono, s16, 176 kb/s
[13:17:08 CET] <thebombzen> also, you should try streamcopy if you're extracting. e.g. -map 0:a -c copy output.m4a
[13:17:32 CET] <zpc> Duration: 00:06:52.07, start: 0.000000, bitrate: 715 kb/s
[13:18:24 CET] <nonex86> looks like they are even match :)
[13:18:42 CET] <nonex86> or
[13:18:45 CET] <zpc> that's the test.flv
[13:18:48 CET] <nonex86> wait a minute
[13:19:00 CET] <nonex86> bitrate is the same?
[13:19:04 CET] <nonex86> for video and audio? :)
[13:19:31 CET] <nonex86> guess second paste are wrong
[13:21:05 CET] <nonex86> check duration of BOTH streams - audio and video
[13:21:32 CET] <nonex86> not just video stream
[13:22:27 CET] <zpc> Ok! I paste it here, http://pastebin.com/Zfv58Bq2
[13:23:40 CET] <nonex86> try to copy audio stream like thebobmzen advised
[13:23:52 CET] <nonex86> and check the duration of result file
[13:27:16 CET] <zpc> http://pastebin.com/EM8rGRYc
[13:27:56 CET] <zpc> nonex86: i'm very confusing
[13:29:23 CET] <nonex86> ah... audio is adpcm_swf
[13:29:59 CET] <nonex86> looks like it cannot be written into the mp4a
[13:31:56 CET] <zpc> is adpcm_swf the reason?
[13:32:32 CET] <nonex86> well, at least the reason ffmpeg cant write it into the m4a
[13:32:48 CET] <nonex86> wait a second, ill check random flv myself
[13:33:19 CET] <zpc> sure
[13:34:15 CET] <nonex86> well, in my case everything is ok
[13:34:26 CET] <nonex86> even i had several errors
[13:34:31 CET] <nonex86> source file was
[13:34:50 CET] <nonex86> Duration: 00:01:37.12, start: 0.000000, bitrate: 444 kb/s
[13:34:50 CET] <nonex86> Stream #0:0: Video: h264 (Main), yuv420p, 640x480, 25 fps, 25 tbr, 1k tbn, 50 tbc
[13:34:50 CET] <nonex86> Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
[13:34:55 CET] <nonex86> result file
[13:35:11 CET] <nonex86> Duration: 00:01:37.31, start: 0.025057, bitrate: 230 kb/s
[13:35:11 CET] <nonex86> Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 230 kb/s
[13:35:19 CET] <nonex86> 1:37
[13:35:32 CET] <zpc> so my source file has some problem
[13:35:42 CET] <nonex86> well, its possible
[13:35:54 CET] <nonex86> did you notice any errors
[13:36:01 CET] <nonex86> while converting to mp3?
[13:36:15 CET] <zpc> doesn't work either
[13:40:37 CET] <zpc> http://pastebin.com/Rcip1KWh
[13:41:47 CET] <zpc> Duration: 00:06:10.47, start: 0.025057, bitrate: 119 kb/s
[13:45:11 CET] <zpc> I will upload my flv onto github, wait a minute
[13:48:14 CET] <zpc> https://github.com/pc-zhang/test
[13:48:16 CET] <zpc> here it is
[13:49:14 CET] <zpc> beautiful girl of my company
[13:51:56 CET] <nonex86> same result as yours
[13:52:01 CET] <nonex86> 6:10
[13:52:14 CET] <nonex86> on ffmpeg 3.1.4
[13:54:19 CET] <nonex86> even if ill try to copy audio stream from the file
[13:54:23 CET] <nonex86> it still 6:10
[13:54:28 CET] <zpc> paste my result here again, http://pastebin.com/3TSEMBWS
[13:54:50 CET] <zpc> the duration of test.flv and generated test.mp3 is different
[13:55:06 CET] <nonex86> yeah, looks like it is
[13:55:09 CET] <zpc> :-(
[13:59:57 CET] <zpc> My job is to recognize subtitle from the audio, and add the subtitle back to video
[14:00:56 CET] <zpc> nonex86: I will try some other flv files
[14:01:39 CET] <zpc> nonex86: thank you very much for your helping :)
[14:05:56 CET] <cry0> so I am using the libs to implement a C program that streams from mic/webcam. I can't seem to be able to sync audio and video. I am missing something. The audio time base is 1/44100, the video one is 1/30. why is my audio lagging behind the video?
[14:14:27 CET] <nonex86> zpc: not at all, i did nothing :)
[14:14:59 CET] <nonex86> cry0: because you supplied wrong pts for audio and video streams?
[14:15:46 CET] <nonex86> as long as your real pts is correct for audio and video the output will be in sync
[14:22:04 CET] <cry0> nonex86 but here is the thing I don't understand. If the audio and video streams have different time bases, how can I pass them absolute PTS values? That should not work either?
[14:22:36 CET] <nonex86> you can always convert time units to real time
[14:22:38 CET] <nonex86> isnt it?
[14:22:45 CET] <nonex86> using its timebase
[14:22:49 CET] <cry0> yes, but what do I do with those?
[14:23:17 CET] <nonex86> depends, i dont know how does your software works
[14:23:40 CET] <nonex86> also
[14:23:48 CET] <nonex86> you said "i am using the libs"
[14:23:54 CET] <nonex86> which one? does this mean
[14:23:58 CET] <nonex86> i am using ffmpeg
[14:24:07 CET] <nonex86> for capture and streaming
[14:24:09 CET] <cry0> nonex86 yes, I am using ffmpeg libraries, pretty recent ones
[14:24:14 CET] <nonex86> or something else?
[14:24:18 CET] <nonex86> well, ok
[14:24:27 CET] <nonex86> so you have incoming streams from somewhere
[14:24:32 CET] <nonex86> which you are capture
[14:24:40 CET] <cry0> nonex86 yes, from webcam and mic
[14:24:53 CET] <nonex86> then, you write them to file
[14:24:57 CET] <nonex86> or something else?
[14:25:11 CET] <cry0> no, I stream them to RTP with mpegts container
[14:25:40 CET] <nonex86> did you do anything with pts?
[14:26:09 CET] <nonex86> or your timebase equals for capture and streaming?
[14:26:19 CET] <cry0> yes, for audio, I add nb_samples to audio frame PTS. for video, I add frame counter to frame PTS. Then I convert to the respective time base of the output stream
[14:26:22 CET] <cry0> no
[14:26:56 CET] <nonex86> never used ffmpeg for rtp streaming
[14:27:15 CET] <nonex86> but from what you told
[14:27:19 CET] <nonex86> i have some questions
[14:27:27 CET] <cry0> sure
[14:27:28 CET] <nonex86> as far as i remember
[14:27:49 CET] <nonex86> every rtp stream has a standard rfc
[14:27:55 CET] <nonex86> with timebase defined
[14:27:58 CET] <nonex86> isnt it?
[14:28:03 CET] <cry0> yes, correct
[14:28:14 CET] <nonex86> dont you need to provide the conversion
[14:28:21 CET] <nonex86> for example
[14:28:50 CET] <nonex86> camera video > convert to real pts > convert to rtp output timebase > rtp streaming
[14:28:52 CET] <nonex86> ?
[14:29:10 CET] <nonex86> are you sure some kinda frame counter is enough?
[14:29:15 CET] <cry0> right, this is what I am doing, but the audio and video out streams have different time bases
[14:29:31 CET] <nonex86> well... i dont see the problem...
[14:29:37 CET] <nonex86> convert the timebase units
[14:29:39 CET] <nonex86> to real time
[14:29:42 CET] <nonex86> using time base
[14:29:45 CET] <nonex86> and then
[14:29:58 CET] <nonex86> convert real time to rtp output timebase
[14:30:21 CET] <cry0> ok, will try it out.
[14:30:23 CET] <cry0> thanks
[14:31:01 CET] <nonex86> av_q2d(streamtimebase)*timestamp
[14:31:12 CET] <nonex86> will give you time in seconds
[14:31:38 CET] <nonex86> reverse the formula, and you will get the time in timebase units
[14:32:34 CET] <nonex86> guess this should work for you
[14:34:37 CET] <cry0> thanks, will try right now
[15:05:57 CET] <Prelude2004c> hey guys.. needing some help over here. so running nginx rtmp module and i am pushing rtmp > server and that is perfectly fine. If i have hls on; the files get created all is well. Now the problem seems to be if i try to pull the stream from the server via rtmp .. .. so when i run ffmpeg -i rtmp://server/whatever/whatever it works and shows me the media info. If i control C and run again, it doesn't . It's as if the session is still wait
[15:05:57 CET] <Prelude2004c> ing for a disconnect or there is something preventing more than 1 connection from a single ip within a certain amount of time. If i kill nginx and restart it starts working again but after the first ffmpeg -i , again nothing... any ideas ?
[15:07:17 CET] <nonex86> ask about this issue on nginx channel?
[15:07:35 CET] <Prelude2004c> yes no response yet. but maybe its a linux issue ( running ubuntu 14 )
[15:08:07 CET] <nonex86> highly doubt this is an os problem...
[15:12:29 CET] <thebombzen> there's probably a keep-alive timeout in the rtmp server
[15:12:46 CET] <thebombzen> cause random short disconnects are possible and it's designed to be robust against that
[15:13:18 CET] <thebombzen> however if you actually just ^C then restart I suspect that it'll retry the handshake, which won't just reconnect the stream
[15:13:52 CET] <thebombzen> my guess is there's some sort of setting in the nginx configuration you can change
[15:14:05 CET] <nonex86> btw, what is default tcp timeout for tcp/ip on stack level?
[15:14:12 CET] <thebombzen> I have absolutely no idea
[15:14:29 CET] <nonex86> in windows it was something around 45 seconds long time ago
[15:14:34 CET] <thebombzen> wow that's long
[15:14:39 CET] <thebombzen> I would have guessed <10
[15:19:22 CET] <Prelude2004c> yes i am scratching my head too
[15:19:35 CET] <Prelude2004c> its not even a min sometimes doesn't work for several min
[15:25:46 CET] <furq> are you pulling the stream with ffmpeg
[15:26:10 CET] <furq> you could try using -rw_timeout
[15:26:15 CET] <furq> https://www.ffmpeg.org/ffmpeg-protocols.html#Protocols
[15:38:31 CET] <Prelude2004c> i am using ffmpeg rtmp://127.0.0.1/source/stream
[16:34:15 CET] <TestIrchatNICK> HI
[16:37:20 CET] <TestIrchatNICK> Does ffmpeg.exe support two watermarks to add?
[16:43:56 CET] <furq> TestIrchatNICK: -i foo.mp4 -i bar.png -i baz.png -filter_complex "[0:v][1:v]overlay[ovr];[ovr][2:v]overlay"
[16:51:08 CET] <fling> How to make a low-fps stream seekable? It is not seekable for me.
[16:51:36 CET] <fling> ff/rev are jumping +-20 minutes
[16:51:58 CET] <fling> for a video with 1/5 fps
[16:54:13 CET] <BtbN> I'd guess your gop length is too long
[16:54:57 CET] <fling> BtbN: how to channge it properly?
[16:55:23 CET] <fling> BtbN: btw the same behavior stays even if I encode with 30fps afterwards.
[16:56:12 CET] <fling> BtbN: like this -> ffmpeg -f x11grab -video_size cif -framerate 1/6 -i :0.0 -r 29.97 /tmp/single.nut
[16:56:24 CET] <fling> -r 29.97 at the end for multiple streams to be in sync
[16:59:03 CET] <TestIrchatNICK> furq Thank you
[17:24:05 CET] <fling> BtbN: set -g 12 but it does not help
[17:24:21 CET] <fling> Which flag should I try to tune?
[17:26:12 CET] <BtbN> with one frame every 5 seconds that would still be an interval of 60 seconds.
[17:28:44 CET] <fling> BtbN: right, I recorded 150 seconds and the video is not seekable
[17:29:39 CET] <BtbN> so... use a shorter one. Or maybe even Iframe-Only for that kind of low framerate
[17:32:10 CET] <fling> BtbN: Which flag to use? Notice I also encode it with -r 29.97 to be in sync with another video stream so libx264 is producing a lot of dupes for this one
[17:34:33 CET] <ircuser5678> hi. I'd like to use ffmpeg under windows to write id3 tags. It works fine as long as I use a different output name like: ffmpeg.exe -i "R:\01.mp3" -metadata title="Testtitle" -c:a copy "R:\01_new.mp3"
[17:35:16 CET] <ircuser5678> but when I want to overwrite an existing file (with -y "R:\01.mp3") it truncates the file to the first two seconds. how do I avoid this?
[17:40:57 CET] <durandal_1707> ircuser5678: you can't, overwriting isn't supported
[17:41:44 CET] <ircuser5678> oh, really? that's bad...
[17:43:23 CET] <fling> Which audio and video codecs are using less cpu?
[17:46:53 CET] <durandal_1707> raw ones?
[17:47:16 CET] <durandal_1707> but they are io heavy
[17:47:44 CET] <fling> What about mjpeg?
[17:54:43 CET] <durandal_1707> fling: it's lossy
[17:58:40 CET] <fling> durandal_1707: I just figured out I don't have much cpu for this encode.
[17:58:57 CET] <fling> I'm capturing a simple screencast with sound and webcam in another video stream
[18:18:04 CET] <durandal_1707> fling: what arch and cpu?
[18:21:37 CET] <fling> durandal_1707: x86 celeron e1500
[18:21:57 CET] <fling> durandal_1707: rawvideo is fine :>
[19:17:59 CET] <kepstin> fling: if you start running out of disk bw, look at ffvhuff or something to save a little bit without much cpu overhead
[19:33:55 CET] <fling> kepstin: thanks.
[22:23:09 CET] <edgy> Hi, I did ffmpeg -i file.wav file.aac and it worked! I am using ffmpeg from my distro and thought aac wouldn't work since ffmpeg is compiled with --enable-gpl can some one explain this please?
[22:23:40 CET] <c_14> What does that have to do with anything?
[22:23:44 CET] <c_14> Licensing != Patent regulation
[22:23:57 CET] <c_14> Or are you confused about libfdk-aac?
[22:24:07 CET] <c_14> ffmpeg has an internal aac encoder
[22:24:16 CET] <edgy> c_14: yes I don't have faac or libfdk-aac installed
[22:24:25 CET] <c_14> Which (if your version of ffmpeg is new enough) is decent in certain modes
[22:24:30 CET] <edgy> c_14: so I wondered what ffmpeg use for this
[22:24:38 CET] <c_14> the internal encoder
[22:25:34 CET] <edgy> c_14: and is it allowed to convert to aac and have the code embedded in a gpl software?
[22:25:43 CET] <c_14> the code itself is gpl
[22:25:46 CET] <c_14> (or lgpl, not sure)
[22:25:51 CET] <c_14> probably lgpl
[22:26:07 CET] <c_14> The internal aac encoder is not based off of libfdk-aac
[22:26:15 CET] <c_14> And therefore doesn't have to follow the same license
[22:26:51 CET] <c_14> I could write and put an aac encoder in the public domain, if I happened to live in a country where I was allowed to put code in the public domain.
[22:27:07 CET] <c_14> (as long as I don't base the encoder off any existing work)
[22:28:51 CET] <edgy> c_14: so any one can convert his audio to aac or it depends on his country?
[22:29:38 CET] <edgy> c_14: unlike mp3?
[22:29:40 CET] <c_14> Now you're in the murky land of patent regulation
[22:29:52 CET] <durandal_1707> on money and lawyers
[22:30:17 CET] <c_14> Depending on your country, use case and lawyers you may or may not be allowed to convert your audio to aac or mp3
[22:30:29 CET] <furq> haven't all the mp3 patents expired now
[22:30:57 CET] <edgy> furq: I don't know but heard some are still valid
[22:31:04 CET] <furq> oh, december 2017
[22:31:05 CET] <edgy> from wikipedia: However, a patent license is required for all manufacturers or developers of AAC codecs.[41] For this reason, free and open source software implementations such as FFmpeg and FAAC may be distributed in source form only, in order to avoid patent infringement.
[22:31:16 CET] <furq> well yeah that's aac
[22:31:51 CET] <furq> also that's just plain wrong
[22:31:53 CET] <edgy> ffmpeg in distros are not distributed in source only. It's binary so I am still confused
[22:32:15 CET] <furq> 21:23:44 ( c_14) Licensing != Patent regulation
[22:32:20 CET] <BtbN> the statement is just wrong, that's all.
[22:32:30 CET] <furq> you can't distribute ffmpeg binaries with fdk-aac because it has a gpl-incompatible license
[22:32:36 CET] <furq> that has nothing to do with aac patents
[22:32:50 CET] <furq> someone's just got the wrong end of the stick and then pointed it at wikipedia
[22:32:58 CET] <BtbN> You can freely distribute binaries with fdk_aac though, as its own license does not limit that in any way. It's just the GPL making it harder.
[22:33:15 CET] <edgy> BtbN: if the wikipedia statement is wrong, please correct it because this confuses a lot of people
[22:33:31 CET] <BtbN> I for sure won't touch law-speak on Wikipedia.
[22:34:28 CET] <furq> ffmpeg has a ton of builtin decoders and probably some encoders for patented codecs
[22:35:13 CET] <furq> it's your responsibility to make sure you don't break the law by using them
[22:35:22 CET] <furq> or at least you don't break the law in a way that someone cares about
[22:35:40 CET] <c_14> (someone with better lawyers than you)
[22:35:50 CET] <edgy> ok I will then leave this law/patents/licenses issues, being new to ffmpeg I just need to understand the basics: so simple questions
[22:36:04 CET] <furq> if you're just encoding for personal use it's not worth worrying about
[22:36:07 CET] <furq> especially if you're in the EU
[22:36:09 CET] <edgy> 1. there is no need to faac or fdk-aac or whatever, ffmpeg already do this, right?
[22:36:20 CET] <BtbN> If it's a recent version
[22:36:30 CET] <furq> fdk is somewhat better than the builtin encoder, but probably not enough to bother building ffmpeg yourself
[22:36:48 CET] <BtbN> at least on master there's barely any difference for AAC LC anymore.
[22:36:55 CET] <edgy> 2. ffmpeg-codecs shows: DEA.L. aac AAC (Advanced Audio Coding) (decoders: aac aac_fixed ) why it says decoders but doesn't tell me what encoders are used?
[22:37:30 CET] <furq> ffmpeg -encoders
[22:37:56 CET] <furq> that should show up in -codecs though
[22:38:31 CET] <durandal_1707> edgy: it says by big E
[22:38:51 CET] <furq> which ffmpeg version is that
[22:39:03 CET] <edgy> furq, durandal_1707: ah! thanks
[22:39:04 CET] <furq> actually nvm i guess it's because you only have the builtin encoder
[22:39:16 CET] <furq> it shows up in -codecs if you have an external encoder
[22:39:16 CET] <edgy> furq: 3.2.2
[22:40:22 CET] <durandal_1707> they are just 2 variants of decoders
[22:41:15 CET] <edgy> 3. I got out of questions ;)
[22:42:01 CET] <TD-Linux> ouch yeah that wikipedia text is bad
[22:43:01 CET] <edgy> TD-Linux: so I am not to be blamed for getting confused?
[22:43:23 CET] <TD-Linux> yeah. in particular the first sentence is right, the second is wrong
[22:44:59 CET] <edgy> What's this embedded aac encoder called? which one in libopus > libvorbis >= libfdk_aac > aac > libmp3lame >= eac3/ac3 > libtwolame > vorbis > mp2 > wmav2/wmav1
[22:45:13 CET] <edgy> I mean how it rated among these
[22:45:36 CET] <edgy> got that from: https://trac.ffmpeg.org/wiki/Encode/HighQualityAudio
[22:49:03 CET] <edgy> c_14: is the embedded encoder called aac?
[22:49:47 CET] <edgy> so when I use -c:a aac then I am using the internal, right?
[22:57:06 CET] <furq> yes
[22:58:59 CET] <edgy> furq: you said [00:39] <furq> it shows up in -codecs if you have an external encoder
[22:59:18 CET] <edgy> furq: but the listed decoders aren't they internal? I haven't installed aac_fixed
[23:00:19 CET] <furq> i assume aac_fixed is a fixed-point version of the internal aac decoder
[23:01:33 CET] <edgy> furq: I don't understand this stuff but isn't if logic if ffmpeg mentioned "decoders: aac " to also mention "encoders: aac"?
[23:01:42 CET] <edgy> furq: both are internal
[23:01:49 CET] <furq> you'd think so
[23:02:27 CET] <furq> i guess you could argue it's redundant because it's always the same as the codec name and there's an E in the table on the left
[23:02:50 CET] <furq> but yeah on my build with fdk i get this
[23:02:55 CET] <furq> DEA.L. aac AAC (Advanced Audio Coding) (decoders: aac aac_fixed libfdk_aac ) (encoders: aac libfdk_aac )
[23:05:23 CET] <edgy> furq: thanks
[23:08:38 CET] <edgy> I am converting a file using ffmpeg and using handbrake to see if I can just get rid of it and use ffmpeg directly
[23:09:18 CET] <furq> the only thing handbrake does which ffmpeg can't is getting titles/chapters from DVDs
[23:09:41 CET] <furq> and there are external tools which can do that
[23:10:34 CET] <furq> it did have some filters which ffmpeg didn't but i'm pretty sure those have all made it into libavfilter now
[23:10:37 CET] <edgy> furq: for now I don't need that but when I converted my avi to mp4 I noticed ffmpeg is using mp4 whereas handbrake mp4v2, what's that?
[23:10:56 CET] <edgy> furq: it showed at Codec ID : mp42 (isom/iso2/mp41)
[23:10:57 CET] <furq> http://www.ftyps.com/
[23:11:01 CET] <furq> it rarely makes a difference
[23:14:31 CET] <edgy> furq: sorry couldn't tell the difference from that page. if v2 is a newer version why ffmpeg doesn't support it?
[23:14:59 CET] <agrathwohl> I have a bunch of yuv422p10le ProRes 422HQ video sources that I want to encode to h264 via libx264. What should I set the colorspace (or colormatrix?) video filter to in order to output a proper yuv420p H264 video?
[23:16:19 CET] <edgy> furq: another thing is, I used -crf 26 with both and thought that means constact quality for both video and audio but ffmpeg shows Bit rate mode : Constant where as handbrake showed variable, which option I need to pass for that?
[23:22:09 CET] <AppAraat> hi, I'm sorry to be barging in with a noob question like that but I'm extremely unfamiliar with digital video. I basically want to rotate the image of this video file - https://bpaste.net/show/2b1d74161e58 - As far as I've understood this, it can happen using metadata (http://stackoverflow.com/q/25031557) but sadly that doesn't seem to work for me. So is there a way to rotate the image, and then re-encode the
[23:22:11 CET] <AppAraat> video losslessly?
[23:28:40 CET] <furq> AppAraat: if you're trying to flip it 180 degrees then use -metadata:s:v:0 rotate=0
[23:28:47 CET] <furq> it already has the rotation flag applied
[23:32:06 CET] <AppAraat> furq: I tried that but it's still upside-down. I even tried -metadata:s:v:0 rotate=180
[23:33:41 CET] <furq> what player are you using
[23:34:35 CET] <AppAraat> I tried in SMPlayer v. 0.8.6 and VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[23:34:51 CET] <furq> try with mpv
[23:34:51 CET] <AppAraat> (Linux 64bit)
[23:34:55 CET] <AppAraat> ok
[23:35:21 CET] <furq> i'm guessing it was recorded upside down and the phone added the rotation metadata so it'd play right-side-up
[23:35:56 CET] <AppAraat> still flipped. Original is flipped too though. It might very well be a bug in the phone though.
[23:35:59 CET] <edgy> furq: I tried ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 10 -b:v 0 -c:a libvorbis output.webm in one of my videos and noticed it's too slow (still running...) and it's using one cpu, what am I doing wrong, please?
[23:36:08 CET] <furq> you're using libvpx
[23:36:10 CET] <furq> it's slow
[23:36:20 CET] <furq> and the multithreading is somewhere between bad and broken
[23:37:23 CET] <edgy> furq: so free software does non-free x265 better than free vp9? something strange here
[23:37:35 CET] <JEEB> eh
[23:37:35 CET] <furq> AppAraat: weird, mpv should definitely respect the rotation flag
[23:37:40 CET] <furq> i just checked and it works here
[23:38:02 CET] <JEEB> edgy: you are probably mismatching the word non-free and "potentially free to use without payments"
[23:38:05 CET] <JEEB> (in all cases)
[23:38:19 CET] <AppAraat> furq: this is the full command: ffmpeg -i VID_20161213_130204.mp4 -c copy -metadata:s:v:0 rotate=0 VID_20161213_130204_rot.mp4
[23:38:29 CET] <JEEB> x264 and x265 are both FOSS under GPL
[23:38:37 CET] <JEEB> and thus they are not non-free
[23:38:56 CET] <edgy> JEEB: I meant the h.265 not the software
[23:39:04 CET] <furq> yeah that works fine here
[23:39:20 CET] <kepstin> edgy: if you add "-tile-columns 2" to that ffmpeg command, libvpx-vp9 will do a slightly better job of multithreading.
[23:39:25 CET] <TD-Linux> if you say "royalty-bearing" and "royalty-free" then it's less ambiguous
[23:39:30 CET] <AppAraat> and... ffmpeg -i VID_20161213_130204.mp4 -c copy -metadata:s:v:0 rotate=180 VID_20161213_130204_rot_180.mp4
[23:39:33 CET] <furq> you need -threads as well don't you
[23:39:35 CET] <JEEB> (possibly)
[23:39:37 CET] <kepstin> edgy: you also have to manually specify "-threads 4" or whatever, it's not autodetected
[23:39:42 CET] <furq> and yeah it depends on the frame size
[23:39:46 CET] <JEEB> because AVC at least has clear cases for free use
[23:39:49 CET] <TD-Linux> edgy, keep in mind that both x265 and libvpx are commercially developed
[23:39:51 CET] <JEEB> HEVC is a lot more murky
[23:39:55 CET] <furq> just use x264
[23:39:58 CET] <furq> it's good
[23:40:12 CET] <TD-Linux> also there is still not a good chunked encode frontend which is how most users should be threading libvpx
[23:40:17 CET] <AppAraat> mpv version: https://bpaste.net/show/b3e165ed8920
[23:40:30 CET] <furq> oh
[23:40:32 CET] <furq> that's pretty old
[23:40:33 CET] <kepstin> yeah, my conclusion last I tested was unless you're encoding 4k video and have distributed computing power and a chunked encoder, just use x264 :/
[23:40:52 CET] <TD-Linux> edgy, so besides using tiles, consider specifying -speed to ffmpeg. use a higher number for faster
[23:41:03 CET] <JEEB> edgy: also libvpx is pretty much only developed by Google so they completely ignored rate control, realtime video with any sort of OK compression and such
[23:41:07 CET] <TD-Linux> edgy, also -crf 10 is pretty high quality. a lower quality will go faster, try crf 20 or 30
[23:41:09 CET] <furq> you might need a newer mpv and/or a newer ffmpeg, since i'm guessing your distro ffmpeg is out of date as well
[23:41:11 CET] <JEEB> I hope that will improve with AOM
[23:41:20 CET] <JEEB> where google is not the only player
[23:41:22 CET] <furq> there are static builds available for both if you're on an ancient distro
[23:41:44 CET] <kepstin> google uses libvpx for webrtc live stuff in chrome, I have no idea what settings they're using. presumably the deadline mode.
[23:41:56 CET] <AppAraat> furq: ah I see, can I PM you?
[23:42:05 CET] <JEEB> yes, they don't really care about quality in that case too much. just enough to not be completely f'd up
[23:42:11 CET] <furq> you're better off asking in here really
[23:42:11 CET] <TD-Linux> they use rt at cpu-used 6+ for vp9
[23:42:12 CET] <JEEB> also vp8 encoding is a bit faster
[23:42:19 CET] <furq> everyone else in here now knows more about mpv than i do
[23:42:22 CET] <JEEB> oh, they're using vp9 for webrtc? wow
[23:42:32 CET] <TD-Linux> I recommend using a faster speed setting and vp9 instead of vp8 if possible
[23:42:47 CET] <AppAraat> uh well, I wanted someone to review whether the videos are actually flipped or normal. But they are somewhat graphic videos (muscle biopsy)
[23:42:49 CET] <edgy> JEEB, furq: tried ffmpeg -i input.avi -c:v libvpx-vp9 -threads 8 -tile-columns 2 -crf 26 -b:v 0 -c:a libopus output.webm but still very slow and one cpu
[23:43:07 CET] <furq> just check it with the latest mpv
[23:43:07 CET] <TD-Linux> okay strange that should have used more than one thread.
[23:43:17 CET] <JEEB> old version of libvpx?
[23:43:23 CET] <JEEB> I remember old versions just not doing any threading
[23:43:30 CET] <AppAraat> ok I'll see if I can get a static build
[23:43:39 CET] <TD-Linux> edgy, also try -speed 6. at least that should make a large difference
[23:43:45 CET] <JEEB> edgy: also with regards to patents and licensing http://up-cat.net/p/cd70d70b
[23:43:57 CET] <JEEB> that made me laugh at how funkily broken at least the US system is :P
[23:43:57 CET] <TD-Linux> but won't fix the threading
[23:44:11 CET] <JEEB> possibly other ones as well
[23:44:41 CET] <JEEB> AV1 being the next thing after VP9
[23:44:53 CET] <JEEB> where it's no longer google-only
[23:45:23 CET] <furq> i'll never look at my mitsubishi CRT the same way again
[23:45:23 CET] <edgy> JEEB: libvpx 1.6.0
[23:45:33 CET] <JEEB> furq: lo
[23:45:34 CET] <furq> although that's mostly because it's got a scratch in the antiglare
[23:45:34 CET] <JEEB> *lol
[23:45:38 CET] <JEEB> :D
[23:45:56 CET] <JEEB> I'm getting my first new TV in 17 years tomorrow^Wtoday
[23:46:30 CET] <JEEB> edgy: that should have threading in there...
[23:46:33 CET] <kepstin> what I ended up doing for libvpx locally was I use the same git snapshot as they use in the latest chrome release, since it's presumably reasonably well tested :/
[23:46:41 CET] <JEEB> kepstin: yeah
[23:46:49 CET] <JEEB> that's the funny thing with libvpx for years now
[23:46:50 CET] <JEEB> same for ANGLE
[23:47:06 CET] <JEEB> you don't necessarily look at the releases, but the goddamn hashes that they use in chromium
[23:47:09 CET] <JEEB> \o&
[23:47:24 CET] <kepstin> at least you can use the ffmpeg decoder, so you don't have to worry as much about the lack of security updates in libvpx decoder :/
[23:47:47 CET] <kepstin> i think even chrome uses the ffmpeg decoder now, since it's faster?
[23:47:52 CET] <JEEB> nah
[23:48:00 CET] <JEEB> they said they don't want to take in any extra dependencies
[23:48:11 CET] <JEEB> so unless you replace the whole of libvpx it's not likely :D
[23:48:13 CET] <kepstin> they *already* have all of ffmpeg in there
[23:48:21 CET] <JEEB> I know, that's the goddamn joek
[23:48:23 CET] <JEEB> *joke
[23:48:30 CET] <JEEB> but the last I heard that was the reasoning they gave
[23:48:44 CET] <kepstin> they recently switched to using ffmpeg to decode opus rather than libopus directly, which fixed a bunch of bugs :/
[23:48:58 CET] <JEEB> could be that they're not enabling the vp9 decoder
[23:49:10 CET] <JEEB> and thus consider it an added dep or something
[23:49:13 CET] <JEEB> (Ž4@)
[23:49:35 CET] <edgy> TD-Linux: tried -speed 6, how can I measure the speed? fps=35?
[23:49:44 CET] <TD-Linux> yeah that's pretty fast
[23:49:55 CET] <kepstin> for libvpx-vp9, that's screaming fast ;)
[23:49:56 CET] <edgy> TD-Linux: is -speed 6 means -preset ultrafast?
[23:50:20 CET] <TD-Linux> well the max is -speed 8
[23:50:35 CET] <kepstin> edgy: there's no direct mapping to x264's presets that would sense.
[23:50:36 CET] <AppAraat> furq: I added this PPA: https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests and I confirm that under this mpv version (https://bpaste.net/show/d17f0a87c9ec) the file VID_20161213_130204_rot_180.mp4 displays as expected. Thank you!
[23:50:39 CET] <kepstin> make sense.
[23:50:42 CET] <TD-Linux> but for a movie fps=35 is already faster than realtime, so quite fast.
[23:50:50 CET] <furq> good to know
[23:50:57 CET] <furq> i thought there were mpv static builds but i couldn't find any either
[23:51:09 CET] <JEEB> mpv-build creates those
[23:51:13 CET] <furq> i guess a PPA will do in a pinch though
[23:51:19 CET] <JEEB> so it makes sense that there is less builds
[23:51:19 CET] <edgy> TD-Linux: still it's single-thread, what are the disadvantage of speed?
[23:51:22 CET] <TD-Linux> kepstin, that's strange, I don't know why that would fix any bugs
[23:51:29 CET] <furq> JEEB: are they distributed anywhere
[23:51:33 CET] <furq> for linux, i mean
[23:51:36 CET] <TD-Linux> edgy, bigger file
[23:51:39 CET] <JEEB> furq: mpv-build is a repo for making those builds
[23:51:46 CET] <JEEB> which is why you don't have too many static builds as such
[23:51:46 CET] <JEEB> :P
[23:52:02 CET] <furq> oh right it builds ffmpeg as well
[23:52:05 CET] <JEEB> yup
[23:52:11 CET] <JEEB> libass, ffmpeg, mpv
[23:52:45 CET] <kepstin> TD-Linux: it fixed https://bugs.chromium.org/p/chromium/issues/detail?id=482934
[23:53:33 CET] <TD-Linux> kepstin, ah strange.
[23:53:50 CET] <TD-Linux> if they were out of space it would have made way more sense to port web audio to libopus and add ffvp9 instead
[23:53:58 CET] <TD-Linux> (though ffvp9 is bigger)
[23:53:59 CET] <kepstin> TD-Linux: issue was that the webaudio stuff was using ffmpeg decoders only, and the <audio> tag had extra code to use libopus
[23:54:02 CET] <edgy> JEEB: couldn't understand your pasted link, so what misubishi is doing exactly?
[23:54:34 CET] <JEEB> edgy: appending its patent(s) so that they match the next gen format :3 (AV1 is the thing that came out of VP10 which came out of VP9)
[23:55:10 CET] <kepstin> TD-Linux: interesting comment on that ticket, apparently they use ffmpeg to decode vp8.
[23:55:12 CET] <JEEB> thus, it pretty much makes really, really unencumbered software just not possible :D there's another thing about a thing generally being seen as having no fees of course
[23:55:18 CET] <TD-Linux> kepstin, lol.
[23:55:38 CET] <TD-Linux> JEEB, well you always have the threat of surprise patents on any software
[23:55:41 CET] <JEEB> yes
[23:55:45 CET] <JEEB> that's the point \o/
[23:55:57 CET] <TD-Linux> might as well pick the cheapest one
[23:55:57 CET] <JEEB> you can't promise that your thing is completely "free of patents" at any point
[23:56:05 CET] <TD-Linux> right that's impossible.
[23:56:18 CET] <JEEB> thus it becomes "this thing might be free to use for now"
[23:56:26 CET] <JEEB> until someone gets trolled hard enough
[23:56:36 CET] <JEEB> we'll be seeing how it goes with vp9 and av1
[23:56:41 CET] <TD-Linux> note that the opus patent license has a defensive clause, which can help with this sort of thing. you lose your right to use opus if you sue someone else over opus
[23:57:27 CET] <JEEB> and just for the record, I'm all for the fact that there's a multi-vendor AOM now
[23:57:43 CET] <JEEB> HEVC licensors going pants-on-head retarded sure helped with that
[23:57:52 CET] <TD-Linux> yeah we couldn't really have asked for more.
[23:58:12 CET] <TD-Linux> (as a royalty free shill)
[23:58:52 CET] <edgy> JEEB: so misubishi can hold patents on av1 retrospectively?
[23:59:11 CET] <JEEB> edgy: as long as it bases upon their existing patent, yes
[23:59:26 CET] <JEEB> fucking awesome system it is <3
[00:00:00 CET] --- Wed Dec 14 2016
1
0
[11:37:57 CET] <cone-948> ffmpeg 03Carl Eugen Hoyos 07master:9d068896d322: lavf/isom: Support EVRC in pvAuthor files.
[11:38:28 CET] <BtbN> nevcairiel, http://fate.ffmpeg.org/log.cgi?time=20161209035641&log=compile&slot=x86_32-… I have no idea how to fix that. The code (https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/cuvid.c#L291) looks absolutely correct to me.
[11:39:08 CET] <BtbN> It complains about being unable to convert CUVIDPARSERDISPINFO to int, but there is no int involved
[11:56:05 CET] <nevcairiel> BtbN: let me check what the converter does out of that. possibly it can already be fixed by dropping the redundant zeros or something
[12:00:27 CET] <nevcairiel> hm ok the converter doesnt touch that line at all
[12:01:29 CET] <BtbN> https://github.com/BtbN/FFmpeg/commit/bea4da6040ac868130e4307f8648b04364250… would be an idea I guess?
[12:07:24 CET] <nevcairiel> that definitely works
[12:07:36 CET] <nevcairiel> just tested
[12:07:54 CET] <BtbN> The joys of ancient compilers.
[12:10:17 CET] <bencoh> huhu
[12:27:14 CET] <cone-948> ffmpeg 03Carl Eugen Hoyos 07master:62eafc6a6dd8: lavf/mov: Accept multiple fourcc for AVID 1:1.
[13:06:05 CET] <durandal_1707> anybody here on os x?
[13:10:15 CET] <cone-948> ffmpeg 03Timo Rothenpieler 07master:00223132e966: avcodec/cuvid: fix compilation with msvc11
[14:42:05 CET] <cone-948> ffmpeg 03Derek Buitenhuis 07master:b7e4ea0c80f4: fate: Add h264 test for frame num gaps
[16:10:56 CET] <durandal_1707> kierank: have vc-2 samples?
[16:11:13 CET] <kierank> yeah
[16:11:17 CET] <kierank> well cfhd samples
[16:11:47 CET] <durandal_1707> but one as Dirac pro type?
[16:12:05 CET] <kierank> oh sorry vc-2
[16:12:09 CET] Action: kierank got confused
[16:12:35 CET] <kierank> https://usercontent.irccloud-cdn.com/file/hGWuR1QB/zoneplate_1920x1080_lega…
[16:12:43 CET] <kierank> try that
[16:13:09 CET] <kierank> I'm sure that gives atomnuker bad memories
[16:15:41 CET] <durandal_1707> I found 3.6gb pixlet on web
[17:18:36 CET] <durandal_1707> ban this guy forever from trac!
[17:23:24 CET] <wm4> durandal_1707: how about disabling trac notifications on this channel
[17:23:28 CET] <wm4> they're pretty annoying
[17:34:48 CET] <kierank> wbs: do I recall you looked at transparent huge pages in libavcodec?
[17:34:52 CET] <kierank> or am I getting confused
[17:45:09 CET] <RiCON> wm4: /ignore fflogger?
[17:49:02 CET] <wm4> can't make everyone do that
[17:52:43 CET] <RiCON> sure, but it's a solution for the especially annoyed by it
[21:12:33 CET] <wbs> kierank: that doesn't sound familar at all, so probably not me
[21:13:10 CET] <kierank> Hmm maybe Gramner then, apologies
[21:15:44 CET] <durandal_1707> when that was noticed?
[21:26:55 CET] <Gramner> kierank: in libavcodec? no. I did thp stuff in x264 though
[21:27:28 CET] <kierank> I'm pretty sure someone did but I can't remember
[21:27:48 CET] <kierank> whom
[21:31:51 CET] <durandal_1707> you mean memory holes in structures?
[21:32:49 CET] <kierank> No, mapping a frame as a huge page
[21:33:20 CET] <kierank> (the x264 one does more)
[00:00:00 CET] --- Tue Dec 13 2016
1
0
[00:02:02 CET] <kerio> ._.
[00:02:39 CET] <JEEB> ffms2 also recently dropped support for a bunch of FFmpeg/Libav versions
[00:29:25 CET] <furq> distributing static binaries for people on old distros is probably the least painful way of doing it
[03:45:02 CET] <kyleogrg> I'm doing scene detection with ffmpeg: http://www.ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
[03:47:15 CET] <kyleogrg> How can I combine the scene threshold parameter (select='gt(scene,0.1)' ) with the minimum time interval parameter ( select='isnan(prev_selected_t)+gte(t-prev_selected_t\,10)' )?
[03:50:56 CET] <kyleogrg> Right now, the only way I know is to write "select" twice: -vf "select=(blahblah),select=(whatever)"
[04:46:43 CET] <k_sze[work]> I need some help optimizing ffmpeg and vlc for immediacy.
[04:47:38 CET] <k_sze[work]> So right now I have a program that pipes raw video data to ffmpeg command, which in turn pipes encoded H.264 in mpegts stream to vlc, which serves the video over RTSP.
[04:48:27 CET] <k_sze[work]> If I open the RTSP stream on another computer, I notice that there is about 3~5 seconds of lag between capture and display.
[04:48:39 CET] <k_sze[work]> (the video is captured from a webcam)
[04:50:38 CET] <k_sze[work]> What command line options can I pass to ffmpeg and vlc to shorten the lag?
[05:53:58 CET] <ferdna> anyone using apache web server to stream content? if so, what are your cache settings?
[06:44:04 CET] <markvandenborre> ferdna: most people are using nginx-rtmp I guess...
[06:44:20 CET] <ferdna> markvandenborre, :(
[06:44:25 CET] <ferdna> i really need to use apache
[07:16:25 CET] <markvandenborre> ferdna: you could use it as a frontend I guess?
[07:16:43 CET] <markvandenborre> or fake the headers :-)
[07:17:15 CET] <markvandenborre> ferdna: nginx-rtmp is dead simple really
[07:17:28 CET] <markvandenborre> and it isn't exactly costly to set up
[07:17:52 CET] <markvandenborre> but of course if you have a boss/client telling you to use apache...
[07:18:07 CET] <markvandenborre> you might get away with part of the stack running apache really
[07:35:09 CET] <ferdna> markvandenborre, i think i did it already... on the directory directive
[08:23:09 CET] <laserbled> Hi. Does the framerate parameter do anything. because no matter what i do i cant increase the fps above 11 or 12.
[08:23:21 CET] <laserbled> ffmpeg -f gdigrab -framerate 30 -i desktop -q:v 0 -g 25 -maxrate 16000k -bufsize 8000k -f mpegts udp://192.168.1.5:5000 this is what i used
[08:26:31 CET] <laserbled> can you please let me know what is wrong
[08:30:37 CET] <laserbled> its like the framerate parameter is not doing anything
[08:33:54 CET] <nonex86> just use obs for desktop capture...
[08:39:12 CET] <laserbled> its actually inside program. its for streaming desktop...i just used commandline to test it
[08:39:46 CET] <laserbled> i need to use ffmpeg to get this working.
[08:46:38 CET] <nonex86> well, command you provided works well for me
[08:46:59 CET] <nonex86> at least media info said 60 fps (i put 60 fps as parameter)
[08:49:37 CET] <nonex86> also i just output it to avi, so the output codec was mpeg4
[08:50:55 CET] <laserbled> does the realtime log in the cosole show fps=60 ?
[08:51:04 CET] <laserbled> let me share my console. 1 sec
[08:53:08 CET] <laserbled> http://pastebin.com/zFW8yrbx
[08:53:26 CET] <laserbled> the last line ...frame= 149 fps=7.7 q=0.0 ...
[08:53:59 CET] <laserbled> even though the framerate parameter is set as 30 the output is never above 11
[08:54:25 CET] <nonex86> why do you care fps in console? are you sure your desktop rendered at constant rate and its really high?
[08:54:54 CET] <nonex86> as far as i remember dwm renders desktop at high rate only if its really needed
[08:54:56 CET] <laserbled> because the stream at the other end is very choppy.
[08:55:07 CET] <nonex86> try this
[08:55:15 CET] <nonex86> capture your desktop to file
[08:55:21 CET] <nonex86> if the file is ok
[08:55:30 CET] <nonex86> then you have a problem with your streaming
[08:55:33 CET] <nonex86> not with capture
[08:55:46 CET] <laserbled> ok. let me check
[08:56:54 CET] <nonex86> divide and conquer :3
[09:00:07 CET] <laserbled> ok. did that. the media info shows 30 fps but when playing the video it is very choppy, same as the one recieved on the stream. format used was same mpegts and file was .mpeg
[09:01:12 CET] <laserbled> consolve fps as before shows the same ~10 - 11 fps
[09:08:00 CET] <ferdna> laserbled, i believe it is -r 30
[09:08:17 CET] <ferdna> framrate is deprecated isnt?
[09:13:17 CET] <laserbled> ferdna: tried that too. infact i tried without frame rate param also. it defaults to some 29.something but still the output is capped at 11 fps
[09:13:34 CET] <ferdna> put it before the -i
[09:13:40 CET] <ferdna> and after the -f
[09:16:26 CET] <laserbled> used this minimal command ffmpeg -f gdigrab -r 30 -i desktop -f mpegts udp://192.168.1.5:5000
[09:16:40 CET] <laserbled> http://pastebin.com/DydZaidp
[09:16:44 CET] <laserbled> similar out
[09:17:14 CET] <nonex86> i used 3.1.4 for capture, and it doesnt says framerate is deprecated
[09:17:17 CET] <nonex86> so guess its not
[09:18:05 CET] <nonex86> at least till the 3.1.4
[09:23:12 CET] <ferdna> nonex86, the paramater -framerate is deprecated! not -r!
[09:24:11 CET] <nonex86> ferdna, once again, 3.1.4 says nothing about -framerate deprecation
[09:24:19 CET] <ferdna> As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. This is not the same as the -framerate option used for some input formats like image2 or v4l2 (it used to be the same in older versions of FFmpeg). If in doubt use -framerate instead of the input option -r.
[09:24:51 CET] <ferdna> nonex86, no it is not... but framerate is something else different than -r
[09:24:56 CET] <ferdna> i got confused
[09:25:12 CET] <laserbled> ferdna: tried both. posted pastebin above
[09:25:45 CET] <laserbled> ffmpeg capture that parameter and set it as 30 fps but when the actual out is generated it caps at some 11 fps
[10:00:06 CET] <ferdna> laserbled, are you on windows?
[10:02:08 CET] <ferdna> laserbled, https://antumdeluge.wordpress.com/2014/02/19/recording-screen-windows-deskt…
[10:03:57 CET] <nonex86> surely on windows because of -gdigrab parameter
[10:05:00 CET] <ferdna> yeah i notice
[10:15:21 CET] <laserbled> ferdna: thanks. the reason i tried to stick with gdigrab was so that it wil be there by default. let me try with dshow as well. but the reason of not getting the desired fps after setting the parameter is a bit baffling.
[10:15:34 CET] <ferdna> ok
[10:15:41 CET] <laserbled> i wonder if mpegts has something to do with it
[10:15:51 CET] <ferdna> laserbled, that is just a format
[10:15:59 CET] <ferdna> *video format
[10:16:24 CET] <laserbled> ya so what else could be problem. any thoughts ?
[10:17:35 CET] <ferdna> yeah windows
[10:18:31 CET] <laserbled> vide driver could also be messing with it i suppose..hmm
[10:23:31 CET] <nonex86> video driver? doubt ffmpeg can dig low to the driver level
[10:27:11 CET] <ferdna> good ngiht
[10:27:17 CET] <nonex86> also i think ffmpeg is not a special software for capture desktop/application as you know, so the excelent result in this field is not ffmpeg priority
[10:27:36 CET] <nonex86> as last resort you can capture desktop yourself inside your software
[10:27:49 CET] <nonex86> and then feed it to encoder ffmpeg api
[11:03:13 CET] <Kadigan> Hey. When I'm converting 59.94 material to 60fps, I get (understandable) clicks in audio, wherever a new frame had to be inserted. Any switch I can give to ffmpeg to fix this audio relation, or possibly stretch the audio that 0.1% to fit?
[11:03:32 CET] <Kadigan> (so far I've been simply extracting the audio and running a second track in my NLE of choice)
[11:05:58 CET] <DaVyper> Is there a way to use metadata directly in a filter without executing ffmpeg twice? Basicly what i am trying to accomplish is a video with some of the metadata info displayed as an overlay (kinda like MTV/Etc music videos) ideally in a single pass/execution
[11:19:52 CET] <Kadigan> DaVyper: if you're on Linux, you can always nest.
[11:27:46 CET] <iive> DaVyper: not sure what exactly you (want to) do, but ffmpeg supports complicated graph for connecting filters. e.g. you can split a stream in two, do different processing and merge it back.
[11:30:06 CET] <DaVyper> brb, gotta grab my script from other machine
[15:42:05 CET] <tyrel_wellick> hi, is there anyone who could help me with qt ref ?
[15:44:04 CET] <tyrel_wellick> y like this? Skipped opening external track: stream 1, alias: path='/Avid MediaFiles/MXF/AVID001.502/Edit Pgm 5 Part 1 +57AA1E6E.mxf', dir='AVID001.502', filename='Edit Pgm 5 Part 1 +57AA1E6E.mxf', volume='test', nlvl_from=3, nlvl_to=4.Set enable_drefs to allow this.
[16:51:52 CET] <alex88> what means Value 0.000000 for parameter 'colorspace' out of range?
[16:52:01 CET] <alex88> that the input value is out of the colorspace?
[17:22:06 CET] <alex88> how do I tell ffmpeg that the input is in yuyv422 ?
[17:25:25 CET] <kerio> alex88: which kind of input?
[17:27:10 CET] <alex88> kerio: so, I'm using https://gist.github.com/alex88/71828941e4c2b182648ba418bc74ad8c to get a/v from webcam and save to file, however colors are shifted, my hand is blue in the video
[17:27:53 CET] <alex88> I've tried to use https://gist.github.com/alex88/4e2d23ce1cacbd9a723166783d6d354d but I'm getting a lot of alsa buffer xrun and the audio is very bad that way
[17:28:02 CET] <kerio> yeah i was about to say
[17:28:41 CET] <kerio> well i mean
[17:28:42 CET] <alex88> thing is that with gst, ffmpeg shows yuyv420p as input but 'avconv -f video4linux2 -list_formats all -i /dev/video0' shows yuyv422 as possible format
[17:29:10 CET] <kerio> gstreamer is not outputting the correct pixel format
[17:29:20 CET] <alex88> anyway, without using mp4 and using an avi file as output, things work better, but still I think it's a borderline
[17:29:33 CET] <kerio> (why ac3 audio?)
[17:30:56 CET] <alex88> not a real reason, just trying
[17:31:00 CET] <alex88> is it cpu-intesive?
[17:31:26 CET] <alex88> *intensive
[17:31:42 CET] <alex88> I'm actually just trying and retrying to find the best way
[17:31:55 CET] <alex88> that doesn't throws alsa buffer issues but works
[17:41:34 CET] <alex88> my best option now is https://gist.github.com/alex88/901b4ee89669ff8a1527dc5fa3abff38 the problem is that audio starts a couple seconds later with a lot of 'Non-monotonous DTS in output stream This may result in incorrect timestamps in the output file.;
[17:41:39 CET] <alex88> in fact the audio is out of sync
[17:44:07 CET] <alex88> maybe the gst's queue max-size-buffers=0 max-size-time=0 max-size-bytes=0 helped with that?
[18:04:31 CET] <alex88> I got it partially solved using arecord to pipe to ffmpeg, the problem is that ffmpeg starts after a couple seconds and so there is still a shifting with the audio
[18:04:47 CET] <kerio> alex88: why can't you just use gstreamer?
[18:04:58 CET] <alex88> kerio: video colors are wrong
[18:05:06 CET] <kerio> surely it's got encoders
[18:05:18 CET] <alex88> kerio: gstreamer?
[18:05:31 CET] <kerio> the thing you're using with gst-launch
[18:06:02 CET] <alex88> the gst-launch command?
[18:06:18 CET] <alex88> I don't understand what you mean
[18:06:19 CET] <kerio> what do you think "gst" is for? :^)
[18:07:06 CET] <alex88> capturing
[18:07:07 CET] <alex88> ?
[18:08:08 CET] <alex88> or, maybe there's a way to fix those audio problems with ffmpeg
[18:08:14 CET] <alex88> the alsa issues
[18:16:39 CET] <kerio> alex88: i'd work on that tbh
[18:16:44 CET] <alex88> gst?
[18:17:09 CET] <debianuser> alex88: maybe you just don't have enough cpu for encoding? Try something like: `ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i plughw:CinemaTM -vcodec libx264 -preset ultrafast -tune zerolatency -acodec libvorbis somefile.mkv` It should be fast enough for most CPUs, except maybe embedded ones.
[18:17:38 CET] <alex88> debianuser: in fact I'm using it on an RPI :(
[18:17:53 CET] <debianuser> ah..
[18:18:30 CET] <alex88> anwyay, it uses half of the 4 cores, all 4 cores are used at 50%
[18:19:15 CET] <alex88> debianuser: with my command, copying video stream, cpu usage is < 25%
[18:19:19 CET] <alex88> in 1 core
[18:19:25 CET] <alex88> (others are idle)
[18:19:51 CET] <alex88> if I use arecord it works perfectly, it's just that the audio is shifted because ffmpeg starts a little bit after arecord
[18:19:53 CET] <debianuser> It's just "alsa issues" usually means "buffer overrun", i.e. the soundcard writes to the buffer faster than the application can actually process, so after some time the buffer overruns and alsa library notifies about that. It's not alsa to blame, it's the application to blame as it doesn't read fast enough.
[18:20:43 CET] <alex88> gotcha, maybe lowering sample rate?
[18:21:55 CET] <alex88> meh, it improves but not that much
[18:22:11 CET] <alex88> but why with arecord it works? since the device is the same
[18:22:17 CET] <alex88> sampling and channels too
[18:23:01 CET] <debianuser> What do you mean "it works"? It has same alsa issues, you just don't see it, because alsa doesn't notify you. But you still hear it - as video+audio are out of sync. :)
[18:23:12 CET] <debianuser> It depends on what your bottleneck is. If it's video encoding cpu - you can try lowering framerate, if it's audio encoding - try changing audio codec. If it's disk - try smaller bitrate or smaller frame size, etc. Basically, what happens with my command? `ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i plughw:CinemaTM -vcodec libx264 -preset ultrafast -tune zerolatency -acodec libvorbis somefile.mkv`
[18:25:18 CET] <alex88> debianuser: with avconv audio is just out of sync, with your command it's out of sync, skips etc
[18:25:25 CET] <alex88> with arecord I mean
[18:25:35 CET] <alex88> with arecord audio is just out of sync, with your command it's out of sync, skips etc
[18:28:04 CET] <alex88> anyway, cpu is at 20-25% in one core and the others are idle with my command, with yours because of the video codec it's around 60-80%
[18:30:19 CET] <alex88> this is the arecord command https://gist.github.com/alex88/5de01b31388b047ef94d437cf6ae4847
[18:30:56 CET] <alex88> debianuser: audio is shifted by less than a second, but it doesn't skip, it doesn't delay anywhere, it's just an initial delay due the arecord-ffmpeg different starting times
[18:31:23 CET] <debianuser> Can you also copy full output of my command running for a few seconds to some pastebin?
[18:31:43 CET] <alex88> sure
[18:35:19 CET] <alex88> debianuser: I've included also arecord output https://gist.github.com/alex88/c7399122fd1c2ab50a18bddfbe742c1c
[18:44:27 CET] <alex88> debianuser: any idea?
[18:45:49 CET] <debianuser> alex88: Hm... Let's mix those two: `avconv -f video4linux2 -input_format mjpeg -video_size 800x600 -framerate 30 -i /dev/video0 -f alsa -channels 1 -sample_rate 48000 -i hw:CinemaTM,0 -vcodec copy -acodec libvorbis somefile.mkv` You can also try actual ffmpeg in case there's any difference. Either install/build one yourself or try static arm builds from https://www.johnvansickle.com/ffmpeg/
[18:47:19 CET] <alex88> well, at first, no alsa buffer xrun issues, but more continuous (instead of being outputted in groups) "Non-monotonous DTS in output stream" errors
[18:48:04 CET] <alex88> anyway, I can hear some audio at the end of the stream (10 seconds recording) and nothing else
[18:48:48 CET] <debianuser> Try listening to the actual somefile.mkv recorded - does it sound expected?
[18:49:02 CET] <alex88> I said that after listening that file
[18:49:11 CET] <debianuser> Ah
[18:49:12 CET] <alex88> audio starts like half a second before the end
[18:50:05 CET] <debianuser> What if you record just the audio? No video at all. Try: `avconv -f alsa -channels 1 -sample_rate 48000 -i hw:CinemaTM,0 -acodec libvorbis somefile.ogg` Does that sound fine?
[18:51:32 CET] <alex88> yes perfecty
[18:53:02 CET] <alex88> anyway, static ffmpeg build says alsa is not a known format
[18:55:42 CET] <debianuser> No "Non-monotonous DTS" warnings when recording just audio? And the sound starts instantly, not just 10 seconds in the end?
[18:55:48 CET] <alex88> yes
[18:55:50 CET] <alex88> sorry
[18:56:03 CET] <alex88> yes, there are warning all the time, but audio starts instantly and doesn't skip
[18:56:16 CET] <shincodex> happen to know anything about opencv
[18:56:21 CET] <shincodex> there all dead over there at the moment
[18:56:31 CET] <shincodex> and they use libavxxx in there silly vid wrapper
[18:57:03 CET] <alex88> debianuser: I don't want to waste your time anymore, also office is closing here
[18:57:07 CET] <alex88> thank you anyway for your help
[19:48:36 CET] <hurricanehrndz> Hi, has anyone gotten ffmpeg compiled with mmal
[21:52:47 CET] <sdvfwer> hello, I'm having an strange behavior when using ffplay on linux: I have a program that output a live mpegts stream to fifo (a file created by mkfifo). I'm trying to use ffplay to watch to this stream, in this way: Command line for player: "ffplay -probesize 100k -analyzeduration 100k - < fifo_file.ts". First I start this player command, then in another console I start the program that outputs the stream to the fifo file. With this setup, I can't get the
[21:52:47 CET] <sdvfwer> audio/video to play, but when I CTRL+C the program that write the live stream to the fifo, the entire (since startup) video start playing, something like a buffer problem...
[21:53:37 CET] <sdvfwer> Someone can help me on this please?
[21:56:08 CET] <sdvfwer> (when I use the command "hexdump < fifo_file.ts" instead of ffplay, I got the usual uninterrupted hex stream flow on console, then I think that the program that feed the fifo file is doing his job properly)
[22:00:27 CET] <durandal_1707> sdvfwer: why do big probesize and analyzeduration?
[22:00:57 CET] <sdvfwer> I also tryed to mess with these values, and nothing...
[22:06:03 CET] <sdvfwer> Another info: When I use the ffplay option "-v debug", I got several messages like this "[mpegts @ 0x7f4fbc000920] probing stream 2 pp:2499"
[22:06:36 CET] <sdvfwer> the last number (2499) decreases after about a second...
[22:07:47 CET] <sdvfwer> and I cannot get the video... But when I interrupt the source side of fifo, It appears that ffplay "wakes", and show the video immediately
[22:07:51 CET] <durandal_1707> wait for it to decrease to 0?
[22:10:48 CET] <sdvfwer> I still not wait for it reach zero
[22:11:54 CET] <durandal_1707> what is in 2 stream?
[22:14:27 CET] <sdvfwer> Now I waited for a few seconds and the video started playing!!!!
[22:14:37 CET] <sdvfwer> here are the console output in this case:
[22:15:37 CET] <DHE> sounds like it was buffering... but that's a lot
[22:15:57 CET] <sdvfwer> http://pastebin.com/fZDWNqF5
[22:19:21 CET] <sdvfwer> DHE: how can I reduce the ffplay buffering?
[22:23:12 CET] <sdvfwer> durandal_1707: please see the above pastebin. It appears that the stream 2 have nothing. How can I tell ffplay to skip this stream ?
[22:39:38 CET] <sdvfwer> I think that this is the main problem: ffplay try to probe the stream 2 for a long time, before giving up
[22:40:09 CET] <sdvfwer> how can I tell ffplay to ignore the 2nd stream, or to give up early ?
[23:24:40 CET] <sdvfwer> Okay, I just posted my questions to ffmpeg-user mailing list
[23:24:51 CET] <sdvfwer> [ http://ffmpeg.org/pipermail/ffmpeg-user/2016-December/034639.html ]
[23:26:10 CET] <sdvfwer> thanks folks
[00:00:00 CET] --- Tue Dec 13 2016
1
0
[00:23:31 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.2:aec21cd840bc: avcodec/ffv1enc: Fix size of first slice
[00:23:32 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.2:35ef033a19a6: avformat/oggdec: Skip streams in duration correction that did not had their duration set.
[00:23:33 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.2:3f779aef79b1: avcodec/mpeg4videodec: Fix undefined shifts in mpeg4_decode_sprite_trajectory()
[00:23:34 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.2:0e6febff5a7b: avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
[00:23:35 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.2:3ecbac566401: avformat: Add max_streams option
[00:23:36 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.2:64bb329afa9a: avutil: Add av_image_check_size2()
[00:44:01 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.1:0c2d6a219f28: avcodec/ffv1enc: Fix size of first slice
[00:44:02 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.1:119301d3129e: avformat/oggdec: Skip streams in duration correction that did not had their duration set.
[00:44:03 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.1:255e61c25b83: avcodec/mpeg4videodec: Fix undefined shifts in mpeg4_decode_sprite_trajectory()
[00:44:04 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.1:0131f5c37699: avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
[00:44:05 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.1:b18a571e2355: avformat: Add max_streams option
[00:44:06 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.1:6c96200ceb0f: avutil: Add av_image_check_size2()
[01:32:39 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.0:0bcc7ea5dc24: avcodec/ffv1enc: Fix size of first slice
[01:32:40 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.0:7c68d5e70151: avformat/oggdec: Skip streams in duration correction that did not had their duration set.
[01:32:41 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.0:efa164aa6850: avcodec/mpeg4videodec: Fix undefined shifts in mpeg4_decode_sprite_trajectory()
[01:32:42 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.0:667c9ed1f14c: avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
[01:32:43 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.0:7dd1cc6076ca: avformat: Add max_streams option
[01:32:44 CET] <cone-043> ffmpeg 03Michael Niedermayer 07release/3.0:76961f4f42d2: avutil: Add av_image_check_size2()
[01:54:41 CET] <cone-043> ffmpeg 03James Almer 07master:4e759072c216: avformat/matroskadec: allocate Colour related fields only if the file contains the relevant master
[01:54:42 CET] <cone-043> ffmpeg 03James Almer 07master:edb4f5da8125: avformat/matroskadec: remove the strict unofficial check for Colour elements
[18:31:36 CET] <kierank> michaelni: what does ff_update_block_index do?
[18:32:03 CET] <kierank> I'm trying to add 10-bit and 422/444 to mpeg4videodec
[18:32:30 CET] <kierank> am I right in saying mpegvideo is only 8-bit?
[18:36:41 CET] <kierank> also it's not clear in mpeg4video if you ever reset the predictor when you get a new slice
[18:38:32 CET] <kierank> the dc predictor
[18:50:44 CET] <Zeranoe> Anyone know a decent way to drop into GDB for a hang in FFmpeg, when the hang is not reproducible every time?
[18:50:56 CET] <Zeranoe> Oh, the hang also does not last forever....
[18:52:54 CET] <Compn> valgrind ?
[18:52:58 CET] <Compn> trying to see if xvid supports 10bit
[18:53:02 CET] <Compn> but im not seeing it , kierank
[18:53:16 CET] <Zeranoe> I supposed you could redirect FFmpegs -loglevel debug into a bash loop and check the time against the last, and if it's above some threshold than drop into a gdb session
[18:53:28 CET] <kierank> gdb attach during the hang
[18:53:48 CET] <Zeranoe> The thing is it could take 100 attempts to reproduce it
[18:53:57 CET] <Zeranoe> and I don't want to watch it the entire time
[18:55:09 CET] <Compn> ask carl to reproduce it ?
[18:55:26 CET] Action: Compn runs
[18:55:33 CET] <kierank> while 1 and wait for it to hang
[18:56:07 CET] <Zeranoe> kierank: I still have to watch it though, since the hang does not last forever
[18:56:37 CET] <Zeranoe> It's a momentary hang that does not happen every time. Pretty much the dream situation to debug.
[18:59:02 CET] <nevcairiel> sit in debugger and hit break all hotkey when it hangs
[18:59:23 CET] <nevcairiel> gdb .. :p
[20:10:42 CET] <durandal_1707> kierank: i got it working but with strange artefacts, white pixel is gray sometimes, and black becomes gray sometimes
[20:10:51 CET] <kierank> might need to clip
[20:11:01 CET] <kierank> you are probably overflowing
[20:11:08 CET] <durandal_1707> hmm
[20:21:03 CET] <kierank> or the transform is overflowing
[22:32:30 CET] <atomnuker> is it okay for encoders to set avctx->frame_size at the end of the encode function?
[22:33:07 CET] <atomnuker> (to be able to request a different amount of samples each frame?)
[22:35:50 CET] <atomnuker> the alternative would be to set frame_size to the lowest possible size, buffer the data from the avframe (it's audio, no need to ref) and set got_packet_ptr to 0 until I have a frame
[22:37:01 CET] <nevcairiel> dont we have a variable frame size flag
[22:37:09 CET] <nevcairiel> and audioo queue apis
[22:37:44 CET] <atomnuker> yeah, but that goes the other way around - the encoder can take in whatever you give it
[22:38:56 CET] <nevcairiel> changing it after encoding a frame seems risky
[22:39:37 CET] <atomnuker> it's what I was thinking, applications probably assume it's constant from init time until the end
[22:39:49 CET] <atomnuker> (but then how is AV_CODEC_CAP_SMALL_LAST_FRAME handled?)
[22:41:16 CET] <nevcairiel> its not really handled much, it just wont error if you pass less then frame_size
[22:41:42 CET] <nevcairiel> everything else is up to the encoder
[22:41:56 CET] <kierank> atomnuker: then how does the user know how many samples to send
[22:42:01 CET] <kierank> it's a circular problem
[22:42:21 CET] <kierank> 9:35 PM <"atomnuker> the alternative would be to set frame_size to the lowest possible size, buffer the data from the avframe (it's audio, no need to ref) and set got_packet_ptr to 0 until I have a frame
[22:42:25 CET] <kierank> afaik that's the only way
[22:46:25 CET] <nevcairiel> thats definitely the safest
[22:46:30 CET] <atomnuker> yep, that's much neater on a second thought
[22:46:43 CET] <nevcairiel> which audio codecs has varying frame sizes like that? especially when you would already know beforehand how big its going to be?
[22:47:14 CET] <kierank> well putting my realtime bias hat on, variable frame size screws you hard
[22:47:24 CET] <kierank> because you need to know the maximum buffering amount
[22:47:42 CET] <kierank> maybe the maximum is better for frame_size
[22:48:18 CET] <nevcairiel> that doesnt really reduce the amount of buffering, it just moves it, doesnt it
[22:48:18 CET] <atomnuker> opus allows you to pack up to 120 msec in a single packet, but that's more inefficient than just using single shorter sized frames
[22:48:45 CET] <kierank> nevcairiel: you don't want to reduce the buffering, you just need to know how much it is
[22:49:19 CET] <kierank> so you could wait 10, 100 or 1000 calls to the function, you don't know
[22:49:21 CET] <atomnuker> also actually reffing instead of copying would be really nice since opus's lowest frame size is also its lapping size
[22:49:59 CET] <nevcairiel> we might have an AVFrame queue with reffing
[22:50:01 CET] <atomnuker> so you'd just maintain a pool of reff'd frames to do analysis on and decide when you want to stop
[22:52:13 CET] <atomnuker> though how would e.g. 8 frames inputted -> 1 packet outputted work with respect to the audio frame queue which sets the timestamps?
[22:53:37 CET] <atomnuker> just using what ff_af_queue_remove() sets for the last frame seems to make the most sense, so that should be okay
[22:55:38 CET] <nevcairiel> if the bigger frames are always multiple of your frame_size, that makes it easy
[22:57:07 CET] <atomnuker> yep, that'll always be true
[23:23:05 CET] <durandal_1707> kierank: it's must be something else, will look tomorrow
[23:31:28 CET] <kierank> durandal_1707: ok, I have made good progress with mpeg-4 sstp
[00:00:00 CET] --- Mon Dec 12 2016
1
0
[00:03:38 CET] <vans163> JEEB: Yea I think tahts exactly what steam did and nvidia complained
[00:03:48 CET] <vans163> bcause if you look at steam now, there is no mention of hardware capture
[00:03:52 CET] <vans163> They only mention they use DXHooks now
[00:04:25 CET] <vans163> So A it was violation of nvidia license what steam did. B they wanted to use the DXHooks so players chat msgs wont show up
[00:04:51 CET] <vans163> But the DXhooks are so unstable each game needs a custom approach
[00:04:59 CET] <vans163> I guess steam has the resources to cover that tho
[00:05:38 CET] <vans163> Im guessing its a bit of both
[00:05:38 CET] <BtbN> Shadowplay still exists in the GeForce Experience
[00:05:51 CET] <BtbN> and still uses the same NvFBC Hardware-Capture-API
[00:06:15 CET] <vans163> BtbN: Yea but its not the same shadowplay as before. I dont think it uses NvFBC that captures direct from the video card hardware
[00:06:27 CET] <vans163> I think its the NvFBC part that shims dx
[00:06:31 CET] <BtbN> It does, that's the entire point.
[00:06:41 CET] <vans163> BtbN: Can you provide a source of this information please then
[00:06:44 CET] <BtbN> It works seamless on Vulkan and DX12 as well.
[00:06:59 CET] <BtbN> And if you tab out, it happily continues capturing the Desktop
[00:07:06 CET] <BtbN> so it definitely does not hook the game.
[00:07:11 CET] <vans163> BtbN: interesting then..
[00:07:32 CET] <vans163> youved tested it yea?
[00:07:46 CET] <vans163> Since it was like this 2years~ ago but since changed
[00:07:52 CET] <vans163> I think it was license changes
[00:08:12 CET] <BtbN> https://developer.nvidia.com/capture-sdk
[00:08:16 CET] <BtbN> Stuff still exists.
[00:08:25 CET] <BtbN> But those APIs are license-locked on Consumer Hardware
[00:08:39 CET] <BtbN> They do exist though, but not accessible to the public.
[00:08:41 CET] <vans163> yea so it NvFBC does not work on a GTX 1060 for example
[00:08:49 CET] <vans163> but itl work on a 2,000$ Tesla card
[00:08:50 CET] <BtbN> It works great.
[00:08:52 CET] <vans163> hum..
[00:08:59 CET] <BtbN> But you need to pass a license key to the API.
[00:09:14 CET] <BtbN> nvenc used to be the same way
[00:09:16 CET] <vans163> Yea.. those license keys as far as im aware only come with the expensive carsd
[00:09:27 CET] <BtbN> No, on expensive cards it works without a license key.
[00:09:50 CET] <vans163> iunno what your talking about TBH
[00:09:58 CET] <vans163> since iv worked with NvFBC api recently
[00:10:06 CET] <BtbN> License Key, some GUID, you need to pass to the API initlaization function.
[00:10:08 CET] <vans163> actually coded stuff for the latest version of it
[00:10:14 CET] <BtbN> Without it, it refuses to work on consumer hardware.
[00:10:17 CET] <vans163> and there was nothing like that from what i noticed
[00:10:36 CET] <vans163> There is only detection if you have a Quadro+ card, without quadro+ card NvFBC silently fails
[00:10:42 CET] <vans163> giving cryptic errors when you try to grab the buffer
[00:10:43 CET] <BtbN> Well, you are probably only using it on Quadro/GRID hardware then, if you don't pass a license key.
[00:10:56 CET] <vans163> I tried with a consumer 700 series card and with a quadro
[00:10:59 CET] <vans163> quadro works great
[00:11:18 CET] <vans163> From reading mountains of docs about it I never once saw mention you can plug in a license key
[00:11:28 CET] <vans163> So I would like a source if you dont mind on how to plug in this license key
[00:11:34 CET] <vans163> and where to buy it
[00:11:51 CET] <BtbN> you probably need to sign an NDA for those, like it used to be with NVENC when it was still non-public.
[00:12:09 CET] <BtbN> But it got so popular they dropped all of those restrictions.
[00:12:13 CET] <vans163> yea.. probably and really are two dif things.
[00:12:23 CET] <vans163> If its probably then this what your talking about might not even exist
[00:12:26 CET] <vans163> for all everyone here knows
[00:12:38 CET] <BtbN> But you can be sure, Nvidias own software still has perfect access to those software-locked APIs.
[00:13:07 CET] <BtbN> There is barely any hardware difference between Quadro and GeForce cards. It's all just in the drivers.
[00:13:08 CET] <vans163> yea if you RE it sure, but it could be turtled all the way down
[00:13:20 CET] <BtbN> Why RE it? They are Nvidia, they know their own drivers.
[00:13:28 CET] <BtbN> So of course they can use APIs the general public can't.
[00:14:03 CET] <vans163> Iunno where this conversation is going now, sure Nvidia can do anything. We are talking about general population
[00:14:18 CET] <vans163> Sure nvidia can sign any NDA with anyone and grant anyone access tyo anything they have.
[00:14:22 CET] <vans163> But will they grant that to someone here?
[00:14:26 CET] <vans163> Very unlikely
[00:14:27 CET] <BtbN> No, we were talking about the GeForce Experience still being able to use those locked features.
[00:14:36 CET] <BtbN> And as it's from Nvidia themselves, of course it can.
[00:14:39 CET] <vans163> Ah, I think it cant anymore
[00:14:43 CET] <vans163> From what I tested
[00:14:51 CET] <vans163> maybe it can with 1000 card..
[00:15:04 CET] <vans163> Since I had a keplar 700 series and shadowplay would not capture the desktop, onyl a game window
[00:15:11 CET] <BtbN> It could on my old GTX760, and still can on my GTX1060
[00:15:39 CET] <BtbN> You had and still have to tick a checkbox for it to capture the desktop. As a security/privacy feature.
[00:17:38 CET] <vans163> http://superuser.com/questions/1140176/geforce-experience-shadowplay-deskto…
[00:17:56 CET] <vans163> so they got rid of it for something else
[00:18:10 CET] <vans163> Just called it "desktop capture" i guess
[00:18:17 CET] <vans163> guess I need to test again :P
[00:22:39 CET] <BtbN> The new GeForce Experience is horribly sadly
[00:22:49 CET] <BtbN> I uninstalled it after fidgeting with it for a while.
[00:23:21 CET] <furq> well you can't say it doesn't live up to its name
[06:41:24 CET] <roasted> hi friends.
[06:42:25 CET] <roasted> I have a situation where I'm trying to take an mkv, remux it, but retain the exact name of the original file. i.e. I'm writing to overwrite the input file. Best I could come up with was to append v2 in front of the output file name, thereby creating a copy. (for i in *.mkv; do ffmpeg -i "$i" -codec copy "v2-$i"; done). Could I do away with this?
[06:51:12 CET] <kurufu> output to v2, then replace the orginal with your copy.
[13:55:50 CET] <t4nk006> Hey there, I used this https://github.com/lutris/ffmpeg-nvenc to build ffmpeg with NVENC and it works an absolute treat with OBS, but tragtor seems to be relying upon an older version of FFMPEG that was pre-installed in Ubuntu 16.04... Where do I start?
[14:05:37 CET] <furq> probably by uninstalling ffmpeg from apt
[14:06:05 CET] <furq> if tragtor uses the libs rather than just calling the binary then you'll need to rebuild that as well
[14:06:23 CET] <furq> or, you know, you could just use the cli
[14:12:55 CET] <t4nk006> It actually appears to be working now.. strangely.. although I have no idea of parameters, so even with the gui I'm being caught up
[14:14:41 CET] <t4nk006> http://pastebin.com/RaVcYsvJ this is what I'm passing to ffmpeg...
[15:22:22 CET] <krokodilerian> I have a somewhat strange question. I need to loop a raw video frame to pass in .mkv format to voctomix (software mixer), with -c copy
[15:22:46 CET] <krokodilerian> (i tried this with just png or whatever image with -loop, but that takes too much CPU for us)
[15:23:21 CET] <krokodilerian> so, how do I create a image file that contains a single raw video 1280x720 yuv420p image, that ffmpeg can read?
[15:24:21 CET] <durandal_1707> perhaps by loop option it decodes same image over and over
[15:25:19 CET] <durandal_1707> try loop filter it can loop single frame forever just fine
[15:25:34 CET] <krokodilerian> durandal_1707: with -f lavfi?
[15:26:09 CET] <durandal_1707> -vf loop=options...
[15:26:24 CET] <durandal_1707> see documentation
[15:28:17 CET] <krokodilerian> durandal_1707: is this something that arrived after 2.6.9? I don't seem to have it in this one
[15:28:42 CET] <krokodilerian> (and because of some other dependencies, i can't upgrade to 3.2, where here's -stream_loop)
[15:29:16 CET] <durandal_1707> that option would consume cpu too
[15:29:31 CET] <durandal_1707> loop filter is in 3.1
[15:29:43 CET] <krokodilerian> durandal_1707: probably, but then I can have a mkv which is raw video, and just do -c copy, which solves the issue
[15:32:11 CET] <durandal_1707> krokodilerian: paste bin full command?
[15:34:08 CET] <krokodilerian> durandal_1707: http://pastebin.com/diB03qwZ
[15:34:14 CET] <krokodilerian> two of the things i tried
[15:36:41 CET] <durandal_1707> movie filter doesn't generate pts/dts when looping
[15:37:33 CET] <durandal_1707> both cases decodes over and over again
[15:38:30 CET] <durandal_1707> if it is few frames loop filter does job, otherwise it consumes too much memory
[15:50:17 CET] <user____> hi, anyone knows how I can prevent a corrupt mp4 file when ffmpeg is terminated while encoding?
[15:50:29 CET] <furq> you use something other than mp4
[15:50:31 CET] <JEEB> use movie fragments
[15:50:38 CET] <furq> or that, yeah
[15:51:05 CET] <user____> what would you recommend furq?
[15:51:09 CET] <user____> what container
[15:51:16 CET] <furq> if you want robustness then mpegts
[15:51:34 CET] <user____> I would like to have a container that writes the index and all the needed information
[15:51:40 CET] <user____> while encoding the image
[15:51:47 CET] <JEEB> yeah, mpeg-ts doesn't have an index
[15:51:51 CET] <JEEB> it's a bit stream
[15:52:11 CET] <user____> it has timestamps though right?
[15:52:17 CET] <JEEB> yes
[15:52:48 CET] <JEEB> it's the thing used in broadcast so it's not really meant for file playback but rather for streaming
[15:53:14 CET] <user____> I am encoding camera images to videos
[15:53:30 CET] <krokodilerian> user____: live images?
[15:53:34 CET] <user____> yes
[15:53:40 CET] <user____> and I need to as reliable as it gets
[15:53:40 CET] <furq> i'd recommend mkv for general usage, but that isn't as robust
[15:53:41 CET] <JEEB> and if you need mp4 then just find out why ffmpeg gets killed :P
[15:53:59 CET] <JEEB> or if *you* are killing it, don't send kill -9
[15:54:06 CET] <JEEB> but rather send normal kill and it will write the index
[15:54:10 CET] <user____> I am using ffmpeg on windows and I see in the logs that it received windows signal 2
[15:54:18 CET] <user____> however when I want to reproduce it my videos look okay
[15:54:57 CET] <user____> http://codepad.org/aELLR4QQ
[15:55:00 CET] <user____> this is all Ive got
[15:55:27 CET] <user____> ups missing the "received windows signal 2"
[15:55:40 CET] <krokodilerian> user____: how do you get the signal from the camera? something over IP?
[15:57:14 CET] <user____> I am encoding my images to png and pipe it to ffmpeg
[15:57:46 CET] <user____> using this: http://codepad.org/iqymvt9b
[15:58:08 CET] <user____> speaking of, somehow my image quality is a bit worse than when I look at the images directly
[15:58:18 CET] <user____> x264 is supposed to encode lossless this way I thought
[15:58:57 CET] <furq> it'll encode lossless but ffmpeg is probably converting the pixel format
[15:59:30 CET] <furq> depends what the source pixel format is
[15:59:43 CET] <furq> also you should use -qp 0, not -crf 0
[15:59:55 CET] <furq> -crf 0 isn't guaranteed to be lossless
[16:00:57 CET] <user____> ah okay thanks furq
[16:01:01 CET] <user____> Ill try qp 0
[16:01:12 CET] <furq> if the source is png then it'll be converting from rgb to yuv, probably to yuv444p
[16:01:28 CET] <furq> you can use libx264rgb to encode in rgb but i imagine you'll lose a lot of compatibility
[16:01:33 CET] <user____> can I mitigate that somehow
[16:01:36 CET] <user____> to get better quality
[16:01:59 CET] <furq> check the pixel format of the output with ffprobe or something
[16:02:19 CET] <furq> i'd be surprised if you could notice any degradation between rgb24 and yuv444p, but yuv420p will definitely look worse
[16:02:52 CET] <user____> and speaking of formats png is as best as it get's
[16:03:01 CET] <user____> for image2pipe right?
[16:03:03 CET] <furq> also make sure it's not your player which is making it look worse
[16:03:13 CET] <user____> ffmpeg supports PPM and JPG too as far as I know
[16:03:15 CET] <furq> check with mpv in opengl mode
[16:03:34 CET] <furq> also the best format depends what your camera outputs
[16:03:48 CET] <furq> if it's an mjpeg stream then going via png is probably bad
[16:03:59 CET] <user____> its h264
[16:04:35 CET] <furq> why are you using image2pipe for an h264 stream
[16:05:13 CET] <user____> but I receive it via opencv/directshow
[16:05:22 CET] <furq> oh
[16:05:25 CET] <user____> so I get matrix data
[16:05:29 CET] <user____> no idea if you know opencv
[16:05:43 CET] <user____> I am processing the data beforehand of course thats why I can't just pipe to ffmpeg
[16:05:46 CET] <kerio> user____: if you're receiving h264, keep it as h264
[16:05:46 CET] <furq> well yeah h264 -> png -> h264 does two unnecessary colourspace conversions
[16:05:56 CET] <furq> at least try to keep it in yuv
[16:06:31 CET] <furq> hopefully opencv will output y4m or something similar
[16:07:20 CET] <kerio> is lossless h264 ever a good idea
[16:07:35 CET] <furq> why wouldn't it be
[16:07:45 CET] <furq> it seems pretty solid as a lossless codec
[16:07:56 CET] <kerio> is it much better than ffv1?
[16:08:06 CET] <furq> it was about on a par last time i tried it
[16:08:21 CET] <furq> faster with -preset ultrafast, better compression with veryslow
[16:08:32 CET] <JEEB> and I think decoding in general is more optimized
[16:08:41 CET] <furq> i imagine compatibility is much better as well
[16:08:42 CET] <JEEB> because the h264 decoder is getting love
[16:08:50 CET] <JEEB> well, not many things support lossless AVC
[16:08:58 CET] <JEEB> it's the thing no-one really implements
[16:09:18 CET] <user____> i fear that opencv only lets me work with BGR
[16:09:30 CET] <user____> I can convert the image before of course
[16:09:38 CET] <furq> well it's not that big of a deal
[16:09:51 CET] <kerio> >wants lossless video
[16:09:53 CET] <kerio> >not that big of a deal
[16:10:01 CET] <furq> but if you're noticing a slight image degradation, i expect that's why
[16:10:06 CET] <user____> yes this is experimental data that needs to be processed afterwards again
[16:10:14 CET] <user____> and live encoded
[16:10:18 CET] <furq> do make sure that x264 is using yuv444p though
[16:10:23 CET] <user____> ok ill
[16:10:34 CET] <user____> and qp 0
[16:12:23 CET] <furq> check your camera's output formats as well
[16:16:11 CET] <user____> this is a png encoded image furq http://codepad.org/DeTMDptj
[16:16:23 CET] <user____> so rgb24
[16:16:38 CET] <kerio> why png tho
[16:17:06 CET] <user____> what would be your recommendation
[16:17:13 CET] <user____> I can probably encode it in a better way
[16:17:19 CET] <kerio> raw yuv probably
[16:17:27 CET] <kerio> if it's going straight to ffmpeg anyway
[16:18:33 CET] <furq> well yeah png is always rgb24
[16:18:40 CET] <furq> i meant the output mp4
[16:18:52 CET] <furq> *also i meant rgb, shut up)
[16:21:16 CET] <user____> ok ill try to get yuv directly or to convert my cv::Mat to yuvs and pipe that to ffmpeg
[16:21:23 CET] <user____> lets see :)
[16:21:48 CET] <furq> well if opencv only works with rgb then it doesn't really make a difference
[16:22:14 CET] <techtopia> http://i.imgur.com/wfHdZPb.jpg
[16:22:18 CET] <techtopia> what happened here?
[16:23:25 CET] <user____> mh yes furq, but encoding to PNG probably gives some unnessecary overhead too
[16:23:34 CET] <user____> when ffmpeg could deal with raw YUV
[16:23:41 CET] <furq> well it can deal with raw rgb as well
[16:23:44 CET] <user____> maybe converting Mat to yuv is faster than png encoding
[16:23:52 CET] <user____> aha I never seen that
[16:23:59 CET] <user____> only PPM and JPG for the pipe interface
[16:24:19 CET] <furq> -c:v rawvideo -pix_fmt bgr -i -
[16:24:22 CET] <furq> or something like that
[16:24:24 CET] <user____> ah i am so stupid
[16:24:27 CET] <user____> thank you so much
[16:24:47 CET] <furq> you can encode the output as rgb with libx264rgb or ffv1
[16:25:12 CET] <furq> not to say it's better but it's something to try
[16:43:29 CET] <kerio> i'm still somewhat convinced that there's got to be a way to keep the original encoding
[16:43:39 CET] <kerio> in opencv itself i mean
[16:43:57 CET] <kerio> (it doesn't make much sense if you're encoding something different than the raw camera feed obviously)
[16:48:25 CET] <kerio> user____: is that the case?
[17:05:18 CET] <durandal_1707> techtopia: how that happened?
[17:26:52 CET] <DHE> aw damn, older versions of nvenc aren't supported anymore. I must use the included .h file. no other options?
[17:28:51 CET] <c_14> you can use another version, that one's just bundled for convenience
[17:29:00 CET] <c_14> though in the future higher versions might become required
[17:29:48 CET] <c_14> you'll probably have to replace the bundled header though
[17:29:57 CET] <DHE> my loaded kernel driver don't support what's in the ffmpeg repo and the nvenc .h I have handy doens't work if I put it into ffmpeg
[17:30:22 CET] <c_14> what version do you have?
[17:30:42 CET] <DHE> kernel version 358.xx and nvenc sdk version 6.0.1
[17:31:28 CET] <BtbN> No, it's hardcoded to use the bundled header now.
[17:31:44 CET] <DHE> I swapped the header file manually just to try. didn't work
[17:31:46 CET] <BtbN> And it uses features only present in that SDK. So replacing it with an older header won't work as well.
[17:31:53 CET] <DHE> yep...
[17:32:09 CET] <BtbN> Headers are also slightly modified.
[17:32:21 CET] <c_14> you could revert the commits which add the headers and use the new features
[17:32:27 CET] <BtbN> good luck
[17:51:45 CET] <DHE> well damn...
[18:57:17 CET] <Threadnaught> so I'm writing jpg images to imagepipe and trying to stitch them into a video, but it only shows the first frame and its really low quality and doesn't exit (I have to use ctrl c) cat imagepipe | ffmpeg -y -f image2pipe -vcodec mjpeg -r 24 -i - -vcodec mpeg4 -qscale 5 -r 24 video.avi
[18:57:39 CET] <Threadnaught> help
[21:38:44 CET] <hurricanehrndz> Does anyone know if you can do a static compile of ffmpeg with mmal
[21:38:45 CET] <hurricanehrndz> ?
[23:30:09 CET] <BasisBit> am currently trying to port a quite famous floss karaoke game to ffmpeg 3. Already got video playback working again but am stuck for days on the audio part. Previously, the code called PaketDecodedSize := avcodec_decode_audio3(fCodecCtx, PSmallint(Buffer), DataSize, @fAudioPaket); . I tried to adapt this to the avcodec_decode_audio4 function, but had no success at all because I don't understand how ffmpeg works internally. Anyone here who could maybe show me
[23:30:09 CET] <BasisBit> some example implementation?
[23:31:21 CET] <BtbN> https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/demuxing_decoding…
[23:31:45 CET] <JEEB> that's a good one :)
[23:32:05 CET] <JEEB> but basically avcodec_decode_audio4 removes you from some of the internals you shouldn't have to care about
[23:32:26 CET] <JEEB> so instead of you handling a random buffer
[23:32:30 CET] <JEEB> you get an AVFrame
[23:32:34 CET] <BtbN> Keep in mind that decode_audio4 is also kind of "deprecated" already
[23:32:44 CET] <JEEB> oh right, did we have 5 already? :D
[23:32:59 CET] <BtbN> the avcodec_send/receive_packet/frame calls are the latest API, and I'm not aware of any example beside ffmpeg.c
[23:33:16 CET] <JEEB> oh, right. the async API was it?
[23:33:17 CET] <BtbN> decoupling input and output
[23:33:37 CET] <BtbN> the API isn't hard to figure out from the headers though
[23:33:42 CET] <BtbN> it's pretty straight forward
[23:34:06 CET] <hurricanehrndz> anyone compile ffmpeg with mmal?
[23:34:57 CET] <BasisBit> BtbN, yes, this function is already deprecated, but I still have to implement it because there are distributions out there which only provide ffmpeg 2.8 or 3.0 for example. (just the usual api hell when you want to support ererything)
[23:35:31 CET] <BtbN> it exists for quite a while I think
[23:35:57 CET] <BasisBit> well, until 2.7, decode_audio3 worked well
[23:36:28 CET] <BtbN> that's the point of long deprecation cycles
[23:36:54 CET] <BtbN> No idea since when the latest API is in, but it seems like a reasonable dependency
[23:37:10 CET] <BasisBit> BtbN, "long" as in ~ 1.5 years? For many smaller projects that is not "long" at all.
[23:38:15 CET] <BasisBit> and from that 1.5 year it took roughly one year for most people to update to a ffmpeg version which supports decode_audio4.
[23:38:45 CET] <BtbN> That's thanks to distributions being behind
[23:39:25 CET] <JEEB> the libav guy who was doing debian work used to try and help a lot pretty much unmaintained packages to update their API usages
[23:39:38 CET] <JEEB> he seems to have left that role a year (?) or so ago
[23:40:02 CET] <BasisBit> eyup. I am not saying that this is the fault of ffmpeg, just that his is sort of hard to keep up for smaller projects who basically have to support various versions and have to use ots of compiler instructions and glue.
[23:42:32 CET] <JEEB> also there's the case of just dropping support for older versions since after all distributions wouldn't update your applications either
[23:42:49 CET] <BasisBit> for example I am lost on how to change the code (in a karaoke game I maintain which keeps an audio file and a video file and some lyrics data in sync) to from Buffer to AVFrame.
[23:43:09 CET] <JEEB> BasisBit: the change in libav/ffmpeg was done ~2011 https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2011-December/044245.html
[23:43:26 CET] <JEEB> that's a commit that did the change for avconv/ffmpeg (the command line app)
[23:43:27 CET] <BasisBit> lol^^
[23:43:39 CET] <JEEB> so yeah, it's been a few years
[23:44:25 CET] <JEEB> so you can look at how the change was done there as an example
[23:45:05 CET] <JEEB> and the decoding example of course
[23:45:12 CET] <JEEB> which was linked before
[23:45:13 CET] <BasisBit> and still, most tutorials out there use code based on avcodec_decode_audio3 ^^ I'll try some more to get the code to work. Thanks so far for your good support!
[23:45:51 CET] <JEEB> well yeah
[23:46:04 CET] <JEEB> old stuff just won't die :P
[23:46:18 CET] <JEEB> this API was interoduced more than five years ago
[23:46:27 CET] <JEEB> *introduced
[23:47:34 CET] <JEEB> anyways, my alternatives would either to change to using something that utilizes FFmpeg's libraries (ffms2, libmpv), or keeping more connected with the FFmpeg development so these things don't come as a "surprise" five+ years later :)
[23:49:01 CET] <BasisBit> to be honest, the game I maintain regularly gets forum posts from people who ask for support on how to get it to work with some ffmpeg 1.x or 0.x version, because only exactly that version works flaflessly on their weird hardware and at the same time offers hardware based decoding
[23:49:20 CET] <JEEB> in most cases that's a lie
[23:49:42 CET] <BasisBit> well, I guess they just have old systems and don't know how to update them
[23:49:45 CET] <JEEB> yes
[23:49:50 CET] <JEEB> most likely something like that
[23:50:12 CET] <JEEB> but you can't keep supporting those and staying sane to be honest :P
[23:50:31 CET] <JEEB> the only realistic way to do it is to tell them to use an older version if you ever supported those versions
[23:51:57 CET] <BasisBit> the game flawlessly supports all these versions: https://i.imgur.com/DmFmABW.png
[23:51:57 CET] <JEEB> or you start packaging lavf/lavc with your binaries which is also not perfect but f.ex. mpv provides a build script thing that builds you latest libass, ffmpeg and mpv
[23:52:12 CET] <JEEB> jesus christ
[23:52:25 CET] <JEEB> I don't know if I should congratulate you or tell you you're mad
[23:52:42 CET] <BasisBit> well, I only revived the project last year...
[23:53:49 CET] <JEEB> but yeah, take a look at if something like this is worthwhile for you https://github.com/mpv-player/mpv-build
[23:53:58 CET] <BasisBit> and basically it is just a huge mess of compiler instructions on what code to use. So at every new ffmpeg version, we adapt it so it works and at the same time don't break older ffmpeg versions
[00:00:00 CET] --- Mon Dec 12 2016
1
0
[00:03:13 CET] <kierank> hmmm I really need ISO/IEC 14496-2:2004
[00:03:20 CET] <kierank> my bitstream doesn't match the draft at all
[00:07:40 CET] <wm4> huh so there are significant differences between draft and real thing?
[00:09:02 CET] <kierank> seems so
[00:09:29 CET] <kierank> might have to RE it from the binary
[00:12:33 CET] <wm4> fucking evil
[01:01:38 CET] <iive> kierank: i think iso provides reference software and amendments for it, for free
[01:02:01 CET] <iive> it might be faster than RE
[02:46:58 CET] <cone-042> ffmpeg 03Michael Niedermayer 07master:b3928a1cc654: swresample/swresample: Check count before memcpy()
[02:46:58 CET] <cone-042> ffmpeg 03Michael Niedermayer 07master:34db650784fb: swresample/resample_template: Reorder operations to avoid one addition
[02:46:58 CET] <cone-042> ffmpeg 03Michael Niedermayer 07master:65e33d8e2327: swresample/resample_template: Add filter values in parallel
[03:02:31 CET] <michaelni> BBB, jamrial the asm may "need" a similar change as 65e33d8e2327
[03:04:04 CET] <michaelni> that is the intermediate can overflow 32bit with artificial signals
[04:59:18 CET] <cone-042> ffmpeg 03Michael Niedermayer 07master:5b73ba9887d4: avcodec/mpeg12dec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
[12:10:11 CET] <cone-043> ffmpeg 03Marton Balint 07master:7ceb9e6b1182: avfilter/formats: allow unknown channel layouts by default
[12:10:12 CET] <cone-043> ffmpeg 03Marton Balint 07master:bffc2bcd7535: avfilter/af_atempo: add support for unknown channel layouts
[12:10:13 CET] <cone-043> ffmpeg 03Marton Balint 07master:01a19f77caa4: avfilter/af_channelmap: add support for unknown input channel layouts
[12:10:14 CET] <cone-043> ffmpeg 03Marton Balint 07master:df694a5e9d40: avfilter/af_ashowinfo: properly show input channel layout for unknown channel layouts
[13:38:46 CET] <cone-043> ffmpeg 03Andreas Cadhalpun 07master:7d3baebe408c: opus_parser: fix leaking channel_maps on error
[13:38:47 CET] <cone-043> ffmpeg 03Andreas Cadhalpun 07master:c085f1a7e103: opus_parser: make ParseContext the first element in OpusParseContext
[14:54:04 CET] <cone-043> ffmpeg 03Mark Thompson 07master:db7271bff2a6: configure: Require bit_depth field for VAAPI VP9 decode hwaccel
[16:51:42 CET] <cone-043> ffmpeg 03Derek Buitenhuis 07master:51c673a0d703: libavcodec/tests: Add avpacket test to .gitignore
[19:45:10 CET] <cone-043> ffmpeg 03Andreas Cadhalpun 07master:c50d591ce2a6: configure: enable sdl if sdl2 is enabled
[19:45:11 CET] <cone-043> ffmpeg 03Andreas Cadhalpun 07master:4c4556649304: configure: enable autodetected libraries after option parsing
[19:45:12 CET] <cone-043> ffmpeg 03Andreas Cadhalpun 07master:8aad209c13c2: configure: fail if autodetect-libraries are requested but not found
[20:21:28 CET] <durandal_1707> I have reconstructed lowpass and have all other layers, where and how I combine those?
[20:21:55 CET] <durandal_1707> for start just first level
[20:23:17 CET] <durandal_1707> 0-LL with 1 ones
[20:31:59 CET] <durandal_1707> hmm I think I understand basic principles
[22:32:32 CET] <cone-043> ffmpeg 03Michael Niedermayer 07master:1b39a3024711: fate: add av_image_check_size() test
[22:32:33 CET] <cone-043> ffmpeg 03Michael Niedermayer 07master:f542b152aa20: avutil: Add av_image_check_size2()
[22:32:34 CET] <cone-043> ffmpeg 03Michael Niedermayer 07master:2f07830e69bd: avcodec: Add max_pixels options
[22:48:19 CET] <bofh_> 6012 is odd. I can reproduce it but can't see any obvious cause, though I suspect the window is being generated off-by-one.
[22:48:44 CET] <cone-043> ffmpeg 03Wan-Teh Chang 07master:8986885801fb: avutil/cpu_init: remove unnecessary arguments to the main() function
[22:48:45 CET] <cone-043> ffmpeg 03Wan-Teh Chang 07master:3703f13333e2: avutil/tests: run the cpu_init.c test conditionally on HAVE_THREADS
[23:23:29 CET] <cone-043> ffmpeg 03Marton Balint 07master:1f3910262e1b: ffplay: fix sws_scale possible out of bounds array access
[23:32:27 CET] <cone-043> ffmpeg 03Marton Balint 07release/3.2:47e47cfb0797: ffplay: fix sws_scale possible out of bounds array access
[00:00:00 CET] --- Sun Dec 11 2016
1
0
[01:41:33 CET] <hurricanehrndz> I have a weird situation, were a CMakeLists of a static ffmpeg. builds successfully on one distros and fails on another. Mainly due to libm.a although it is available on both
[01:41:59 CET] <hurricanehrndz> The big difference is gcc5 vs gcc6 anyone else experience something similar?
[02:09:33 CET] <blue_misfit> hey guys, when doing file transcoding with ffmpeg from AWS S3 over http I sometimes get truncated source files
[02:09:44 CET] <blue_misfit> like, a 2 hour movie will stop after 7 mins
[02:09:52 CET] <blue_misfit> any advice on best practices for reading from S3?
[02:10:07 CET] <blue_misfit> I'm going to try adding -reconnect 1 prior to the input
[02:10:14 CET] <blue_misfit> but other advice would be welcome
[13:57:51 CET] <Fa1th> hola
[13:58:16 CET] <Fa1th> Is there a way to convert a image to video and set duration time using ffmpeg?
[14:02:53 CET] <durandal_170> yes
[14:03:13 CET] <Fa1th> may i know how ?
[14:04:01 CET] <Fa1th> i tried ffmpeg -i image.png -t 24:00:00 output.mp4
[14:04:07 CET] <Fa1th> gives a 0 sec video file
[14:10:58 CET] <durandal_170> Fa1th: try adding -stream-loop
[14:12:46 CET] <Fa1th> Unrecognized option 'stream-loop'.
[14:12:46 CET] <Fa1th> Error splitting the argument list: Option not found
[14:29:20 CET] <relaxed> Fa1th: ffmpeg -stream-loop -1 -t 24:00:00 output.mp4
[14:29:40 CET] <relaxed> er, ffmpeg -stream-loop -1 -i image.png -t 24:00:00 output.mp4
[14:50:35 CET] <Fa1th> Unrecognized option 'stream-loop'.
[14:50:35 CET] <Fa1th> Error splitting the argument list: Option not found
[14:56:10 CET] <mcjack> Fa1th: https://ffmpeg.org/ffmpeg.html -> 5.4 -> it's called -stream_loop (underscore)
[15:00:25 CET] <Fa1th> thanks guys!!
[15:23:02 CET] <Jaycob> hey guys. really simple problem: how do I get the audio samples of some input with ffmpeg?
[15:24:16 CET] <Jaycob> I want to use mp3 as the input and I'd like to get an array of sample values (for each channel) as the output
[16:01:25 CET] <Fa1th> What is the lowest possible settings to use in ffmpeg?
[16:01:36 CET] <Fa1th> I want to make a video from a image without sound, the image quality doesnt matter
[21:06:15 CET] <Hunterz> hi, Im trying x11grab under fedora 25 wayland and get black screen... is ffmpeg working with wayland?
[21:12:18 CET] <JEEB> x11 feels like it'd only work with x11 :P
[21:17:13 CET] <Hunterz> any plans to support wayland?
[21:22:25 CET] <JEEB> you would have to ask around if there is a way to capture the desktop for something else than the compositor
[21:22:46 CET] <JEEB> one of the design principles of wayland is that you separate all applications so that they have no idea about the rest of them
[21:23:13 CET] <JEEB> that said, if your application is an x11 application you should still be able to connect to the xwayland x11 thing
[21:23:22 CET] <JEEB> (although I'm not sure how that works)
[21:23:39 CET] <JEEB> (but in theory it should work like normal x11 for the applications)
[22:47:04 CET] <thebombzen> if there's a way to have a single instance of wayland atop X, and then have several wayland applications, then yous hould be able to capture the X screen
[22:47:09 CET] <thebombzen> I have no idea how to do that though
[23:30:55 CET] <hawken> w 15
[23:31:20 CET] <BtbN> iirc on wayland the compositor is the only instance able to do desktop capture
[23:31:31 CET] <BtbN> Which is kind of annoying
[23:32:35 CET] <DHE> need an nvenc option to do hardware capture or something. like shadowplay
[23:33:39 CET] <vans163> is shadowplay still a thing?
[23:33:45 CET] <vans163> iirc nvidia dropped it
[23:33:47 CET] <DHE> maybe on windows
[23:33:55 CET] <vans163> now shadowplay isnt really shadowplay
[23:34:06 CET] <vans163> since they patched out the hardware capture from the consumer nvidia drivers
[23:34:22 CET] <vans163> only Tesla cards and 2,000$+ nvidia cards have the driver that can capture from hardware
[23:34:26 CET] <furq> lol what
[23:34:44 CET] <vans163> so for shadowplay (if its still a thing) they just apply some dx hooks for the game
[23:34:56 CET] <vans163> which works much worse then hardware capture
[23:35:14 CET] <JEEB> nvidia IIRC didn't remove it, they just always had it as a private API behind a key
[23:35:21 CET] <JEEB> so you had to pay for it or something
[23:35:33 CET] <JEEB> if you like reverse engineering you can check what steam does
[23:35:37 CET] <JEEB> it supports that stuff
[23:35:51 CET] <JEEB> (it also contains the key/license thing there)
[23:36:28 CET] <JEEB> unless they really removed it lately but I bet that would piss quite a lot of people off :P
[23:36:51 CET] <JEEB> because software was using that interface
[23:36:57 CET] <furq> they'll be so annoyed that they buy AM...oh
[00:00:00 CET] --- Sun Dec 11 2016
1
0
[01:15:59 CET] <cone-633> ffmpeg 03Alex Converse 07master:d3795926876b: aacdec: Allow SBR after DRC.
[01:16:00 CET] <cone-633> ffmpeg 03Alex Converse 07master:51a055b20656: aacdec: Rename elem_type_prev to che_prev_type.
[01:17:10 CET] <rcombs> sweet
[02:00:38 CET] <cone-633> ffmpeg 03Michael Niedermayer 07master:cff1c0edaa79: avcodec/ffv1enc: Fix size of first slice
[02:00:39 CET] <cone-633> ffmpeg 03Michael Niedermayer 07master:38a7834bbb24: avcodec/ffv1enc: Allocate smaller packet if the worst case size cannot be allocated
[14:42:11 CET] <nevcairiel> BtbN: http://fate.ffmpeg.org/report.cgi?time=20161209035641&slot=x86_32-msvc11-wi… is broken from some cuvid things
[14:43:46 CET] <BtbN> msvc2012, hm. Is that with the converter thing?
[14:43:52 CET] <nevcairiel> yes
[14:44:01 CET] <nevcairiel> 2013 is the first to not need it
[14:44:57 CET] <BtbN> Because that error makes no sense.
[14:45:26 CET] <BtbN> https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/cuvid.c#L291
[14:45:35 CET] <BtbN> first element of that struct is https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/cuvid.c#L71
[14:45:41 CET] <wm4> does anyone know why the heck libnpp support is non-free?
[14:45:51 CET] <BtbN> Because libnpp is not part of the nvidia driver
[14:45:53 CET] <nevcairiel> because the library is nonfree?
[14:45:58 CET] <wm4> but why
[14:46:06 CET] <BtbN> you have to ship the dynamic libraries yourself
[14:46:08 CET] <wm4> what reason could they possibly have?
[14:46:11 CET] <BtbN> so it's clearly not a system library
[14:46:17 CET] <wm4> oh, hm
[14:46:23 CET] <nevcairiel> they dont really care for cuda stuff to be redistributable
[14:46:28 CET] <nevcairiel> thats not their target audience
[14:46:52 CET] <BtbN> Most distributions have the libnpp libraries packaged
[14:46:57 CET] <wm4> what's their target audience?
[14:47:04 CET] <BtbN> but still, not a system library according to GPL
[14:47:09 CET] <nevcairiel> professional use
[14:47:22 CET] <BtbN> libnpp are performance primitives, for science and stuff with CUDA
[14:47:50 CET] <wm4> nevcairiel: so does it require some sort of commercial license?
[14:48:04 CET] <BtbN> no
[14:48:11 CET] <nevcairiel> technically cuda is under a proprietary license agreement
[14:48:16 CET] <nevcairiel> but it oesnt cost anything
[14:48:18 CET] <nevcairiel> +d
[14:48:18 CET] <BtbN> But it's not a system library, and thus makes ffmpeg non-free when using it
[14:49:01 CET] <wm4> dumb
[14:49:08 CET] <nevcairiel> why do you care about libnpp
[14:49:50 CET] <wm4> just came up
[14:50:03 CET] <Rathann> BtbN: which distros have it? probably only source-based ones like gentoo
[14:50:15 CET] <wm4> though if it were free we'd probably use vf_scale_npp for transcoding when scaling is needed
[14:50:20 CET] <BtbN> Rathann, Ubuntu and Gentoo are the ones I know of.
[14:50:41 CET] <Rathann> actually Debian too, but in non-free
[14:50:44 CET] <BtbN> http://packages.ubuntu.com/xenial/libnppc7.5
[14:51:00 CET] <wm4> ubuntu probably has it because debian does
[14:51:08 CET] <nevcairiel> dev headers in nvidia-cuda-dev, fwiw
[15:20:33 CET] <cone-307> ffmpeg 03James Almer 07master:77aa8005ece5: fate: improve fate-mov dependencies
[15:20:33 CET] <cone-307> ffmpeg 03James Almer 07master:06c62ce09c57: fate: add a monoscopic spherical matroska test
[15:45:03 CET] <BBB> omg that converter thingy
[15:45:17 CET] <BBB> of all things I ever did, thats probably the most evil of all
[15:45:38 CET] <BBB> (and everyone else that helped me, I didnt do it alone)
[15:45:44 CET] <BBB> but its still quite evil
[16:00:59 CET] <cone-307> ffmpeg 03Derek Buitenhuis 07master:4413e950b263: h264_slice: Wait for refs to be available before we use them in error concealment
[16:12:58 CET] <Zeranoe> So I set up a Cloudflare account with a rule to always cache the zips on their CDN. Initial results look promising.
[16:37:27 CET] <kierank> anyone familiar with mpeg-4 asp?
[17:45:52 CET] <cone-307> ffmpeg 03Michael Niedermayer 07master:ee2a6f5df8c6: avformat/oggdec: Skip streams in duration correction that did not had their duration set.
[17:45:53 CET] <cone-307> ffmpeg 03Michael Niedermayer 07master:8258e3638514: avcodec/mpeg4videodec: Fix undefined shifts in mpeg4_decode_sprite_trajectory()
[18:33:51 CET] <kierank> durandal_1707: how is pixlet going?
[18:35:34 CET] <durandal_1707> kierank: parsing completed, need to figure how to combine layers and than clean up code
[18:35:47 CET] <kierank> combining layers should be addition
[18:35:57 CET] <kierank> after simple transform
[18:36:06 CET] <kierank> like cfhd
[18:36:27 CET] <kierank> I will work on mpeg-4 studio profile I think
[18:37:06 CET] <durandal_1707> whats up with speedhq?
[18:42:09 CET] <kierank> durandal_1707: big gpl violations from xvid
[18:43:07 CET] <wm4> whaaat
[18:43:10 CET] <durandal_1707> it just some sharing :)
[18:46:16 CET] <kierank> wm4: the (i)dct is copied and pasted from xvid
[18:47:53 CET] <wm4> so _we_ violate it?
[18:49:20 CET] <kierank> no, they violate it
[18:49:27 CET] <kierank> they have copied the code *from* xvid
[18:49:53 CET] <wm4> who copied it where? sorry I think I'm a bit tired
[18:49:55 CET] <Shiz> xvid -code-> speedhq
[18:49:57 CET] <Shiz> wm4
[18:50:14 CET] <wm4> ah
[19:10:30 CET] <blb> kierank: that's been addressed
[19:10:58 CET] <kierank> eh?
[19:11:05 CET] <blb> the shq stuff
[19:11:31 CET] <kierank> deleting doesn't just mean the gpl is unviolated
[19:11:50 CET] <blb> i'm just saying it's been addressed
[19:12:15 CET] <kierank> i'm sure they think that
[19:12:25 CET] <blb> i know it
[19:12:34 CET] <nevcairiel> you cant fix the past no matter what you do, can only fix the now
[19:12:51 CET] <kierank> they've not acknowledged the gpl violation
[19:13:02 CET] <kierank> just gave a political response that they should have ignored it in the first place
[19:13:12 CET] <kierank> but they'll delete the code as a gesture of godwill
[19:13:19 CET] <blb> ?
[19:14:26 CET] <kierank> you seem to know what happened
[19:14:26 CET] <wm4> AFAIK even in ffmpeg we have cased all further harassment if the GPL violation was accidentally and then fixed as it was pointed out
[19:14:30 CET] <wm4> but IANAL
[19:14:37 CET] <kierank> it wasn't an accident
[19:14:39 CET] <blb> yes. i'm @ newtek :P
[19:14:46 CET] <kierank> well I have the emails
[19:14:51 CET] <kierank> and that's not what was said
[19:15:01 CET] <kierank> 6:12 PM <"kierank> they've not acknowledged the gpl violation
[19:15:01 CET] <kierank> 6:13 PM <"kierank> just gave a political response that they should have ignored it in the first place
[19:15:01 CET] <kierank> 6:13 PM <"kierank> but they'll delete the code as a gesture of godwill
[19:15:45 CET] <kierank> I have had enough of broadcast companies like newtek shitting on open source and then using it either legitimately or otherwise
[19:15:48 CET] <blb> and i'm saying, it's been addressed
[19:16:12 CET] <kierank> we can all play with euphemisms
[19:16:26 CET] <blb> i don't shit on open source :[
[19:16:29 CET] <kierank> your ceo does
[19:16:41 CET] <kierank> I have caught newtek with two gpl violations now
[19:17:04 CET] <blb> those were accidental, heck, remnants of old shit, unused code paths.
[19:17:11 CET] <Compn> blb : if you work at newtek, you probably shouldnt be talking about legal matters
[19:17:15 CET] <Compn> blb : could be used against you
[19:17:17 CET] <wm4> how does GPL code get into unused code paths
[19:17:18 CET] <Compn> or your company
[19:17:29 CET] <wm4> if the code was originally GPL, the GPL is still in effect, even if all code has been replaced
[19:17:34 CET] <blb> wm4: no idea
[19:17:57 CET] <blb> Compn: hi :P
[19:19:25 CET] <kierank> wm4: https://usercontent.irccloud-cdn.com/file/vRUP4AYZ/
[19:20:02 CET] <wm4> templates...
[19:20:36 CET] <durandal_1707> you can't fight, they always can use code and obfuscate it
[19:20:57 CET] <kierank> yes, intel did that with satd from x264
[19:21:09 CET] <kierank> the guy literally invented a new method of satd for his masters
[19:21:24 CET] <kierank> and intel used intrinsics for exactly the same lines of code
[19:23:24 CET] <wm4> neat, did they ever get sued?
[19:23:39 CET] <kierank> I don't know
[19:24:05 CET] <kierank> wm4: the email thread between steinar and newtek is magnificent
[19:24:51 CET] <kierank> they try to deny the violation and then steinar proves without a doubt the code is from xvid
[19:24:58 CET] <kierank> and then they say they will delete it as a gesture of goodwil
[19:25:16 CET] <wm4> lol
[21:02:51 CET] <kierank> anyone got a copy of ISO/IEC 14496-2?
[21:02:54 CET] <kierank> with studio profiles
[21:10:31 CET] <BtbN> michaelni, could the ffv1 size check fix be backported to at least 3.2?
[21:39:39 CET] <michaelni> BtbN, ok
[21:40:10 CET] <BtbN> nice, thanks.
[23:04:52 CET] <kierank> any idea why/how mpeg4video can use unchecked bitstream reader?
[23:14:00 CET] <kierank> durandal_1707: https://github.com/kierank/ffmpeg-sstp
[23:17:37 CET] <durandal_1707> kierank: michaelni should know, padding of some sort perhaps
[23:17:50 CET] <kierank> seems dodgy
[23:19:30 CET] <durandal_1707> get bits left can't be used?
[23:20:06 CET] <kierank> dunno, but the studio profile stuff breaks a lot of things
[23:20:13 CET] <kierank> it's like data inside data
[23:20:44 CET] <JEEB> o_O
[23:20:56 CET] <JEEB> I wonder which version of MPEG-4 Part 2 I have around
[23:21:36 CET] <atomnuker> kierank: define UNCHECKED_BITSTREAM_READER before including get_bits.h?
[23:21:52 CET] <kierank> JEEB: I only have a draft of the studio profile
[23:21:57 CET] <kierank> so the final version would be useful
[23:22:10 CET] <JEEB> ok, sorry. don't seem to have anything better on hand :/
[23:48:46 CET] <kierank> dammit nothing matches
[23:48:50 CET] <kierank> I really need that amendment
[23:49:08 CET] <kierank> atomnuker: yes, why is it allowed
[23:51:48 CET] <atomnuker> IIRC some decoders will never overread (like some wma one) so it's safe for them to enable this to get more speed
[23:52:36 CET] <kierank> yes but I'm adding stuff so I don't know if that's guaranteed any more
[23:56:26 CET] <atomnuker> oh it's already enabled?
[23:58:58 CET] <kierank> yes
[00:00:00 CET] --- Sat Dec 10 2016
1
0
[00:28:30 CET] <kocoten1992> is any body home?
[00:28:59 CET] <DHE> home, yes. coherent, maybe
[00:29:44 CET] <kocoten1992> :D
[00:38:59 CET] <kocoten1992> @DHE Hi DHE, I want to read a video from second 5 -> 10, the output will be raw binary to a file, is that possible?
[00:40:52 CET] <DHE> so, dump the indicated time range to a raw RGB stream?
[00:42:33 CET] <kocoten1992> I guess so, I kinda new with ffmpeg ( > < )
[00:42:58 CET] <DHE> but I don't understand what it is you want, which is why I'm asking. "raw binary" is a bit vague
[00:43:29 CET] <kocoten1992> I want to mimic youtube behavior
[00:43:59 CET] <kocoten1992> when the connection get slow, somehow it will read from 144p
[00:44:49 CET] <kocoten1992> uhm, you followed me?
[00:45:44 CET] <kocoten1992> the video will running at 720p until connection slow (144p), but how is that possible > <
[00:46:02 CET] <kocoten1992> I have snip it http package
[00:46:29 CET] <kocoten1992> It send something like fseek and fread in php, but it use byte length
[00:46:39 CET] <thebombzen> well, ffmpeg transcodes video from a file or a grab device and cannot detect your connection speed
[00:46:47 CET] <thebombzen> given that it doesn't see the data until it already gets to you.
[00:46:53 CET] <kocoten1992> but here I want from second to second
[00:47:12 CET] <thebombzen> so if you're transcoding video from t=5 seconds to t=10 seconds, then I'm not sure how that's relevant to downsampling the video in a slow connection.
[00:47:53 CET] <kocoten1992> I'll explain
[00:48:33 CET] <kocoten1992> I have snip youtube http request, It have something like s=20, e=45 (I dont remember)
[00:48:38 CET] <kocoten1992> s = start, e = end
[00:49:14 CET] <kocoten1992> that is possible if s and e unit was byte length
[00:49:43 CET] <kocoten1992> I could simply read file from byte length, but it second here
[00:50:11 CET] <kocoten1992> so I think I will have 3 4 file, the same content
[00:50:33 CET] <kocoten1992> but different quality (720p, 480p, 144p ...)
[00:51:13 CET] <kocoten1992> when connection get slugging, it will read from second 5 of 144p to second 10 of 144p and send raw output to user
[00:52:20 CET] <llamapixel> How do you detect the moment of lag, how do you request a new http media file when the bandwidth just isn't there due to congestion?
[00:52:45 CET] <llamapixel> You are assuming all cases of lag are still transmitting there.
[00:52:57 CET] <thebombzen> kocoten1992: if you're looking to cut between 20 seconds and 45 seconds of a youtube video, you should download the youtube video first.
[00:53:13 CET] <thebombzen> in this case, you can use youtube-dl do download the video.
[00:53:47 CET] <llamapixel> If the server downloaded both locally you still have the client congestion problem
[00:53:48 CET] <thebombzen> once you download the video, you can just do ffmpeg -ss 20 -i input_video -t 25 output.mp4 or something like that
[00:54:06 CET] <llamapixel> Is it assumed there won't be congestion from server to client?
[00:54:44 CET] <kocoten1992> @llamapixel, no I guess it work like this
[00:55:14 CET] <kocoten1992> client will use js interval to keep checking connection between server and client
[00:55:44 CET] <kocoten1992> when ping too high, or banwith too low
[00:56:05 CET] <kocoten1992> then when it request next part of the video, it will request as 144p
[00:56:17 CET] <kocoten1992> but all that irrevelent =.=
[00:56:37 CET] <llamapixel> Good luck with that project, you are not thinking it through mate.
[00:57:33 CET] <kocoten1992> @llamapixel why ?
[00:58:04 CET] <llamapixel> Read above
[01:00:48 CET] <kocoten1992> not understand all you said, but I'm trying to solve each one problem first
[01:01:53 CET] <kocoten1992> @llamapixel, so is there any how dump a vido file from second 5 to 10 ?
[01:17:53 CET] <llamapixel> https://usercontent.irccloud-cdn.com/file/tipXHRAw/Screenshot%202016-12-09%…
[01:17:57 CET] <llamapixel> Lets use this as the diagram kocoten1992
[01:18:27 CET] <llamapixel> Making another http request when there is not path wont magically pull a smaller file
[01:18:32 CET] <llamapixel> no*
[01:19:05 CET] <llamapixel> You will have to assume the network is always going to be constant and have a trickle of bandwidth in your assumption
[01:19:49 CET] <llamapixel> If the client had been caching both files before there was a hiccup in connections you could do it and I agree in that principle
[01:20:48 CET] <kocoten1992> :D wow thank you
[01:21:11 CET] <llamapixel> I hope that makes sense mate, in case I am not reading what you are saying correctly.
[01:22:20 CET] <kocoten1992> I've save your pic, gonna digest it later, I'm off to work now
[01:22:25 CET] <llamapixel> cya
[01:22:33 CET] <kocoten1992> wait
[01:22:45 CET] <llamapixel> look up what something like faster fox does and pre-emptively gets all files
[01:22:57 CET] <llamapixel> https://addons.mozilla.org/en-US/firefox/addon/rsccmanfasterfox/
[01:23:09 CET] <llamapixel> How aggressive you want the pre fetching to be is another headache.
[01:23:30 CET] <llamapixel> Or look at something like a squid proxy
[01:23:41 CET] <llamapixel> http://www.squid-cache.org/
[01:24:03 CET] <kocoten1992> ye, but do you have any docs about
[01:24:11 CET] <kocoten1992> spliting video
[01:24:55 CET] <llamapixel> thebombzen answered that part above.
[01:25:29 CET] <kocoten1992> No I think he misunderstand me
[01:25:45 CET] <kocoten1992> I'm the server <- , I split video and then send to user
[01:26:15 CET] <llamapixel> That is a different layout completely to what I just explained :P
[01:26:35 CET] <llamapixel> The issue still arises when the client cannot get the next http request however.
[01:26:41 CET] <kocoten1992> https://trac.ffmpeg.org/wiki/Seeking#no1
[01:27:05 CET] <llamapixel> come back after work if you have better time.
[01:27:14 CET] <kocoten1992> Not sure that will help me, but gotta go
[01:27:16 CET] <kocoten1992> bb :D
[01:27:17 CET] <llamapixel> cutting media is not sending the media
[01:27:36 CET] <llamapixel> ok
[02:29:12 CET] <Phi> back tomorrow, maybe
[02:29:20 CET] <Phi> thanks again for the help thus far :3
[02:36:41 CET] <luminarys> Can audio/video be transcoded without the use of avfilter?
[02:37:27 CET] <luminarys> I seem to run into issues with stuff like formats just plugging in decoded frames into an encoder
[02:47:01 CET] <DHE> if you mean the API, the scale filter is just a wrapper around libswscale and you can use it directly for format and resolution conversions
[02:47:42 CET] <luminarys> yea I'm talking about using the api, not cli tool
[02:48:48 CET] <luminarys> I'm specifically working with audio stuff and run into the issue of the sample formats being incompatible
[02:49:12 CET] <DHE> same thing, but libswresample
[02:50:02 CET] <luminarys> Thanks, I'll take a look
[03:08:36 CET] <luminarys> So using swr_convert_frame seems to solve the issue of the frame format
[03:08:48 CET] <luminarys> but now I end up with an error from the encoder codec "more samples than frame size"
[03:09:13 CET] <luminarys> which googling seems to be nontrivial to fix
[03:09:35 CET] <luminarys> I guess I may be better off just using an anull filter since at this point using swresample more or less equates to the same style of code
[03:09:36 CET] <DHE> codecs have a 'frame size' which is how many samples it wants per AVFrame. there's an example program that does audio transcoding that deals with this
[03:10:13 CET] <luminarys> resampling_audio?
[03:10:31 CET] <DHE> transcode_aac
[03:10:39 CET] <DHE> where you may have to deal with variations in frame sizes from input and output
[03:13:53 CET] <cnote> what is best audio codec these days?
[03:13:55 CET] <luminarys> Ok so you end up having to use a queue to handle the sample per frame issue
[03:14:45 CET] <luminarys> Thanks for all the help that clarifies alot
[03:14:58 CET] <DHE> cnote: depends what you're doing with it
[03:15:32 CET] <cnote> music/podcast/movies
[03:15:59 CET] <DHE> playing back on phones? car stereo with builtin USB disk reader?
[03:16:20 CET] <cnote> mostly on playing back on computers
[03:46:05 CET] <k_sze[work]> Is it generally OK to mux two video streams of different codecs, different resolution, different pixel formats into the same container?
[04:04:30 CET] <DHE> if the container supports two video streams, yes
[04:06:00 CET] <autofsckk> hello, im trying to put a logo over an animated gif, i tried with this ffmpeg -i dreams-reality.gif -i ~/00ttnk/logo/logo.png -filter_complex '[0:v]scale=150:-1[1:v]overlay=W-w-5:H-h-5' -codec:a copy dreams-reality-output.gif , im a newbie and im reading the man and documentation online but i can not find how to position correctly the png, can you tell me please where to find that and where to read
[04:06:06 CET] <autofsckk> about the format of the command? thanks
[04:07:36 CET] <autofsckk> i get this error by the way [AVFilterGraph @ 0x8e50220] Unable to parse graph description substring: "overlay=W-w-5:H-h-5"
[04:28:45 CET] <k_sze[work]> I need help with using ffmpeg and vlc together.
[04:29:39 CET] <k_sze[work]> What I want to do is use the ffmpeg *library* to encode some video, and send (pipe?) the encoded data to vlc so vlc can act as the live streaming server.
[04:30:06 CET] <k_sze[work]> right now I don't even know how to do that from the command line.
[04:31:36 CET] <k_sze[work]> e.g. I tried `ffmpeg -re -i my_video.nut -c:v copy -f nut pipe:1 | vlc -vvv - --sout '#rtp{dst=0.0.0.0,port=1234,sdp=rtsp://0.0.0.0:8080/test.sdp}'`
[04:31:58 CET] <k_sze[work]> But that just spits out lots of garbage in the terminal.
[04:32:23 CET] <k_sze[work]> my_video.nut is a NUT file that contains a single H.264 stream.
[04:48:03 CET] <cnote> what is best audio codec these days?
[07:46:06 CET] <JerryT> Is there a way to select 5 frames every 60 seconds of video?
[07:46:54 CET] <c_14> sure
[07:47:39 CET] <c_14> use the select filter
[07:48:11 CET] <c_14> https://ffmpeg.org/ffmpeg-filters.html#fps-1
[07:51:03 CET] <c_14> eh
[07:51:06 CET] <c_14> that's the wrong link
[07:51:20 CET] <c_14> I meant https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
[07:51:59 CET] <c_14> If you want the output as individual images use the image2 muxer
[08:00:34 CET] <llamapixel> JerryT: I think that question came up a couple of times of me watching this stream and it involves the mod. https://ffmpeg.org/ffmpeg-utils.html
[08:03:13 CET] <c_14> if you want them evenly spaced, it'd be mod 12 yes
[08:04:12 CET] <c_14> eq(mod(n\,12),0) or something
[08:05:08 CET] <JerryT> Interesting
[08:05:53 CET] <c_14> not(mod(n\,12)) should work as well
[08:06:02 CET] <c_14> or eq of any number between 0 and 11
[08:11:52 CET] <llamapixel> I thought so as well JerryT
[08:19:39 CET] <k_sze[work]> Does anybody know if rtsp can do multiple video streams?
[08:20:39 CET] <k_sze[work]> e.g. muxing an H.264 and an FFV1 stream together and serve over RTSP.
[08:25:08 CET] <k_sze[work]> btw, is there any streaming transport that can carry FFV1?
[08:25:13 CET] <k_sze[work]> It seems that RTP cannot.
[08:25:32 CET] <JerryT> c_14, Actually I want it to go 60 seconds into the video, select 5 frames then go to 120 seconds and select 5 more frames...
[08:25:57 CET] <c_14> k_sze[work]: rtp can definitely do it
[08:27:09 CET] <c_14> JerryT: lt(mod(n\,60),5)
[08:27:25 CET] <c_14> That'll take the first 5 and then 60-64 etc
[08:27:37 CET] <c_14> the second comma also needs a \
[08:27:43 CET] <c_14> and I'm not sure the order is right
[08:27:46 CET] <c_14> but basically that
[08:29:07 CET] <k_sze[work]> c_14 maybe it's just VLC's implementation that doesn't work.
[08:29:47 CET] <c_14> k_sze[work]: when playing rtp?
[08:29:48 CET] <k_sze[work]> This is what I see when I try to get VLC to serve FFV1 over rtsp
[08:29:49 CET] <k_sze[work]> [0x7fbf8c000e88] stream_out_rtp stream out error: cannot add this stream (unsupported codec: FFV1)
[08:30:14 CET] <c_14> Ah, rtp doesn't support ffv1
[08:30:31 CET] <c_14> I thought you were referring to 2 video streams
[08:31:37 CET] <k_sze[work]> Well, yes, at some point I'll want to mux a H.264 stream and a FFV1 stream together, and then serve the whole thing over a network streaming protocol that supports it.
[08:31:52 CET] <k_sze[work]> I might also throw in a custom data stream at some point.
[08:32:37 CET] <k_sze[work]> but right now I can only get H.264 served over RTSP. FFV1 doesn't seem to work, so it looks like I might need to look into another network streaming transport/protocol.
[08:34:00 CET] <nonex86> its not a problem to incapsulate any payload into rtp, but you need a software what understand it and play
[08:34:58 CET] <k_sze[work]> nonex86: right now VLC refuses to mux FFV1 into rtp, and I don't know how to use just ffmpeg and no vlc to achieve the same effect.
[08:35:32 CET] <k_sze[work]> VLC *might* support playback.
[08:36:36 CET] <k_sze[work]> Or if I use ffmpeg on the client end.
[08:37:35 CET] <nonex86> vlc uses live555 as rtp engine
[08:38:01 CET] <nonex86> live555 is terrible (used it by myself) and it certainly will not support custom payload afair
[08:38:36 CET] <k_sze[work]> Can I use *just* ffmpeg? That would be great.
[08:38:36 CET] <nonex86> but you can patch the sources of rtp plugin in vlc
[08:39:07 CET] <nonex86> not sure about ffmpeg and custom payload, never used it in such cases
[08:39:26 CET] <k_sze[work]> Well, can I at least make ffmpeg act as an rtsp server?
[08:40:15 CET] <nonex86> guess so, but the support of ffserver is dropped afaik
[08:40:27 CET] <k_sze[work]> I know.
[08:40:32 CET] <nonex86> everyone here will tell you - don not use ffserver :)
[08:40:50 CET] <k_sze[work]> Well, I *think* ffserver is still in 3.2.2
[08:41:09 CET] <k_sze[work]> but it certainly won't stick around.
[08:41:28 CET] <nonex86> sometimes deprecated functionality remains for some time :)
[08:42:57 CET] <k_sze[work]> But even then, I have no idea how to make ffserver work.
[08:44:04 CET] <JerryT> c_14, not quite sure
[08:44:19 CET] <JerryT> That works, creates the frames but it's generating a ton
[08:45:38 CET] <c_14> JerryT: add -vsync vfr as an output option
[08:46:11 CET] <JerryT> ffmpeg -i input.mp4 -f image2 -vf "select='lt(mod(n\,60)\,5)'",scale=320:240 -vsync vfr thumb_%03d.png
[08:46:17 CET] <JerryT> That's what I have
[08:46:28 CET] <JerryT> Movie is 2:50
[08:46:43 CET] <JerryT> Created 364 thumbs
[08:47:07 CET] <JerryT> 2 Minutes, 50 seconds that is
[08:48:58 CET] <c_14> eh, right
[08:49:00 CET] <c_14> sec
[09:01:37 CET] <c_14> JerryT: ffmpeg -i out.mkv -f image2 -vf "select='eq(mod(t-start_t\,60)\,0)+lt(mod(prev_selected_n\,5)\,4)'",scale=320:240 -vsync vfr thumb_%03d.png
[09:01:59 CET] <c_14> (the previous command was doing frames not seconds)
[09:02:18 CET] <llamapixel> patreon him $5 JerryT :)
[09:02:36 CET] <c_14> This command selects frames either when the time (in seconds) mod 60 is 0 or it hasn't selected a multiple of 5 yet
[09:03:59 CET] <JerryT> patreon?
[09:04:43 CET] <JerryT> Nice c_14
[09:05:00 CET] <JerryT> Thank you, testing now...
[09:05:48 CET] <c_14> hmm
[09:06:31 CET] <JerryT> Appears to be working correctly.
[09:06:36 CET] <JerryT> That's awesome
[09:06:55 CET] <llamapixel> https://www.patreon.com/
[09:07:38 CET] <JerryT> Oh neat, c_14 do you have one of these?
[09:07:43 CET] <llamapixel> One bitcoin bots will be apart of irc help conversation
[09:07:57 CET] <c_14> nah, I'm not doing this to get paid anyway
[09:08:21 CET] <JerryT> Gotcha, well it's much appreciated.
[09:08:52 CET] <systemsgotyou> how do I record my mono mic for playback as stereo?
[09:08:57 CET] <llamapixel> I was pointing out we work in a cool evironment since finland invented irc
[09:09:43 CET] <systemsgotyou> i am using simplescreenrecorder and the audio inpute works, but in the finished video it only plays on the left speaker
[09:09:53 CET] <c_14> -ac 2
[09:10:02 CET] <JerryT> Finland really invented IRC?
[09:10:07 CET] <JerryT> Didn't know that
[09:10:12 CET] <systemsgotyou> ffmpeg -f alsa -ac 2?
[09:10:19 CET] <c_14> output option
[09:10:31 CET] <systemsgotyou> the output would be a file
[09:10:38 CET] <systemsgotyou> from the screen recording app
[09:10:45 CET] <c_14> ffmpeg -f alsa -i blah -ac 2 out.mkv
[09:10:57 CET] <c_14> that'll upmix the audio to stereo
[09:11:15 CET] <systemsgotyou> but how do I do that when im using a screenrecorder
[09:11:21 CET] <systemsgotyou> its another app
[09:11:52 CET] <c_14> check the options?
[09:12:01 CET] <systemsgotyou> it has pulse/alsa
[09:12:11 CET] <c_14> You can also run it over the output if you don't mind reencoding the audio
[09:12:30 CET] <systemsgotyou> anything i select records as mono
[09:12:47 CET] <c_14> You can probably convince alsa/pulse to upmix the capture device to stereo internally
[09:13:06 CET] <systemsgotyou> yeah thats what im thinking
[09:13:08 CET] <systemsgotyou> but how
[09:13:29 CET] <c_14> Not sure if ttable works on inputs
[09:13:42 CET] <c_14> anyways, seems like a question for #alsa or #pulse
[09:14:15 CET] <llamapixel> JerryT: https://en.wikipedia.org/wiki/Jarkko_Oikarinen
[09:15:00 CET] <llamapixel> dnmiac
[09:16:29 CET] <areg> hello, I have problem with ffmpeg encoding, receiver is pushing stream to my encoder, but ffmpeg cannot see it. Firewall is turned of, also I can see traffic by tcpdump
[09:16:53 CET] <areg> Also when I am connecting a windows machine, I can see steram via vlc
[09:17:24 CET] <c_14> What command are you using?
[09:18:03 CET] <areg> ffmpeg -i udp://@:1018 -preset fast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264 -b:v 1500k -maxrate 1500k -bufsize 8000k -g 60 -f flv rtmp://192.168.17.11/CNN_236/CNN
[09:18:40 CET] <c_14> add ?listen
[09:18:44 CET] <c_14> to the input url
[09:18:45 CET] <c_14> at the end
[09:19:50 CET] <areg> added, same, freezes, no output
[09:21:21 CET] <areg> also when trying -loglevel debug
[09:21:33 CET] <areg> only have the following output
[09:21:36 CET] <areg> [udp @ 0x52d8820] No default whitelist set [udp @ 0x52d8820] end receive buffer size reported is 131072
[09:22:13 CET] <c_14> can you receive the output using something like netcat?
[09:25:12 CET] <areg> nc stream_ip udp_port?
[09:25:36 CET] <c_14> I think it's nc -lU stream_ip port
[09:25:55 CET] <areg> OK, thank you, let me try
[09:25:59 CET] <c_14> -u
[09:26:22 CET] <c_14> (though it probably depends on which netcat version you have)
[09:28:00 CET] <areg> nc -u 192.168.17.12 1018 and nc -lU 192.168.17.12 1018, both freezes no output
[09:28:49 CET] <c_14> -l -u
[09:29:26 CET] <areg> nc -l -u 192.168.17.12 1018
[09:29:41 CET] <areg> no output again
[09:30:16 CET] <c_14> but tcpdump shows output?
[09:31:09 CET] <areg> root@en-ye2:/home/encoder2# tcpdump -i any port 1018 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes 12:30:43.752815 IP 10.14.25.10.20007 > 192.168.4.12.1018: UDP, length 1316
[09:31:15 CET] <areg> yes
[09:32:08 CET] <c_14> >192.168.4.12
[09:32:12 CET] <c_14> why are you listening on 17.12?
[09:33:44 CET] <areg> sorry, I wrote my second inteface IP, but same for 4.12
[09:34:00 CET] <areg> root@en-ye2:/home/encoder2# nc -lU 192.168.4.12 1018 ^C root@en-ye2:/home/encoder2# nc -u 192.168.4.12 1018 ^C root@en-ye2:/home/encoder2# nc -l -u 192.168.4.12 1018 ^C
[09:36:12 CET] <c_14> Can you run the last netcat command again and then check it's actually listening on the correct port? (using ss -ulpen or something)
[09:36:19 CET] <c_14> to make sure the syntax is correct
[09:44:12 CET] <areg> sure
[09:45:48 CET] <areg> UNCONN 0 0 192.168.4.12:1018 *:* users:(("nc",pid=6472,fd=3)) ino:107555191 sk:5 <->
[09:49:10 CET] <c_14> try setting tcpdump to explicitly listen on the interface that has the ip instead of any
[09:50:25 CET] <c_14> you said the firewall is turned off, how did you verify that?
[09:55:12 CET] <areg> iptables -L -nv --line
[09:55:16 CET] <areg> no rules there
[09:55:31 CET] <areg> before that I did iptables -F
[09:55:36 CET] <areg> to flush all rules
[09:57:22 CET] <areg> root@en-ye2:/home/encoder2# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: p1p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
[09:57:39 CET] <areg> root@en-ye2:/home/encoder2# tcpdump -i p1p1 port 1018 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on p1p1, link-type EN10MB (Ethernet), capture size 262144 bytes 12:56:48.897196 IP 10.14.25.10.20007 > 192.168.4.12.1018: UDP, length 1316
[10:01:43 CET] <c_14> that ip a output doesn't list any addresses for p1p1
[10:05:25 CET] <areg> root@en-ye2:/home/encoder2# ifconfig p1p1 p1p1 Link encap:Ethernet HWaddr 18:a6:f7:01:a4:8a inet addr:192.168.4.12 Bcast:192.168.4.255 Mask:255.255.255.0 inet6 addr: fe80::1aa6:f7ff:fe01:a48a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1012551043 errors:0 dropped:33398 overruns:0 frame:0 TX packets:9891 errors:0 dropped:0 overruns:0 carrier:0
[10:10:21 CET] <c_14> how about ffmpeg -i udp://192.168.4.12:1018?listen -f null - ?
[10:15:21 CET] <areg> I solve the problem, encoder has no back route to stream pushong device
[10:16:47 CET] <areg> I thought that if device is pughing via udp it doesn't need back route
[10:18:52 CET] <areg> thank you very much c_14
[10:21:12 CET] <xpheres> hello
[10:29:07 CET] <jcelerier> hello :)
[10:30:49 CET] <jcelerier> the documentation mentions the HAP video codec, but when I try "ffmpeg ... -c:v HAP ..." I get "unknown encoder 'HAP'". I also tried with hap, Hap... anybody knows what is necessary to do if I want to encode using this codec ?
[10:31:28 CET] <nonex86> check ffmpeg -encoders
[10:31:43 CET] <nonex86> and see the list available encoders in your ffmpeg build
[10:32:44 CET] <jcelerier> doesn't seems to be in it :( do you know if the release builds on the ffmpeg website have a maximal set of codecs ? or should I go for the recompile route
[10:32:47 CET] <nonex86> if its not listed in output, but you know its really exists, you should rebuild ffmpeg with the hap support
[10:33:51 CET] <nonex86> jcelerier: for which host os?
[10:45:48 CET] <jcelerier> nonex86: hopefully all the major ones ?
[10:46:01 CET] <jcelerier> linux, macos, win..
[10:47:00 CET] <nonex86> i mean which one you plan to run on :) or all of them?
[10:52:25 CET] <jcelerier> yep, all of them :p
[10:58:11 CET] <nonex86> guess its better to build ffmpeg yourself ;p
[10:58:25 CET] <thebombzen> so... I did a quick comparison of hevc_nvenc and it appears that hevc_nvenc is worse than libx264 in terms of quality per bitrate, at least according to my "I just looked at it" standards
[10:58:58 CET] <thebombzen> but hevc is a newer codec than h.264 by like a decade... so I'm just wondering... does nvenc's hevc encoder just suck? or am I missing something
[10:59:57 CET] <thebombzen> oops
[11:00:05 CET] <Pandela> I didnt build mine and I have " DEVIL: hap Vidvox Hap decoder" in the listed codecs when I enter ffmpeg -codecs
[11:00:33 CET] <Pandela> So maybe you need another version?
[11:01:58 CET] <thebombzen> as for numbers, I have a 1920x1080 video stream at 60 frames per second... if I encode it with libx264 and hevc_nvenc at 10 Mbps, the x264 one looks significantly better (albeit far slower)
[11:02:48 CET] <thebombzen> this is not quite fair because I'm not actually using 10 Mbps but I used the crf that gives me 10 Mbps - in this case, it's crf 21.
[11:03:40 CET] <thebombzen> am I missing something? or is hevc_nvenc just awful
[11:04:05 CET] <jkqxz> No, you aren't missing anything. All hardware H.265 encoders are awful.
[11:06:34 CET] <jkqxz> Making a good H.265 stream requires testing many variations on everything in the encode, and speed-oriented hardware is just no good at that.
[11:08:48 CET] <BtbN> nvenc is also especialy bad with CBR
[11:09:01 CET] <BtbN> you can tune it a bit, by using a diffrent preset and its obscure 2pass mode tho
[11:09:13 CET] <BtbN> But it will always be worse than a software encoder
[11:09:35 CET] <BtbN> At least you can get decent quality out of the hevc encoder, so as an intermediate stream it's more than useful now
[11:15:18 CET] <thebombzen> BtbN: I found the 2pass mode and it's slightly better, but it's just worse than x264
[11:16:33 CET] <jkqxz> Well, what do you want out of it? You use hardware encoders because they are fast. If you care about quality, you don't use them.
[11:18:18 CET] <thebombzen> I was wondering why I would ever use a hardware encoder given how crappy quality it is
[11:18:21 CET] <thebombzen> but you're right, it's very fast
[11:19:26 CET] <thebombzen> I think that the most realistic use case here is hevc_nvenc -preset lossless, which my minimal data shows is larger than libx264 -preset veryfast -crf 0 but not by much (150 Mbps to 200 Mbps)
[11:19:37 CET] <thebombzen> although it encodes it in something like 3 to 4 times realtime without a heavy cpu load
[11:21:06 CET] <BtbN> There are a lot of scenarios where you don't care about it producing bigger files
[11:21:18 CET] <BtbN> Or where a quality hit is ok
[11:21:32 CET] <BtbN> Or is non existent anyway, because you are recording yourself playing chess.
[11:25:34 CET] <Pandela> Is there a command to set the keyframe interval on any codec? Or is it codec specific?
[11:26:01 CET] <Pandela> like
[11:26:10 CET] <Pandela> -x264opts keyint=99999:min-keyint=999999 for example ;p
[11:26:58 CET] <llamapixel> BtbN: You are either taking rendered content from less compressed content and exporting, or trying to recover a certain quality for export ;)
[11:27:29 CET] <BtbN> what?
[11:28:04 CET] <BtbN> You seem to have missed a lot of the recent things people do with videos.
[11:28:23 CET] <BtbN> For example the Steam Remote-Play uses hardware encoders like nvenc
[11:28:24 CET] <llamapixel> [1] You can render the content from produced material [2] You are trying to improve the content with the current format you have.
[11:28:42 CET] <BtbN> it doesn't matter that it's 50Mbit/s, as it's streamed over local LAN only anyway
[11:28:51 CET] <BtbN> But it does matter that it doesn't occupy the CPU for the game.
[11:29:12 CET] <llamapixel> So you realise this is where you dont understand the problem right?
[11:29:21 CET] <BtbN> And there are a lot of other cases where hardware encoders make sense.
[11:29:46 CET] <BtbN> There is no Problem to realize, you just want to use a hardware encoder for something it's not meant for.
[11:30:10 CET] <llamapixel> no encoder will improve what you have that is compressed mate.
[11:30:26 CET] <BtbN> true, but unrelated to hardware encoders.
[11:30:29 CET] <llamapixel> Would you like a little lesson?
[11:30:50 CET] <BtbN> same goes for libx264, and any other lossy encoder.
[11:31:03 CET] <llamapixel> words...
[11:31:56 CET] <BtbN> And your desktop or gameplay you are capturing is usually not compressed.
[11:32:11 CET] <llamapixel> please stop now.
[11:32:36 CET] <llamapixel> You have some very basic elements that are way off target.
[11:32:49 CET] <BtbN> No, you just seem to have missed the point entirely.
[11:32:58 CET] <llamapixel> ok sure :)
[11:33:28 CET] <llamapixel> You know that uncompressed really means compressed to a degree right?
[11:34:35 CET] <BtbN> I'm talking about desktop/game capture... It's not even YUV420. Just plain perfect RGB.
[11:35:03 CET] <BtbN> And I think that's one of the most common usecases for hardware encoders like nvenc.
[11:35:18 CET] <llamapixel> idiots live in this day an age.
[11:35:38 CET] <llamapixel> You clearly have no comprehension of what I am trying to explain to you.
[11:35:59 CET] <llamapixel> Shall I continue or do you need to vent?
[11:43:20 CET] <llamapixel> Do we all agree that true uncompressed content is composed of the universe and uncompressed video is a slither of that mark ;)?
[11:44:02 CET] <llamapixel> at some point you have to capture the content in a constraint. colour/time
[11:44:43 CET] <thebombzen> [10:33:26] <llamapixel> You know that uncompressed really means compressed to a degree right?
[11:44:44 CET] <thebombzen> no
[11:44:48 CET] <thebombzen> that's not what uncompressed means.
[11:45:00 CET] <thebombzen> it means not compressed. it's not "compressed to a degree"
[11:45:53 CET] <thebombzen> if you're going on about how the universe doesn't have a framerate or a colorspace, that doesn't actually matter. because while the universe doesn't... the digital signal to your monitor does, and that's what we care about.
[11:46:20 CET] <llamapixel> you should listen to this idiot as well
[11:46:33 CET] <llamapixel> at some stage all codec are compressed mate
[11:46:59 CET] <llamapixel> animation codec which has an alpha channel is still compressed...
[11:47:10 CET] <thebombzen> BtbN is there a process for dealing with people like this
[11:47:22 CET] <BtbN> ignoring them usually works
[11:47:22 CET] <furq> have you tried not talking to him
[11:47:29 CET] <llamapixel> ignorance wins
[11:47:36 CET] <thebombzen> I'm not talking about misunderstanding or being wrong. I'm talking about like people who call each other idiots
[11:47:56 CET] <thebombzen> I mean there's probably some "don't be a jerk" rule here but I've never needed to ask about it ^_^
[11:48:00 CET] <llamapixel> dont use the compression word for things that are not true compression.
[11:48:35 CET] <llamapixel> everything you use in any video standard is compressed at some stage right?
[11:48:38 CET] <thebombzen> welp it's really late. I need to go to bed
[11:48:44 CET] <thebombzen> US user over here
[11:48:47 CET] <thebombzen> peace out
[11:48:49 CET] <llamapixel> murica
[11:49:58 CET] <llamapixel> If you guys cant understand a basic principle like that we have nothing to discuss. no video codec is going to capture real time or real colour.
[11:50:19 CET] <llamapixel> everything is compressed to a degree, uncompressed is for luddites.
[11:52:09 CET] <llamapixel> you left a little early thebombzen
[11:52:28 CET] <thebombzen> well I forgot that IRC has no server-side chat logs so if I want to answer a question in the morning it's nice to have the backlog
[11:52:34 CET] <thebombzen> so I started up my client again
[11:52:37 CET] <llamapixel> I was trying to explain that reality verse captured content is not a uncompressed.
[11:52:45 CET] <thebombzen> have fun. I'm going to bed.
[11:52:55 CET] <llamapixel> ignorance is bliss
[11:54:04 CET] <llamapixel> At the moment thebombzen we live in a world where a camera and the signal, including the capture rate cannot match reality. It is compressed at some stage...
[11:54:44 CET] <llamapixel> therefore everything in video is best described as compressed content...
[11:54:57 CET] <llamapixel> super simple...
[11:55:38 CET] <llamapixel> uncompressed content is for luddites who think we have reached that stage of capture.
[11:56:35 CET] <llamapixel> we know you haz data mate ;) https://thebombzen.github.io/
[11:58:48 CET] <llamapixel> You know leo that a render and a camera capture is compressed through a module of technology or a codec right?
[12:00:10 CET] <llamapixel> oh dear a shaker leo?
[12:00:11 CET] <llamapixel> http://shakerite.com/lifestyle/2016/01/29/a-qa-with-a-famous-shaker-alum/
[12:00:26 CET] <llamapixel> god will save you from reality mate.
[12:06:24 CET] <llamapixel> irccloud is a server side chat log thebombzen
[12:06:34 CET] <llamapixel> more derp and god mate
[12:26:45 CET] <Pandela> Is there a universal way to change the keyframe interval on specific codecs? I've tried to find documentation but I only see -keyint working with x264 and x265
[12:27:03 CET] <JEEB> -g is the GOP length parameter
[12:27:09 CET] <JEEB> in libavcodec globally
[12:31:06 CET] <Pandela> Thanks, hope it works :0
[12:37:15 CET] <Pandela> JEEB: So if I use -g 999999 I get "x265 [info]: Keyframe min / max / scenecut : 24 / 250 / 40"
[12:37:35 CET] <Pandela> JEEB: But if I use -x265-params keyint=999999:min-keyint=999999 I get "x265 [info]: Keyframe min / max / scenecut : 999999 / 999999 / 40"
[12:40:40 CET] <Pandela> I basically want to increase that incriment on any codec ffmpeg can encode, is that possible? I tried "-h encoder=libx264" and it didnt even list keyint even though its an option. So ya I'm kinda at a loss
[12:44:37 CET] <JEEB> -x264/265-params just passes things to libx264|x265
[12:44:52 CET] <JEEB> so libavcodec's libx264/5 wrapper can't know what it takes in
[12:45:09 CET] <JEEB> and you should check if the libx265 wrapper even uses the value for GOP length ;)
[12:45:37 CET] <JEEB> because while that is the global option, if someone just doesn't use the value that's a whole different issue :)
[12:47:27 CET] <c_14> it doesn't appear to
[12:49:35 CET] <Pandela> Thanks for the heads up
[12:49:48 CET] <c_14> (Patches Welcome)
[12:50:57 CET] <Pandela> I'm ultimately trying to change the keyframe interval on codecs like cavs and such but -g doesnt seem to be working on that one either
[12:53:02 CET] <c_14> Does that have an encoder?
[12:53:09 CET] <c_14> (in libavcodec)
[12:53:18 CET] <Pandela> libxavs I believe
[12:53:23 CET] <Pandela> ah
[12:53:39 CET] <c_14> that uses -g though
[12:58:03 CET] <Pandela> c_14: I used "ffmpeg -video_size 1280x720 -framerate 30 -f dshow -pixel_format yuv420p -i video="Logitech HD Webcam C525" -b:v 124k -vcodec cavs -g 99999 -r 24 -an -s 360x240 -f avi udp://192.168.1.222:1337"
[12:58:18 CET] <Pandela> And still got a butt load of keyframes in ffprobe :c
[12:58:26 CET] <c_14> well
[12:58:29 CET] <c_14> -g sets keyframe_max
[12:58:32 CET] <c_14> not min
[12:58:41 CET] <c_14> eh, keyint_max
[12:59:09 CET] <c_14> And many codecs insert keyframes on scene changes
[12:59:36 CET] <Pandela> Right right
[12:59:47 CET] <Pandela> I'm trying to have the least amount possible lol
[13:01:47 CET] <c_14> you'll have to do that per codec
[13:01:58 CET] <c_14> for libx264 you'll have to disable scenecut and a couple of other things
[13:02:02 CET] <c_14> And it'll differ per codec/encoder
[13:04:53 CET] <Pandela> Makes sense..So then where should I look for that info? libxavs for example doesnt have any documentation anywhere that lists it options
[13:05:33 CET] <c_14> ffmpeg -h encoder=libxavs
[13:05:53 CET] <c_14> not that there's anything interesting in there
[13:06:56 CET] <Pandela> Tried it lol, didnt see anything pertaining to keyframes
[13:07:04 CET] <c_14> You might need to check the libxavs API docs and possibly add options to the libavcodec wrapper
[13:07:46 CET] <c_14> libavcodec options are usually whatever the developer considered useful and by no means a complete superset of all available options
[13:08:08 CET] <Pandela> Ahhh okay, probably should have considered that
[13:08:17 CET] <Pandela> Thanks mate
[13:12:27 CET] <cnote> what is better codec aac or opus or vorbis ?
[13:18:59 CET] <c_14> opus is better than vorbis, but aac vs opus is debatable
[13:19:06 CET] <c_14> very opinionated no clear answer
[13:20:00 CET] <furq> opus has better compression but aac is more widely supported
[13:20:31 CET] <furq> although at >=128kbps you'd have trouble spotting any difference
[13:23:05 CET] <c_14> AAC quality will also depend a lot on the encoder, bitrate and mode.
[13:59:50 CET] <kerio> c_14: but not opus?
[14:00:04 CET] <kerio> or do we also refer to a specific encoder when talking about opus?
[14:00:53 CET] <cnote> furq what has problem play opus?
[14:00:56 CET] <cnote> playing*
[14:34:01 CET] <shersk> I have a problem, can't use the '-s' option when encoding.
[14:34:25 CET] <shersk> when using the vid.stab filter
[14:35:17 CET] <shersk> if I don't specify the pixel size of the video, the result is bad. too large pixels. that's why I need to specify the size.
[14:35:34 CET] <furq> what's the error
[14:35:37 CET] <DHE> are you using it properly? where you specify options on the command-line matters
[14:36:06 CET] <shersk> ffmpeg version N-82094-g0515176
[14:36:58 CET] <shersk> furq: thnx, I will check that
[14:37:16 CET] <shersk> DHE: thnx, I will check that
[14:37:45 CET] <shersk> furq: "Option video_size not found."
[14:37:54 CET] <furq> are you specifying -s before -i
[14:37:59 CET] <furq> it should go after
[14:38:27 CET] <shersk> Ah, I see.
[14:38:42 CET] <shersk> It seems to be running now.
[14:38:55 CET] <DHE> called it
[14:40:57 CET] <shersk> thanks guys
[14:50:25 CET] <shersk> It runs, but the result is still very pixelated
[14:51:13 CET] <shersk> I have a file that is 1920x1088 but the result looks very pixelated after running it through two-pass vid.stab
[14:56:06 CET] <shersk> what am I doing wrong?
[14:57:10 CET] <DHE> please pastebin the full commandline and full output of ffmpeg to the pastebin of your choosing (as long as it doesn't suck :) so we can see it
[15:08:11 CET] <trfl> hey guys, trying to implement an rtsp server, almost managed to get ffmpeg and vlc to start playing my streams (i think...) ffmpeg is however complaining that the pixel format is unspecified when decoding the rtp stream
[15:08:32 CET] <trfl> how do you usually indicate the pixfmt to the client over rtp/rtsp?
[15:12:18 CET] <shersk> Enjoy: http://paste2.org/WtWbsFDb
[15:14:25 CET] <DHE> 4.2 megabits of mpeg4 (part-2) at 1080p isn't very high. normally I would suggest that kind of bitrate for h264. also the q value is quite high. I think you're just starving the codec for bitrate/quality
[15:15:19 CET] <DHE> suggestions would be to use libx264 instead (H264, aka mpeg4 part-10), raise the bitrate, or run in qp mode, probably with a setting of 10 as a starting point
[15:16:17 CET] <shersk> I don't have libx264
[15:16:40 CET] <DHE> also the input material is already 1920x1088 so using -s is redundant
[15:19:20 CET] <DHE> actually even the audio is the same. you might just want -c:a copy for the output
[15:20:39 CET] <CruX|> hi i'm transcoding from flac to ogg
[15:20:47 CET] <CruX|> flac gave vorbis tag
[15:20:54 CET] <CruX|> *have
[15:21:26 CET] <CruX|> and in ogg tag is doubled separated by ;
[15:21:29 CET] <CruX|> why ?
[15:25:18 CET] <shersk> DHE: You're right. I increased the bitrate, and it worked. thanks
[15:53:49 CET] <ringo_> Hello
[15:54:11 CET] <ringo_> what is the best latest version of ffmpeg to use? n3.2.2?
[15:56:20 CET] <__jack__> the best is the last stable: 3.2.2 !
[15:58:18 CET] <ringo_> that is what I thought ... thanks ... in git it is n3.2.2
[15:58:19 CET] <ringo_> the tag
[16:00:39 CET] <CruX|> TITLE : Flute;Flute
[16:00:40 CET] <CruX|> ARTIST : Barcode Brothers;Barcode Brothers
[16:05:12 CET] <FlyingBot> How to create some thubnails from a video file given a list of specific seconds (e.g. 15, 34, 102, etc) with a single ffmpeg call?
[16:05:47 CET] <c_14> kerio: when referring to opus, you're usually referring to libopus
[16:08:06 CET] <c_14> FlyingBot: do you care that it'll be much slower than using several calls?
[16:09:03 CET] <FlyingBot> Why would that happen?
[16:09:53 CET] <c_14> Because of the way seeking interacts with cmdline ffmpeg
[16:10:34 CET] <c_14> You can either seek while demuxing or while decoding, if you only want a shot at one point you can seek while demuxing which is fast if you want several then all but the first are while decoding which is slow
[16:11:33 CET] <FlyingBot> Thanks for the info. I'll try that.
[16:12:02 CET] <DHE> unless you need very precise frames, it would still be faster to run ffmpeg several times, one for each frame you want
[16:14:04 CET] <__jack__> (depends on IO, on the source storage; if you have to download the file, or are using a relatively slow device with a relatively big file, reading the whole dataset once may be faster)
[16:14:49 CET] <c_14> not really
[16:14:55 CET] <DHE> true. I tend to assume a local file on disk which will have some kind of index and would have said info cached in RAM once loaded for the first time.
[16:15:00 CET] <c_14> as long as the data storage supports byte seeks it'll still be faster
[16:15:22 CET] <c_14> http does with byteranges (assuming the server supports it)
[16:16:09 CET] <c_14> you'd only need the headers and the part with the image
[16:16:35 CET] <c_14> and if your IO is really so terribly slow it'll be much slower than the decoding and therefore definitely worth only grabbing parts and not the whole file
[16:19:39 CET] <DHE> the http transport supports that? nice
[16:21:54 CET] <c_14> Though I'm not sure ftp does, so if you're using that doing it once might be faster.
[17:57:52 CET] <nicolas> Hi, I need help. I'm using ffmpeg to record a website with phantom.js and stream that to Facebook Live, but I'm having trouble streaming at 30fps constantly, the fps progressively drops down to 10 fps.
[17:59:12 CET] <nicolas> hi ?
[17:59:38 CET] <nicolas> Could somebody help me?
[18:00:54 CET] <__jack__> feeling: CPU or IO saturation
[18:05:15 CET] <nicolas> HI Jack, thanks, I will try it immediately with a VPS with more resources
[19:43:42 CET] <styler2go> Hi, i have an folder on my HDD where i store many mp4 files i record (gameplay footage) and now i am lookign for a way to archivate them. What do you think? Is it better to just zip them up or convert them using ffmpeg? The file all have the same format: https://p.styler2go.de/8637390/
[19:45:17 CET] <styler2go> Oh, and the videostream bitrate is 32497kbit/s
[19:46:15 CET] <blb> styler2go: are they too big?
[19:46:39 CET] <styler2go> one has aroudn 1,14gb and there are a lot of them
[19:46:45 CET] <JerryT> "select='eq(mod(t-start_t\,60)\,0)+lt(mod(prev_selected_n\,5)\,4)'" This grabs 5 frames every 60 seconds. c_14 helped me with it late last night. I'm curious though, is there a way to select 60 frames?
[19:46:47 CET] <styler2go> it's always 5 minute snippets
[19:47:15 CET] <JerryT> I believe the 5,4 go hand in hand, but I don't think it's as simple as 60,59
[19:47:39 CET] <blb> styler2go: it'd probably be better to convert, lowering the bitrate, than zipping
[19:48:43 CET] <t4nk910> Urghhh noob here. I installed FFMPEG with nvenc enabled using this guide https://github.com/lutris/ffmpeg-nvenc OBS works an absolute treat, but Tragtor seems to have defaulted to an older build of ffmpeg, so I assume I have two versions of FFMPEG installed.. the pre-installed version and the one I built... what is the way forward? Thanks in advance.
[19:49:00 CET] <styler2go> Ok.. i'll try to make me a script which converts them in background
[20:27:42 CET] <nicolas_> Hi, I need help. I'm using ffmpeg to record a website with phantom.js and stream that to Facebook Live, but I'm having trouble streaming at 30fps constantly, the fps progressively drops down to 10 fps.
[20:28:24 CET] <blb> which part is slow?
[20:29:49 CET] <nicolas_> this is the command -> phantomjs runner.js | ffmpeg -threads 0 -y -c:v png -r 30 -framerate 30 -thread_queue_size 512 -f image2pipe -i - -f lavfi -i anullsrc -acodec aac -strict experimental -ac 1 -ar 44100 -b:a 128k -c:v libx264 -s 800x480 -bufsize 512k -b:v 512k -pix_fmt yuv420p -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/715353888628280?ds=1&s_l=1&a=ATgRoW5_wucXf6NP" >> stream.log 2>&1
[20:31:14 CET] <nicolas_> but fps its too low i needd 30fps -> frame= 1869 fps= 10 q=12.0 size= 1215kB time=00:01:00.56 bitrate= 164.4kbits/s
[20:32:25 CET] <blb> nicolas_: how about adding -preset veryfast
[20:33:17 CET] <blb> nicolas_: also, what rate does phantomjs write frames?
[20:34:44 CET] <nicolas_> its a interval 1000/30
[20:35:20 CET] <nicolas_> window.setInterval(function () {page.render('/dev/stdout', { format: 'png' });}, 1000/framerate);
[20:43:32 CET] <furq> JerryT: if you know the framerate you can simplify that to something like lt(mod(n\, 1500)\, 5)
[20:43:42 CET] <furq> 1500 for 25fps, 1800 for 30fps etc
[20:45:45 CET] <furq> then just change the 5 as needed
[20:47:41 CET] <furq> if you need it to work with any framerate then that's going to get complicated
[20:47:51 CET] <furq> the command you pasted only works when frames to grab < fps
[20:52:47 CET] <nicolas_> is this correct? -> window.setInterval(function () {page.render('/dev/stdout', { format: 'png' });}, 1800);
[22:34:41 CET] <cnote> is there any advantage of using "very slow" over "slow"
[22:35:21 CET] <furq> yes
[22:38:05 CET] <cnote> which is
[22:38:16 CET] <DHE> there is. you may save some file size and/or gain quality, but it will take a lot longer to process
[22:38:45 CET] <cnote> i noticed slower settings create bigger file size though
[22:39:01 CET] <furq> if they do then the file will look better
[22:39:44 CET] <DHE> if file size matters, use bitrate targetting mode
[22:42:13 CET] <cnote> dhe i don't think you should recommend people to use bitrate mode
[22:43:28 CET] <DHE> I would agree most of the time, but here you are complaining about file size. bitrate mode is the answer
[22:43:39 CET] <furq> fwiw i normally use -preset slower -bf 5 -subq 10
[22:43:47 CET] <DHE> that's a lot of bframes
[22:43:54 CET] <furq> veryslow uses 8
[22:44:01 CET] <cnote> dhe yes i am complaining about file size, but not really
[22:44:04 CET] <DHE> wow. do hardware players support that?
[22:44:07 CET] <furq> no idea
[22:44:15 CET] <furq> bluray players obviously don't
[22:44:28 CET] <cnote> i am not really complaining about filesize, but i am complaining that slower setting creates bigger file size
[22:44:50 CET] <cnote> because i would expect slower = smaller file size
[22:44:53 CET] <furq> crf isn't a constant between presets
[22:45:04 CET] <furq> crf 23 will look much worse with preset ultrafast than with veryslow
[22:45:43 CET] <cnote> furq true, but what about this: crf 23 verslow compared to crf 22 veryfast
[22:45:54 CET] <furq> shrug
[22:45:56 CET] <furq> try it and find out
[22:47:25 CET] <cnote> i would need pure uncompressed video if i do such a test
[22:49:59 CET] <cnote> furq what does -bf 5 -subq 10 do
[22:51:16 CET] <furq> http://dev.beandog.org/x264_preset_reference.html
[22:51:27 CET] <furq> bframes 5, subq 10
[22:51:46 CET] <furq> every other difference between slower and veryslow is less important in my experience
[22:52:06 CET] <furq> s/subq/subme/
[22:54:08 CET] <wodim> bframes = keyframes?
[22:54:16 CET] <furq> no
[22:54:39 CET] <furq> https://en.wikipedia.org/wiki/Video_compression_picture_types#Bi-directiona…
[23:00:48 CET] <thebombzen> what would be the reason to use a hardware decoder for something like H.264
[23:01:06 CET] <thebombzen> given that the native ffmpeg software decoder is already very good
[23:04:01 CET] <furq> it doesn't hit the cpu
[23:04:05 CET] <furq> that's the only reason
[00:00:00 CET] --- Sat Dec 10 2016
1
0
[00:21:02 CET] <Zeranoe> These IPs are all over the place....
[00:27:46 CET] <Shiz> if it's all the same UA it might be a targeted attack
[00:27:53 CET] <Shiz> good people don't spoof their UA...
[00:28:02 CET] <cone-479> ffmpeg 03Andreas Cadhalpun 07master:e3694478a98b: yuv4mpegdec: fix leaking pkt in yuv4_read_packet
[00:33:57 CET] <Zeranoe> Shiz: They're all pretty similar
[00:38:33 CET] <Zeranoe> Why would anyone target open source software....
[00:41:39 CET] <JEEB> people are bored, have some random idea of things...
[00:48:45 CET] Action: Compn forgot to spoof his ua when downloading log
[00:48:46 CET] <Compn> hehe
[00:48:57 CET] <Zeranoe> https://twitter.com/O_Shearer/status/806644040351576069
[00:49:20 CET] <Compn> LOL
[00:49:33 CET] <Compn> the official facebook 360 ?
[00:49:37 CET] <Compn> or just another app ?
[00:49:46 CET] <J_Darnley> Why isn't it shipping with ffmpeg? Oh, is the GPL a scary nasty thing?
[00:50:02 CET] <Zeranoe> I can't confirm that yet
[00:50:03 CET] <Compn> https://facebook360.fb.com/
[00:50:30 CET] <j-b> http://people.videolan.org/~jb/Builds/360/ :)
[00:52:58 CET] <jamrial> j-b: i assume this is using koda's mov demuxer implementation? or are you using a custom demuxer?
[00:53:40 CET] <j-b> well, koda implementation is a bit too new to be in that build... So, custom one
[00:54:19 CET] <jamrial> just asking. he sent the first version a couple weeks ago after all
[00:54:38 CET] <j-b> yep
[00:54:40 CET] <jamrial> and for all i know, these builds could have gone live today :p
[00:55:13 CET] <j-b> yeah no. we did a bit of PR 2 weeks ago with those.
[00:55:44 CET] <Zeranoe> Yup, that's it. I see FBs 360 video trying to download it
[00:55:52 CET] <kierank> Zeranoe: do you want me to pass that on to fb
[00:55:54 CET] <jamrial> j-b: ah, missed that, sorry
[00:56:27 CET] <Shiz> .. with Fx UAs?
[00:57:57 CET] <Zeranoe> kierank: Do you know them or something? Either way, yes, please ask them to include their own copy
[00:58:17 CET] <kierank> yeah I will
[00:58:53 CET] <kierank> sent
[00:59:11 CET] <drv> it looks like something is trying to download /builds/[various different repetitions of builds]/win32/static/ffmpeg-20160712-df1dc52-win32-static.zip
[00:59:15 CET] <drv> somebody debugging their crappy downloader? :)
[00:59:21 CET] <Compn> Shiz : those UA's are usually just "compatability" user agents...
[00:59:30 CET] <RiCON> or some redirect loop
[01:02:58 CET] <Zeranoe> kierank: You could also ask them to give me a job, or set me up with a dedicated server :)
[01:12:01 CET] <jamrial> j-b: well, got a spherical sample that crashed it
[01:12:02 CET] <jamrial> i allowed it to send a report
[01:12:14 CET] <j-b> jamrial: please share the sample :)
[01:12:23 CET] <j-b> jamrial: we've fixed a few crashes already.
[01:13:28 CET] <jamrial> j-b: give me a few, the link i used to download it is no longer valid
[01:15:46 CET] <kierank> Zeranoe: do you have more detailed information
[01:16:10 CET] <Zeranoe> kierank: Regarding...
[01:16:20 CET] <kierank> what exactly is downloading ffmpeg
[01:16:31 CET] <kierank> like a url
[01:16:44 CET] <Zeranoe> It looks like "C:\Program Files\FB360 Spatial Workstation\Video Player\Video Player.exe"
[01:22:25 CET] <jamrial> j-b: https://transfer.sh/KaZ95/motherboard-cube-v2-metadata.mp4
[01:22:41 CET] <j-b> cube?
[01:22:56 CET] <jamrial> yeah, the second of three projections mentioned in the spec
[01:23:11 CET] <j-b> 01:12 < jamrial> j-b: well, got a spherical sample that crashed it
[01:23:16 CET] <j-b> so, not spherical :)
[01:23:35 CET] <jamrial> ah, that. my bad :p
[01:24:27 CET] <jamrial> called it that since the spec is called "Spherical video"
[01:26:36 CET] <j-b> yeah, I have the fix already :)
[01:26:37 CET] <j-b> thx
[01:26:42 CET] <j-b> will push soon
[01:26:45 CET] <jamrial> no prob
[01:27:05 CET] <wm4> so how does vlc render spherical video
[01:27:09 CET] <wm4> shader?
[01:30:01 CET] <kierank> Zeranoe: they are looking into it
[01:31:38 CET] <kierank> Zeranoe: see pm
[01:56:44 CET] <jamrial> j-b: where's the repository for these builds?
[02:43:35 CET] <cone-479> ffmpeg 03James Almer 07master:445204cd5777: avformat/matroskadec: add support for Spherical Video elements
[02:50:29 CET] <cone-479> ffmpeg 03Michael Niedermayer 07master:3ab1311aba74: avcodec/golomb: Consume invalid data in get_ur_golomb_jpegls()
[03:17:51 CET] <Zeranoe> So Facebook 360 will now include a copy of FFmpeg, but I'm not convinced they were the real cultrate. I'm considering requiring a referral to download a build
[03:17:51 CET] <Zeranoe> Unless I can figure out where these are coming from...
[05:26:29 CET] <cone-479> ffmpeg 03James Almer 07master:8396d54d3c62: avformat/matroskadec: fix memleak on stream side data failure
[05:26:30 CET] <cone-479> ffmpeg 03James Almer 07master:120471da2d39: avformat/matroskadec: remove unused variable
[05:29:18 CET] <Compn> Zeranoe : cat traffic.log | grep -v "Gecko/20100101" > traffic.logg
[05:29:20 CET] <Compn> 14 mb
[05:29:20 CET] <Compn> lol
[05:30:12 CET] <Zeranoe> Out of 300GB though that isn't a ton
[05:30:22 CET] <Compn> no i mean
[05:30:27 CET] <Compn> 300mb of that log is that user agent
[05:30:33 CET] <Compn> 14 mb of that 300mb log is other people :D
[05:30:38 CET] <Zeranoe> Oh yeah, -v
[05:30:42 CET] <Compn> -v ;)
[05:30:50 CET] <Zeranoe> Hmmm
[05:31:16 CET] <Zeranoe> That could be a valid UA though
[05:32:05 CET] <Zeranoe> I'll just block *Firefox*, that'll do it
[05:32:27 CET] <Compn> thats not a valid UA
[05:32:29 CET] <Compn> block it
[05:32:53 CET] <Zeranoe> https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox
[05:33:22 CET] <Compn> i mean its valid but ... not person web browser
[05:34:51 CET] <Zeranoe> I'd have to wildcard the front though, and it could be valid if it's tacked on to the beginning
[05:35:45 CET] <Zeranoe> OVH has a VPS with unlimited bandwidth https://www.ovh.com/us/vps/vps-ssd.xml but only a 100Mbps speed
[05:37:11 CET] <Zeranoe> which I guess is what I'm working with now... hmmm
[05:50:23 CET] <jamrial> Zeranoe: can firefox extensions spawn processes?
[05:50:32 CET] <jamrial> maybe it's some really shitty extension downloading a binary to do conversion out of youtube extracted videos or such
[05:50:44 CET] <Zeranoe> jamrial: Wowwww
[05:50:50 CET] <Zeranoe> jamrial: That's a hell of a good idea
[05:51:14 CET] <jamrial> assuming it's a popular one like Video Download Helper, it would explain this situation
[05:56:04 CET] <Zeranoe> It's not them http://www.downloadhelper.net/install-converter3.php
[05:56:21 CET] <Zeranoe> Though now I have to uninstall all this crap that it installs
[06:05:02 CET] <Zeranoe> You'd be amazed how many youtube download plugins there are...
[06:19:19 CET] <Compn> its interesting
[06:19:24 CET] <Compn> indonesia has 3000 hits
[06:19:31 CET] <Compn> iraq!
[06:20:03 CET] <Compn> nigeria
[06:20:23 CET] <Compn> all over the world, thats for sure
[06:21:29 CET] <Zeranoe> Right? It's weird, and the user agents are not the same
[06:21:54 CET] <Compn> i havent checked useragents yet. just checking the ip addy right now
[07:02:02 CET] <Zeranoe> We're back up. I put a referer check in place for the time being.
[11:24:12 CET] <cone-178> ffmpeg 03Srinath K R 07master:4df5a6a26a8a: avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option
[11:27:17 CET] <cone-178> ffmpeg 03Srinath K R 07release/3.2:314c425b16ae: avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option
[11:28:13 CET] <cone-178> ffmpeg 03Srinath K R 07release/3.1:8a4b18c639b5: avfilter/vf_hwupload_cuda: Add min/max limits for the 'device' option
[12:33:53 CET] <superware> can someone please (please, please) take a look at https://trac.ffmpeg.org/ticket/5615 ? it's easy to reproduce so maybe it's easy to fix.
[12:39:54 CET] <J_Darnley> Do you want my suggestion if you think it is easy?
[12:41:32 CET] <superware> I don't think it's easy, I just said it might be easy.
[12:41:40 CET] <superware> sure
[12:56:28 CET] <superware> J_Darnley?
[13:21:39 CET] <J_Darnley> My suggestion would have been "fix it yourself" if you thought it was easy but you don't think it would be easy so I won't make that suggestion.
[13:22:16 CET] <wm4> it probably is easy
[13:22:26 CET] <wm4> on the other hand, libavformat network code...
[13:56:46 CET] <Gramner> J_Darnley/BBB: yasm doesn't think that negative numbers are in fact numbers. that annoyed me so i fixed it, but then the main yasm dev disappeared so the fix isn't in any released version https://github.com/yasm/yasm/commit/32ad9c46cebd5bf07af9c05383d3c16e6cb1f17d
[13:56:54 CET] <Gramner> nasm doesn't have that bug afaik
[13:57:22 CET] <BBB> the workaround is fairly simple
[13:57:26 CET] <BBB> 0-number instead of -number
[13:57:30 CET] <BBB> its kind of silly but whatever
[13:57:42 CET] <BBB> we have worse hacks than that in our codebase...
[13:57:50 CET] <J_Darnley> We would need to use that as we allow people to use yasm 0.6
[13:58:00 CET] <J_Darnley> (the work-around I mean)
[14:38:59 CET] <Compn> yeah.
[14:46:03 CET] <superware> wm4: you said "it probably is easy", what did you mean?
[14:46:30 CET] <wm4> just what I wrote
[14:52:06 CET] <superware> it seems that when one of the UDP related functions is blocking, the abort mechanism doesn't work (when callback returns 1).
[14:55:09 CET] <wm4> ok then it's probably not easy
[16:10:49 CET] <nevcairiel> jkqxz: https://trac.ffmpeg.org/ticket/6003 .. needs a newer vaapi version check?
[16:11:15 CET] <wm4> I'm compiling ffmpeg on a linux machine, and it's built for the
[16:11:16 CET] <wm4> past several years. I just updated git-master after being gone
[16:11:16 CET] <wm4> for several months, and I get this.
[16:11:19 CET] <wm4> jkqxz ruined it all!
[16:15:45 CET] <BBB> wow nicolas is really raging at me, what did I do
[16:15:59 CET] <jkqxz> Looks like that is an ABI break in libva.
[16:16:48 CET] <jkqxz> I guess we have fix that with a conditional on the newer ABI, rather than just testing for the structure?
[16:18:59 CET] <jkqxz> Hmm. I think it needs a separate configure check for VP9 + newer structure.
[16:19:15 CET] <wm4> BBB: disagree with him
[16:19:46 CET] <nevcairiel> dont worry BBB, he isnt the most logical person
[16:19:54 CET] <wm4> jkqxz: would an ifdef in the code not be sufficient? a bit inelegant, but more appealing than dealing with configure
[16:19:57 CET] <jamrial> what wm4 said. you disagreed with him. you're therefore wrong
[16:21:13 CET] <BBB> but Im trying to be nice
[16:21:27 CET] <BBB> Im genuinely trying to be nice and move on and stuff, I dont get the rage, what did I do
[16:22:32 CET] <ubitux> you lost the vote so now you have to kneel and admit defeat in a silent stance
[16:24:05 CET] <BBB> ...
[16:24:22 CET] <nevcairiel> the more i read from nicholas mails, it seems like he spent more time in rhetoric class then "decent person" class
[16:24:30 CET] <jamrial> BBB: literally, just ignore him
[16:24:41 CET] <ubitux> btw i had no answers to my questions so i couldn't vote (and the vote looks meaningless as ffserver technical limitations will likely not be met til the drop date)
[16:25:06 CET] <j-b> BBB: you exist.
[16:25:56 CET] <BBB> if michael can remove the ffm dependency by moving it to the tools (which isnt hard, really) and then remove ffserver-related network dealings or make them an acceptable public api and remove some hacks in ffmpeg.c dealing with the server, or make them maintainable...
[16:26:00 CET] <BBB> then its done, right?
[16:26:13 CET] <BBB> thats not hard, and michael has this nagging ability to do stuff that nobody likes doing
[16:26:20 CET] <BBB> so I dont see it as impossible
[16:26:33 CET] <BBB> and if he does it, I dont see the problem
[16:27:55 CET] <ubitux> me neither
[16:28:03 CET] <ubitux> did we identify all the issues?
[16:28:13 CET] <jkqxz> wm4: The ifdef would do something funny if you build with older headers and run with a newer driver (since the profile would be there and appear to be working, but all the decoding would fail).
[16:28:28 CET] <jamrial> if someone's able to fix ffserver then horay, congrats
[16:28:31 CET] <jamrial> would have been nicer if it happened before we embarrased ourselves on the website and twitter, though
[16:28:58 CET] <jkqxz> Reading the i965 driver (the only implementation of VP9) it only reads that field if the profile is set, so it's probably ok.
[16:29:03 CET] <BBB> ubitux: I think that list I just gave is pretty complete, wbs had a more detailed list on IRC a few days ago, which was copied to the ML thread
[16:29:19 CET] <wm4> jkqxz: couldn't it just refuse init? or maybe exclude the hwaccel from some list (I don't know which)
[16:29:25 CET] <BBB> but anyway, I should go kneel in silence & :X
[16:29:25 CET] <wm4> but yeah maybe a configure check is cleaner
[16:29:33 CET] <ubitux> BBB: was the rtsp (and the like) api abuse mentioned? isn't this considered a technical issue to be solved as well?
[16:29:46 CET] <wm4> BBB: actually your talk about Trump encouraged me trying to fight it out with Nicolas
[16:29:47 CET] <jkqxz> The ifdef could have an else case with an error return, but we would prefer to fail earlier than that.
[16:30:04 CET] <BBB> ubitux: thats network dealings, yes, its how it deals with rtsp/rtp/udp/tcp etc. by using internal API
[16:30:16 CET] <ubitux> ok
[16:30:23 CET] <ubitux> when is the due date already? next release?
[16:30:27 CET] <BBB> wm4: Im not sure that was my intention, the idea was just to go and vote
[16:36:59 CET] <BBB> ubitux: I believe it was next release, yes
[16:37:41 CET] <BBB> ubitux: but since it was made conditional on technical issues being fixed but the list of technical issues wasnt exactly defined, Im fearful well go through another madhouse of crazy by the time the release comes around
[16:37:44 CET] <BBB> :(
[16:38:41 CET] <ubitux> yes, as i said, the technical issues weren't clarified even though i asked for them
[16:38:59 CET] <ubitux> the vote looks invalid to me, so i ignored it
[16:39:14 CET] <jamrial> nicolas didn't answer when that was asked, so i think it's almost a given people like andreas will argue it should be at a major bump once the time comes, because exporting internal API on shared libraries and ffm* will remain as such until then
[17:57:27 CET] <BBB> wbs: http://ffmpeg.org/pipermail/ffmpeg-devel/2016-December/204049.html in case youre not reading the ML
[17:57:45 CET] <wbs> BBB: I noticed; it should be fixed by cherrypicking 6a62795d
[17:57:59 CET] <wbs> sorry for not noticing to include that in the cherrypick patchset
[17:58:07 CET] <BBB> no problem
[17:59:06 CET] <BBB> hm, your webgit is strange
[17:59:20 CET] <BBB> like, https://git.libav.org/?p=libav.git&a=search&h=HEAD&st=commit&s=6a62795d&sr=1 returns nothing
[18:00:17 CET] <wbs> https://git.libav.org/?p=libav.git;a=commit;h=6a62795d
[18:00:35 CET] <wbs> I don't think the search field actually looks at commit hashes, only commit content
[18:02:20 CET] <BBB> ok
[18:02:25 CET] <BBB> hows 10bit asm going?
[18:02:55 CET] <wbs> not started yet, but will hopefully start soon
[18:06:36 CET] <BBB> cool, Im looking forward to it
[18:06:47 CET] <BBB> I hear some people slowly getting excited about 10bit VP9
[18:06:53 CET] <BBB> so it may start getting some use next year
[18:07:15 CET] <wbs> nice. libvpx has been getting some opts to 10 bit for arm lately as well I think
[18:09:33 CET] <nevcairiel> youtube uses it for hdr streams now
[18:11:26 CET] <BBB> did they improve their 10bit idct performance?
[18:11:41 CET] <cone-633> ffmpeg 03Martin Storsjö 07master:da5c8284c02c: aarch64: h264idct: Use the offset parameter to movrel
[18:18:29 CET] <BBB> I think it still does this strange thing where it runs the C IDCT if the coefficients are larger than some kind of threshold value, at least in the 1.6.0 release I have installed here
[18:18:38 CET] <jamrial> BBB: HDR youtube content is vp9 10bit, so i can see where the interest comes from
[18:18:44 CET] <BBB> and the threshold value is quite low for larger transforms
[18:19:05 CET] <jamrial> oh lol, missed nevcairiel saying the same thing
[18:20:06 CET] <BBB> oh I thought that code looked familiar
[18:20:10 CET] <BBB> ; Part of the functions are originally derived from the ffmpeg project.
[18:20:15 CET] <BBB> isnt there a copyright concern?
[18:20:34 CET] <BBB> (like, our license is different from theirs, BSD vs. LGPL)
[18:20:50 CET] <durandal_1707> sue sue sue
[18:21:07 CET] <BBB> so american :-p
[18:25:06 CET] <jamrial> BBB: think you could add smpte2084 trc support to vf_colorspace?
[18:25:29 CET] <BBB> wasnt koda doing that?
[18:25:55 CET] <jamrial> no idea
[18:26:18 CET] <jamrial> if he is then cool
[18:40:04 CET] <cone-633> ffmpeg 03Michael Niedermayer 07master:1296f844955e: avformat: Add max_streams option
[18:42:41 CET] <BBB> jamrial: sounds like he has soem patches in that direction, so Ill defer that to him if thats OK
[18:43:04 CET] <jamrial> BBB: cool
[19:10:25 CET] <atomnuker> kierank: so you need someone to talk about av1 at fosdem?
[19:14:46 CET] <wm4> we should have a talk about ffmpeg drama at fosdem
[19:16:19 CET] <durandal_1707> that would be more like romantic comedy
[19:39:32 CET] <kierank> atomnuker: yeah would be interesting I think
[19:39:43 CET] <kierank> Please can you submit one via pentabarf
[19:46:03 CET] <atomnuker> kierank: done, will write a more detailed description in a couple of hours, gotta go
[19:46:32 CET] <kierank> Thanks!
[20:15:59 CET] <llogan> why does ffprobe seem to only show refs=1? ffprobe -v error -show_entries stream=refs -select_streams v input.mp4
[20:16:27 CET] <llogan> although input.mp4 may have ref=3
[20:18:29 CET] <BBB> kierank: youre doing av1?
[20:18:37 CET] <BBB> <- confused
[21:01:43 CET] <BBB> michaelni: can you provide a graph with memory usage depending on the number of streams?
[21:01:52 CET] <BBB> michaelni: I think based on that we can define a sensible default
[21:02:25 CET] <BBB> if we use 100GB with 10 streams, we should probably limit it to <10, but if memory usage doesnt change much between 10k and 100k streams, maybe a limit of 1M streams is acceptable
[21:02:35 CET] <BBB> michaelni: assuming the goal is to prevent OOM scenarios
[21:11:41 CET] <michaelni> i think one actual OOM case was with around 30k-60k streams, the exact usage likely depends on the demuxer
[21:13:51 CET] <wm4> am I the only one who thinks it's stupid to try to prevent OOM for such files
[21:17:37 CET] <BBB> wm4: I personally dont care about it, but if others do care, I dont mind as long as it doesnt interfere with regular usage
[21:18:01 CET] <BBB> michaelni: so how about we set a limit of 10k or so? Maybe even 5k is ok, but 100 seems kinda low
[21:21:03 CET] <wm4> seems like a rather useful feature
[21:21:18 CET] <wm4> is it true that the files were generated by fuzzing? i.e. not even anything in the wild
[21:22:23 CET] <BtbN> https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/utils.c#L1729 does this check look wrong to anyone else? At least the error message makes no sense, and some people are having issues with packet sizes exceeding INT_MAX, which should be totally fine.
[21:24:32 CET] <nevcairiel> 2gb of packet seems not that fine
[21:24:50 CET] <BtbN> can easily happen with lossless or uncompressed 4K or something
[21:25:01 CET] <nevcairiel> for one packet? not really
[21:25:22 CET] <BBB> wm4: of course :-p
[21:25:28 CET] <Fog^> I'm dealing with this currently
[21:25:49 CET] <philipl> BtbN: https://devtalk.nvidia.com/default/topic/980859/linux/linux-375-20-cuvid-he…
[21:25:56 CET] <philipl> I'm pretty sure it's nothing to do with us, but FYI
[21:26:15 CET] <Fog^> so the situation is we recently added a feature in Dolphin Emulator to dump at the internal resolution
[21:26:23 CET] <Fog^> without caring about window size
[21:26:53 CET] <Fog^> so we got a report on the issue tracker which points out that anything higher than 5X native fails with FFV1
[21:27:06 CET] <Fog^> (because people do the weirdest things)
[21:27:10 CET] <nevcairiel> what resolutiuon would that then be?
[21:27:26 CET] <nevcairiel> even 4k uncompressed at 16-bit per component is only 66mb or s o
[21:27:29 CET] <nevcairiel> per image
[21:27:54 CET] <BtbN> philipl, yeah, if it happens with 10 bit with 8 bit output as well, I'd be worried. But for now, I won't bother fixing bugs in unrelased features
[21:28:02 CET] <nevcairiel> 2gb for one image is unimagineably large
[21:28:05 CET] <Fog^> 3200x2640
[21:28:08 CET] <Fog^> is 5x
[21:28:09 CET] <Fog^> which works fine
[21:28:19 CET] <Fog^> 6x is 3840x3168
[21:28:40 CET] <Fog^> but I think that number is incorrect in our UI
[21:29:08 CET] <BtbN> Also what I mean completely unrelated to that, something seems off with that check in general. It talks about "Invalid minimum required packet size"
[21:29:12 CET] <BtbN> But it never checks that.
[21:29:14 CET] <wm4> the limit that hits sooner is about 16000x16000
[21:29:19 CET] <Fog^> because the output of the fifo file that I'm using is producing a 5632x3168 file
[21:29:20 CET] <wm4> I know this caused problems to some people
[21:29:34 CET] <wm4> and the limit is enforced because it "could" overflow some int calculations
[21:30:02 CET] <Fog^> which produces a value of 2497921024
[21:30:04 CET] <BtbN> So the error message is just wrong?
[21:30:52 CET] <cone-633> ffmpeg 03Paul B Mahol 07master:a25114983350: avfilter/vf_deband: fix silly mistakes
[21:31:20 CET] <Fog^> then again, the listed size in the UI is the framebuffer, not the actual output
[21:32:46 CET] <BtbN> nevcairiel, what I mean with "looks wrong" is that it says the min size is invalid. But it does not check the min size
[21:34:45 CET] <llogan> oh...there was a bug report about it already.
[21:35:17 CET] <llogan> (ffprobe refs...)
[21:48:55 CET] <BtbN> it is closed :o
[21:48:58 CET] <atomnuker> 3.5 years...
[21:49:27 CET] <llogan> /me jumps out window
[21:49:48 CET] <llogan> obviously i haven't been on irc much lately...
[22:02:09 CET] <BBB> atomnuker: was the issue actually fixed? :-p
[22:02:27 CET] <BBB> (kamedo2 never reported the post-i/s fix numbers)
[22:04:23 CET] <atomnuker> yeah, long ago, that thread was just used as a place to get feedback and work on the encoder
[22:09:57 CET] <cone-633> ffmpeg 03Lou Logan 07master:ee795d9d2674: doc/muxers: remove "-strict experimental" from tee muxer examples
[22:14:01 CET] <BBB> sweet
[22:50:00 CET] <nevcairiel> what kind of weird compuation does ffv1 use there
[22:50:08 CET] <nevcairiel> the raw uncompressed image is smaller then that
[22:51:16 CET] <Fog^> nevcairiel: it's passing maxsize directly to ff_alloc_packet2
[22:51:21 CET] <nevcairiel> why multiplied by 37
[22:51:32 CET] <nevcairiel> why would one frame get 37 times bigger then its raw input
[22:51:32 CET] <BtbN> probably some weird worst-case of the compression?
[22:51:38 CET] <Fog^> damned if I know
[22:54:15 CET] <Fog^> it actually used to be 35
[22:54:36 CET] <Fog^> according to the version of ffmpeg I used to debug this
[22:58:13 CET] <nevcairiel> guessing the final output size of a codec is not an easy problem, but assuming a worst case of a 100-something raw image turning into 2gb of encoded image seems rather out there =p
[22:58:24 CET] <nevcairiel> 100-something mb that is
[23:12:38 CET] <durandal_1707> option to not compress was added later just for this case, right michaelni ?
[23:13:23 CET] <durandal_1707> version 4
[23:14:41 CET] <michaelni> yes
[00:00:00 CET] --- Fri Dec 9 2016
1
0
[00:21:45 CET] <Phi> well, I'm gonna sleep, anywho
[00:21:49 CET] <Phi> ta ta
[02:41:23 CET] <autofsckk> i want to put a png file over an animated gif, but the png is very big, is there a way to resize it while doing this? i did this but i get this jjajaja ffmpeg -i dreams-reality.gif -i ~/00ttnk/logo/logo.png -filter_complex "overlay=5:main_h-overlay_h" -codec:a copy dreams-reality-output.gif i would like to put the png in the lower right cornet, any ideas?
[02:42:02 CET] <autofsckk> and i see that it changed the quality of the gif too, it doesnt look as sharp as the original
[02:44:45 CET] <autofsckk> this one is the orignal http://imgur.com/a/rQNBq and this one http://imgur.com/a/4ugW6 what i just did
[03:26:14 CET] <CoJaBo> autofsckk: Any specific reason it has to be GIF? It's a very poor format for animations
[03:27:17 CET] <autofsckk> CoJaBo: im just expermienting with some images used at social pages
[03:28:02 CET] <autofsckk> but really i would like to really learn to use ffmpeg, its so amazing but i havent had time to learn it
[03:28:48 CET] <CoJaBo> See if it accepts webm. You can't really avoid significant generation loss with GIFs
[03:29:51 CET] <autofsckk> ok, but how do you resize a png before making the output file?
[03:32:13 CET] <autofsckk> this is great :D http://www.youtube.com/watch?v=MPV7JXTWPWI
[03:33:13 CET] <autofsckk> for begginers like me, of course :D
[05:28:04 CET] <chocolate-elvis> hey! what's the latest with ST-2084, Dolby Vision HDR? any support?
[05:36:43 CET] <TheMaskedMeowth> hi hi, i've got a question
[05:37:37 CET] <TheMaskedMeowth> i am kinda not that familiar with this program but i tried setting the path to /bin, but there is no /bin folder in the thing i downloaded
[05:38:54 CET] <TheMaskedMeowth> in fact now that i look at it
[05:39:08 CET] <TheMaskedMeowth> the thing i downloaded doesn't even have an .exe file to run
[05:40:22 CET] <DHE> so what did you download?
[05:41:07 CET] <TheMaskedMeowth> https://ffmpeg.org/download.html the big ol' button on this page
[05:42:04 CET] <DHE> that would be source code. you can run "sh configure" in the directory to prepare it, then "make" to build it.
[05:42:22 CET] <DHE> it's pretty common for unix software
[05:43:00 CET] <DHE> more info is highly googlable
[06:04:23 CET] <TheMaskedMeowth> i'm still quite confused
[06:04:28 CET] <TheMaskedMeowth> i'm sorry if i'm sounding dumb
[06:04:40 CET] <TheMaskedMeowth> but it's telling me configure's not a recognized file
[06:04:54 CET] <TheMaskedMeowth> err rather
[06:04:55 CET] <TheMaskedMeowth> sh isn't
[06:24:49 CET] <TheMaskedMeowth> sorry i left
[07:53:05 CET] <cnote> is there a freenode channel for mkvtoolnix
[08:21:17 CET] <llamapixel> cnote: https://mkvtoolnix.download/contact.html you could of googled that one mate
[08:51:07 CET] <thebombzen> autofsckk: you need to use the scale2ref filter.
[08:57:39 CET] <thebombzen> such as, ffmpeg -i input_video -i overlay.png -lavfi "[0:v] [1:v] scale2ref [b][a]; [a][b] overlay" output_options
[08:58:28 CET] <thebombzen> oops, my bad
[08:59:06 CET] <thebombzen> I mean ffmpeg -i input_video -i overlay.png -lavfi "[1:v] [0:v] scale2ref [b][a]; [a][b] overlay" output_options
[08:59:32 CET] <thebombzen> the first thing you feed to scale2ref is the thing you're scaling and the second input is the "reference"
[09:00:15 CET] <thebombzen> the reference is passed through unchanged the base is scaled. then it outputs [b] as the scaled base and [a] as the reference (because that's the order used). then it overlays [b] onto [a]
[11:11:26 CET] <booterror> How do you audio stream mp3 files?
[11:31:06 CET] <azatuni> Hello, I have a problem with ffmpeg, I am pushing stream by udp to my server and trying to encode and sent it to media server. I can see stream by vlc, but on the server ffmpeg freezs
[11:31:29 CET] <azatuni> when I am trying debug mode
[11:32:55 CET] <azatuni> http://pastebin.com/5xtQ9L3z
[11:35:12 CET] <azatuni> http://pastebin.com/Lb0Td4yV
[12:10:58 CET] <l9> what cpu stats do i need too transcode streams, i have a i7 930 cpu running on a freebsd host.
[12:11:55 CET] <superware> can someone please (please, please) take a look at https://trac.ffmpeg.org/ticket/5615 ? it's easy to reproduce so maybe it's easy to fix.
[14:01:57 CET] <JoshX> Hi! I don't get it... could anybody look at this:
[14:01:58 CET] <JoshX> http://townsville.nl/ffmpeg.txt
[14:02:31 CET] <JoshX> it shows a file i have, it should be 900 seconds at 30 fps..
[14:02:44 CET] <JoshX> it dropped some frames, but okay...
[14:03:15 CET] <JoshX> then when i demux the h264 stream from it using the command in the file.. the framerate of the h264 file is 25fps
[14:03:20 CET] <JoshX> why??
[14:06:12 CET] <furq> JoshX: h264 elementary streams don't have a framerate
[14:06:17 CET] <furq> set -r 30 before -i
[14:06:45 CET] <JoshX> lets try that
[14:07:26 CET] <JoshX> then too, could i get ffmpeg to recode my file to be lets say 25fps and exactly 22500 frames long from this h264 source?
[14:07:38 CET] <furq> i'm actually a bit surprised that works, i always thought you needed an external tool to do that
[14:07:45 CET] <furq> so maybe it does something wrong i'm not seeing
[14:08:31 CET] <JoshX> ffmpeg -r 30 -i in.mp4 -vcodec copy -an -f h264 out.h264 will give a h264 file that reports 25 fps as well
[14:08:53 CET] <furq> -r 30 -i in.h264
[14:09:13 CET] <furq> it won't work if the stream is already in a container
[14:09:20 CET] <JoshX> okay that gives me a mp4 file that is longer
[14:10:54 CET] <JoshX> okay now I have an mp4 file with the correct length and framerate so it seems
[14:11:13 CET] <JoshX> let me test
[14:37:47 CET] <JoshX> hmm I think i can detect where my gaps are in the files, could i fill those 'missing' frames with black frames?
[14:37:59 CET] <JoshX> or would that be quite impossible?
[14:38:25 CET] <JoshX> boxdumper tells me
[14:38:26 CET] <JoshX> sample_delta = 3010
[14:38:26 CET] <JoshX> sample_delta = 51002
[14:38:26 CET] <JoshX> sample_delta = 12000
[14:38:26 CET] <JoshX> sample_delta = 5995
[14:38:29 CET] <JoshX> sample_delta = 3012
[14:39:29 CET] <JoshX> these are the odd ones, there you can see i loose about 20 frames
[14:39:58 CET] <JoshX> (16 + 3 + 1 'too much')
[14:41:32 CET] <JoshX> so i know i need to insert 16 blank frames at
[14:41:33 CET] <JoshX> 31589 entry[10468]
[14:41:33 CET] <JoshX> 31590 sample_count = 1
[14:41:33 CET] <JoshX> 31591 sample_delta = 51002
[14:41:44 CET] <JoshX> frame offset 10468
[14:42:02 CET] <JoshX> but would that be doable and not taking a very long time?
[14:42:53 CET] <JoshX> in an ideal world I need all my files to be perfect, all 900seconds * 30 frames per second = 27000 frames per file
[14:43:08 CET] <JoshX> so i can overlay them on top of eachother frame by frame
[14:47:00 CET] <JoshX> perhaps the timelineeditor from l-smash could help but documentation is virtually non-existent
[16:52:45 CET] <kerio> mpv started dropping frames :\
[16:53:14 CET] <kerio> not sure why
[18:50:01 CET] <pgorley> hi all, is there an easy way to find out when a certain function was deprecated? trying to ifdef some things in my application so we use the new apis but still support the old ones
[18:51:26 CET] <c_14> git blame
[18:51:55 CET] <pgorley> thanks
[18:59:48 CET] <BtbN> you should check for when the replacement function was added
[18:59:52 CET] <BtbN> and then version check for that
[18:59:58 CET] <BtbN> And not for when it was deprecated
[20:48:12 CET] <Phi> yo folks
[20:48:49 CET] <Phi> Can someone explain the difference between QSV hardware accel, and the h264_qsv encoder?
[20:49:49 CET] <BtbN> what?
[20:50:42 CET] <Phi> --enable-hwaccel=h264_qsv vs --enable-encoder=h264_qsv
[20:51:26 CET] <Phi> there's two methods of specifying QSV, and two different ways to access in code, I'm guessing
[20:54:59 CET] <jkqxz> No. The QSV hwaccel isn't a real hwaccel. It's just used as a strange way of signalling to the QSV decoder that you want output in GPU surfaces rather than in normal memory. (If you try to use it without the QSV decoder, it is silently ignored.)
[20:56:56 CET] <Phi> alrighty
[21:04:43 CET] <Phi> So if I'm switching from H264 native encoder to H264_QSV, should I need to change anything?
[21:05:03 CET] <Phi> atm I'm getting error -15, incompatible video params
[21:05:23 CET] <Phi> *invalid video params, even
[21:06:46 CET] <Phi> I am getting it to work with the static EXE build, though
[21:06:47 CET] <jkqxz> There should be an explanatory error message of some kind.
[21:07:14 CET] <Phi> h264_qsv : Error initializing the encoder, MFXVideoENCODE_Init returned -15
[21:07:14 CET] <Phi> Couldn't open video file codec context: avcodec_open2 failed with error -22: Invalid argument.
[21:07:27 CET] <Phi> that's all I have in the log
[21:09:54 CET] <jkqxz> Hmm, yeah. That stuff is all a bit horrible because it requires specific sets of parameters (which vary by platform/version) and if you get anything wrong it just says "nope!" and refuses to do anything.
[21:12:11 CET] <Phi> not as bad as some issues I've had, though
[21:12:25 CET] <Phi> Visual Studio NuGet *shiver*
[21:16:08 CET] <jkqxz> I would suggest getting the encode setup you want working in ffmpeg, then copy the parameters from a working AVCodecContext there.
[21:17:11 CET] <Phi> well, atm I'm copying from a received RTSP H264 stream
[21:17:43 CET] <Phi> one difference I've noted is that the received stream is YUV420P, and apparently Intel QSV requires NV12
[21:18:18 CET] <Phi> so I may have to swap the U/V planes
[21:19:03 CET] <jkqxz> Yep, all hardware uses NV12. Converting manually isn't too bad, or swscale can do it for you.
[21:24:51 CET] <Phi> if YUV420P -> NV12 is literally just swapping U/V (which from some docs I read a while back it is) then swscale will be somewhat slower
[21:25:01 CET] <Phi> than just manually doing it
[21:25:20 CET] <JEEB> NV12 is not just swapping chroma planes
[21:25:39 CET] <JEEB> NV12 is a single plane for luma (same as standard planar 4:2:0), but then chroma planes are *packed*
[21:25:54 CET] <JEEB> so it's like YYYYYY.... CbCrCbCrCbCr...
[21:26:09 CET] <JEEB> instead of YYYYYYY... CbCbCbCbCb.... CrCrCrCrCr....
[21:28:16 CET] <Phi> ah, okay
[21:28:20 CET] <Phi> that seems painful
[21:32:40 CET] <JEEB> you probably were thinking of VFW I420 and YV12
[21:32:52 CET] <JEEB> which are YCbCr and YCrCb all planar
[21:33:11 CET] <JEEB> NV12 seems to be efficient if you put effort into it
[21:33:18 CET] <furq> there aren't enough names for pixel formats
[21:33:18 CET] <JEEB> x264 converte itself into it
[21:36:35 CET] <BtbN> Yeah, all the hardware encoders want it, there must be something to it.
[21:36:46 CET] <Phi> kinda dumb this RTSP stream is in YUV420P then
[21:37:01 CET] <JEEB> it's not that if it's not raw
[21:37:17 CET] <JEEB> it's just that software decoders in lavc generally output 4:2:0 in full planar
[21:37:19 CET] <JEEB> :P
[21:38:16 CET] <JEEB> also a lot in libswscale and friends only supports planar 4:2:0
[21:38:32 CET] <JEEB> in any case it should not be too much of a difference :P
[21:38:54 CET] <llogan> atomnuker: is #2686 considered fixed?
[21:40:27 CET] <llogan> bah, wrong channel
[21:41:47 CET] <Phi> so wait, lavc decodes from NV12 to YUV420P then has to be re-encoded?
[21:41:56 CET] <Phi> T_T ima sue
[21:49:58 CET] <JEEB> encoded data is completely separate anyways
[21:50:18 CET] <JEEB> and planar/packed is the same data in a different order
[21:50:32 CET] <JEEB> (and packed together, as the name implies)
[21:51:21 CET] <JEEB> the format you're decoding just decodes into 4:2:0 YCbCr, which format your decoder outputs it as is a completely different discussion
[22:01:26 CET] <BtbN> most encoders, even hardware ones like nvenc, support planar input now
[22:01:38 CET] <BtbN> But convert to nv12 internally, maybe with the help of the hardware
[22:02:06 CET] <Phi> okay
[22:02:10 CET] <Phi> so scurrying on
[22:02:30 CET] <Phi> I have a minimum list of params for MFXVideoENCODE_Init
[22:02:53 CET] <Phi> which is in https://software.intel.com/sites/default/files/managed/47/49/mediasdk-man.p… on page 224
[22:03:04 CET] <Phi> but I can't see where in ffmpeg to set those
[22:06:09 CET] <Phi> the only ffmpeg QSV example is Linux-only
[22:06:23 CET] <Phi> and is heavily reliant on VA API
[22:39:33 CET] <Phi> sigh
[22:39:39 CET] <Phi> I guess that's a no?
[22:46:35 CET] <jkqxz> The libav example is cleaner <https://git.libav.org/?p=libav.git;a=blob;f=doc/examples/qsvdec.c;hb=HEAD>.
[22:47:39 CET] <jkqxz> Not sure whether it actually works in ffmpeg, though. It could depend on something hasn't been merged yet, though it looks like it might work.
[22:59:09 CET] <Phi> still, at least it doesn't mention VA API
[22:59:14 CET] <Phi> cheers
[23:03:25 CET] <Phi> hm, it does seem to refer to av_hwframe
[23:06:27 CET] <Phi> ffmpeg's example doesn't use that
[23:40:24 CET] <john_k_h> vp9
[00:00:00 CET] --- Fri Dec 9 2016
1
0
[00:33:39 CET] <cone-485> ffmpeg 03James Darnley 07master:f33714a6948f: avcodec/h264: clean up and expand x86 function definitions
[00:33:40 CET] <cone-485> ffmpeg 03James Darnley 07master:58ca2ef62e7c: whitespace changes after last commit
[00:33:41 CET] <cone-485> ffmpeg 03James Darnley 07master:add21d0bb3f5: avcodec/h264: mmx2, sse2, avx 10-bit h chroma deblock/loop filter
[00:33:42 CET] <cone-485> ffmpeg 03James Darnley 07master:728651df06f4: avcodec/h264: mmx2, sse2, avx 10-bit 4:2:2 h chroma deblock/loop filter
[00:42:24 CET] <rcombs> atomnuker: decoding https://www2.iis.fraunhofer.de/AAC/7.1auditionOutLeader_v2_rtb.mp4 spews errors/warnings; could you confirm if they're valid?
[00:42:37 CET] <rcombs> (if they are, maybe they should be printed just once?)
[00:44:49 CET] <cone-485> ffmpeg 03Steven Liu 07master:6b95da9af91c: avformat/hlsenc: save the EXT-X-DISCONTINUITY from old list
[01:20:37 CET] <peloverde> rcombs: The set of errors I'm seeing look suspicious but it's been a while sine I've worked on the code
[01:20:54 CET] <atomnuker> rcombs: I fixed that for 5.1 such that it only gets printed once (IIRC)
[01:21:28 CET] <rcombs> atomnuker: I'm not missing any relevant commits here
[01:21:59 CET] <rcombs> (I'm behind by one commit in lavc/aacdec*.c, but it's just a change to the sample-request lines)
[01:22:18 CET] <rcombs> [aac @ 0x7f9c5382e200] Invalid bitstream - cannot apply SBR to element type 6
[01:22:18 CET] <rcombs> [aac @ 0x7f9c5382e200] element type mismatch 0 != 6
[01:22:18 CET] <rcombs> Last message repeated 22 times
[01:22:22 CET] <rcombs> ^ I get a lot of this
[01:22:36 CET] <rcombs> which is somewhat different from the 5.1 lines, iirc
[01:23:25 CET] <peloverde> I think there is a bug surrounding elem_type_prev with multiple FIL elements
[02:11:01 CET] <peloverde> rcombs: I sent a patch to the list to fix an actual bug that I think the stream exposes
[02:12:20 CET] <rcombs> oh, heh
[02:17:10 CET] <peloverde> You "cannot apply SBR to element type 6" because element type 6 isn't audio channel(s)
[02:57:02 CET] <KGB> [13FFV1] 15michaelni pushed 1 new commit to 06master: 02https://git.io/v1E3S
[02:57:02 CET] <KGB> 13FFV1/06master 14809967a 15dericed: convert code-in-tables to tables-in-codeblocks...
[08:47:47 CET] <root> quit
[09:08:08 CET] <ElAngelo> /etc/systemd/network/MyDhcp.network
[10:18:16 CET] <superware> I need to embed "user data" per frame in h264, is this something ffmpeg (libavcodec) can do?
[10:23:43 CET] <superware> (or "unregistered data"...)
[17:24:23 CET] <cone-479> ffmpeg 03Michael Niedermayer 07master:c188f358aaee: avcodec/wavpack: Treat the first block coding too many channels as an error
[20:50:33 CET] <cone-479> ffmpeg 03Vittorio Giovara 07master:8f58ecc344a9: lavu: Add AVSphericalMapping type and frame side data
[20:50:34 CET] <cone-479> ffmpeg 03Vittorio Giovara 07master:e7a6f8c972a0: lavc: Add spherical packet side data API
[20:50:35 CET] <cone-479> ffmpeg 03Vittorio Giovara 07master:4dcdecf4719a: mov: Export spherical information
[20:50:36 CET] <cone-479> ffmpeg 03Vittorio Giovara 07master:0c0da45f0fc0: fate: Add a monoscopic spherical mov test
[20:55:20 CET] <durandal_1707> jamrial: there is user on #ffmpeg having problems compiling ffmpeg after your yasm
[20:56:16 CET] <J_Darnley> Do you mean me rather than him?
[20:56:50 CET] <durandal_1707> probably, sorry!
[20:57:25 CET] <J_Darnley> Has he given you a pastebin of the error or shall I go ask myself?
[20:59:06 CET] <durandal_1707> he is using mingw with MSVC, I told him to open bug report
[21:00:04 CET] <drv> http://pastie.org/private/wptu9nj3gra8pl7xjb1ow
[21:04:36 CET] <J_Darnley> Oh cock. It might be the failure reported here: http://fate.ffmpeg.org/log.cgi?time=20161207200321&log=compile&slot=x86_32-…
[21:07:05 CET] <durandal_1707> J_Darnley: yup that is same assert he reported
[21:08:39 CET] <J_Darnley> Bloody msvc users!
[21:09:34 CET] <durandal_1707> heh, just drop support for them :)
[21:35:18 CET] <J_Darnley> Can someone with 32-bit msvc test a patch on fate?
[21:35:39 CET] <J_Darnley> nevcairiel: you own the machine I was looking at on fate, can you?
[21:40:36 CET] <J_Darnley> http://pastebin.com/NhNEmnQ2
[21:41:51 CET] <BBB> J_Darnley: you can change 2*mmsize into -2*mmsize
[21:42:00 CET] <BBB> J_Darnley: since I dont think you use r%dm anywhere in your assembly
[21:42:14 CET] <BBB> J_Darnley: so you dont need the stack register at all (its just to keep access to r%dm)
[21:42:37 CET] <BBB> oh wait you use alpha_m, nevermind
[21:42:44 CET] <J_Darnley> I do *now*
[21:43:16 CET] <BBB> oh right, at least deblock_h_chroma422_10 didnt before
[21:43:22 CET] <BBB> change stack mem to a negative number
[21:43:23 CET] <BBB> that fixes it
[21:43:34 CET] <BBB> and then you should be fine
[21:43:50 CET] <BBB> (this is documented somewhere obscure but nobody knows about it)
[21:45:27 CET] <J_Darnley> That only prevents use of the original stack, right? Because I do use it for storing mm regs.
[21:45:37 CET] <BBB> yes, argument stack only
[21:46:39 CET] <BBB> otherwise whats the point of reserving stack memory if you cant use it ;)
[21:47:15 CET] <J_Darnley> Fucking yasm! -2 is a totally fine number!
[21:48:29 CET] <BBB> haha
[21:48:32 CET] <BBB> 0 - 2 * mmsize
[21:48:40 CET] <BBB> dont ask me, yasm is extremely obscure sometimes
[21:49:24 CET] <J_Darnley> I wonder if nasm has that same bug.
[21:49:29 CET] Action: J_Darnley reconfigures
[21:50:12 CET] <BBB> dunno
[21:50:17 CET] <BBB> but we want to support both anyway right?
[21:50:56 CET] <J_Darnley> Maybe, maybe not if yasm doesn't get updates for new instructions.
[21:51:14 CET] <BBB> for now, we support yasm
[21:51:36 CET] <BBB> not telling you what to use personally, just telling you it has to work w/ yasm for users ;)
[21:51:47 CET] <J_Darnley> True.
[21:52:07 CET] <J_Darnley> hONecA5ss
[21:52:18 CET] <J_Darnley> Ooops, pretend you guys didn't see that!
[21:54:38 CET] <Shiz> hONecA5ss
[21:55:51 CET] <J_Darnley> nasm does *not* have that bug. I'm sold
[22:02:58 CET] <kierank> J_Darnley: don't worry it appeared as ******* for me
[22:03:03 CET] <kierank> hunter2
[22:03:19 CET] <J_Darnley> Ha. OLD!
[22:05:53 CET] <JEEB> :D
[22:09:05 CET] <durandal_1707> is that Facebook pass?
[22:09:42 CET] <J_Darnley> No. My user password on my "dev server"
[22:10:02 CET] <J_Darnley> Well, part of it anyway. I alt-tabbed too soon
[22:10:28 CET] <jamrial> J_Darnley: you could have just pretended it was part of a pastebin link you already deleted :p
[22:11:11 CET] <J_Darnley> I could but that isn't very fun
[22:11:13 CET] <BBB> J_Darnley: patch is ok ;)
[22:27:16 CET] <atomnuker> BBB: that doesn't mean we should break the build for anyone using nasm
[22:27:34 CET] <BBB> I wasnt intending to do that?
[22:27:44 CET] <BBB> I think I was suggesting to unbreak yasm
[22:28:19 CET] <atomnuker> yeah, it just that you said "we support yasm" as if it's the only thing we support, nvm
[22:29:15 CET] <BBB> np, sorry for the misunderstanding
[22:35:36 CET] <Zeranoe> Well, my hosting provider did it again. Someone is scripting a bulk download, and it's crushing my bandwidth
[22:37:49 CET] <Compn> :(
[22:38:23 CET] <Zeranoe> I wish I knew who/what it was
[22:38:50 CET] <Compn> Zeranoe : i wonder if you ask a university, say UofM for some free hosting?
[22:39:09 CET] <Compn> they have internet2 setup too i think. plenty to go around
[22:39:37 CET] <Zeranoe> How ironic, I'm trying to get into that university
[22:39:47 CET] <Compn> http://its.umich.edu/
[22:39:49 CET] <Compn> haha
[22:39:55 CET] <Compn> well maybe its a good way to get in
[22:40:07 CET] <Compn> get a good contact at the it dept...
[22:40:15 CET] <Compn> they give a good word for you to get in
[22:40:28 CET] <Zeranoe> I'm not going to CS, but it would be if I was
[22:40:49 CET] <Compn> they can put in a good word for you, even if you want a liberal arts degree :P
[22:41:05 CET] <Zeranoe> Probably
[22:41:17 CET] <Compn> cant hurt to make a few calls no doubt
[22:42:54 CET] <Zeranoe> Anyone good at investigating or know of any software that would specifically use ffmpeg-20160712-df1dc52-win32-static.zip ? Whoever this is was crushing that version until I removed it, and they switched to 3.2 last night.
[22:43:19 CET] <Compn> you arent getting any referrer info ? useragent info ?
[22:44:01 CET] <Compn> how many downloads per day ? this might help us eliminate some smaller software releases...
[22:44:11 CET] <Zeranoe> I haven't looked but this is 100% scripted behavior
[22:44:16 CET] <Compn> yes
[22:44:25 CET] <Compn> but if you tell use the useragent is NSIS installer or something else
[22:44:33 CET] <Compn> we can at least make some informed guesses.....
[22:44:42 CET] <Compn> and eliminate some other players.
[22:45:19 CET] <Zeranoe> In November it was hit 173,896 times
[22:45:46 CET] <Compn> ok, then that probably eliminates something like kodi for windows
[22:46:09 CET] <nevcairiel> big projects also ship their own customized builds
[22:46:42 CET] Action: Compn wants useragent infos
[22:47:00 CET] <Zeranoe> Looking now
[22:48:12 CET] <jamrial> Zeranoe: implement a captcha. it will take like one day for whoever is shipping a script that downloads binaries from your website to ask you why it's not working anymore
[22:48:32 CET] <Compn> jamrial : yeah, Zeranoe discussed this before. captchas suck :P
[22:48:41 CET] <Zeranoe> "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
[22:48:46 CET] <Compn> mmmmmm
[22:48:52 CET] <jamrial> china then?
[22:48:56 CET] <Compn> baidu spider
[22:49:01 CET] <Compn> of course china
[22:49:08 CET] Action: Compn shakes fist at china
[22:49:28 CET] <Compn> Zeranoe : your robots.txt any good ?
[22:49:44 CET] <Zeranoe> Another "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0))"
[22:50:06 CET] <Compn> http://help.baidu.com/question?prod_en=master&class=Baiduspider
[22:50:29 CET] <nevcairiel> IE useragents is something people like to use for their home-made downloaders to avoid blockage =p
[22:50:37 CET] <Zeranoe> Ok, this looks like the one "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0"
[22:50:44 CET] <JEEB> &32
[22:50:59 CET] <Compn> yea thats just a generic one
[22:51:00 CET] <Compn> hmm
[22:51:06 CET] <nevcairiel> firefox 15 has to be a script, so old :D
[22:52:11 CET] <Zeranoe> One of the high traffic IPs is from Ecuador
[22:52:23 CET] <wm4> so, ddos?
[22:52:48 CET] <nevcairiel> its not that high traffic to bring the server down, just to annoy the hoster
[22:52:57 CET] <Zeranoe> It's not consistent though
[22:52:57 CET] <nevcairiel> (and in turn bring the server down =P)
[22:53:14 CET] <Compn> what ip in ecuador
[22:53:27 CET] <Zeranoe> Hm two IPs from Ecudaor now, crushing it
[22:53:45 CET] <Compn> they just download the same ffmpeg binary over and over again ?
[22:53:50 CET] <Zeranoe> 181.112.109.63 and 190.12.51.144
[22:53:57 CET] <Zeranoe> Yup
[22:54:58 CET] <Zeranoe> That same user agent for both, and lots of requests at the same time, but not for very long
[22:56:14 CET] <Compn> first one looks like an isp range
[22:56:49 CET] <Compn> second same thing
[22:57:21 CET] <bencoh> why would anyone keep downloading the same version anyway?
[22:58:07 CET] <Compn> if it were multiple ips, it would be users of some software that upgraded
[22:58:31 CET] <Compn> but if there are one or two ips downloading the same ffmpeg, that makes no sense to me. unless its some kind of proxy
[22:58:57 CET] <bencoh> or university / campus / whatever behind a NAT, but ...
[22:59:41 CET] <Compn> Zeranoe : easiest solution would just be to limit speed to the one or two ip addy that take the bandwidth heh
[22:59:48 CET] <jamrial> universities have their own ip ranges, usually
[22:59:59 CET] <nevcairiel> maybe not in ecuador
[23:00:07 CET] <Compn> ipv4 is running out :P
[23:00:23 CET] <bencoh> yeah I suspect ecuador joined the party a tad late
[23:00:29 CET] <nevcairiel> could be a company that has some tool on all their internal pcs that randomly all start to update
[23:00:31 CET] <cone-479> ffmpeg 03James Darnley 07master:acdd2d805d23: avcodec/h264: resolve assert being triggered when stack is not aligned
[23:00:45 CET] <Compn> but i think he means univ have their own internet hosts... they dont usually use 3rd party companies
[23:01:11 CET] <Compn> e.g. .edu domain
[23:01:19 CET] <nevcairiel> edu is really only a US thing
[23:02:02 CET] <jamrial> edu.$ccTDL is pretty common
[23:02:10 CET] <Compn> yeah edu.blah
[23:02:22 CET] <J_Darnley> The UK decided to be special there.
[23:02:27 CET] <J_Darnley> .ac.uk
[23:02:37 CET] <nevcairiel> academic?
[23:02:49 CET] <J_Darnley> Maybe, I'd have to look it up though.
[23:03:10 CET] <Compn> plenty of other countries using .edu though. https://www.tilburguniversity.edu/
[23:03:44 CET] <nevcairiel> its more like individual universities doing so
[23:04:00 CET] <Zeranoe> Hm, I'm seeing IPs all over the board, Indonesia now
[23:04:51 CET] <Compn> is there anyway to ... uh... collect them and organize them. maybe find some pattern
[23:04:54 CET] <Zeranoe> And Cameroon. Nice, didn't even know they had internet there
[23:05:07 CET] <nevcairiel> internet is everywhere these days
[23:05:09 CET] <Compn> or give us access to the awstats for your site :P
[23:05:47 CET] <Zeranoe> They all seem to be using Firefox, with that generic string, but the version is varying.
[23:06:15 CET] <Compn> ok, i was just hoping there would be a clue , maybe language or installer version, but i guess not.
[23:06:30 CET] <Compn> is there a pattern, can you give us the exact day that the large number of downloads happens?
[23:06:39 CET] <Compn> maybe we can correlate that with the release of some video editing software ?
[23:07:07 CET] <Compn> or video game or ... this is not going to be easy
[23:07:29 CET] <Compn> why not put up a message on your website "hey, whoever is direct linking to these, please stop or identify yourself' ?
[23:08:08 CET] <Zeranoe> I was thinking about that, but they went a month before updating from the build I knew they were hitting before, so....
[23:54:01 CET] <Zeranoe> Here is a log of all requests to the suspect archive in Oct. http://zeranoe.com/shared/OSG3l8E2rvfWdhCS/traffic.zip I put it in a zip because the log is >300MB uncompressed.
[23:55:06 CET] <Zeranoe> If anyone would like to help make sense of it I would be grateful
[00:00:00 CET] --- Thu Dec 8 2016
1
0
[00:04:30 CET] <twtduck> Hey guys, I'm having trouble concatenating videos. I followed the directions on the site (https://trac.ffmpeg.org/wiki/Concatenate) but I get the following error:
[00:05:05 CET] <twtduck> [concat @ 0x5565ab090a60] Unsafe file name '/home/thomas/Videos/dcm/00001.mp4' mylist.txt: Operation not permitted
[00:10:52 CET] <c_14> put -safe 0 before -i
[00:12:35 CET] <twtduck> Okay
[00:16:59 CET] <twtduck> It just finished, and it seems to have broken the video
[00:17:52 CET] <twtduck> Is there a different approach? Or should I convert the videos to a different format before concatenating (in my experience, ffmpeg doesn't play nice with mp4 files)
[00:22:09 CET] <c_14> mpegts concatenates very easily
[01:53:23 CET] <Sashmo> can anyone help me with this command... it looks like a mess, but my overlay is not happening at all... I can see video, but there is no logo overlay.... any suggestions?
[02:25:09 CET] <blue_misfit> hey with the drawtext filter, how can I make fontsize relative to the video width?
[02:25:25 CET] <blue_misfit> like if I want to have text that will always be 90% of the width of the video for example
[05:18:47 CET] <Sashmo> can anyone help me with this command... it looks like a mess, but my overlay is not happening at all... I can see video, but there is no logo overlay.... any suggestions? http://pastebin.com/2SsvMeN3
[07:31:18 CET] <CwiH> where is that, securetransport at?
[10:04:54 CET] <benbro> is this live webcast using hls or dash?
[10:04:56 CET] <benbro> https://cloudwebinars.withgoogle.com/live/kubernetes-emea/watch/webcast
[10:04:58 CET] <benbro> how can I tell?
[10:10:38 CET] <ikevin> benbro, it seem's that youtube live streams don't support hls
[10:11:13 CET] <furq> youtube live streams support both as far as i can tell
[10:11:34 CET] <benbro> ikevin: I can see a new mp4 chunk every few seconds
[10:11:39 CET] <benbro> is it hls or dash?
[10:12:00 CET] <BtbN> Can be both.
[10:12:05 CET] <furq> http://vpaste.net/P134T
[10:12:07 CET] <superware> I need to embed "user data" per frame in h264, is this something ffmpeg (libavcodec) can do?
[10:12:23 CET] <furq> youtube-dl only shows hls streams, but in my browser network panel i'm getting mpd manifests and mp4 fragments
[10:12:36 CET] <furq> so i guess they're using both now
[10:12:47 CET] <BtbN> there is one mpd manifest, with all the other streams in it
[10:19:42 CET] <benbro> thanks
[10:23:45 CET] <superware> (or "unregistered data"...)
[15:31:05 CET] <JoshX> Hello :-) I have a file, mp4, h264, which reports the framerate to be 25/2 but actually is 25/1
[15:31:15 CET] <JoshX> the file reports to be 30 minutes and 22500 frames
[15:31:28 CET] <JoshX> but it is 15 minutes and 22500 frames -> 25 FPS
[15:31:38 CET] <JoshX> any way to fix the framerate and only the framerate?
[15:31:43 CET] <JoshX> without transcoding the whole file?
[15:35:38 CET] <furq> JoshX: not with ffmpeg, but mp4box can do it
[15:37:08 CET] <JoshX> ah let me google that cheers
[15:37:27 CET] <JEEB> one of the l-smash tools also lets you edit the timeline
[15:37:31 CET] <JEEB> timelineditor I think
[15:37:44 CET] <JoshX> is there a CLI tool that could do it?
[15:37:52 CET] <furq> mp4box has a cli
[15:37:54 CET] <JoshX> ah mp4box is cli
[15:37:58 CET] <JoshX> :-)
[15:38:06 CET] <furq> mp4box -add foo.h264:fps=25 -new foo.mp4
[15:38:15 CET] <furq> you'll need to demux the h264 stream first, which you can do with ffmpeg
[15:38:20 CET] <JEEB> huh
[15:38:26 CET] <JEEB> then you'd probably want to poke timelineeditor :)
[15:38:28 CET] <JEEB> from l-smash
[15:38:40 CET] <furq> if you can do that inplace then yeah, that sounds easier
[15:39:23 CET] <JoshX> its so strange.. i just saved an RTSP stream from the camera straight to disk.. and the framerate is 12.5 now.. and the duration is reported as 30 minutes but span 15 minutes in the 'real' world :)
[15:40:52 CET] <JEEB> always trust the actual PTS values rather than some average that ffmpeg comes up with ;)
[15:41:35 CET] <JoshX> well everything i play it with and analyze it with tells me 25/2 FPS and 1799.992seconds as duration
[15:42:04 CET] <JoshX> but it is half of that :)
[15:42:17 CET] <JoshX> and playing it as 200% is fine in mediaplayers
[15:42:42 CET] <JoshX> it was a chines camera.. perhaps some nasty h264 implementation ;)
[15:42:46 CET] <JoshX> chinese*
[15:48:03 CET] <JoshX> JEEB: i have the timelineeditor installed.. do you know how to use it? or is google my best friend in this?
[15:50:13 CET] <JoshX> JEEB: i find your name in relation to l-smash :-O on a japanese site?
[15:52:33 CET] <JEEB> --help is your best friend :)
[15:52:39 CET] <JEEB> and yeah, I've been kind of related to it :D
[15:53:07 CET] <JEEB> L-SMASH got nice adoption by some places, like twitter :D
[15:53:17 CET] <JEEB> as a liberally licensed ISOBMFF library
[15:53:31 CET] <JEEB> also another video site uses L-SMASH as well :)
[15:55:20 CET] <JoshX> well i did --help ofcourse
[15:56:00 CET] <JoshX> but then, what do i specify.. --media-timescale or --media-timebase
[15:56:19 CET] <JoshX> and then? a factor? or a precentage? or a fps?
[15:57:01 CET] <JoshX> the --skip and --delay options will be usefull for me too by the way, but that is not for now :-)
[15:59:33 CET] <JoshX> so a little hint would be nice ;)
[16:00:51 CET] <JoshX> or it is the timecode file option, but what would i need then?
[16:04:37 CET] <sardok> Hi i would like know complex_filter paramter's evaluation frequency. Is it evaluated per frame or is it periodically evaluated like every millisecond?
[16:07:28 CET] <Phi> ffmpeg -vcodec h264_qsv -rtsp_transport tcp -i "rtsp://user:pass@domain:554/h264/ch29/sub/av_stream" "X:\h264frames\testoutput.mp4" --> ffmpeg crash
[16:07:32 CET] <Phi> always fun
[16:10:44 CET] <Phi> appears it crashes when you use h264_qsv for input codec
[16:11:00 CET] <Phi> when you use it for output, you get "Selected ratecontrol mode is not supported by the QSV runtime. Choose a different mode."
[16:18:01 CET] <Phi> http://pastie.org/private/tbpjlnf4w877sqyr7skfa any help fellahs?
[16:21:45 CET] <jkqxz> Update. libmfx/qsv was totally broken for a while earlier this year.
[16:23:24 CET] <Phi> When was it fixed?
[16:23:58 CET] <Phi> the ffmpeg exe I'm using for testing is from 18th July, but I'm using ffmpeg C++ statically that's from 8th Nov, same issues
[16:24:40 CET] <Phi> (although from memory I couldn't compile the ffmpeg EXE with the cmdl I used to produce a static lib)
[16:24:42 CET] <JoshX> JEEB: i don't get what to change ... --media-timescale <integer> or --media-timebase <integer> gives an error, no matter what integer i put there
[16:35:02 CET] <jkqxz> Phi: Some time in November, I think.
[16:43:41 CET] <Phi> that's awkward
[16:43:55 CET] <Phi> I'll give Zeranoe's nightly build a try, see if that one works
[16:45:37 CET] <Phi> ...and for some reason it's downloading at 14kb/s
[16:47:54 CET] <Sashmo> can anyone help me with this command... it looks like a mess, but my overlay is not happening at all... I can see video, but there is no logo overlay.... any suggestions? http://pastebin.com/2SsvMeN3
[16:52:33 CET] <Phi> restarted the download, it was fast, and that ffmpeg works
[16:52:38 CET] <Phi> time to git pull
[16:55:35 CET] <JoshX> well the plot thickens
[16:55:42 CET] <JoshX> the MP4 container has a framerate of 25/2 but the demuxed h264 file (ffmpeg -i in.mp4 -vcodec copy -an -f h264 in.h264) has a framerate of 25/1
[16:55:46 CET] <JoshX> its so strange :-O
[17:11:33 CET] <JoshX> thanks for thinking about my problem, but it was really much simpler than i imagined :-)
[18:07:18 CET] <Phi> http://pastie.org/private/xvu1hfsrnfeg3jymh2fo5w okay, now I'm getting errors with h264
[18:07:25 CET] <Phi> while make'ng
[18:12:52 CET] <Phi> libavcodec/x86/h264_deblock_10bit.asm:1078: warning: (ASSERT:2) assertion ``8 <= 7'' failed
[18:18:10 CET] <durandal_1707> Phi: what Yasm version?
[18:43:40 CET] <Phi> yasm 1.3.0
[19:06:53 CET] <durandal_170> Phi: it works fine here
[19:07:08 CET] <Phi> hmm
[19:07:13 CET] <Phi> I'll post the configure I'm using then
[19:08:17 CET] <Phi> it's worth noting I'm compiling with mingw on Windows, using MSVC toolchain
[19:08:20 CET] <Phi> http://pastie.org/private/wptu9nj3gra8pl7xjb1ow
[19:10:02 CET] <Phi> the end result is static libraries, using RTSP -> file, MPEG4/MJPEG video codecs
[19:13:13 CET] <Phi> ...well, it should be anyway
[20:04:59 CET] <Phi> judging from old commits, it was James screwing up everything
[20:05:06 CET] <Phi> so I rolled back his commits
[20:22:42 CET] <Phi> yep, it was James
[20:22:45 CET] <Phi> dammit, James
[20:25:40 CET] <Phi> rolling back to 58ca2ef62e7c3e0b9f17d7ed3e435f996aa061fe fixed it
[20:56:19 CET] <durandal_1707> Phi: report/open bug report on our bug tracker
[20:58:59 CET] <J_Darnley> So I understand someone is having trouble with some assembly?
[21:00:05 CET] <durandal_1707> Phi: ^
[21:05:27 CET] <Phi> configure: http://pastie.org/private/wptu9nj3gra8pl7xjb1ow , make error is http://pastie.org/private/xvu1hfsrnfeg3jymh2fo5w
[21:05:58 CET] <Phi> using mingw64, Windows 10, VS 2015 MSVC
[21:06:25 CET] <Phi> rolling back to 58ca2ef62e7c3e0b9f17d7ed3e435f996aa061fe fixed it, it make'd as expected
[21:08:45 CET] <Phi> does that help J_Darnley :3
[21:09:45 CET] <Phi> well, the configure I pastie'd above doesn't make properly using the most recent commit
[21:32:21 CET] <J_Darnley> Phi: can you run the fate tests if I give you a patch?
[21:40:26 CET] <J_Darnley> Phi: even if you can't do that can you tell me whether this compiles? http://pastebin.com/NhNEmnQ2
[21:50:46 CET] <Phi> if you give me an idiot's guide "just type this into mingw" then I could do whatcha want
[21:51:20 CET] <Phi> it does take my system about half an hour to configure/make, I'm not sure why as it's SSD i7 32GB RAM stuff
[21:52:18 CET] <Phi> I've not used fate and I'm not sure what to do with that second link
[21:55:21 CET] <J_Darnley> fork() is slow as hell on Windows making unix shell slow
[21:58:01 CET] <Phi> mkay
[21:58:50 CET] <J_Darnley> No need to test, this should be fine. http://pastebin.com/DMSX5VBG
[21:59:34 CET] <Phi> so you want me to update to most recent and try config/make again?
[22:00:26 CET] <J_Darnley> You don't have to. If you want to stick with a commit before my bug, that is fine.
[22:01:08 CET] <Phi> Whatever will help you, I have my libs already
[22:01:55 CET] <J_Darnley> Then yes, go back to latest, apply the patch, configure, make, report problems.
[22:03:46 CET] <Phi> on a side note, is there a better QSV example than the decoding VA-API one?
[22:04:22 CET] <J_Darnley> No idea here, sorry.
[22:05:19 CET] <Phi> rats
[22:09:22 CET] <J_Darnley> Oh, if you didn't know, the -j switch for make will run things in parallel.
[22:10:08 CET] <Phi> that might speed stuff up
[22:10:42 CET] <J_Darnley> Give an argument equal to the number of cores you have. (Some suggest more)
[22:11:52 CET] <Phi> hyperthreading cores or "real" cores?
[22:12:13 CET] <J_Darnley> I don't know. People don't benchmark it that carefully.
[22:14:45 CET] <J_Darnley> Phi: are you kindly testing the patch for me?
[22:16:51 CET] <Phi> I am
[22:17:23 CET] <Phi> For some reason whenever I run git pull, it deletes libmfx.lib from mingw
[22:17:23 CET] <J_Darnley> Thank you very much.
[22:17:32 CET] <Phi> so my first configure just failed
[22:18:07 CET] <Phi> I added it back in and now I'm running the configure again
[22:23:16 CET] <rage> hey, dont know if this has been reported but the windows builds download server seems down
[22:23:55 CET] <Phi> it was acting oddly earlier
[22:24:26 CET] <Phi> I have the static nightly win64 zip for today if you want it
[22:25:14 CET] <rage> nah, nothing urgent on my side, but thanks !
[22:25:30 CET] <Phi> alrighty, it was a long shot anyway
[22:30:50 CET] <Phi> configure done, making
[22:33:55 CET] <Phi> looks like "real" cores are the way to go
[22:34:45 CET] <Phi> yo Zeranoe
[22:35:17 CET] <Phi> same error J_Darnley, although output has changed a bit
[22:35:39 CET] <J_Darnley> Did you apply the second patch?
[22:35:49 CET] <Phi> I just updated to master, how do I check that?
[22:36:14 CET] <beo> hi, http://ffmpeg.zeranoe.com/builds/ this says "403 Forbidden"
[22:36:26 CET] <Zeranoe> I am aware
[22:37:13 CET] <J_Darnley> Are you using git, Phi?
[22:37:28 CET] <Phi> yeah
[22:37:41 CET] <J_Darnley> Download the patch http://pastebin.com/DMSX5VBG (the raw button)
[22:37:50 CET] <J_Darnley> then: git apply FILENAME
[22:37:59 CET] <beo> i need to download ffmpeg-20161204-1f5630a-win64-static.zip
[22:38:05 CET] <beo> no other download location?
[22:38:44 CET] <Phi> put it in the ffmpeg folder then J?
[22:38:57 CET] <J_Darnley> That does make it (a little) easier
[22:39:51 CET] <Phi> *puts it in system32*
[22:40:19 CET] <J_Darnley> /me is what you want there
[22:40:43 CET] Action: J_Darnley puts it in *the backdoor*
[22:40:52 CET] <Phi> fatal: corrupt patch at line 21
[22:41:35 CET] <J_Darnley> Thanks pastebin for trimming a blank line
[22:42:14 CET] <J_Darnley> echo '' >> FILENAME
[22:43:34 CET] <Phi> do line endings matter? I have CRLF
[22:43:42 CET] <Phi> the echo didn't seem to fix anything
[22:44:15 CET] <J_Darnley> try: dos2unix FILENAME
[22:46:04 CET] <Phi> dos2unix not found, but I converted in Notepad++
[22:46:19 CET] <Phi> okay, time to apply it again
[22:47:40 CET] <Phi> git apply worked, configuring again...
[22:47:44 CET] <J_Darnley> No.
[22:47:49 CET] <J_Darnley> Just run make again
[22:48:02 CET] <Phi> ....whoops
[22:48:11 CET] <J_Darnley> Abort it
[22:48:16 CET] <J_Darnley> then just run make
[22:49:23 CET] <Phi> alrighty, making
[22:59:40 CET] <Phi> works fine J_Darnley
[22:59:56 CET] <J_Darnley> Thanks. Will push patch
[23:00:45 CET] <Phi> sorry for the delay
[23:00:54 CET] <J_Darnley> Its fine.
[23:01:03 CET] <J_Darnley> Sorry I wrote the bug in the first place.
[23:07:57 CET] <Sashmo> can anyone help me with this command... it looks like a mess, but my overlay is not happening at all... I can see video, but there is no logo overlay.... any suggestions? http://pastebin.com/2SsvMeN3
[23:08:58 CET] <Phi> looks like we both suck! *high fives*
[23:09:26 CET] <DHE> what's nvresize?
[23:11:19 CET] <Phi> nvidia resize?
[23:16:10 CET] <Sashmo> nah the overlay in filter complex
[23:16:17 CET] <Sashmo> cant get my overlays to come up
[23:16:20 CET] <Sashmo> all the videos are working fine
[23:16:24 CET] <Sashmo> just no overlay on top....
[23:21:58 CET] <jkqxz> That filter does sound very suspicious. Does it work if you use split+scale instead?
[23:31:43 CET] <Phi> "h264_qsv : Error initializing the encoder"
[23:32:20 CET] <Phi> well don't give me TOO many details
[00:00:00 CET] --- Thu Dec 8 2016
1
0
[00:04:45 CET] <cone-511> ffmpeg 03Mathieu Velten 07n3.0.5:HEAD: avcodec/vaapi-vp9: add support for profile 2 (bpp > 8)
[00:05:58 CET] <cone-511> ffmpeg 03James Almer 07master:9c1ccee7f840: avformat/dump: remove line break on mastering display metadata info dump
[00:27:35 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:c165bad0c073: avformat/utils: Fix type mismatch
[00:27:36 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:2d51cb1d0ad9: avcodec/me_cmp: Fix median_sad size
[00:27:37 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:8e4f737d2f25: avformat/idroqdec: Check chunk_size for being too large
[00:27:38 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:2fb7eb05dcac: avcodec/flac_parser: Update nb_headers_buffered
[00:27:39 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:a0ed412f38f5: avformat/utils: Check start/end before computing duration in update_stream_timings()
[00:27:40 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:a0715c1e897f: avformat/oggparsespeex: Check frames_per_packet and packet_size
[00:27:41 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:c39e8d05f587: avcodec/flacdsp_template: Fix undefined shift in flac_decorrelate_indep_c
[00:27:42 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:a772aaf5dc76: avcodec/flacdec: Fix signed integer overflow in decode_subframe_fixed()
[00:27:43 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:bbe9a4b54263: avformat/ffmdec: Check media type for chunks
[00:27:44 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:334901aea0e3: avcodec/get_bits: Fix get_sbits_long(0)
[00:27:45 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:af1e19b9e4d6: avcodec/flacdec: Fix undefined shift in decode_subframe()
[00:27:46 CET] <cone-511> ffmpeg 03Timothy Gu 07release/3.2:f66bfe71bbca: zmqsend: Initialize ret to 0
[00:27:47 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:32b95471a86a: avformat/rtmppkt: Check for packet size mismatches
[00:27:48 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:46cd1699f956: Avoid using the term "file" and prefer "url" in some docs and comments
[00:27:49 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:c12ee64e80af: ffserver: Check chunk size
[00:27:50 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/3.2:148c4fb8d203: Update for 3.2.2
[00:56:12 CET] <cone-511> ffmpeg 03James Almer 07n3.2.2:HEAD: avformat/dump: remove line break on mastering display metadata info dump
[01:18:09 CET] <michaelni> BBB, the http backport to 2.8 has a bug i think there are 2 "s->chunksize < 0" in there but chunksize is unsigned
[01:20:55 CET] <cone-511> ffmpeg 03Timothy Gu 07release/2.8:c472c1b3e7c0: zmqsend: Initialize ret to 0
[01:20:56 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/2.8:5bfb0b02b6fb: avformat/rtmppkt: Check for packet size mismatches
[01:20:57 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/2.8:15abba737bff: Avoid using the term "file" and prefer "url" in some docs and comments
[01:20:58 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/2.8:e0cb113f9b4b: ffserver: Check chunk size
[01:20:59 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/2.8:4a947f43850a: Changelog: fix typos
[01:29:50 CET] <BBB> michaelni: feel free to remove them, I didnt really check very closely, theyre just removed in later versions so if you ignore their existence (which a compiler will, with a warning), its probably ok
[01:41:46 CET] <michaelni> BBB, in 3.0 you replaced them with == UINT64_MAX
[01:42:13 CET] <BBB> I dont remember
[01:42:35 CET] <BBB> I guess Im no good at backporting
[03:48:35 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/2.8:1ec9fd15b9c1: avformat/http: Match chunksize checks to master..3.0
[03:51:45 CET] <cone-511> ffmpeg 03Michael Niedermayer 07release/2.8:16c0d8aa46b6: update for ffmpeg 2.8.10
[04:07:00 CET] <cone-511> ffmpeg 03James Almer 07n2.8.10:HEAD: avformat/dump: remove line break on mastering display metadata info dump
[13:39:45 CET] <wm4> so on OSX, VTDecompressionSessionCreate sometimes mysteriously fails with some files
[13:40:04 CET] <wm4> it returns kVTVideoDecoderNotAvailableNowErr, but I'm pretty sure that's a lie, because with other files it works
[13:41:49 CET] <BtbN> Well, it's only not available now. Didn't say anything about in 10 seconds!
[13:42:01 CET] <ritsuka> maybe it doesn't support some h.264 profiles/levels? (if you are decoding h.264)
[13:42:53 CET] <wm4> both used the h264 high profile
[13:43:11 CET] <ritsuka> 8bit or 10bit? which level?
[13:43:18 CET] <rcombs> high profile is 8-bit
[16:43:57 CET] <cone-485> ffmpeg 03Michael Niedermayer 07master:108db37586e4: tests/api/api-seek-test: Fix use of uinitialized value
[16:43:58 CET] <cone-485> ffmpeg 03Michael Niedermayer 07master:5952b8da0b7f: tests/api/api-seek-test: Silence compiler warnings about uninitialized variables
[16:43:59 CET] <cone-485> ffmpeg 03Michael Niedermayer 07master:7679c38b3b57: tests/api/api-seek-test: check all compute_crc_of_packets() calls
[17:00:03 CET] <wm4> merges are dead now, huh
[17:31:10 CET] <nevcairiel> work and life keeps me busy right now
[17:50:43 CET] <cone-485> ffmpeg 03Thomas Turner 07master:da3c69a5a97d: Added test for libavcodec/avpacket.c
[19:24:18 CET] <durandal_1707> kierank: do you translate machine instructions by hand?
[19:29:29 CET] <fritsch> wm4: cabac different between does that work and don't work?
[19:30:04 CET] <wm4> hm can check
[19:30:43 CET] <fritsch> which "real" device is running under that API?
[19:30:49 CET] <fritsch> some AMD gpu? intel?
[19:32:19 CET] <wm4> Intel
[19:33:11 CET] <nevcairiel> how much does it even know about the stream when you call that function?
[19:33:18 CET] <nevcairiel> most other HW APIs no jack shit at such a point
[19:33:26 CET] <nevcairiel> but of course Apple APIs are always different :D
[19:34:07 CET] <wm4> not too much... just sps and pps and the data it's passed to
[19:34:15 CET] <wm4> ...I think
[19:34:40 CET] <nevcairiel> I mean, with dxva or vaapi or such you tell it the dimensions, and at tbest the profile/level
[19:35:12 CET] <fritsch> yeah, can you dump mediainfo
[19:35:14 CET] <fritsch> on both
[19:35:19 CET] <fritsch> perhaps it jumps directly out
[19:35:27 CET] <fritsch> which flag it does not like
[19:36:05 CET] <fritsch> did you recalculate the level that file states?
[19:36:18 CET] <fritsch> there are a lot of 4.1@high out there with too many reframes
[19:36:49 CET] <nevcairiel> that would be silly to fail, especially if the hardware actually supports 5.1
[19:36:53 CET] <nevcairiel> which all modern ones do
[19:37:04 CET] <fritsch> always remembers me on amd
[19:37:12 CET] <fritsch> even radeon oss always assumes 5.1 level
[19:37:14 CET] <fritsch> cause of that
[19:39:37 CET] <nevcairiel> amd is one of the last to actually support full 5.1 though
[19:39:45 CET] <nevcairiel> took them ages to get 4k working
[19:39:49 CET] <fritsch> hehe
[19:40:05 CET] <fritsch> there was a problem
[19:40:10 CET] <fritsch> with the "first 256 MB"
[19:40:16 CET] <fritsch> that they needed to use for their UVD
[19:40:26 CET] <fritsch> and was hard to fit 4k stuff into that range
[19:40:37 CET] <nevcairiel> is that the one where they advertised 4k support and half the image turned out green?
[19:40:44 CET] <fritsch> hehe, no idea
[19:40:55 CET] <fritsch> i talked to ckoenig the amd oss dev back at that time
[19:41:00 CET] <fritsch> and he explained that
[19:41:03 CET] <fritsch> 2048x1152
[19:41:16 CET] <fritsch> was max h264 and with "special hack" level 5.1
[19:41:34 CET] <fritsch> http://www.phoronix.com/image-viewer.php?id=amd_xvba_xbmc&image=amd_xbmcxvb…
[19:41:45 CET] <nevcairiel> with the 7000 series of cards the advertised 4k support and enabled it in the drivers, but it was shortly after revealed that it only managed to decode about half the frame
[19:41:49 CET] <fritsch> here, that was before I found "the hack" to convince the chip to do 5.1@high
[19:41:52 CET] <nevcairiel> amd turned it off in the drivers again a bit later
[19:44:03 CET] <fritsch> the funny thing was that the switch to enable 51 was readable via strings
[19:44:07 CET] <fritsch> inthe XVBA shared object
[19:46:16 CET] <fritsch> HWUVD_H264Level51Support=V1
[19:46:21 CET] <fritsch> that was hidden in the linux blob driver
[19:46:37 CET] <fritsch> cause only available for some manufacturer that paid amd back at that time
[20:19:45 CET] Action: wm4 starts at brew failing to compile mediainfo
[20:30:04 CET] <wm4> fritsch: http://sprunge.us/jMDI
[21:09:02 CET] <cone-485> ffmpeg 03Georgi D. Sotirov 07master:581f93f37ef2: lavf/chromaprint: Update for version 1.4
[21:15:13 CET] <wm4> nice, cehoyos applying a patch even though another dev still had doubts about it
[21:15:39 CET] <wm4> I guess I don't need to respect cehoyos' doubts either!
[21:17:04 CET] <wm4> also demanding from the patch author to use git format-patch, even though he himself refused to do this for years and only recently started to use it
[21:17:45 CET] <nevcairiel> he demanded that even w hen he didnt
[21:31:03 CET] <Timothy_Gu> Bug #6000!
[21:59:00 CET] <durandal_1707> wm4: the patch was reversed..
[22:01:59 CET] <wm4> oh, wtf
[22:02:18 CET] <RiCON> wtf
[22:06:27 CET] <jamrial> what carl committed was probably the actual intention of the patch
[22:07:18 CET] <J_Darnley> Carl's crystal ball must have been working.
[22:07:38 CET] <jamrial> git log chromaprint.c shows the initial commit and the codecpar port only
[22:07:52 CET] <durandal_1707> sometimes...
[22:07:55 CET] <jamrial> that "CPR_VERSION_INT >= AV_VERSION_INT(1, 4, 0)" check was never in the file
[22:08:26 CET] <J_Darnley> The submitter must have had his args to diff backwards
[22:08:35 CET] <jamrial> yeah
[22:08:50 CET] <durandal_1707> I don't have that library enabled so can't confirm it works
[22:09:08 CET] <wm4> jamrial: I was actually trying to check when that was added
[22:09:12 CET] <wm4> but found it nowhere lol
[22:10:06 CET] <wm4> definitely would have called for more reviews, instead of just pushing some guessed approximation
[22:22:26 CET] <cone-485> ffmpeg 03Timothy Gu 07master:16a75304fe42: omx: Fix OOM check
[22:22:27 CET] <cone-485> ffmpeg 03Timothy Gu 07master:b6f80b16d1a8: qsvdec: Fix memory leak
[23:00:52 CET] <Timothy_Gu> The cehoyos patch looks completely wrong
[23:01:26 CET] <Timothy_Gu> The ChromaprintContext structure seems to have been public for a while now
[23:01:40 CET] <Timothy_Gu> *have NOT been public
[23:02:31 CET] <Timothy_Gu> never mind something is odd
[23:07:42 CET] <rcombs> it's super weird
[23:08:05 CET] <rcombs> ChromaprintContext used to be void*
[23:08:25 CET] <rcombs> but the functions all returned ChromaprintContext*
[23:08:27 CET] <rcombs> i.e. void**
[23:08:47 CET] <rcombs> but void* and void** are compatible types and generally can be implicitly converted to one another without warnings
[23:08:54 CET] <rcombs> (returned, and took as arguments)
[23:09:28 CET] <rcombs> I think I originally read the header and saw it was void* and assumed I should use ChromaprintContext (as opposed to ChromaprintContext*)
[23:09:52 CET] <rcombs> in newer versions it's typedef'd to an incomplete struct type, so you need ChromaprintContext*
[23:09:59 CET] <rcombs> afaik that should also work in older versions
[00:00:00 CET] --- Wed Dec 7 2016
1
0
[00:47:03 CET] <ItWasntMe2013> does anyone have any addtional suggestions when converting interlaced video to progressive? other than deinterlacing, are there any other options that I can use to get rid of the ghosting video in high motion scenes?
[00:56:10 CET] <llamapixel> Is that a job for https://ffmpeg.org/ffmpeg-all.html#mpdecimate ?
[00:56:25 CET] <llamapixel> https://ffmpeg.org/ffmpeg-all.html#decimate-1
[02:21:17 CET] <fling> How to capture a fast seekable low-fps h264 stream?
[02:21:24 CET] <fling> Should I mangle with i-frames?
[02:21:32 CET] <fling> Or should I use another codec instead?
[02:21:52 CET] <fling> The problem is it does not seek right when I capture with 1/5 or 1/6 or so fps
[02:22:37 CET] <fling> I'm capturing a screencast with a webcam in a separate stream.
[02:23:05 CET] <fling> I encode low-fps screencast with the fps matching to webcam to keep all the streams in sync to the audio btw
[02:23:20 CET] <fling> Lots of dupes! But atleast it is at sync.
[02:23:29 CET] <fling> The last step is to improve seeking :>
[02:24:04 CET] <fling> mpv seeks +-20minutes :D
[02:28:00 CET] <fling> hmmm hmmm new issue is Invalid audio PTS: 10081.370449 -> 10082.365000 but I will fix this later
[02:30:14 CET] <fling> ok the audio has the wrong rate in some files, not a huge issue
[03:02:40 CET] <onurhb> Is this right place to ask for help related to linking ffmpeg with my c++ project? :)
[03:06:06 CET] <klaxa> it is not the wrongest place
[04:12:32 CET] <llamapixel> Today is no f day you have to omit any f letters in your question when it is c++ related.
[04:13:15 CET] <thebombzen> fling: what do you mean by "capture" a fast seekable low-fps h264 stream
[04:14:37 CET] <furq> how are you going to discuss c++ without f words
[04:19:09 CET] <llamapixel> ucking diicult furq ;)
[04:35:56 CET] <thebombzen> >furq
[04:36:00 CET] <thebombzen> oops
[05:00:57 CET] <fling> thebombzen: Hello. something like this for a single stream -> ffmpeg -f x11grab -video_size cif -framerate 1/6 -i :0.0 -r 29.97 /tmp/single.nut
[05:01:12 CET] <thebombzen> um
[05:01:20 CET] <fling> thebombzen: -r 29.97 specified at the end to match the stream of a webcam to make them both in sync with audio
[05:01:34 CET] <thebombzen> you do realize that this won't work unless your screen is actually size cif
[05:01:39 CET] <thebombzen> and is actually framerate1/6
[05:01:50 CET] <fling> Just try this command /tmp/single.nut is not really seekable. ff and rev want to move the time pointer by +-20 minutes :>
[05:01:58 CET] <thebombzen> -video_size and -framerate are input options that describe your screen
[05:02:01 CET] <fa0> hello all
[05:02:24 CET] <fling> thebombzen: the screen has no framerate.
[05:02:32 CET] <thebombzen> it has a refresh rate
[05:02:41 CET] <fling> Should I capture at refresh rate?
[05:02:43 CET] <thebombzen> and the video size of the screen isn't cif, is it?
[05:02:47 CET] <thebombzen> cause
[05:02:56 CET] <thebombzen> if the screen you're capturing isn't cif, this will be problematic.
[05:02:58 CET] <fa0> Can someone please tell me for 3.2.2 does it matter if I use speex-1.2rc2 or is it better to use speex-1.2rc3?
[05:02:59 CET] <fling> thebombzen: for this example it only takes left top corner for smaller output
[05:03:26 CET] <thebombzen> fa0 it's probably irrelevant but you can always update it later
[05:03:31 CET] <thebombzen> without rebuilding ffmpeg
[05:03:36 CET] <thebombzen> in case it does matter
[05:04:14 CET] <fa0> I've always used rc2 then I noticed on the site; https://www.speex.org/downloads/ Current Unstable Release (recommended) for rc3
[05:04:15 CET] <fa0> hmm
[05:04:40 CET] <fa0> I guess that word 'Unstable' has me wondering LOL
[05:04:44 CET] <thebombzen> well that means it has bugs
[05:04:48 CET] <thebombzen> but it shouldn't affect ffmpeg
[05:04:55 CET] <fa0> hey what doesn't have bugs
[05:04:58 CET] <thebombzen> fling: either way
[05:05:07 CET] <fa0> I assumed rc2 was probably no better/worse...
[05:05:14 CET] <thebombzen> I'm not sure why you're just straight up encoding to nut without specifying a codec
[05:05:24 CET] <thebombzen> that'll use 200kb/s mpeg4
[05:05:43 CET] <fling> whoops ;>
[05:06:00 CET] <thebombzen> also
[05:06:03 CET] <thebombzen> what do you mean it's not seekable
[05:06:06 CET] <thebombzen> it totally is
[05:06:15 CET] <fling> it is not for me :<
[05:06:20 CET] <fa0> I guess I'll just stick to rc2 for now thanks
[05:06:58 CET] <fling> thebombzen: the time scale drops to 0 when I'm trying to ff in mpv
[05:07:33 CET] <thebombzen> I can't reproduce that.
[05:07:34 CET] <thebombzen> works fine for me.
[05:07:44 CET] <thebombzen> I captured like 30 seconds and then seeked it fine.
[05:07:54 CET] <fling> Btw will not it be a huge overhead capturing at screen refresh rate and then converting to 1/6 (low) fps and then to 29.97 (matching other stream) fps?
[05:08:13 CET] <fling> What is your ffmpeg version?
[05:08:27 CET] <fling> I also tried on windows with gdigrab with the same results!
[05:08:37 CET] <fling> Or is it my mpv bad?
[05:10:52 CET] <fling> the doc says it is fine to specify video size and framerate for x11grab https://ffmpeg.org/ffmpeg.html#X11-grabbing
[05:11:47 CET] <fling> thebombzen: another question is not it possible to keep multiple videos in sync if they are encoded at different fps?
[05:12:04 CET] <thebombzen> me? my ffmpeg is build nightly
[05:12:08 CET] <thebombzen> so it's git master
[05:12:58 CET] <fling> mine is 2 days old
[05:13:15 CET] <thebombzen> and no the doc definitely doesn't say that
[05:14:00 CET] <fling> thebombzen: then what would be the proper command?
[05:17:52 CET] <thebombzen> depends on what your screen size is
[05:17:56 CET] <thebombzen> and what your refresh rate is
[05:18:38 CET] <fling> thebombzen: from xrandr output -> 1280x800 60.00*+ 50.00
[05:19:13 CET] <thebombzen> well, that.
[05:23:52 CET] <fling> thebombzen: are you saying I should capture at this size and rate and then crop and change fps with vf?
[05:24:01 CET] <thebombzen> yes
[05:24:14 CET] <thebombzen> -vf framerate and -vf scale
[05:24:18 CET] <thebombzen> or rather
[05:24:20 CET] <thebombzen> -vf crop
[05:24:22 CET] <thebombzen> both work
[05:24:29 CET] <thebombzen> depending on what you're trying to do
[05:26:42 CET] <fling> thebombzen: trying to capture a seekable low-fps screencast
[05:26:56 CET] <thebombzen> "screencast"
[05:27:06 CET] <thebombzen> you realize x11grab captures your actual screen right
[05:27:14 CET] <fling> right
[05:27:27 CET] <thebombzen> that's not capturing a screencast
[05:27:28 CET] <thebombzen> tha'ts just
[05:27:32 CET] <thebombzen> capturing your screen
[05:27:37 CET] <fling> right
[05:28:01 CET] <thebombzen> what exactly are you trying to do
[05:28:07 CET] <thebombzen> cause your screen isn't exactly seekable
[05:28:18 CET] <thebombzen> whatever is on the screen at the moment is what you get
[05:30:02 CET] <fling> A screencast is a digital recording of computer screen output, also known as a video screen capture, often containing audio narration.
[05:30:12 CET] <fling> This is what I do.
[05:30:37 CET] <fling> I also include a video captured from webcam as another video stream
[05:32:16 CET] <thebombzen> okay but
[05:32:20 CET] <thebombzen> why is it seekable
[05:32:27 CET] <thebombzen> if you capture the screen and write it to a file
[05:32:32 CET] <thebombzen> it's now just a video file.
[05:32:39 CET] <thebombzen> so it's seekable.
[05:32:51 CET] <thebombzen> but the original capturing is not.
[05:33:03 CET] <fling> I will try using vf instead, hope it will fix the issue
[05:33:18 CET] <fling> The file produced by the command ^ is not seekable by my mpv
[05:33:27 CET] <thebombzen> then your mpv is borked.
[05:54:01 CET] <thebombzen> fa0 when they same something is unstable or has bugs
[05:54:08 CET] <thebombzen> what they mean is that it hasn't gone through extensive testing
[05:54:17 CET] <thebombzen> so there's no general expectation that it should work
[05:54:32 CET] <thebombzen> a "stable" build is a build that has lots and lots of testing and works pretty consistently.
[06:33:43 CET] <Abbott> I am trying to rotate a now horizontal video with no (helpful) metadata using: "ffmpeg -i input.mp4 -vf "rotate=90*(PI/180),format=yuv420p" -metadata:s:v rotate=0 -codec:v libx264 -codec:a copy output.mp4" as suggested here: http://superuser.com/questions/578321/how-to-rotate-a-video-180-with-ffmpeg
[06:34:24 CET] <Abbott> The video I get is flipped, but the original width seems to be preserved, as the video is now square. Is there a different way to flip 90 degrees?
[06:45:46 CET] <llamapixel> Abbott: ffmpeg -i in.mov -vf "transpose=1" out.mov
[06:46:06 CET] <llamapixel> http://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg
[06:46:59 CET] <Abbott> thanks llamapixel
[06:47:06 CET] <llamapixel> npm8
[08:18:29 CET] <JerryT> Is there a way to get 10 frames from a video every minute, starting 30 seconds into a video?
[10:48:54 CET] <beauty> Hello
[10:50:05 CET] <beauty> how to use a linux server decode 4000 video file in memory ?
[10:51:20 CET] <llamapixel> beauty: install biebian
[10:51:21 CET] <llamapixel> http://biebian.sourceforge.net/
[10:52:09 CET] <beauty> llamapixel: ???
[10:55:29 CET] <DHE> please rephrase the question, preferably with better grammar if possible
[11:39:05 CET] <IggyGee> hey all, I'm making an app that alters select few images and puts them back together in video form. but for some reason, the ffmpeg command to stitch the images back together specifically skips those images.
[11:39:19 CET] <IggyGee> I'd greatly appreciate any help
[11:40:12 CET] <IggyGee> I haven't changed their filename or anything
[11:40:53 CET] <DHE> what's your ffmpeg commandline, including the output of ffmpeg itself
[11:48:39 CET] <IggyGee> DHE: I'm having trouble cleanly getting the output into a file, but here's the command
[11:48:41 CET] <IggyGee> ffmpeg -hide_banner -r 29.97 -f image2 -s 1920x1080 -i "cccc/%d.png" -vcodec libx264 -b:v 111k -pix_fmt yuv420p videoOutNoSound.mp4
[11:50:23 CET] <DHE> with the output please. (use the pastebin service of your choosing as long as it's not a dumb one) :)
[11:51:44 CET] <IggyGee> DHE: here ya go :)
[11:51:44 CET] <IggyGee> https://gist.github.com/IgorGee/3e52ad0aa4a5c665e0e719ef05e329f1
[11:54:43 CET] <Nacht> Anyone who got some good knowledge how TS files work ?
[11:54:52 CET] <DHE> Nacht: fairly good, sure
[11:55:12 CET] <DHE> IggyGee: output seems okay. 41 frames too short?
[11:55:30 CET] <IggyGee> 41 frames?
[11:55:47 CET] <Nacht> We're cutting TS files at the I-frames. But with a new stream we seem to break the TS files. They seem to lose their codec information. They're not being reconised as movie files.
[11:55:58 CET] <DHE> oops, that's the fps
[11:56:04 CET] <Nacht> I just can't seem to find the information where the actual codec information is being stored
[11:56:52 CET] <IggyGee> can I send the images to you and see if you can try to stitch them together?
[11:56:57 CET] <IggyGee> i know that sounds silly lol
[11:57:06 CET] <IggyGee> it's an 8 second video into 190 images
[11:58:11 CET] <DHE> IggyGee: drop=73 means it's dropped a lot of frames, and x264 says your QP is extremely high. 110 kilobits for 1080p video is extremely low. have you tried 2M or higher?
[11:58:34 CET] <IggyGee> what's QP?
[12:00:13 CET] <IggyGee> why does it drop those frames?
[12:00:37 CET] <DHE> Nacht: are you using global headers?
[12:00:57 CET] <DHE> IggyGee: QP is the quantization parameter, loosely image quality. 0 is lossless, 51 is an ugly colour smudge
[12:01:03 CET] <Nacht> DHE: YEs
[12:01:13 CET] <DHE> Nacht: toggle the setting and try again
[12:02:05 CET] <Nacht> k
[12:02:56 CET] <IggyGee> I'm not really concerned about the quality right now
[12:03:14 CET] <IggyGee> I'm looking up how to solve those dropped frames though
[12:03:18 CET] <DHE> still, I'd recommend replacing -b:v 111k with -qp:v 30
[12:04:48 CET] <IggyGee> i think i figured it out
[12:05:06 CET] <DHE> oh?
[12:05:19 CET] <IggyGee> http://superuser.com/a/728697
[12:05:35 CET] <IggyGee> I'm doing something similar with another library that transforms png files
[12:06:16 CET] <IggyGee> erm, what's the convert option? lol
[12:06:20 CET] <DHE> that is listed in the output of ffmpeg, but it seems to soldier on through it?
[12:08:58 CET] <IggyGee> where would I put that -define png:color-type=2 option in my command?
[12:09:17 CET] <DHE> I think that's an imagemagick command, not ffmpeg
[12:09:42 CET] <DHE> forces consistent output formats
[12:09:51 CET] <IggyGee> welp, time to research that library lol
[12:11:02 CET] <IggyGee> hmm
[12:11:17 CET] <IggyGee> one option would be to have that library touch all the png files just for consistency lol
[12:12:28 CET] <IggyGee> or is there an ffmpeg command to convert all image file formats?
[12:24:31 CET] <beauty> DHE: for example, use a ffmpeg process to decode ten mp4 file at the same time
[12:30:01 CET] <luc4> Hello! While building chromium for arm I got this error: http://pastebin.com/AY01s2BH. Previous versions were building properly. It seems to be related to ffmpeg. Anybody who knows if this is something known? I can't find much related to this except https://review.cyanogenmod.org/#/c/83285/, but it seems pretty old.
[12:30:33 CET] <luc4> I typically build ffmpeg just fine for arm actually.
[12:33:07 CET] <IggyGee> FUCK THE PNGS
[12:33:11 CET] <IggyGee> the jpegs work
[12:33:12 CET] <IggyGee> omg
[12:33:13 CET] <IggyGee> im so happy
[13:17:55 CET] <BtbN> luc4, looks more like an issue with your toolchain, generating assembler instruction it itself does not understand
[13:18:00 CET] <BtbN> or you are mixing toolchains
[13:27:20 CET] <onurhb> Check this question: http://stackoverflow.com/questions/40954264/c-how-to-link-ffmpeg-with-cmake…
[13:28:28 CET] <BtbN> ffmpeg does not support cmake, you'll have to ask the author of that module on how to use it.
[13:28:49 CET] <BtbN> Or you can just leave, that works as well...
[14:03:10 CET] <eranchetz> Hi guys
[14:03:38 CET] <eranchetz> I have posted this question http://stackoverflow.com/questions/40995792/ffmpeg-get-md5-from-local-m3u8
[14:03:52 CET] <eranchetz> anyone has an idea? I am baffled
[14:05:21 CET] <c_14> You probably need a newer version of ffmpeg
[14:07:02 CET] <JEEB> also did you put that whitelist before or after -i?
[14:09:14 CET] <eranchetz> I am using the latest version
[14:09:22 CET] <eranchetz> ffmpeg version 3.2.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (Alpine 5.3.0) configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --bindir=/usr/local/bin --disable-doc --disable-static --enable-shared --disable-ffplay --extra-libs=-ldl --enable-version3 --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --en
[14:09:40 CET] <eranchetz> I put the whitelist first
[14:19:36 CET] <luc4> BtbN: I actually build many things with this toolchain, and it is provided by the manufacturer.
[14:20:52 CET] <luc4> BtbN: I also build ffmpeg itself.
[14:22:13 CET] <luc4> BtbN: also I can build previous versions of chromium that also include ffmpeg...
[14:22:50 CET] <BtbN> Well, then the chrome update broke something. Or uncovered a bug in the toolchain.
[14:22:52 CET] <luc4> BtbN: but is that assembly code generated by the compiler? Isn't it included in ffmpeg sources?
[14:23:44 CET] <BtbN> The message shows up while compiling a c file.
[14:23:55 CET] <BtbN> So it's the C compiler generating assembly its own assembler does not understand.
[14:24:30 CET] <luc4> BtbN: but with this identical toolchain and sysroot I can build many versions of ffmpeg up to 3.1
[14:27:05 CET] <beauty> how to use a ffmpeg process to decode ten mp4 file at the same time
[14:27:11 CET] <beauty> anybody can help me?
[14:53:56 CET] <beauty> how to use a ffmpeg process to decode ten mp4 file at the same time
[15:11:40 CET] <Nacht> Good lord, just had a crash course 'Dissecting TS files'
[15:12:00 CET] <Nacht> Just wondering. Anyone know what the difference is between a Random Access Indicator and an I-Frame ?
[15:14:24 CET] <JEEB> I-frame is just a frame that is intra-only
[15:14:56 CET] <JEEB> it only promises that you can decode that picture as-is (if you of course have the parameter sets)
[15:15:13 CET] <JEEB> it doesn't promise that the following coded pictures don't contain references to other pictures
[15:15:34 CET] <DHE> unless you're using a codec like mpeg2video. (please don't do that)
[15:15:52 CET] <kerio> ?
[15:15:54 CET] <JEEB> in AVC (H.264) they kind of half-assed the specificness of where actual random access points are
[15:16:12 CET] <JEEB> so you either have an IDR picture, or you have to have a random access SEI message + an I picture
[15:16:36 CET] <DHE> mpegts has a "randon access indicator" bit to assist in finding that
[15:17:01 CET] <JEEB> in HEVC (H.265) they noticed that this was a bad idea and just rolled out multiple picture types which all fell under the umbrella of IRAP (Intra Random Access Picture)
[15:17:30 CET] <JEEB> with the SEI business you actually had to look into multiple packets while having new packet types just let you compare the type of a single packet against multiple
[15:28:02 CET] <Nacht> Ah, I always thought that every frame after an I-frame is always a reference to that I-frame
[15:28:09 CET] <Nacht> But that doesn't seem to be the case then
[15:28:28 CET] <JEEB> not sure about MPEG-1/2 video, but formats after that do not say that the reference buffer has to be cleaned
[15:28:34 CET] <JEEB> like AVC or HEVC
[15:29:47 CET] <JEEB> newer formats separate "this is an intra only picture" and "this is an intra only picture that lets you random access into the content from here"
[15:29:57 CET] <JEEB> and then there's of course stuff like periodic intra refresh
[15:30:27 CET] <JEEB> where parts of the picture are refreshed in intra little by little so that you get a full picture after N pictures
[15:30:38 CET] <JEEB> but that will probably just confuse you :D
[15:31:24 CET] <Nacht> Well you've giving me allot of leads to dig into. I'll continue studying the fields off video :)
[15:31:31 CET] <Nacht> Cheers!
[15:41:16 CET] <DHE> mpeg2 only has 1 reference frame. so there's no difference between an I and IDR frame (to use h264 nomenclature)
[15:41:32 CET] <DHE> well, it does have b-frames but they don't affect this
[15:45:26 CET] <JEEB> or well, all I pictures are effectively IRAP pictures
[15:45:35 CET] <JEEB> *IRAPs
[15:45:39 CET] <JEEB> since P in IRAP is picture ^^;
[15:46:05 CET] <JEEB> I really like the IRAP umbrella term because IDR is not the only type of IRAP
[15:46:21 CET] <JEEB> even though the term is really only used in HEVC
[16:49:15 CET] <ItWasntMe2013> does anyone have any addtional suggestions when converting interlaced video to progressive? other than deinterlacing, are there any other options that I can use to get rid of the ghosting video in high motion scenes?
[17:06:57 CET] <furq> ItWasntMe2013: how are you deinterlacing
[17:21:38 CET] <ItWasntMe2013> furq: im using yadiff 1 for now
[17:22:25 CET] <ItWasntMe2013> I would like to keep the cpu usage down to a realistic usage, but would sacrifice more to gain better quality, but yadiff 2 doesn't show me anymore improvement
[17:23:38 CET] <furq> there are better deinterlacers but they probably fail the cpu usage requirement
[17:23:42 CET] <furq> the one i'm thinking of certainly does
[17:23:52 CET] <ItWasntMe2013> furq: oh yeah? which is that?
[17:24:00 CET] <furq> nnedi
[17:24:10 CET] <furq> although it's much better if you use it with qtgmc in vapoursynth/avisynth
[17:24:16 CET] <furq> it is incredibly slow, though
[17:24:37 CET] <furq> i wouldn't have thought yadif in frame-per-field mode would introduce ghosting so that might just be your source
[17:25:09 CET] <ItWasntMe2013> I get it.... so no real time stuff
[17:25:21 CET] <ItWasntMe2013> The video looks great, just I can see that there is ghosting in the video....
[17:25:27 CET] <ItWasntMe2013> I notice it, but some people wouldnt care
[17:26:38 CET] <ItWasntMe2013> any other suggestions? I might be able to live with the ghosting but I can see in horizontal scrolling text that its very choppy
[17:26:55 CET] <ItWasntMe2013> I tired adding B frames to compensate, but that didt help much if at all
[17:31:13 CET] <jkqxz> ItWasntMe2013: What platform are you on? Many GPUs include hardware deinterlacers, which are of variable quality but typically fast.
[17:41:30 CET] <ItWasntMe2013> jkqxz: I use both CPU and GPU and get the same result, but right now I have nvenc for my processing
[17:48:21 CET] <jkqxz> The cuvid decoder has some sort of auto-deinterlace built-in. ffmpeg doesn't support any other route, though I imagine there is some CUDA stuff to do it.
[17:51:07 CET] <ItWasntMe2013> So you suggest to try cuvid for decoding, my current setup is CPU decode, and GPU encode... Try GPU on both?
[17:55:30 CET] <jkqxz> Maybe? I'm not particularly familiar with how that works; maybe there is some way to access the deinterlacer stand-alone as well.
[18:32:36 CET] <BtbN> jkqxz, it's not automatic. You have to explicitly enable it.
[18:32:58 CET] <BtbN> And there are some catches to it, as ffmpeg.c does not exactly support a decoder outputing two frames per input
[18:33:25 CET] <BtbN> so for i50 content you have to specify the input framerate yourself
[18:33:41 CET] <BtbN> ffmpeg -r 50 -deint adaptive input.mkv ...
[18:33:50 CET] <BtbN> + -c:v h264_cuvid of course
[18:34:26 CET] <BtbN> without -r 50 ffmpeg throws away every second frame, leaving you with p25 instead of p50
[19:51:27 CET] <ShaneC_> Does preset ultrafast deinterlace video? I am trying to capture interlaced source, but my output looks deinterlaced.
[19:54:11 CET] <DHE> no, deinterlacing in ffmpeg is all up to you. maybe your player is auto-deinterlacing?
[20:06:56 CET] <ShaneC_> @dhe, ty!
[20:45:15 CET] <andydufresne> is it possible embed album art using ffmpeg while converting from flac to mp3?
[21:03:25 CET] <durandal_1707> andydufresne: nope, not yet
[22:33:52 CET] <cnote> why does video/audio uses bit/s not byte/s
[22:33:56 CET] <cnote> for example mp3 128 kbps
[22:54:01 CET] <durandal_1707> cnote: because it's convenient
[23:34:11 CET] <kepstin> cnote: mostly because it's traditional, I think. It's always used bits, so changing it now would cause confusion.
[23:36:58 CET] <kepstin> (using bits to measure bandwidth of transmitted signals significantly predates computers using 8-bit bytes)
[23:51:55 CET] <andydufresne> thank you durandal_1707
[00:00:00 CET] --- Wed Dec 7 2016
1
0