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
July 2017
- 1 participants
- 62 discussions
[03:25:16 CEST] <ElementalBlack> Is there any detailed documentation on FFmpeg's API besides inline comments? I'm writing a filter and it's taking a good amount of time to figure everything out from analyzing other filters.
[03:29:50 CEST] <ElementalBlack> A flow chart would be nice too. It looks like most have a init, uinit, and filter_frame
[03:46:22 CEST] <jamrial> ElementalBlack: unfortunately no. it's hard to get people to write good tutorials or documentation, so generally the way to go is "look at an existing simple filter/demuxer/decoder, copy/paste it to a new file and work from that"
[03:46:54 CEST] <jamrial> but if you have specific questions, you can ask here and someone that knows the code might answer
[04:32:06 CEST] <cone-107> ffmpeg 03Steven Liu 07master:805ce25b1d2f: avformat/hlsenc: improve hls encrypt get key file operation
[05:48:12 CEST] <ElementalBlack> Are filters run across multiple threads, or do they need to be written that way?
[05:56:02 CEST] <ElementalBlack> As in, will libavfilter queue/run/collect multiple frames to the filter?
[05:59:09 CEST] <cone-107> ffmpeg 03James Almer 07master:4a654be3fb0a: avcodec/mpegvideo_enc: fix mixed declarations and code warning
[09:41:58 CEST] <cone-223> ffmpeg 03Nicolas George 07master:bbc7cfbf1e0b: lavfi/testsrc2: fix completely transparent alpha.
[14:40:51 CEST] <ldts> I am using ffplay to reproduce a hevc video; however I only get a frame displayed every 10 or 12 second. Can anyone give me some hints as to how do debug this please? I am using http://jell.yfish.us/jellyfish-3-mbps-hd-hevc.mkv on the ffmpeg master branch (yesterdays tip).
[15:00:04 CEST] <DHE> ldts: wrong channel
[15:05:00 CEST] <ldts> DHE: um, is there a channel specific to ffplay? I am integrating HEVC V4l2 support -extending the 4 patches I posted yesterday with HEVC decoding capabilities; since I am not discarding frames I can see image artifacts being displayed. Not sure where in ffmpeg the discard of frames is being handled though hence my ask.
[15:10:25 CEST] <DHE> well this is the dev channel for people making patches for ffmpeg itself. generic playback issues would go to the main #ffmpeg channel
[15:16:18 CEST] <ldts> yep, I thought so.
[15:17:11 CEST] <ldts> I need some help findomg out where -in ffmpeg- hevc frames are being discarded and if there is an algorithm for it..
[15:18:59 CEST] <JEEB> I think the HEVC decoder might not implement that since I've seen the sw decoder pushing out non-fully-decoded pictures (as in, the sync hasn't been completed yet)
[15:19:06 CEST] <JEEB> the AVC decoder seems to implement it at least
[15:22:07 CEST] <ldts> JEEB: yeah I couldnt find it on the decoder...was wondering if it could have happened earlier? still 10 seconds without a frame seems like I am hitting some other problem
[15:24:42 CEST] <BBB> I would generally recommend to use ffmpeg instead of ffplay for debugging
[15:24:52 CEST] <ldts> when I run my v4l2_m2m hevc decoder I can see that some frames are being properly decoded but others are not...and I am wondering if I should be filtering out the input to the decoder somehow (I am running a hevc_mp4toannexb as well)
[15:24:57 CEST] <BBB> so & does ffmpeg -i file -f image2 /tmp/file-%d.png reproduce the issue?
[15:25:04 CEST] <BBB> if so, does -vsync 0 fix it?
[15:25:17 CEST] <ldts> BBB: ah let me test. I'll come back to you on this.
[15:25:25 CEST] <BBB> if ffmpeg reproduces it but vsync 0 fixes it, it means timestamps are messed up
[15:25:37 CEST] <BBB> if not, it means the hevc decoder is internally discarding them (maybe sync code, who knows)
[15:25:57 CEST] <BBB> if ffmpeg doesnt reproduce it at all, then its a ffplay bug and maybe you should ask marton
[15:26:16 CEST] <BBB> hopefully thats somewhat helpful
[15:27:44 CEST] <JEEB> yea, ffplay isn't the best thing for debugging :)
[15:29:32 CEST] <ldts> BBB: JEEB: thanks, yes that helps and thanks for the advice. will retest now.
[15:30:52 CEST] <BBB> btw I implemented v4l2 drivers (and even did some uvc work) several lives back, so to see v4l2 being used for hardware decoding (like vaapi/vdpau/dxva2/vda/etc.) is kind of strange for me, but ohwell...
[15:33:20 CEST] <ldts> BBB: ah, this is for video decoding. even stranger is to use an ISP for image processing in the print industry with intel atoms and that was fun as well :)
[15:33:54 CEST] <BBB> crazy stuff
[15:34:03 CEST] <BBB> anyway, all fine, move along, nothing to see here ;)
[15:34:16 CEST] <bencoh> v4l2 is used for a lot of "video-related" stuff, even when it's not exactly ... "recommended"
[15:34:28 CEST] <bencoh> since there is no other "recommended" way :/
[15:34:49 CEST] <BBB> so from this, should I assume you guys do hevc decoding in v4l2 also?
[15:34:57 CEST] <BBB> hows vp9 decoding going on these chips?
[15:35:13 CEST] <BBB> (vp9 is much more interesting than hevc, nobody uses hevc)
[15:35:19 CEST] <BBB> (not on cell phones at least)
[15:35:30 CEST] <bencoh> (not yet?)
[15:35:33 CEST] <ldts> BBB: yes, h264, mpeg4, vp8, hevc..I am not sure we have VP9 support
[15:35:58 CEST] <BBB> bencoh: maybe - hard to say whatll happen tomorrow, right?
[15:36:08 CEST] <bencoh> :)
[15:36:11 CEST] <BBB> ;)
[15:36:52 CEST] <BBB> ldts: Im obviously biased, but hey, if the hw supports it, try to make it work, vp9 is pretty big on cell phones, and av1 is coming also
[15:38:36 CEST] <ldts> BBB: ah, cool... the Venus hardware on Qcoms 410C and 820c does have hevc btw (its venus v4l2 driver was recently merged into korg so it seems a good idea to make it available to every one via ffmpeg)
[15:39:24 CEST] <ldts> BBB: anyway, back to trying to understand what is going on...thanks for all the advice!
[15:39:36 CEST] <BBB> qcom=snapdragon?
[15:39:45 CEST] <ldts> yes
[15:39:46 CEST] <BBB> 820 has vp9 support afaik
[15:39:54 CEST] <BBB> not sure about the 410
[15:40:08 CEST] <ldts> https://lwn.net/Articles/697956/
[15:40:29 CEST] <BBB> yeah I saw that from your email to the list
[15:40:46 CEST] <BBB> anyway, back to work I guess - dont forget vp9 on the 820! :)
[15:41:41 CEST] <ldts> um, the 820 doesnt have VP9 (it has VP8) ...just looking at the docs. will check the driver and if it is there I'll try to enable it for sue
[15:41:58 CEST] <ldts> s/sue/sure
[15:41:59 CEST] <BBB> the webm wiki claims it does
[15:42:01 CEST] <BBB> strange
[15:42:20 CEST] <BBB> http://wiki.webmproject.org/hardware/socs
[15:42:28 CEST] <BBB> Qualcomm SnapDragon 820 Mobile Yes
[15:42:32 CEST] <BBB> (yes for vp9 decoding)
[15:42:33 CEST] <ldts> yes, it is correct. tehre is vp9 (looked at hte wrong page)
[15:43:00 CEST] <BBB> :)
[15:43:20 CEST] <ldts> ok more work then :)
[15:43:25 CEST] <BBB> off you go :-p
[17:12:20 CEST] <ldts> BBB, just so you know, VP9 is on :)
[17:12:31 CEST] <BBB> \o/
[17:13:39 CEST] <ldts> will add that to v2 of the patchset. still stuck on hvec though....dumping the frames still show the same issues
[17:15:29 CEST] <ldts> anyway, if you think of something else anytime I'll be all ears...
[17:17:02 CEST] <BBB> you mean from ffmpeg with -vsync 0?
[17:17:25 CEST] <BBB> ffmpeg -i file -vsync 0 -f image2 /tmp/bla%d.png shows the same issue, one frame each 10 seconds or so?
[17:17:41 CEST] <BBB> that suggests a sync issue in the hevc decoder then, so youll have to start digging into libavcodec/hevc*
[17:21:14 CEST] <ldts> BBB: with the software decoder, I can get the frames correctly...with the v4l2 decoder (+sync) I still get the artifacts (heavy pixelation) and bad frames as well
[17:21:31 CEST] <BBB> oh I see, so its a hw decoding issue then
[17:21:38 CEST] <BBB> well, thats entirely up to you, isnt it? :-p
[17:21:42 CEST] <ldts> btw I do need the vsync=0 on all v4l2 decoders to be able to dump the frames
[17:21:57 CEST] <BBB> with vsync=0 it works?
[17:22:16 CEST] <ldts> BBB: sorry no, I just get the frames in memory (otherwise they wont be written)
[17:22:26 CEST] <ldts> BBB: I do hope it is up to me...
[17:22:30 CEST] <BBB> hm&
[17:22:43 CEST] <ldts> but I am not sure why the ffmpeg driver would be different for h264 or any other format
[17:22:57 CEST] <ldts> the same ffmpeg codec should work
[17:23:05 CEST] <BBB> I think theres a terminology issue here
[17:23:13 CEST] <BBB> anyway
[17:23:26 CEST] <BBB> look, if the software decoder works, and the hardware decoder gets the same input as the software decoder
[17:23:53 CEST] <BBB> then from my perspective, ffmpeg does everything correct, and your job becomes to make sure that each field of each output frame generated by the hw decoder module is identical to that produced by the software decoder module
[17:24:06 CEST] <ldts> fair enough, makes sense
[17:24:16 CEST] <BBB> and if you follow black box theory, it means everything after that should be identical, regardless of the inside of the black box
[17:24:28 CEST] <ldts> yeah I get it :)
[17:24:44 CEST] <BBB> Im not familiar enough with the hardware decoding itself to make any suggestions on where to go next
[17:25:15 CEST] <BBB> but my guesses would be syncing, different data format expectations (maybe escaping/no-escaping or whatever), timestamp mismatches or not setting timestamps on output frames, etc.
[17:25:18 CEST] <ldts> BBB: maybe it is an issue in the hevc_mp4annexb....which the sw decoder doesnt use
[17:25:29 CEST] <ldts> all right
[18:44:42 CEST] <A3G1S> Hey Guys, need small help. When I am running ranlib on avutil.so I am getting -> Shared library: [libmp3lame.so.0]
[18:44:43 CEST] <J_Darnley> atomnuker: are you around now?
[18:44:43 CEST] <J_Darnley> I've got a Q about dirac, again.
[18:45:10 CEST] <J_Darnley> Do the transforms in ffmpeg already do edge extension for the plane?
[18:45:12 CEST] <A3G1S> How to make it so it shows -> Shared library: [libmp3lame.so] and not with .0 extension
[18:45:53 CEST] <J_Darnley> The 5_3 one for example does a loop over 1..width-1 in one place.
[18:48:14 CEST] <nevcairiel> A3G1S: this is the correct way to link, it should link to the library with the major version in the name, so when the library changes in an incompatible manner, you'll get a loading error instead of weird crashes
[18:48:30 CEST] <atomnuker> J_Darnley: I have no recollection of "edge extension"
[18:49:01 CEST] <J_Darnley> Oh.
[18:49:19 CEST] <A3G1S> @nevcairiel thanks for the reply, the main issue is with Android ecosystem where System.loadLibrary("mp3lame"); will load libmp3lame.so and not libmp3lame.so.0
[18:49:38 CEST] <A3G1S> Also other libraries like x264, fribidi, fontconfig, libass loads fine
[18:50:03 CEST] <J_Darnley> I think it was in some bizarre coner of the spec, or maybe only a white paper. Anyway, ignore that term for now.
[18:50:48 CEST] <J_Darnley> Is that loop over 1..w-1 supposed to handle overread at the edge of the frame?
[18:50:54 CEST] <A3G1S> its the mp3lame with which I am facing issue with, isn't there a way with which libutil simply looks for libmp3lame.so and not libmp3lame.so.0
[18:51:37 CEST] <nevcairiel> just include a symlink, thats what is usually done
[18:53:27 CEST] <A3G1S> symlink and all works absolutely fine with bash but I just would like to know a way with which I can simply load it without ".0", either by editing configure, Makefile etc
[18:54:07 CEST] <Mavrik> If you're building for Android... why not just link everything statically and avoid these kind of issues?
[18:55:02 CEST] <A3G1S> Thats actually a valid point Mavrik, going to try static build now
[19:13:15 CEST] <A3G1S> @Mavrik with static linking size of the libraries is increasing significantly, so need to go back to shared builds
[19:26:40 CEST] <kepstin> A3G1S: anyways, the name used in linking is based on the 'SONAME' field stored in the library being linked, so if you want it to say 'libmp3lame.so', then you have to rebuild lame to change the SONAME.
[19:28:03 CEST] <kepstin> most libraries do not, of course, provide a way to configure this.
[19:28:14 CEST] <A3G1S> Thanks for the response @kepstin I did try renaming manually but that didn't work either
[19:28:44 CEST] <A3G1S> I am going to change lame configure and build it so it doesn't automagically add .0 to the extension
[19:34:09 CEST] <DHE> usually you're supposed to keep the .0 extension because any future ABI breakage will bump that number and prevent your programs from simply crashing instead
[21:17:40 CEST] <cone-695> ffmpeg 03Rostislav Pehlivanov 07master:24de4fddcad9: lavu/frame: add new side data type for ICC profiles
[21:17:40 CEST] <cone-695> ffmpeg 03Rostislav Pehlivanov 07master:2e08bbb28210: pngdec: decode and expose iCCP chunks as side data
[21:17:40 CEST] <cone-695> ffmpeg 03Rostislav Pehlivanov 07master:0563a5d17542: mdct15: simplify prereindexing and forward transform postrotation
[23:02:31 CEST] <ZeroWalker> is it possible to retrieve the source format parameters from SwrContext?
[23:40:20 CEST] <cone-695> ffmpeg 03Kaustubh Raste 07master:a776cb207448: libavcodec/mips: Optimize avc idct 4x4 for msa
[23:40:21 CEST] <cone-695> ffmpeg 03Michael Niedermayer 07master:7140761481e4: avformat/oggparsecelt: Do not re-allocate os->private
[00:00:00 CEST] --- Wed Jul 26 2017
1
0
[00:02:12 CEST] <pech> hi
[00:07:09 CEST] <pech> I wanna 2 pictures(image001.bmp and image002.bmp)combine to a mp4 with 6 seconds delay ...
[00:09:34 CEST] <pech> Does somebody have a link...?
[00:10:21 CEST] <pech> or better the whole line... starting with ffmpeg
[00:12:51 CEST] <pech> This is what i now have:
[00:12:56 CEST] <pech> ffmpeg -r 1 -i image001.bmp -ss 00:00:04 -i image002.bmp -pix_fmt yuv420p test.mp4
[00:14:55 CEST] <pech> afk
[00:46:38 CEST] <pech> I leave bye
[01:09:56 CEST] <cryptodechange> hm, the 10bit encode test is near enough the exact same size, not changing any settings
[01:54:46 CEST] <furq> great news everyone
[01:54:47 CEST] <furq> https://github.com/google/pik
[01:56:00 CEST] <c_14> oh
[01:56:02 CEST] <c_14> yay
[01:56:06 CEST] Action: c_14 nips off to shoot himself
[01:56:12 CEST] <DHE> interesting... AVX2 required?
[01:56:51 CEST] <c_14> Why does it need libjpeg-dev and libpng-dev though
[01:56:59 CEST] <c_14> Is it some frankencodec?
[01:57:03 CEST] <furq> presumably for decoding
[01:58:05 CEST] <c_14> uses png for debug heatmaps apparently
[01:59:01 CEST] <c_14> and jpeg for benchmarking or something
[01:59:16 CEST] <furq> fun
[01:59:26 CEST] <furq> well i guess at least it's not HEIF
[01:59:35 CEST] <c_14> what was that other one, FLIF?
[01:59:37 CEST] <furq> yeah
[01:59:45 CEST] <furq> that does lossy now in spite of the name iirc
[01:59:55 CEST] <furq> nobody's backing that though so it'll probably just remain a curiosity
[02:06:40 CEST] <TD-Linux> it's basically JPEG fwiw
[02:08:18 CEST] <TD-Linux> much fancier entropy coder though
[02:08:46 CEST] <atomnuker> its pathetic, it still uses scalar quantization
[02:11:31 CEST] <iive> atomnuker: ?
[02:14:09 CEST] <furq> which, pik?
[02:15:29 CEST] <atomnuker> yes
[02:15:37 CEST] <atomnuker> quantizer.h, const float val = block_in[k] * scale[k];
[02:16:00 CEST] <atomnuker> and yes, the coefficients are all floats
[02:16:03 CEST] <atomnuker> ...
[02:18:25 CEST] <atomnuker> but hey, its work in progress, I'm sure in a few years time it'll compare better than hevc intra... in psnr
[02:19:02 CEST] <atomnuker> just after another jpeg-killer has started development by someone else at google
[02:19:42 CEST] <furq> i should probably check how flif compares to webp lossless
[02:19:52 CEST] <atomnuker> pathetic
[02:19:56 CEST] <furq> i don't think i have anything that actually decodes it though
[02:19:59 CEST] <atomnuker> absolutely pathetic
[02:20:07 CEST] <atomnuker> ffv1 beats both in speed and compression
[02:20:20 CEST] <furq> you should make an image format out of it then
[02:20:21 CEST] <atomnuker> flif took a minute to encode a 4k image last time I tested it
[02:20:23 CEST] <furq> everyone will love that
[02:20:28 CEST] <kerio> ffvhuff is so fast tho ;o
[02:20:40 CEST] <furq> christ
[02:20:44 CEST] <furq> kerio: we get it. you want to fuck ffvhuff
[02:20:48 CEST] <furq> can you do it privately
[02:20:55 CEST] <kerio> nu
[02:21:03 CEST] <kerio> you can't stop my love
[02:21:24 CEST] <furq> it's none of my business if you want to be sexually conjoined to a slightly rubbish video codec
[02:21:27 CEST] <furq> please stop making it my business
[02:45:22 CEST] <TD-Linux> I still haven't managed to verify the ffv1 vs flif claim
[02:53:25 CEST] <thebombzen> furq: FLIF is much better than webp lossless
[02:53:28 CEST] <thebombzen> I can tell you this personally
[02:53:48 CEST] <thebombzen> its lossy preprocessor also works much better, is much less lossy than webp's and improves everything dramatically
[02:53:56 CEST] <furq> idc about lossy
[02:54:11 CEST] <thebombzen> but yea, FLIF outperforms webp lossless in compression ratios
[02:54:33 CEST] <thebombzen> for screencaps and stuff that lossless formats excell at, it's still better than webp but not dramatically
[02:54:47 CEST] <thebombzen> but for anything remotely photographic it's much much better
[02:55:06 CEST] <thebombzen> it's also got progressive decoding, etc. it's a really well-designed format and the only real downside is speed at this point (and support)
[02:55:14 CEST] <thebombzen> its decode performance is slow
[02:55:51 CEST] <thebombzen> as for what supports it, I wrote a gdk-pixbuf loader for it so if you use Eye of Gnome / MATE, that works (ish). It's still kind of iffy and I need to iron it out
[02:55:52 CEST] <thebombzen> but it's there
[02:56:06 CEST] <thebombzen> but if you want it for anything other htan long-term archival, it's not great b/c it's slow and has bad support
[02:59:39 CEST] <thebombzen> furq: as for compression ratio, I'm not entirely sure why atomnuker thinks ffv1 has a better ratio. (It doesn't.)
[03:00:11 CEST] <atomnuker> it did when I tested it
[03:00:18 CEST] <atomnuker> (make sure to use the range coder)
[03:02:19 CEST] <furq> are you just encoding a single frame into nut or something
[03:03:23 CEST] <thebombzen> yes
[03:04:57 CEST] <TD-Linux> alright I'm going to settle this question with subset
[03:04:58 CEST] <TD-Linux> 1
[03:05:08 CEST] <thebombzen> granted, it was only 15% larger than flif and way faster
[03:05:22 CEST] <thebombzen> on a huge photograph, flif ended up at 20M and ffv1 was 23M
[03:05:42 CEST] <thebombzen> given the speed difference flif is probably "not worth it" but total trash isn't quite accurate
[03:05:52 CEST] <thebombzen> given that it *is* more efficient
[03:06:36 CEST] <thebombzen> (and yes, I used -coder 1 when encoding)
[03:07:28 CEST] <atomnuker> use -coder range_tab
[03:08:03 CEST] <TD-Linux> should I do 8-bit or 16-bit
[03:13:50 CEST] <thebombzen> atomnuker: same size, 23M
[03:13:57 CEST] <thebombzen> flif was 20M
[03:19:27 CEST] <atomnuker> yeah, sure, for 1 impractically huge image
[03:20:01 CEST] <thebombzen> atomnuker: I tried with several other images, and got very similar results
[03:20:29 CEST] <thebombzen> ffv1 was consistently about 15% larger than FLIF, but encoded and decoded very fast. FLIF took a long time
[03:21:00 CEST] <thebombzen> also depends on what FLIF version you used. if you used a version before a few months ago, that might make sense. FLIF release a new version in April
[03:21:22 CEST] <furq> goddamn flif is slow
[03:21:58 CEST] <furq> three minutes and counting
[03:22:22 CEST] <TD-Linux> yeah still waiting on subset1
[03:22:45 CEST] <furq> this is already like 20x slower than cwebp -z 9
[03:22:57 CEST] <furq> maybe i shouldn't have used -E100
[03:23:05 CEST] <TD-Linux> oh I just used defaults
[03:23:09 CEST] <TD-Linux> though on 16 bit images...
[03:23:20 CEST] <furq> yeah this is rgb24 but it's like 4k by 8k
[03:23:40 CEST] <furq> five minutes now
[03:23:51 CEST] <furq> ffv1 took about five seconds
[03:24:42 CEST] <TD-Linux> hmm ffv1 can't do 16bit rgb
[03:25:03 CEST] <TD-Linux> ah strict -2 gets it
[03:25:09 CEST] <furq> idk why i said "4k by 8k". i could have said 8k
[03:25:24 CEST] <TD-Linux> 227M subset1-ffv1
[03:25:24 CEST] <TD-Linux> 202M subset1-flif
[03:27:32 CEST] <furq> http://vpaste.net/HVLv4
[03:27:41 CEST] <furq> test.flif took 8 minutes though so it fucking better be small
[03:27:42 CEST] <thebombzen> furq: don't use -E100
[03:27:46 CEST] <furq> too late
[03:27:59 CEST] <thebombzen> as in, it's not guaranteed to even be better than -E60 (yes really)
[03:28:01 CEST] <thebombzen> the UI is quite bad
[03:28:07 CEST] <furq> i expected that tbh
[03:28:15 CEST] <thebombzen> but FLIF is still a bit early in its development so that shouldn't be a surprise
[03:28:18 CEST] <thebombzen> the default is -E60
[03:28:22 CEST] <furq> i know
[03:28:42 CEST] <thebombzen> I mean the same reason lasse collins recommends against xz -9 most of the time
[03:28:50 CEST] <furq> and the same reason flac -5 is the default
[03:28:55 CEST] <thebombzen> for gzip -9 is much slower than -7 and usually not worth it
[03:29:02 CEST] <furq> the default is generally the point at which diminishing returns kicks in
[03:29:14 CEST] <furq> but i was using cwebp -z 9 so i figured i should make it a fair test
[03:29:17 CEST] <thebombzen> although for zip it's -6. -7 is a lot better than -6 but then it starts deminishing
[03:29:27 CEST] <thebombzen> gzip* I should say
[03:29:40 CEST] <furq> but yeah holy shit that is slow
[03:29:51 CEST] <thebombzen> for XZ it's not that -9 doesn't help, but the primary advantage of -9 is a larger dictionary
[03:30:03 CEST] <thebombzen> so you generally should only use -9 if you're compressing an enormous file with long-range redundancy
[03:30:30 CEST] <thebombzen> but even then you can use tricks to mitigate the need for that, like sorting filenames before you tar them up
[03:30:36 CEST] <furq> you're still talking about xz
[03:37:38 CEST] <TD-Linux> in the land of lossless diminishing returns really kick in quick
[03:37:50 CEST] <TD-Linux> flif getting as far as it does is pretty impressive despite the speed
[03:38:49 CEST] <TD-Linux> audio is even worse, the spread between the best and worst formats is like 4% http://wiki.hydrogenaud.io/index.php?title=Lossless_comparison
[03:39:41 CEST] <furq> https://xiph.org/flac/images/all-tracks-decode.png
[03:39:56 CEST] <furq> hth
[03:40:56 CEST] <furq> tak is pretty impressive but still not worth it at all
[03:42:03 CEST] <thebombzen> APE too is one of those ones people like to use a lot for some reason
[03:42:15 CEST] <furq> well the reason is obvious, it compresses better
[03:42:23 CEST] <thebombzen> even lavc-flac -compression_level 12 competes pretty well though
[03:42:30 CEST] <furq> and has better support than la and optimfrog which nothing supports
[03:42:46 CEST] <thebombzen> the only reason I can read APE is lavc has a decoder
[03:42:53 CEST] <thebombzen> the reference encoder/decoder is a windows binary
[03:43:12 CEST] <furq> i don't know of anything that has an la or optimfrog decoder
[03:43:16 CEST] <furq> other than the reference binaries
[03:44:26 CEST] <furq> those two, mp4 als and wma lossless are the only formats on that list i've never seen in the wild
[03:44:42 CEST] <thebombzen> are there even decoders for those in lavc?
[03:44:57 CEST] <furq> some of them
[03:45:03 CEST] <furq> ape, tak, alac definitely
[03:45:10 CEST] <furq> and wavpack and shn
[03:45:15 CEST] <thebombzen> alac is useful for some people
[03:45:24 CEST] <furq> and tta apparently
[03:45:39 CEST] <thebombzen> in particular alac-inside-mp4 is how you put lossless audio on an iDevice through the normal sync method
[03:45:41 CEST] <thebombzen> some people care about that
[03:45:48 CEST] <furq> and also wmalossless and mp4als
[03:45:58 CEST] <furq> no optimfrog or la though
[03:46:26 CEST] <furq> i don't think it matters because nobody has ever actually used them
[03:46:35 CEST] <furq> it's like mp4 sls, it only exists in theory
[03:46:52 CEST] <thebombzen> because of lavc, alac is fairly well supported, but it's also slightly less efficient than flac and has no real use other than iDevices
[03:46:57 CEST] <thebombzen> cause apple's closed software
[03:47:02 CEST] <furq> iOS 11 is apparently finally adding flac support
[03:47:07 CEST] <thebombzen> really? that's impressive
[03:47:10 CEST] <furq> supposedly
[03:47:19 CEST] <thebombzen> I know that Apple has been avoiding Xiph formats intentionally on principle
[03:47:21 CEST] <furq> my favourite thing about alac is that i don't think mp4 officially supports it
[03:47:24 CEST] <furq> it's not part of any spec iirc
[03:47:40 CEST] <thebombzen> mp4 doesn't yea, but mov does so I assume lavf uses the same mechanism
[03:47:46 CEST] <thebombzen> like mov has a spec for it
[03:47:49 CEST] <furq> oh
[03:47:54 CEST] <furq> shame
[03:48:05 CEST] <thebombzen> also you *can* mux it to mp4 but you need -f ipod
[03:48:16 CEST] <thebombzen> -c alac -f ipod out.m4a
[03:48:21 CEST] <furq> well i assumed ffmpeg was following the well-known "whatever the fuck itunes does" mp4 spec
[03:48:25 CEST] <furq> like it does for album art
[03:48:33 CEST] <thebombzen> I don't know
[03:48:39 CEST] <thebombzen> using -c alac -f mp4 throws an error
[03:48:42 CEST] <furq> it doesn't really matter because fuck alac
[03:48:46 CEST] <thebombzen> using -c alac -f ipod does not, but outputs an mp4 file
[03:49:10 CEST] <thebombzen> I think -f ipod is basically the cheaty muxer that puts quicktime stuff in mp4 that isn't supposed to be there but is part of the MOV spec
[03:49:23 CEST] <furq> i think they realised that HEIF and no flac was some kind of critical mass of shittiness for an operating system
[03:49:46 CEST] <thebombzen> HEIF? is that an apple thing?
[03:49:47 CEST] <furq> so they were forced to add flac support before all the apple logos on their devices magically change to microsoft logos
[03:49:56 CEST] <furq> HEIF is technically a nokia thing but apple are going full bore with it
[03:50:00 CEST] <thebombzen> wow
[03:50:02 CEST] <furq> it's a NEW IMAGE FORMAT (hooray!!!!!!) based on hevc iframes
[03:50:08 CEST] <furq> sorry i mean
[03:50:11 CEST] <thebombzen> you mean like BPG
[03:50:13 CEST] <furq> it's a NEW IMAGE FORMAT (hooray!!!!!!) based on hevc (HOORAY!!!!!!!!!!!!!!!!!!) iframes
[03:50:25 CEST] <furq> and yeah it's pretty much bpg
[03:50:29 CEST] <thebombzen> but way isn't the whole world except Apple trying to avoid hevc
[03:50:33 CEST] <furq> yes
[03:50:33 CEST] <furq> they are
[03:50:35 CEST] <thebombzen> HEVC is expensive as fuck so unless you're the MPEG-L
[03:50:38 CEST] <thebombzen> MPEG-LA
[03:50:43 CEST] <furq> yup
[03:50:52 CEST] <thebombzen> lol making it 3x as expensive as H.264 seems to have backfired
[03:51:03 CEST] <furq> but the important thing is that google didn't make it, so it's better
[03:51:10 CEST] <thebombzen> everyone is like, "yea, I'll keep using my cheaper license, existing infrastructure, and x264"
[03:51:28 CEST] <furq> and also you have to pay out the ass if you want to write a program that has an HEIF decoder on non-apple systems
[03:51:31 CEST] <furq> but mostly the first thing! yay
[03:51:48 CEST] <thebombzen> I mean nobody lkes vp9 so they could have made it not absurdly expensive and people still would use it over vp9
[03:52:05 CEST] <thebombzen> but they kinda just scared everyone back to their cheap H.264 and x264
[03:52:13 CEST] <furq> well they did make it less expensive
[03:52:23 CEST] <furq> unfortunately they also didn't bother preventing three other patent pools from appearing
[03:52:36 CEST] <furq> so now you need four licenses that are all more expensive than the one avc license you need
[03:52:45 CEST] <furq> and potentially more
[03:53:11 CEST] <furq> either that or you need to spend an equal amount of money on patent lawyers to figure out which pools you potentially owe money to
[03:53:12 CEST] <thebombzen> Software Patents (TM)
[03:53:19 CEST] <thebombzen> Patents protect innovation, right?
[03:53:31 CEST] <furq> i sure am glad i'm in the EU
[03:53:34 CEST] <thebombzen> They surely don't discourage people from trying to create new things
[03:53:36 CEST] <furq> oh...wait...ah fuck
[03:53:38 CEST] <thebombzen> that would be silly
[03:53:51 CEST] <thebombzen> Americans had a brief moment of smugness
[03:54:00 CEST] <furq> yeah that didn't last long did it
[03:54:08 CEST] <thebombzen> then we elected an orange
[03:54:14 CEST] <thebombzen> and we lost our right to be anti-smug
[03:54:26 CEST] <thebombzen> or whatever we did for like 2 months
[03:54:32 CEST] <thebombzen> but it goes to show there's idiots everywhere
[03:54:51 CEST] <furq> i don't want to brag but i already knew both of those countries were fucked
[03:55:11 CEST] <thebombzen> yea I should just move back to the country of my ancestors
[03:55:13 CEST] <thebombzen> ohwait which one is that
[03:55:23 CEST] <thebombzen> Ukraine? nvm
[03:55:41 CEST] <furq> you should just become donald trump's next wife
[03:55:55 CEST] <thebombzen> but then I'd have to be an illegal immigrant
[03:56:00 CEST] <thebombzen> but I was born here, can't be possible
[03:56:38 CEST] <thebombzen> in order to do that I'd have to move to Eastern europe, renounce my citizenship, say, "oh wait, nvm, I love Murica, we have the best things, this other country is wrong so sad"
[03:56:46 CEST] <thebombzen> and pretend that I'm female
[03:56:58 CEST] <thebombzen> not worth it, tbh, when I could just sit at home and make fun of him
[03:57:01 CEST] <furq> just pretend you're a big truck
[03:57:08 CEST] <furq> vroom vrooom
[03:57:18 CEST] <furq> honk honnkkkk
[03:57:34 CEST] <thebombzen> maybe he watches enough family guy he'd belive it
[04:06:52 CEST] <TD-Linux> thebombzen, ironically it's expensive even if you're the MPEG-LA, because HEVC advance charges more.
[04:07:20 CEST] <thebombzen> so the business practice they created ended up screwing them
[04:07:21 CEST] <furq> do they actually sell one another licenses
[04:07:21 CEST] <thebombzen> excellent
[04:07:35 CEST] <furq> don't they all claim to have patent pools that cover the whole thing
[04:07:40 CEST] <TD-Linux> flac actually has a mp4 containerization now and it works in firefox
[04:08:41 CEST] <TD-Linux> furq, no
[04:08:47 CEST] <TD-Linux> they only cover the patents they have
[04:08:59 CEST] <TD-Linux> even for H.264, MPEG-LA never claimed to cover the whole thing
[04:09:25 CEST] <furq> i know velos are claiming to cover the whole thing
[04:09:31 CEST] <TD-Linux> really? interesting
[04:09:35 CEST] <TD-Linux> their pricing is also unannounced
[04:09:39 CEST] <furq> although it's probably weasel-worded well enough that they can claim to not actually be saying that
[04:09:56 CEST] <furq> oh fucking hell i forgot their fucking piss awful scrolljacking on their site
[04:10:05 CEST] <furq> i'll be back in five minutes when i have figured out how to find some text on a website
[04:10:37 CEST] <TD-Linux> I can't even select the relevant text
[04:10:38 CEST] <furq> fucking hell this shit should be fucking banned
[04:10:45 CEST] <furq> you should be wiped off the face of the fucking earth for websites like this
[04:11:04 CEST] <furq> Were streamlining the patent licensing process by offering a single license to end user product companies that manufacture or sell HEVC-enabled devices, thereby creating a solution for them and patent holders alike, said Kasim Alfalahi, co-founder of the Marconi Group, an entity formed to create, launch and support new patent licensing platforms, including Velos Media.
[04:11:13 CEST] <furq> i had to find a press release somewhere else
[04:11:22 CEST] <TD-Linux> yeah so on their website they say they have 5 different companies
[04:11:27 CEST] <TD-Linux> and it's a single license for those company's things
[04:11:38 CEST] <TD-Linux> as opposed to negotiating with the companies separately
[04:11:40 CEST] <furq> but yeah i notice that doesn't actually say "this is the only license you need"
[04:11:46 CEST] <furq> it just sounds a lot like it says that
[04:11:59 CEST] <furq> i wonder why~
[04:13:07 CEST] <furq> anyway, i think it is extremely cool and good that apple have decided to use this not only for all video but also for images
[04:13:16 CEST] <klaxa> wow scrolling like that sucks
[04:13:22 CEST] <klaxa> why are people allowed to do that
[04:13:25 CEST] <furq> hopefully they figure out some way to use it for audio as well somehow
[04:14:09 CEST] <furq> also this is to say nothing of the way velos have an "h264 vs hevc" comparison video
[04:14:12 CEST] <furq> which is a webm
[04:14:25 CEST] <furq> and they just scaled the "h264" video with nearest
[04:15:56 CEST] <TD-Linux> LOL I just found that video now
[04:17:21 CEST] <TD-Linux> >vp8/vorbis
[04:17:37 CEST] <furq> noice
[04:17:46 CEST] <furq> there is an h264 one as well
[04:17:54 CEST] <furq> idk if that's more or less ironic
[04:17:56 CEST] <TD-Linux> this is like north korea using linux
[07:21:42 CEST] <FlyingJester> I have a capture card that has multiple inputs (RF, Composite, and S-Video). How would I choose which one to use when capturing?
[07:37:54 CEST] <kerio> why does v4l2enc only support raw video? :(
[10:40:58 CEST] <pihpah> How can I extract HDMV PGS subtitles from an MKV file to something 'Subtitle Edit' would understand? Like *.sup or *.sub/*.idx formats.
[10:53:10 CEST] <ubitux> we have demuxers but no muxers
[10:53:47 CEST] <tdr> https://trac.ffmpeg.org/wiki/ExtractSubtitles ?
[10:54:11 CEST] <ritsuka> mkvextract
[11:37:42 CEST] <memphisw> i use `./ffmpeg -i xxx.mp4 -i xxx%03d.png out.mp4` to merge a mp4 and a gif, pngs is the shorter one, how can i repeat pngs from beginning after pngs are use out
[13:27:01 CEST] <memphisw> -loop i in input option, i figure it out
[16:31:57 CEST] <Mavrik> Hmm, so what's more efficient overall, slice or frame based threading for H.264 DEcodec?
[16:32:00 CEST] <Mavrik> *decoder
[16:32:50 CEST] <JEEB> generally frame based threading is faster, slice based decoding gives less latency
[16:33:18 CEST] <JEEB> I implemented slice based multithreading for another decoder and that was the general gist as well.
[16:33:33 CEST] <JEEB> you did get a speed-up, but it wasn't as fast as frame-based threading can be
[16:33:51 CEST] <JEEB> but on the other hand, slice based threading lets you have less threading-based latency
[16:34:55 CEST] <Mavrik> Hmm, point.
[16:35:37 CEST] <Mavrik> Having a bit of issues with H.264 1080p decode being slow/late even though the machine's CPUs aren't saturated.
[16:37:05 CEST] <kepstin> a lot of the latency when decoding h264 depends on the encoder settings used - if b-frames are used, the decoder has to buffer frames to reorder them.
[16:37:31 CEST] <JEEB> of course
[16:38:12 CEST] <Mavrik> Mhm. I don't really have issues with latency though.
[16:38:18 CEST] <Mavrik> Just throughput
[16:38:26 CEST] <JEEB> yea, then frame threads is the one you want
[16:38:32 CEST] <Mavrik> Meaning - the decoder can'
[16:38:32 CEST] <JEEB> and that's more tested, anyways
[16:38:42 CEST] <Mavrik> *can't seem to decode as fast as the stream is coming in
[16:38:46 CEST] <Mavrik> Ah, makes sense.
[16:43:19 CEST] <kepstin> with h264, I think slice-based threading on the decoder can only be done if the video was encoded with slices?
[17:00:49 CEST] <DHE> I'm in the same boat. just use frame-based decoding and a sane number of threads. I'm using 4
[17:01:25 CEST] <JEEB> kepstin: naturally
[17:01:33 CEST] <JEEB> if you have a single slice then that's it
[17:50:31 CEST] <jcelerier> hello :) where can I find how to devise the codec to use with a given file, in the C API ?
[17:50:59 CEST] <jcelerier> (I'd like to make a function that just decodes any kind of audio file to an array of float)
[18:09:43 CEST] <jcelerier> (and I don't want to use ffprobe, or worse, libmediainfo)
[18:29:20 CEST] <leif> Does anyone know why the pointer returned by `avformat_open_input` would be NULL?
[18:29:34 CEST] <leif> (When the given file exists.)
[18:32:21 CEST] <DHE> check the return code for a reason
[18:32:24 CEST] <leif> Also the returned status is 0
[18:32:33 CEST] <leif> DHE: ya, its 0.
[18:37:44 CEST] <leif> DHE: Also, fwiw, the last thing to get sent to the log seems to be: on_parse_exit_offset=106479581
[18:46:21 CEST] <A3G1S> Hey Guys, need small help. When I am running ranlib on avutil.so I am getting -> Shared library: [libmp3lame.so.0]
[18:46:29 CEST] <A3G1S> How to make it so it shows -> Shared library: [libmp3lame.so] and not with .0 extension
[20:15:31 CEST] <leif> Another question, is there a changlog for libavfilter?
[20:15:58 CEST] <leif> I say that because libavfilter.6.65.100 does not seem to have av_buffersink_get_type, but avfilter.6.82.100 does.
[20:19:24 CEST] <JEEB> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/APIchanges;h=69f876e6c3e…
[20:19:36 CEST] <JEEB> the doc/APIchanges file
[20:23:01 CEST] <leif> Thank you.
[20:58:24 CEST] <Agafnd> so I have a 1920x1080 video, which is like a ratio of 1.77..., and I need it to be in either 4:3 or 16:9 ratio.
[20:58:52 CEST] <JEEB> use libavfilter according to your requirements
[20:59:41 CEST] <Agafnd> I'd like to add black bars to the sides, rather than stretching it.
[20:59:47 CEST] <Agafnd> can libavfilter do that?
[20:59:58 CEST] <furq> !filter pad
[20:59:58 CEST] <nfobot> furq: http://ffmpeg.org/ffmpeg-filters.html#pad-1
[21:00:23 CEST] <pgorley> Agafnd: 1920x1080 is 16:9
[21:00:33 CEST] <pgorley> 1920/1080==16/9
[21:01:33 CEST] <Agafnd> pgorley: *actually* I think it's 1080x1920
[21:01:43 CEST] <Agafnd> short side on top
[21:01:54 CEST] <Agafnd> which is a bit problematic.
[21:02:40 CEST] <DHE> wouldn't it be better to just store the aspect ratio properly and let the player deal with it?
[21:03:06 CEST] <Agafnd> well, this *wouldn't* be a problem
[21:03:12 CEST] <durandal_1707> players sucks
[21:03:24 CEST] <Agafnd> except devede doesn't want to deal with it.
[21:08:16 CEST] <cbsrobot> Agafnd: https://www.youtube.com/watch?v=Bt9zSfinwFA
[21:09:19 CEST] <Agafnd> cbsrobot: not my fault ;_;
[21:19:14 CEST] <Agafnd> hm this is a rather cpu-expensive computation
[21:19:17 CEST] <Agafnd> *shrug*
[21:24:49 CEST] <Blubberbub> is there a way to enable/disable filters based on (minimum) file length?
[21:27:20 CEST] <durandal_1707> no
[21:27:58 CEST] <durandal_1707> Agafnd: whats cpuexpensive?
[21:31:07 CEST] <Agafnd> adding a black bar to the side of every single frame
[21:31:17 CEST] <Agafnd> on second thought that's not too surprising
[21:32:04 CEST] <durandal_1707> thats very cheap, unless you run it on pottato
[21:34:03 CEST] <Agafnd> well it took forever and ran the four cores at 98-100% each
[21:34:57 CEST] <durandal_1707> put whole command here
[21:36:26 CEST] <Agafnd> ffmpeg -i video.mp4 -vf pad=1260:1920:180:0 video-bar.mp4
[21:37:14 CEST] <durandal_1707> because you are encoding
[21:37:34 CEST] <Agafnd> ...ah. how doesn't I encode?
[21:37:45 CEST] <Agafnd> something to do with "copy"?
[21:38:04 CEST] <durandal_1707> but then you cant filter
[21:38:07 CEST] <Blubberbub> you cannot copy and filter, though
[21:38:14 CEST] <Agafnd> good point
[21:39:17 CEST] <Agafnd> so is there anything I *can* do to speed it up?
[21:40:31 CEST] <furq> are you burning this to a dvd
[21:40:39 CEST] <Agafnd> I will be yes
[21:40:51 CEST] <furq> well then scale it to the right resolution
[21:41:07 CEST] <furq> honestly you could just encode the video in one step with ffmpeg instead of going through an intermediate format
[21:41:36 CEST] <furq> i have no idea whether devede will let you do that though
[21:43:27 CEST] <furq> actually
[21:43:36 CEST] <furq> how long is this video and do you have plenty of free disk space
[21:44:26 CEST] <Agafnd> about 5 or 6 minutes, and about 200G
[21:44:59 CEST] <furq> is this ntsc or pal dvd
[21:45:06 CEST] <Agafnd> ntsc
[21:46:13 CEST] <furq> -i video.mp4 -vf scale=270:480,pad=720:480:225 -c:v ffvhuff out.nut
[21:46:16 CEST] <kerio> gstreamer is bloody MENTAL
[21:46:20 CEST] <kerio> how do people use that
[21:46:31 CEST] <furq> kerio: look, i used ffvhuff in an example command
[21:46:34 CEST] <furq> do u love me now
[21:46:41 CEST] <kerio> i always love u bby
[21:46:43 CEST] <furq> Agafnd: actually
[21:46:47 CEST] <furq> -i video.mp4 -vf scale=270:480,pad=720:480:225 -c:v ffvhuff -c:a copy out.nut
[21:47:01 CEST] <furq> that should be extremely quick
[21:47:11 CEST] <Agafnd> furq: what does that do, exactly?
[21:47:32 CEST] <furq> scales the video to 270x480, pads it to 720x480 (ntsc dvd) and then encodes it with a fast lossless codec
[21:47:51 CEST] <Agafnd> what's .nut?
[21:47:54 CEST] <furq> apparently devede uses libavcodec so it should accept that as an input
[21:47:58 CEST] <furq> .nut is a container
[21:48:20 CEST] <Agafnd> okay, will try
[21:48:48 CEST] <furq> if it doesn't like .nut then try mkv
[21:48:52 CEST] <furq> that should work though
[21:49:14 CEST] <Blubberbub> TODO: ffmpeg-dvd-output-protocol, that can write directly to disk ;)
[21:49:36 CEST] <furq> it would be nice if it could read dvd directory structures, never mind write them
[21:49:48 CEST] <furq> i guess going through tccat is fine though
[21:50:01 CEST] <furq> i can imagine not wanting to go near that whole pile of shit
[21:50:45 CEST] <kerio> can a mkv fit a dvd exactly
[21:50:50 CEST] <kerio> with all extra content and menus
[21:51:07 CEST] <furq> does mkv support menu navigation
[21:51:13 CEST] <furq> also that would generally suck ass
[21:51:33 CEST] <furq> also i don't think it supports multi-angle either
[21:51:41 CEST] <furq> and there's no distinction between title and chapter
[21:51:49 CEST] <furq> so basically "yes, but it'll be shit"
[21:52:20 CEST] <kerio> wait, mkv is the one that can't represent 24000/1001 fps exactly, right
[21:52:34 CEST] <furq> yeah but dvds are never that framerate
[21:52:41 CEST] <furq> it can't represent 30000/1001 either though
[21:53:05 CEST] <furq> 25 is fine though so it's all good
[21:57:28 CEST] <Agafnd> furq: hey, that works pretty well
[21:57:30 CEST] <Agafnd> thanks
[22:20:38 CEST] <redrabbit> is there other options than maxrate and bufsize to keep a stream under a certain bit rate
[22:21:46 CEST] <furq> does there need to be
[22:33:15 CEST] <redrabbit> do they work with libx265 ? i see the bitrate going higher than the limit, stutters on the low bandwith link
[22:36:11 CEST] <kepstin> redrabbit: the ffmpeg options for it probably aren't hooked up, use -x265-params
[22:41:21 CEST] <redrabbit> i switched to theses, trying stability now
[23:07:49 CEST] <kerio> furq: what's the simplest format with a PTS for raw video?
[23:08:00 CEST] <kerio> that's understood by ffmpeg, that is
[23:31:14 CEST] <wondiws2> I forgot the command to extract ac3 from a vob file, what is it again? This time I will make a note :)
[23:31:47 CEST] <dystopia_> ffmpeg -i input.vob -sn -vn -acodec copy out.ac3
[23:33:32 CEST] <wondiws2> dystopia_, "could not find codec parameters" :(
[23:33:36 CEST] <dystopia_> if it has more than 1 audio track you will need to use -map to select which one you want
[23:33:43 CEST] <dystopia_> you sure it's ac3?
[23:34:34 CEST] <wondiws2> dystopia_, yes, but there seems to be a nasty menu in front of it, I think I'm gonna re-read my DVD, but this time with DVDDecryptor
[23:34:41 CEST] <dystopia_> ffmpeg -i input.vob -ac 2 -y out.wav
[23:34:44 CEST] <dystopia_> try that
[23:35:11 CEST] <wondiws2> dystopia_, negative
[23:35:27 CEST] <dystopia_> you should paste your termial logs to pastebin
[23:35:37 CEST] <wondiws2> dystopia_, never mind, I'm gonna re-rip again
[23:35:43 CEST] <dystopia_> also do ffprobe input.vob and post that to pastebin
[23:35:43 CEST] <wondiws2> I'm pretty sure something went wrong there
[23:35:48 CEST] <dystopia_> ok
[00:00:00 CEST] --- Wed Jul 26 2017
1
0
[02:48:52 CEST] <cone-553> ffmpeg 03Michael Niedermayer 07master:69e7daf6ce2a: avcodec/dirac_vlc: Fix undefined shift
[02:48:52 CEST] <cone-553> ffmpeg 03Michael Niedermayer 07master:2dfb8c417891: avcodec/aacdec_fixed: fix: left shift of negative value -1
[02:48:52 CEST] <cone-553> ffmpeg 03Michael Niedermayer 07master:aff93e19297c: avcodec/mpegvideo_enc: Use intra/inter scantable matching mb type in quantization
[03:11:25 CEST] <KGB> [13FFV1] 15michaelni closed pull request #80: tiny typo (06master...06patch-1) 02https://git.io/v7ICy
[11:47:40 CEST] <ubitux> michaelni: can you upload http://b.pkh.me/fake-gp-media-with-real-gpmf.mp4 to fate-suite/mov?
[11:49:55 CEST] <ubitux> i'll push the gpmf remux with the following: http://sprunge.us/KeYX?diff
[12:06:00 CEST] <ubitux> i can push the test later though
[12:50:19 CEST] <J_Darnley> I've got a question regarding tests/ref/fate/sub-srt-badsyntax, does it have crlf line endings in master? Is it supposed to?
[13:14:22 CEST] <J_Darnley> What does git mean with this message? "warning: CRLF will be replaced by LF in tests/ref/fate/sub-srt-badsyntax. The file will have its original line endings in your working directory."
[13:16:36 CEST] <J_Darnley> God dammit git! Just commit the file as given!
[13:17:33 CEST] <TMM> Does git do automatic dos/unix line conversions?
[13:17:36 CEST] <TMM> that's weird
[13:19:08 CEST] <J_Darnley> All because Notepad is too stupid to understand lf endings.
[13:19:27 CEST] <J_Darnley> Although bash isn't any better and doesn't like crlf endings.
[13:28:11 CEST] <kierank> J_Darnley: ah yeah i have botched line endings in my repo
[13:30:47 CEST] <J_Darnley> damn you telenet
[13:30:48 CEST] <J_Darnley> Well, they may or may not be matching master at present. I just commited regardless.
[13:30:57 CEST] Action: J_Darnley goes for lunch
[13:39:58 CEST] <michaelni> ubitux, uploaded
[13:53:57 CEST] <durandal_1707> what about fake color filter?
[13:54:31 CEST] <ubitux> michaelni: thanks
[13:56:24 CEST] <cone-362> ffmpeg 03Steven Liu 07master:f21457f8e0db: avformat/hlsenc: fix hls fmp4 extention name bug
[13:58:50 CEST] <J_Darnley> :( back to dirac
[14:44:09 CEST] <cone-362> ffmpeg 03Clément BSsch 07master:850a45aef10b: lavf/movenc: support GPMF track (gpmd) remuxing
[15:13:51 CEST] <ubitux> note to self: add an option to disable all the fucking autodetected libs
[15:14:08 CEST] <ubitux> (it makes builds completely unpredictible)
[15:15:33 CEST] <JEEB> aye
[15:17:43 CEST] <RiCON> --disable-all?
[15:21:30 CEST] <ubitux> only the autodetected stuff
[15:21:37 CEST] <ubitux> xcb, vdpau etc
[15:22:16 CEST] <BBB> ubitux: yes!!!!!
[15:22:27 CEST] <BBB> I really dislike how vda is automatically enabled in my osx builds
[15:27:52 CEST] <J_Darnley> kierank: I've got edge extension working but the other transforms produce just as poor quality as before.
[15:28:28 CEST] <kierank> J_Darnley: as before?
[15:28:38 CEST] <J_Darnley> as before edge extension
[15:28:56 CEST] <kierank> I guess the result is not bitexact?
[15:29:35 CEST] <J_Darnley> the output is the same with and without extension but the quality is rubbish compared to the whole plane transform
[15:29:47 CEST] <kierank> I would ask atomnuker
[15:31:47 CEST] Action: J_Darnley needs to look at the spec again
[15:38:49 CEST] <ubitux> BBB: it's especially problematic in the context of automated builds
[16:06:13 CEST] <nevcairiel> typically things are enabled that are basically available everywhere, or require no runtime libraries
[17:54:42 CEST] <cone-362> ffmpeg 03Michael Niedermayer 07master:0764fe1d0983: avcodec/aacps: Fix multiple integer overflow in map_val_34_to_20()
[17:54:43 CEST] <cone-362> ffmpeg 03Michael Niedermayer 07master:03a9e6ff303a: avcodec/ylc: Fix shift overflow
[18:01:26 CEST] <BBB> does anyone feel like it would be more productive to amend the C standard and make the results of signed integer operation overflows implementation-defined instead of undefined instead of the madness currently going on in our codebase?
[18:02:49 CEST] <nevcairiel> Personally I would just treat it that way, and call it a day. But apparently so called "security researches" see these things as "serious issues" and if you don't listen to them they'll drown you in CVEs and ruin your day!
[18:03:27 CEST] <nevcairiel> All this shit probably doesnt even change the assembly one bit, or does it?
[18:05:16 CEST] <iive> BBB: it could be even better, they can create a new defined type, or repurpose one of the existing. .e.g int32_t could be defined to overflow and "int" could be left undefined.
[18:05:22 CEST] <BBB> Im worried about readability and wasting developer time
[18:05:30 CEST] <BBB> the output assembly is indeed the same
[18:05:53 CEST] <BBB> (or nearly the same, I believe for multiplies it can change a bit)
[18:27:41 CEST] <Blubberbub> Isn't the problem with overflows that some compilers say: "Hey, i know this can overflow, but overflow is undefined behaivior, so i can do whatever i want now" and "optimize" the applications in a way the developer never intended to?
[18:52:31 CEST] <kierank> atomnuker: is qp_idx=0 for dirac meant to be lossless?
[19:07:12 CEST] <kierank> atomnuker: also where do you handle the picture edges in vc2enc?
[19:07:15 CEST] <kierank> that's also confusing
[19:09:40 CEST] <nevcairiel> Blubberbub: its a cheap excuse to say that the compiler "notices" undefined behavior and then uses that to go off the rails, in reality I doubt any compiler even cares about that and just translates to the appropriate instructions, so it might as well be called implementation defined, since that what it ends up being, defined by the underlying hardware what happens
[19:11:35 CEST] <Blubberbub> nevcairiel, there is this old (>6 years) llvm blogpost "what every c programmer should know about undefined behaivior" that i once read and it has a different standpoint
[19:12:01 CEST] <nevcairiel> i'm sure there are other undefined parts that may be worse
[19:21:42 CEST] <Blubberbub> speaking about overflow: is there a method in ffmpeg that allows me to detect overflow when adding 2 audio samples?
[19:25:18 CEST] <iive> Blubberbub: compile with -ftrapv and it will call trap (int 2) when this happens. you could attach a debugger to it :D
[19:26:38 CEST] <iive> Blubberbub: or use mmx ops that saturate the result
[19:27:26 CEST] <atomnuker> kierank: yes, it should be lossless
[19:27:33 CEST] <Blubberbub> i'd rather prevent them from happening :D
[19:27:41 CEST] <Blubberbub> have not found mmx ops yet
[19:27:51 CEST] <atomnuker> the shift up of the transform and the shift down from quantization result in a shift of 0
[19:28:38 CEST] <nevcairiel> if you use floating sample formats, the "overflow" isnt so easy to automatically detect by the compiler, since overflow just means it goes above 1.0, not actually overflows any datatype. of course this method also allows you to actually manually check and recover from the overflow by attenuating
[19:28:58 CEST] <Blubberbub> i'm more worried about signed samples
[19:29:08 CEST] <Blubberbub> but mmx ops is probably the way to go
[19:29:18 CEST] <Blubberbub> now that i know they exist. Thanks iive :)
[19:29:19 CEST] <nevcairiel> any audio processing should really be done in float though
[19:29:33 CEST] <BBB> Blubberbub: please note that most blog posts about undefined behaviour vs. security issues are not at all related to integer overflows
[19:29:51 CEST] <BBB> Blubberbub: nobody denies that some forms of undefined behaviour (e.g. out of bounds array reads/writes) are extremely dangerous
[19:30:01 CEST] <nevcairiel> also, dont use mmx, use sse at the very least. it has the same saturating instructions
[19:30:12 CEST] <nevcairiel> mmx is just old and dead
[19:30:24 CEST] <Blubberbub> nevcairiel, i fear i will have to support old hardware :(
[19:30:25 CEST] <iive> all mmx ops are present in sse and avx
[19:30:26 CEST] <BBB> Blubberbub: but a signed integer multiplication overflow isnt quite the same undefined behaviour as an OOB write - yet theyre both undefined and thus some people will claim you can hack my computer with either
[19:31:09 CEST] <nevcairiel> Blubberbub: ... how old is old? sse1/2 are available for 15 years now
[19:32:14 CEST] <jdarnley> If you're on x86-64 then sse2 is always available
[19:33:04 CEST] <Blubberbub> have to target 32 bit :(
[19:35:37 CEST] <nevcairiel> thats fine, but what kind of level of old cpus?
[19:35:49 CEST] <nevcairiel> because mmx-only cpus are really so old that it seems very unrealistic
[19:36:42 CEST] <Blubberbub> BBB: Its not the same, true. An exploit is normally caused by something the programmer did not think of when writing the code. And overflows are easy to forget.
[19:37:55 CEST] <iive> one of the examples in the llvm article is a boundary check, that gets optimized out, because the compiler assumes overflow is not possible.
[19:39:06 CEST] <nevcairiel> there may be some cases where its relevant, but we're talking DSP functions here, the data is not used other then making pixels
[19:39:45 CEST] <Blubberbub> nevcairiel, the code is supposed to run on an Intel Pentium M... (Don't ask...)
[19:40:09 CEST] <iive> Blubberbub: Military?
[19:40:13 CEST] <nevcairiel> Pentium M is a P6, that has SSE and SSE2
[19:40:17 CEST] <nevcairiel> so no reason to bother with MMX
[19:40:28 CEST] <durandal_170> atomnuker: are you in good health?
[19:40:36 CEST] <Blubberbub> yea, just checked that as well. :D
[19:40:40 CEST] <Blubberbub> thanks :)
[19:40:52 CEST] <nevcairiel> like I said, MMX is unbeliavably old ;)
[19:41:11 CEST] <nevcairiel> even a 15 year old cpu from 2003 like the Pentium M supports SSE already. :)
[19:41:25 CEST] <nevcairiel> (and on that slow thing, you'll need it :p)
[19:41:30 CEST] <Blubberbub> iive, worse. Its family. :)
[19:41:42 CEST] <iive> :D
[19:44:05 CEST] <kierank> atomnuker: not lossless
[19:44:37 CEST] <kierank> ./ffmpeg -loglevel info -lavfi testsrc2=hd1080,format=yuv422p10 -vframes 1 -vcodec vc2 -wavelet_type haar -strict unofficial -wavelet_depth 3 -threads 1 -qp 0 -y temp.nut
[19:45:36 CEST] <atomnuker> iive: you can't use 8 registers in 32 bit mode
[19:45:39 CEST] <atomnuker> you can use 7 grps
[19:45:56 CEST] <iive> atomnuker: 8 xmm registers
[19:46:45 CEST] <iive> i have ifdef-ery for the PIC base register
[19:46:50 CEST] <atomnuker> iive: all of our asm code has costants at the very top
[19:47:42 CEST] <iive> it has always been like this and it will always be like this. Amen.
[19:48:48 CEST] <atomnuker> well there's no reason to change the style randomly
[19:49:09 CEST] <iive> atomnuker: oh, forgot to ask you, benchmark also xmm avx2
[19:49:11 CEST] <atomnuker> I wouldn't mind if you just put the emulated instruction crap in x86utils
[19:49:19 CEST] <atomnuker> iive: I did, it made no difference
[19:49:34 CEST] <iive> now that's strange.
[19:49:45 CEST] <iive> can i see the numbers?
[19:50:43 CEST] <atomnuker> I posted them in the irc channel long ago when I did all the benchmarks on my machine
[19:50:57 CEST] <atomnuker> it was the same speed as avx, but I'll give it another go
[19:51:16 CEST] <iive> oh, that's ok
[19:51:48 CEST] <iive> i do expect them to be similar to avx1.
[19:53:27 CEST] <iive> you can see that there is small speed up on ryzen between v3 and v4, that's why I'd be happy if you run few more benchmarks.
[19:54:25 CEST] <iive> i'll make a patch that puts the emulated instructions in x86util ,
[19:54:55 CEST] <iive> there is a minor problem that i have improved version of a broadcast op that is already used in few places...
[19:57:47 CEST] <kierank> atomnuker: ah seems to be the way you calculate q_avg is false
[19:58:24 CEST] <kierank> s->q_avg = (s->q_avg + args->quant_idx)/2;
[19:58:30 CEST] <kierank> that's not equivalent to an average afaik
[19:59:31 CEST] <durandal_170> BBB: have you looked at ssim asm crash?
[19:59:44 CEST] <BBB> no, probably lack of padding, but not looked yet
[20:01:58 CEST] <atomnuker> kierank: it looks like an average to me, except I drop the rounding so in some cases it'll be off by one
[20:02:32 CEST] <kierank> I get qavg = 0 when clearly there are slices with not that
[20:03:36 CEST] <kierank> (a+b)/2 + c/2 != (a+b+c)/3
[20:04:15 CEST] <atomnuker> it works as indended then, make it a float and it'll give you more precision
[20:04:27 CEST] <kierank> stil 0.000000
[20:04:29 CEST] <kierank> ((a+b)/2 + c)/2 I mean
[20:04:32 CEST] <kierank> that's not an average
[20:04:37 CEST] <atomnuker> where do I do that?
[20:05:14 CEST] <kierank> for (i = 0; i < s->num_x*s->num_y; i++) {
[20:05:14 CEST] <kierank> SliceArgs *args = &enc_args[i];
[20:05:14 CEST] <kierank> total_bytes_needed += args->bytes;
[20:05:14 CEST] <kierank> s->q_avg = (s->q_avg + args->quant_idx)/2;
[20:05:14 CEST] <kierank> }
[20:06:18 CEST] <atomnuker> it is an average, its just not accurate because of doing it on a per-slice basis with an integer
[20:06:33 CEST] <Blubberbub> i also don't think its an average
[20:06:33 CEST] <kierank> ((a+b)/2 + c)/2 != (a+b+c)/3
[20:06:34 CEST] <atomnuker> make it a sum and divide it by the number of slices then
[20:06:41 CEST] <kierank> QED it's not an average
[20:06:48 CEST] <Blubberbub> the last sample is only divided by 2, but the first by 2 ** a lot
[20:07:52 CEST] <atomnuker> it is an average, you're both tripping
[20:07:55 CEST] <kierank> I will send a patch
[20:08:05 CEST] <kierank> I have just proven it's not an average
[20:08:22 CEST] <atomnuker> your proof does not apply here
[20:08:30 CEST] <kierank> yes it does
[20:08:54 CEST] <kierank> the fact you are rounding doesn't make the maths suddenly correct
[20:09:26 CEST] <Blubberbub> summing and dividing has huge numeric instability, though.
[20:09:33 CEST] <iive> I reject your reality and substitute my own ;)
[20:09:47 CEST] <kierank> I just want to know the average slice quantiser
[20:09:48 CEST] <kierank> that's all
[20:09:54 CEST] <kierank> and it's printed incorrectly at the moment
[20:12:05 CEST] <atomnuker> kierank: IT IS AN AVERAGE, just with a sample size of 2
[20:12:14 CEST] <jdarnley> Fuck libavfilter and its rubbish syntax. I hate you! Everything crammed into one string with unknown levels of escaping.
[20:12:15 CEST] <kierank> it's not a sample size of two
[20:12:20 CEST] <Blubberbub> ah
[20:12:20 CEST] <kierank> you loop through all the slices
[20:12:26 CEST] <Blubberbub> its not += its =
[20:12:27 CEST] <atomnuker> I ignore that
[20:12:34 CEST] <Blubberbub> oh wait
[20:12:39 CEST] <atomnuker> its valid if the sample size is 2
[20:12:53 CEST] <kierank> then it's not an average slice quantiser?
[20:13:04 CEST] <atomnuker> no, it is not
[20:13:23 CEST] <kierank> https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/vc2enc.c#L1048
[20:13:26 CEST] <kierank> why print it then?
[20:13:38 CEST] <kierank> it's not used anywhere apart from printing
[20:14:09 CEST] <atomnuker> debugging, I wanted to know more or less a very coarse quantizer info
[20:14:34 CEST] <atomnuker> since quality goes to shit vert very quickly as you reduce bitrate
[20:14:37 CEST] <kierank> this is completely insane
[20:14:57 CEST] <atomnuker> x264 does it
[20:15:02 CEST] <kierank> x264 does it properly
[20:15:26 CEST] <atomnuker> I didn't want to spend time doing it properly
[20:15:40 CEST] <atomnuker> I wanted a rough indication and couldn't be bothered to make it correct
[20:15:55 CEST] <kierank> yes but it confuses people like me who are working on the code
[20:15:59 CEST] <kierank> who thought the output was lossless
[20:16:32 CEST] <kierank> h->stat.f_frame_qp[i_slice] / i_count
[20:16:35 CEST] <kierank> x264 QP is a proper average
[20:16:40 CEST] <atomnuker> no guarantees the output is lossless unless you fix the quantizer
[20:17:30 CEST] <kierank> an average of zero implies all quantisers are zero
[20:17:35 CEST] <atomnuker> well do send a patch then, not like I care
[20:17:36 CEST] <kierank> this is really misleading code, I will fix it
[20:58:51 CEST] <BBB> jdarnley: now now now, have you ever tried gst-launch?
[20:59:58 CEST] <BBB> jdarnley: more generally, yes its complex but it tries to put an incredibly complex structure in a single string, what do you expect :) use the API if you want it to be more logical (and wait for the cursing about how many lines of code it takes to do something thats only a single string in -lavfi syntex)
[21:00:00 CEST] <BBB> *syntax
[21:09:14 CEST] <atomnuker> kierank: suppose you have more than a single frame, what do you think happens
[21:09:34 CEST] <atomnuker> just make a tmp variable, add all the quantizers, divide it by the number of slices
[21:10:00 CEST] <atomnuker> then average that with the q_avg and you'll average it per frame
[21:11:44 CEST] <durandal_170> jdarnley: whats problem in your lavfi usage?
[21:11:55 CEST] <kierank> atomnuker: yes you are right thanks
[21:12:16 CEST] <BBB> so& that patch (https://lwn.net/Articles/697956/ and see ML)
[21:12:25 CEST] <BBB> is that Yet Another hwaccel-like interface?
[21:12:48 CEST] <kierank> yeah it's trying to shoehorn all these weird things into v4l2 imo
[21:13:23 CEST] <BBB> like, as if vda+dxva2+nvenc+qsv+vaapi+vdpau+xvmc wasnt bad enough
[21:13:36 CEST] <BBB> https://xkcd.com/927/ :D
[21:13:59 CEST] <BBB> so now we have v4l2 as Yet Another Hardwarewrapper (YAH)?
[21:14:26 CEST] <kierank> worse i think
[21:14:35 CEST] <kierank> because at least the ones above are somewhat constrained
[21:14:36 CEST] <BBB> but why v4l2
[21:14:44 CEST] <BBB> v4l2 was to capture video from bttv cards
[21:14:53 CEST] <kierank> because the hardware people need to have things as linux kernel interfaces
[21:14:54 CEST] <BBB> how is hw h264 decoding related to capturing video from bttv cards?
[21:14:56 CEST] <kierank> I agree
[21:15:05 CEST] <kierank> but imagine you have a webcam that sends h264
[21:15:07 CEST] <kierank> over usb
[21:15:14 CEST] <kierank> they want that in v4l2
[21:15:18 CEST] <BBB> sure
[21:15:27 CEST] <kierank> it's basically an extension to that
[21:15:35 CEST] <BBB> everything-to-everything
[21:15:39 CEST] <kierank> embedded people want stuff in the kernel
[21:15:42 CEST] <BBB> lets move gstreamer into the kernel next
[21:15:49 CEST] <BBB> KStreamer
[21:16:08 CEST] <kierank> when i went to kernel summit a few of them had somewhat justifiable reasons for doing this stuff in the kernel
[21:16:09 CEST] <BBB> ohwell, I guess its only on embedded devices so itll never build into my build
[21:16:34 CEST] <kierank> there was a guy doing QC on potatoes as hundreds went past a factory in realtime
[21:16:39 CEST] <kierank> and apparently userspace was too slow
[21:16:53 CEST] <kierank> bizzare use case
[21:17:14 CEST] <BBB> potatoes
[21:17:33 CEST] <BBB> okaayyyyyy
[21:19:48 CEST] <kierank> BBB: i can't say i fully understand what that libavcodec m2m thing does
[21:20:10 CEST] <kierank> doesn't seem to be codec related at all
[22:03:50 CEST] <iive> so, we can't have audio mixing in the kernel, but we can have video decoding in it...
[00:00:00 CEST] --- Tue Jul 25 2017
1
0
[00:49:32 CEST] <Brian510> Hello, I'm looking for some help with creating text overlays, from data files
[00:50:18 CEST] <Brian510> I have a list of still images and a list of images.data files that have the same name as the image file
[00:51:50 CEST] <Brian510> I already have a script that comes in and creates symbolic links of the images and renames the links in an appropriate format to be read in by -f image2 -i img%07d.jpg
[00:52:50 CEST] <Brian510> Id like to use the -reload option to feed new text to draw
[00:53:22 CEST] <Brian510> But I can't figure out how to trigger an update the textfile when the frame names changes
[00:56:24 CEST] <Brian510> Id like when img0000001.jpg is being processed, that I can trigger an shell script to read img0000001.jpg.data and output its content to the text file of the draw text filter
[00:56:43 CEST] <Brian510> https://thepasteb.in/p/0ghJPxPm2PEh5
[00:57:06 CEST] <Brian510> how would I trigger a script at the processing of each frame ?
[01:04:00 CEST] Last message repeated 1 time(s).
[01:12:00 CEST] Last message repeated 1 time(s).
[01:15:28 CEST] <DHE> I might suggest making it into a pre-rendered subtitle file and then burn the subtitles into the video
[01:17:36 CEST] <Brian510> I thought about that, but, subtitle seems to be driven by time
[01:17:39 CEST] <Brian510> and not frame
[01:18:16 CEST] <Brian510> data to image sync is important
[01:19:21 CEST] <Brian510> I thought about just writinthe data to the image but I would prefer not to make a copy of all the source images
[01:26:13 CEST] <bobo11> hey guys, is there a way to set all frequencies below 10khz to -6 db ?
[01:27:03 CEST] <cryptodechange> Not too sure if I've lost too much detail on my encode (look at line work, shadows and clouds) - https://imgur.com/a/Gf1b8
[01:45:33 CEST] <thebombzen> cryptodechange: the lineart is a bit soft. consider a small negative smartblur (negative sharpens)
[01:45:40 CEST] <thebombzen> keep in mind that sharpeners amplify noise
[02:16:57 CEST] <cryptodechange> thebombzen, thanks for the advice, use nlmeans at the moment, set rc=1 as it took away too much color
[02:22:18 CEST] <cryptodechange> will try the smartblur
[02:32:28 CEST] <techbomber> if you had 100k us dollars and you had to go all-in on ONE company stock, what company stock would you buy?
[02:34:32 CEST] <cryptodechange> trying smartblur=ls=-0.5:lt=10,nlmeans
[02:37:53 CEST] <furq> techbomber: what did you do with the other $150k
[02:38:11 CEST] <techbomber> furq nothing
[02:38:20 CEST] <furq> well then how are you going all in
[02:39:47 CEST] <techbomber> i am not techinically
[02:41:30 CEST] <furq> well if i were you, i'd put big money into uber
[02:41:33 CEST] <furq> those guys are on the up and up
[02:45:00 CEST] <techbomber> furq uber is not public
[02:45:49 CEST] <furq> right but if you take 500 ubers you get a free calendar
[02:59:01 CEST] <cryptodechange> thebombzen the bitrate is super high still :(
[03:58:12 CEST] <cryptodechange> Figured it out, I think it looks much better, retained more detail too
[03:58:14 CEST] <cryptodechange> https://imgur.com/a/Gf1b8
[03:58:34 CEST] <cryptodechange> Would be nice to drop the bitrate a bit more though
[04:05:25 CEST] <furq> you might want to try some of the other denoise filters
[04:22:36 CEST] <cryptodechange> any recommendations furq? about to try hqdn3d
[04:24:45 CEST] <furq> hqdn3d with stronger temporal than spatial
[04:40:03 CEST] <cryptodechange> that's at default right?
[04:40:13 CEST] <cryptodechange> I'll try it without changing anything
[05:18:48 CEST] <cryptodechange> Is there any articles/comparisons floating about for nlmeans vs. hqdn3d?
[06:54:40 CEST] <zumba_addict> am I right that -preset ultrafast has better image quality than -preset slow?
[07:56:53 CEST] <kerio> no
[07:56:58 CEST] <kerio> not at all
[07:57:24 CEST] <kerio> couldn't be further from the truth
[10:42:11 CEST] <JEEB> I don't remember, was there a way to only set a specific module to do debug logging?
[11:39:46 CEST] <durandal_1707> /whois sdggfddfgg
[13:01:20 CEST] <kerio> how do i output mjpeg without a specific framerate?
[13:01:37 CEST] <kerio> ie following the actual framerate of the input, rather than the nominal framerate
[13:25:20 CEST] <bencc> I saw a commit for fmp4 support in hls
[13:25:42 CEST] <bencc> but only for multiple files? not possible to have a single file with byte range?
[13:26:00 CEST] <bencc> https://github.com/FFmpeg/FFmpeg/commit/274bd1670b9c85e24f37d08f9043dd82e0a…
[13:28:26 CEST] <JEEB> I think the guy didn't care enough to implement it himself so far?
[13:34:51 CEST] <kerio> how do i generate a http mjpeg stream with ffmpeg
[13:34:54 CEST] <kerio> do i have to ffserver
[13:34:57 CEST] <kerio> i don't want to ffserver
[13:36:45 CEST] <bencc> JEEB: https://patchwork.ffmpeg.org/patch/4221/
[13:38:47 CEST] <JEEB> well yea, technically "I'm busy I might implement it later"
[13:39:12 CEST] <JEEB> it's still a "patch welcome" if you need it right now
[13:39:29 CEST] <bencc> JEEB: I have no idea how to help :)
[13:40:13 CEST] <bencc> I thought that he did 99% of the work
[13:40:47 CEST] <kerio> oh, mpjpeg
[13:40:50 CEST] <kerio> why does ffmpeg do EVERYTHING
[13:41:08 CEST] <kerio> except output mjpeg to v4l2loopback
[15:49:33 CEST] <cryptodechange> I wonder if my encode caused ringing, or it's just preserving some of the colour around the linework
[15:49:34 CEST] <cryptodechange> https://imgur.com/a/Xekf3
[15:49:53 CEST] <cryptodechange> Still a bit of noise/grain, but I'm happy where the bitrate is at
[16:34:41 CEST] <kepstin> cryptodechange: hmm, with that much denoising, i'd be worried about banding problems.
[16:36:22 CEST] <cryptodechange> will try and find a frame with some gradiet
[16:36:26 CEST] <cryptodechange> gradient
[16:45:30 CEST] <cryptodechange> kepstin: probably not the best sample but https://imgur.com/a/Cepqx
[16:46:54 CEST] <kepstin> hmm. the irregularities from denoising the grain make the banding less objectionable at least.
[16:48:33 CEST] <kepstin> pity the nlmeans filter doesn't support >8bit depth
[16:49:04 CEST] <cryptodechange> mm, the raw was 8bit anywho
[16:50:10 CEST] <kepstin> sure, but denoising the grain (which effectively acts like dithering) on an 8bit source can give you an effective higher bit depth.
[16:50:31 CEST] <kerio> why would ffmpeg not listen to sigterm anymore
[16:50:35 CEST] <kepstin> assuming you're ok with actually encoding at 10bit, your target audience has decoders which can handle it :)
[16:55:04 CEST] <cryptodechange> Mm, encoding this for plex so wanted to try and make it suitable for 'direct play', unless the bitrate limit is lower
[16:56:22 CEST] <Loop> Hello I have question regarding ffmpeg, is there a version of ffmpeg that doesnt write in the encoded file the stuff on the beginning of the file like
[16:56:53 CEST] <Loop> ftypisom<bh:00><bh:00><bh:02><bh:00>isomiso2avc1mp41<bh:00><bh:00><bh:00><bh:08>free<bh:00><bh:83>v?mdat<bh:00><bh:00><bh:02><bh:8c><bh:06><bh:05><bh:ff><bh:ff><bh:88><bh:dc>E<bh:e9><bh:bd><bh:e6><bh:d9>H<bh:b7><bh:96>,<bh:d8> <bh:d9>#<bh:ee><bh:ef>x264 - core 119 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
[16:57:12 CEST] <furq> x264 writes that, and no
[16:57:25 CEST] <Loop> Is there some clean version of x264
[16:57:32 CEST] <furq> no
[16:58:25 CEST] <Loop> Could I encode something with ffmpeg but in h264 or in some clean encoder?
[16:58:29 CEST] <kepstin> Loop: x264 does have a commercial license option, you're welcome to contact them and ask...
[16:58:41 CEST] <furq> what does "clean" mean here
[16:59:18 CEST] <Loop> Clean like free of tags metatags or info like videolan
[16:59:28 CEST] <furq> why do you need that
[16:59:43 CEST] Action: kepstin notes that x264 is also known to put other types of watermarking into the encoded video, it's not hard to identify x264-encoded video
[17:00:54 CEST] <Loop> hmm what type do you have some more info
[17:01:34 CEST] <Loop> currently I'm doing the manual hex editing and I would like to have some tool to clen the encodes
[17:01:51 CEST] <kepstin> ... why are you so interested in making it so people can't identify the encoder/settings used?
[17:02:13 CEST] <Loop> Its safer
[17:02:22 CEST] <furq> what
[17:02:43 CEST] <kepstin> for what, saving you from being sued for license violation or something?
[17:03:32 CEST] <Loop> for every possible situation like better to be safe than sorry
[17:03:41 CEST] <Loop> For my personal collection
[17:05:58 CEST] <kepstin> tbh, having an x264-video with metadata removed is a stronger identifying fingerprint than using a popular public build and leaving the info in.
[17:06:08 CEST] <kepstin> if that's what you're worried about
[17:10:25 CEST] <Loop> I'm writing some metadata but its not easy I need to calculate the blank space that I need to leave
[17:12:15 CEST] <Loop> I had idea to rewrite into the source of ffmpeg but I'm too lazy to do that, I'm certain that someone did that already
[17:13:26 CEST] <kepstin> what you're trying to do doesn't make sense. customizing ffmpeg/x264 to change metadata is only going to result in having a metadata pattern that uniquely identifies your files.
[17:16:24 CEST] <Threads> Loop what are you trying todo exactly
[17:21:24 CEST] <Loop> Exactly I don't want any metadata and encoder info like videolan lav free etc just clean mp4
[17:21:47 CEST] <Loop> maybe to add some metadata info
[17:21:53 CEST] <Loop> just maybe
[17:23:10 CEST] <Loop> I cleaned most of the stuff and I see that file is playable but it needs 5-10 seconds more to play
[17:24:01 CEST] <Loop> my initial question is, is there some custom ffmpeg version with some custom x264 that has such options
[17:24:30 CEST] <Loop> I can hex edit evrything manually but it would be easier if there is a tool
[17:26:12 CEST] <Loop> I see that I can inject into the youtube faked file with edited metadata and codec data this was just for a test, I'm just testing what work and what doesn't
[17:34:12 CEST] <DHE> Loop: bitexact mode will help with that, eliminating version-specific information. but it doesn't eliminate it entirely.
[17:36:38 CEST] <kepstin> Loop: just keep in mind the difference between "this video file was done with the same encoder and settings as a million other files" and "huh, strange, someone put a lot of work into stripping metadata from this file in a particular way that's uniquely identifiable"
[17:56:07 CEST] <Loop> @kepstin I never used bitexact option what arguments to use
[17:56:35 CEST] <Loop> bitexact
[17:56:35 CEST] <Loop> Only write platform-, build- and time-independent data. (except (I)DCT). This ensures that file and data checksums are reproducible and match between platforms. Its primary use is for regression testing.
[18:06:43 CEST] <Loop> @kepstin also I see only few versions of ffmpeg have bitexact most of the versions that I'm using personally doesn't have bitexact at all
[18:55:07 CEST] <superbia> good evening sirs
[18:56:36 CEST] <Gidian> I've been getting "Your videos will process faster if you encode into a streamable file format." when trying to upload my videos to youtube.
[18:56:54 CEST] <Gidian> ffmpeg -i <folder/image.png> -i <folder/audio.flac> -vf format=yuv420p <Output.mp4>
[18:57:28 CEST] <Gidian> The filesize is fantastic, and the video/audio quality is great too, but for some reason youtube hates it.
[18:57:29 CEST] <superbia> does anyone have a script that auto-converts all videos downloaded with youtube-dl to MP3 and later deletes original files?
[18:58:20 CEST] <furq> Gidian: -movflags +faststart
[19:01:33 CEST] <Gidian> Ty furq
[20:20:53 CEST] <ioan> hi. Is there a way to make this command work? ffmpeg -i rtsp://ip:554/axis-media/media.amp -vf "sendcmd=f=send.cmd,drawtext=fontsize=20:fontcolor=white:x=100:y=100:text='Hello World'" -vcodec copy -codec:a aac -f flv -r 30 "rtmp://a.rtmp.youtube.com/live2/<secret>"
[20:21:21 CEST] <ioan> I get the error: Filtering and streamcopy cannot be used together.
[20:25:17 CEST] <Blubberbub> what happens if you remove -vcodec copy?
[20:26:44 CEST] <kepstin> ioan: yeah, that error kind of says the problem... if you're copying the encoded video data, you can't modify it, and filtering it to add some text on top is a modification
[20:27:09 CEST] <kepstin> ioan: so you have to re-encode the video, replace the -vcodec with an actual encoder, e.g. libx264.
[20:28:38 CEST] <ioan> kepstin, I understand, thanks for explaining. I guess it won't be text overlay then, the video comes from an IP camera and I'm live streaming from a Raspberry Pi, so I don't want to make it harder for the Pi.
[20:30:02 CEST] <furq> ioan: https://support.google.com/youtube/answer/3068031?hl=en-GB
[20:30:04 CEST] <furq> might be an option
[20:32:38 CEST] <ioan> furq, thank you, I'll read about it to see if I can use that
[20:42:39 CEST] <Blubberbub> What i learned today: one cannot expect filters that use a time or duration to work properly, when one does not initialize the time_base in the stream.
[21:12:27 CEST] <durandal_170> Blubberbub: which filters?
[21:12:38 CEST] <Blubberbub> afade - for example
[21:13:30 CEST] <Blubberbub> totally my mistake, though.
[21:15:15 CEST] <MoSal> configure is creating ffbuild/config.mak files with NULs in them. Is anyone seeing this?
[21:21:19 CEST] <defanor> i don't
[21:27:27 CEST] <cryptodechange> compiled a 10-bit x264 binary and mv'd it to /usr/local/bin/x264-10bit
[21:27:56 CEST] <cryptodechange> trying to figure out how to compile a second ffmpeg binary with x264-10bit
[21:28:30 CEST] <defanor> are all the functions in libavformat supposed to be thread-safe?
[21:29:57 CEST] <JEEB> cryptodechange: FFmpeg will not use your x264 command line app :P
[21:30:40 CEST] <JEEB> you build, install into your prefix and when building FFmpeg set PKG_CONFIG_PATH=/your/prefix/lib/pkgconfig where there now should be x264.pc
[21:30:44 CEST] <cryptodechange> ;_;. so make install elsewhere, and specify the libx264 directory
[21:31:00 CEST] <cryptodechange> yes thankyou
[21:31:15 CEST] <JEEB> you should be able to test with PKG_CONFIG_PATH=/your/prefix/lib/pkgconfig pkg-config --libs x264
[21:31:22 CEST] <JEEB> you should be able to see if it catches the one in your prefix
[21:31:32 CEST] <JEEB> if yes, then configure script [hould find it, too
[21:31:34 CEST] <cryptodechange> Now to determine the best prefix for x264-10bit
[21:31:45 CEST] <cryptodechange> could just do /opt/x264-10bit
[21:32:01 CEST] <JEEB> whatever. I mean, I usually have a random prefix in my home dir if the thing's not supposed to be system global
[21:32:24 CEST] <JEEB> also there's a patch in the x264 ML that makes libx264 support both 8 and 10 bit coding
[21:32:34 CEST] <JEEB> koda did the great work to make it all work :3
[21:32:53 CEST] <JEEB> although I bet the libx264 wrapper will have to be changed when that change goes in :D
[21:32:57 CEST] <JEEB> in FFmpeg that is
[21:33:18 CEST] <cryptodechange> Will need to keep an eye out in the changelog for that
[21:33:21 CEST] <furq> cryptodechange: just use the static ffmpeg builds if you want one with 10-bit x264
[21:33:36 CEST] <furq> https://www.johnvansickle.com/ffmpeg/
[21:34:10 CEST] <cryptodechange> oh nice
[21:35:34 CEST] <cryptodechange> ty
[21:37:53 CEST] <iranen_> when using x265 what is better for tune setting PSNR or SSIM? (or select none tune?)
[21:38:26 CEST] <cryptodechange> In terms of 8bit > 10bit encodes, really, am I correct in assuming I should only take note of the crf?
[21:38:32 CEST] <cryptodechange> As that scales differently?
[21:43:51 CEST] <JEEB> cryptodechange: in x264 the CRF scale has been moved a bit so similar values should be OK (but I did some small adjustments in the end, although that often is because of just difference of content)
[21:44:04 CEST] <JEEB> basically crf 0 is no longer lossless and the values go to negative
[21:44:06 CEST] <furq> iranen_: psnr and ssim are for benchmarking. don't ever use them for anything else
[21:47:41 CEST] <cryptodechange> JEEB: oh I didn't know that, I read that the 8bit range was/is 0-51 and 10bit is 0-63
[21:48:13 CEST] <cryptodechange> but didn't find much documentation on the range comparisons yet
[21:48:53 CEST] <JEEB> cryptodechange: yea that's the quantizer range and what's the CRF range as well. but then it was later rolled in >8bit
[21:49:12 CEST] <JEEB> (so that it went lower than zero)
[21:49:28 CEST] <JEEB> that way the user wouldn't have to adjust the CRF value too much between bit depths
[21:50:14 CEST] <cryptodechange> Oh, they just applied an offset
[21:50:37 CEST] <JEEB> yea
[21:50:45 CEST] <cryptodechange> So -12 would be lossless
[21:50:46 CEST] <cryptodechange> makes sense
[21:51:50 CEST] <cryptodechange> Though I wouldve thought doing CRF*(63/51) would've made more sense
[21:52:15 CEST] <cryptodechange> So an 8-bit CRF of 18 would become 22
[21:54:44 CEST] Action: kepstin notes that if you actually want lossless, '-qp 0' will do that in all x264 bitnesses.
[21:58:43 CEST] <cryptodechange> Doing a 10bit encode test now, I upped the smartblur strength from -0.35 to -0.5 and dropped the CRF from 17 to 16
[21:58:54 CEST] <cryptodechange> upped/dropped
[22:00:02 CEST] <TheWild> hello
[22:00:30 CEST] <TheWild> running in virtual console: "ffmpeg http://rmfstream2.interia.pl/80SDISCO". How I can make it display metadata too?
[22:01:25 CEST] <TheWild> *ffplay
[22:23:57 CEST] <Loop> @kepstin could you tell me which ffmpeg version has bitexact which is working and could you tell me the arguments for the command because I'm getting ffmpeg: missing argument for option 'bitexact'
[22:36:54 CEST] <atomnuker> -flags +bitexact
[22:40:48 CEST] <c_14> Wasn't it -fflags?
[22:42:36 CEST] <Loop> Unrecognized option 'flags'
[22:43:03 CEST] <c_14> try -fflags +bitexact
[22:43:05 CEST] <Loop> [NULL @ 00dd41f0] [Eval @ 0028fb48] Undefined constant or missing '(' in 'bitexact'
[22:43:06 CEST] <Loop> [NULL @ 00dd41f0] Unable to parse option value "bitexact"
[22:43:06 CEST] <Loop> Invalid value '+bitexact' for option 'fflags'
[22:43:19 CEST] <c_14> hmm
[22:43:46 CEST] <Loop> I tried 14 versions of ffmpeg ony 3 version have bitexact at all
[22:43:49 CEST] <c_14> should definitely work (though apparently I always set both)
[22:44:04 CEST] <c_14> Loop: what versions?
[22:44:14 CEST] <c_14> (Please don't say 1.x
[22:44:15 CEST] <c_14> )
[22:44:34 CEST] <c_14> It should definitely be in anything > 2.7
[22:44:36 CEST] <c_14> and that's
[22:44:39 CEST] <c_14> years old now
[22:45:02 CEST] <Loop> FFmpeg version SVN-r26292, Copyright (c) 2000-2011 the FFmpeg developers
[22:45:02 CEST] <Loop> built on Jan 24 2011 20:49:50 with gcc 4.4.5
[22:45:12 CEST] <c_14> yeeeeaaaah
[22:45:14 CEST] <c_14> don't do that
[22:45:18 CEST] <c_14> pleease don't do that
[22:45:31 CEST] <Loop> I cant find the version newer that have working bitexact
[22:45:36 CEST] <c_14> That's not supported anymore
[22:45:46 CEST] <c_14> What distro/operating system?
[22:45:53 CEST] <c_14> http://johnvansickle.com/ffmpeg/ <- for linux
[22:46:04 CEST] <Loop> Right know on vmware windows7
[22:46:11 CEST] <Loop> now
[22:46:27 CEST] <Loop> It must be on win7
[22:46:27 CEST] <c_14> https://ffmpeg.zeranoe.com/builds/
[22:46:42 CEST] <c_14> get the git version (or if you must release 3.3.2)
[22:46:54 CEST] <Loop> Ahh I tried that version and it doesnt work
[22:47:02 CEST] <c_14> doesn't work how?
[22:47:03 CEST] <Loop> let me choose some dev build
[22:48:15 CEST] <Loop> It says
[22:48:34 CEST] <Loop> Unrecognized option 'bitexact'.
[22:48:34 CEST] <Loop> Error splitting the argument list: Option not found
[22:48:42 CEST] <Threads> man your going along way just to either fake headers/versions or strip them
[22:49:00 CEST] <c_14> Loop: what's your commandline
[22:49:04 CEST] <Loop> yes you are right
[22:49:07 CEST] <c_14> sounds like something's eating an option where it shouldn't
[22:50:04 CEST] <Loop> give me sec to try dev build
[22:53:56 CEST] <atomnuker> c_14, Loop: -flags +bitexact works on git master
[22:54:59 CEST] <c_14> atomnuker: it's an option for both, apparently
[22:55:07 CEST] <c_14> not sure if they're aliased or if there's a difference though
[22:57:34 CEST] <kerio> one is for the format, the other is for the encoder?
[22:57:52 CEST] <Loop> ok seems shared version has working bitexact
[22:58:14 CEST] <Loop> I will try to see what results I'm getting
[22:58:40 CEST] <Loop> static definatlly soesnt work
[22:58:48 CEST] <Loop> static definitely doesnt work
[23:16:06 CEST] <Loop> @c_14 it encoded with -flags +bitexact and I see that it didnt write only at the end the writer info lav version but all metadata from the x264 is present
[23:17:32 CEST] <kyleogrg> I want to join six videos into one, but I only want to take a section of each video. I'd like to do this all in one command. Reencoding (as opposed to concatenation) is okay.
[23:17:45 CEST] <kyleogrg> What's the easiest way/
[23:17:46 CEST] <kyleogrg> ?
[23:20:42 CEST] <kepstin> kyleogrg: list 6 inputs on the command line, with the '-ss' and '-t' input options, use -filter_complex with the concat filter.
[23:22:47 CEST] <kepstin> if you don't need exact seekpoints (starting on the nearest keyframe is ok), consider using the 'concat' format, which takes a playlist file as described here: https://www.ffmpeg.org/ffmpeg-formats.html#concat-1 (you can specify an inpoint and outpoint per-file)
[23:23:26 CEST] <kyleogrg> kepstin: with your first suggestion, does -ss and -t follow or precede every input?
[23:23:27 CEST] <kepstin> that's probably gonna be a bit iffy, tho, I'm not sure how well it'll work.
[23:23:38 CEST] <furq> you don't use -ss or -t
[23:23:49 CEST] <furq> you add the seek points to the concat list
[23:24:03 CEST] <kepstin> kyleogrg: input options precede the input that they're associated with
[23:24:14 CEST] <furq> oh nvm i missed that line
[23:24:30 CEST] <kyleogrg> kepstin: like -ss 00:00:10 -t 00:00:30 -i input1.mp4?
[23:24:45 CEST] <kyleogrg> furq: yeah, we're talking about the first method
[23:24:48 CEST] <kepstin> kyleogrg: that'll grabe 30 seconds of video starting 10 seconds in, yes.
[23:25:00 CEST] <kyleogrg> ok, imma go try this
[23:27:23 CEST] <kyleogrg> oh, and i need to scale some of them so they're all the same res
[23:27:56 CEST] <kyleogrg> can i put -vf "scale=X:X:X:X" after each input?
[23:28:18 CEST] <kepstin> kyleogrg: no, you'll have to put it all together into the single -filter_complex string
[23:29:54 CEST] <kyleogrg> kepstin: okay
[23:30:12 CEST] <kepstin> something like '[0:v]scale=X:X:X:X[0_scaled]; (repeat for each video) ; [0_scaled][1_scaled]...[6_scaled]concat=n=6:v=1:a=0'
[23:30:19 CEST] <kepstin> it's more complicated if you're doing audio too
[23:30:30 CEST] <kyleogrg> I need the audio.
[23:31:02 CEST] <kyleogrg> at this point it might be better for me to trim and scale them separately and have a lossless intermediary
[23:31:07 CEST] <kepstin> then the concat part will look like [0_scaled][0:a][1_scaled][1:a]...concat=n=6:v=1:a=1 I think.
[23:31:35 CEST] <kyleogrg> okay
[23:32:24 CEST] <kepstin> if it gets too long on the command line, save the filter string in a text file, and use the -filter_complex_script <filename> option to load it :)
[23:32:43 CEST] <kyleogrg> kepstin: ah, never tried that method
[23:33:27 CEST] <kepstin> (if you were doing >6 videos, I probably would have recommended not using input files on the ffmpeg command line, but rather using the "movie" filter inside a filter_complex script file to load them)
[23:34:39 CEST] <kyleogrg> ok, i'll see which option seems simpler
[00:00:00 CEST] --- Tue Jul 25 2017
1
0
[08:23:35 CEST] <ZeroWalker> so, if i always check for if there's something encoded after pushing something to be encoded (avcodec_send_frame), should i just use the older API functions?
[08:28:21 CEST] <atomnuker> no, they're deprecated
[08:57:37 CEST] <ZeroWalker> roger
[08:58:40 CEST] <ZeroWalker> how does one set bitrate if it's VFR input. i can set it, but it doesn't really stay anywhere near it
[10:32:59 CEST] <KGB> [13FFV1] 15retokromer opened pull request #80: tiny typo (06master...06patch-1) 02https://git.io/v7ICy
[11:53:34 CEST] <ZeroWalker> how does one calculate the pts timestamp based on samples + samplerate?
[11:53:59 CEST] <ZeroWalker> i thought it was just to turn it into ms, but that didn't seem to go that well (samples / (samplerate / 1000))
[11:58:13 CEST] <thebombzen> depends on the audio frame size
[11:58:21 CEST] <thebombzen> PTS is the timestamp of the frame in timebase units
[11:58:42 CEST] <ZeroWalker> oh
[11:59:18 CEST] <ZeroWalker> i always fed it the milliseconds based on the cpu clock from the time of capture
[11:59:49 CEST] <ZeroWalker> but so, if the framesize is 960
[11:59:57 CEST] <ZeroWalker> does that mean, 960 = 1 pts:s?
[12:02:31 CEST] <Blubberbub> at the moment i just do pts += pkt->nb_samples
[12:03:23 CEST] <Blubberbub> so to turn that into ms i would do pts / samplerate
[12:05:29 CEST] <ZeroWalker> packet, isn't it set at frame?
[12:06:47 CEST] <ZeroWalker> http://sprunge.us/iRLF
[12:12:24 CEST] <Blubberbub> packet also has a pts, i think
[12:12:36 CEST] <Blubberbub> (and i'm writing a demuxer and not a decoder)
[12:13:31 CEST] <ZeroWalker> yeah it does, but i think that's just what the frame had, might be wrong
[12:13:54 CEST] <ZeroWalker> ah, well i am encoding a live capture, so it's, messy:(
[12:33:08 CEST] <Blubberbub> does ffmpeg do some magic with stdout? Because i'm missing some output from a script i'm calling from within ffmpeg.
[13:09:12 CEST] <Blubberbub> ah - found the problem. Its not line buffered, so i need to flush it
[14:59:33 CEST] <cone-621> ffmpeg 03Vodyannikov Aleksandr 07master:47c93657249f: avcodec/cfhd: Fix decoding regression due to height check
[14:59:34 CEST] <cone-621> ffmpeg 03Brice Waegeneire 07master:6a6eec485d23: doc/filters: typo in frei0r
[15:35:18 CEST] <cone-621> ffmpeg 03Muhammad Faiz 07master:7e9f5500039a: avfilter/w3fdif: do not write to line before start line
[18:53:53 CEST] <atomnuker> michaelni: would the patch be okay if I changed length to an int in the function definition?
[22:13:35 CEST] <michaelni> atomnuker, i think so, yes
[00:00:00 CEST] --- Mon Jul 24 2017
1
0
[01:30:54 CEST] <wondiws> how do I stream my webcam? I start ffserver, but when I connect to it, the "Connection is reset by peer" after half a second
[01:31:41 CEST] <wondiws> and connection refused before that
[09:59:40 CEST] <Blubberbub> When one uses avutil/common.h and Python.h in the same .c file one gets warning about some macros being redefined.
[13:56:24 CEST] <faLUCE> I'm noting that the h264 decoder which I use (gstreamer's avdec_h264) wants that each NALUs starts with a "0, 0, 2, 9, 240, 0, 0, 0" header... In fact, it uses the output of a h264 parser, which takes a normal header (0, 0, 0, 1) as input and outputs the other header. What is that? Is it possible to obtain it while encoding with ffmpeg/x264?
[17:01:09 CEST] <momomo> does ffmpeg support h265 ?
[17:03:13 CEST] <Threads> momomo if compiled with it yes
[17:04:00 CEST] <Threads> momomo https://trac.ffmpeg.org/wiki/Encode/H.265
[20:02:24 CEST] <dystopia_> what sort of tool would i need to blur some sensitive information in a video
[20:02:40 CEST] <dystopia_> like i want to hide an address that is visable for a few seconds
[20:05:57 CEST] <thebombzen> dystopia_: your best bet is probably just an NLE. But something you could do is during the sensitive part, chain use crop, blur, and overlay.
[20:06:49 CEST] <thebombzen> during the sensitive part you can split the video into two streams, crop the second on to just the address, pad it with transparency so it's the same position as before, blur it, and then overlay it atop the first stream from the split
[20:06:59 CEST] <thebombzen> this is all complicated, and you probably just want to use a nonlinear editor
[20:19:35 CEST] <furq> dystopia_: drawbox with enable
[20:20:42 CEST] <furq> drawbox=123:456:78:90:enable=between(t\,100\,105)
[20:21:36 CEST] <furq> delogo will do the same thing if you want something less jarring
[20:58:57 CEST] <yegortimoshenko> where can i see the list of album cover art mime types that ffplay supports by default?
[21:34:42 CEST] <dystopia_> thanks for the ideas thebombzen and furq, will do some testing
[22:16:01 CEST] <thebombzen> yegortimoshenko: you can use ffmpeg -decoders and ffmpeg -demuxers to see what is supported
[22:16:42 CEST] <thebombzen> embedded album art should be supported as long as it's on that list. given that usually it's some fairly standard image format (e.g. jpg) you shouldn't have to worry
[22:17:02 CEST] <yegortimoshenko> thebombzen: no, i'm interested in more exotic formats which is why i'm asking. thanks!
[22:17:27 CEST] <thebombzen> well then you can use ffmpeg -decoders and ffmpeg -demuxers to see what's supported
[22:17:52 CEST] <thebombzen> it doesn't list MIME types because ffmpeg doesn't care what MIME type something is
[22:17:58 CEST] <thebombzen> you'll have to do that part yourself
[22:18:28 CEST] <yegortimoshenko> i'm ok with just formats themselves, it's just when you embed an artwork into a flac file, you have to specify a mime type
[22:19:04 CEST] <thebombzen> well that's the job of the person embedding it. FFmpeg doesn't care what MIME type it is, it cares what codec or format it is
[22:19:48 CEST] <thebombzen> if the flac file format uses MIME as its identifier, then the flac demuxer will abstract that away from you so you don't need to worry about it
[22:20:28 CEST] <yegortimoshenko> flac metadata uses mime type as a format identifier
[22:20:35 CEST] <yegortimoshenko> got it
[22:51:25 CEST] <thisIsJustARando> hello, anyone online who knows something alittle more advanced than usually?
[22:51:43 CEST] <JEEB> it's probably worth it just asking
[22:51:50 CEST] <JEEB> and waiting around if someone can respond
[22:52:58 CEST] <thisIsJustARando> well, I was just wondering, is it possible to use ffmpeg to convert files on chunks, like, first convert first 30seconds of video, then from 30seconds to 1minute, then 1minute to 2minute etc
[22:53:16 CEST] <thisIsJustARando> I have not readed anything yet about ffmpeg
[22:53:28 CEST] <thisIsJustARando> figured I would ask before starting to read anything
[22:54:24 CEST] <JEEB> basically, ffmpeg.c won't do such threading but X companies have based their stuff on using the FFmpeg libraries either straight or through wrappers
[22:59:42 CEST] <thisIsJustARando> would also be acceptable if it was possible to convert from x seconds to y seconds, or even better yet, frames
[23:00:46 CEST] <JEEB> there's a seek and "process this long"/"process this many frames" parameters in ffmpeg.c, the libraries themselves let you do even more
[23:01:02 CEST] <JEEB> when I talk of ffmpeg.c, it's the command line tool that comes with FFmpeg
[23:01:24 CEST] <thisIsJustARando> yes, I wouldn't use any other than cli tool
[23:02:20 CEST] <JEEB> ok, then I will warn you that since ffmpeg.c doesn't index the file before starting work, any seeks could in theory be non-exact
[23:02:29 CEST] <JEEB> although for many formats they are
[23:02:49 CEST] <JEEB> basically, if there's an index, it most likely is exact
[23:03:45 CEST] <JEEB> (although I think ffmpeg.c can't do mixed seeks - where it first seeks to the closest random access point and then decodes to hit the picture with your required timestamp)
[23:04:06 CEST] <JEEB> it has a parameter for each type of seeking though
[23:04:15 CEST] <JEEB> or well, the latter one isn't seeking
[23:04:26 CEST] <JEEB> it's just "decode until timestamp X"
[23:05:05 CEST] <JEEB> there's a library available that wraps around the FFmpeg libraries to index files and that generally provides 100% frame accuracy unless the thing's somehow completely retarded
[23:09:52 CEST] <thisIsJustARando> well, I will read about ffmpeg later this night or tomorrow
[23:11:32 CEST] <JEEB> basically as far as the general "reads, demuxes, decodes, encodes, muxes" thing goes, almost everything uses FFmpeg's libraries in the background. depending on the use case the command line app can either work or not
[00:00:00 CEST] --- Mon Jul 24 2017
1
0
[01:33:28 CEST] <J_Darnley> Dammit. Just die already GDB!
[01:34:09 CEST] <J_Darnley> Yeah "Killed" is right
[08:22:39 CEST] <atomnuker> our opus decoder is CRAP
[08:23:10 CEST] <atomnuker> it does not handle mid-stream switches because of its libopus legacy
[08:24:00 CEST] <atomnuker> it completely trusts what the container says in the extradata
[08:24:28 CEST] <atomnuker> so if the extradata says its stereo, and in between somewhere there's a mono stream it'll upmix it to stereo
[08:25:21 CEST] <atomnuker> this adds and insane amount of junk and completely fools users
[08:26:18 CEST] <atomnuker> grr, need to remove all that AND fix the fate test refs in the fate repo because they're wrong too
[10:56:10 CEST] <ldts> rmmr: are you available for chat?
[10:56:40 CEST] <rmmr> ldts: yep, calling now
[13:55:09 CEST] <kierank> hmm some good patches by muhmmad faiz
[14:15:03 CEST] <faLUCE> Hello. How can I set VARIABLE frame rate for an AVCodecContext instance? I tried with ->time_base = AVRational{1, 0} but it doesn't work
[14:20:38 CEST] <feliwir> hey, does someone know how can i parse a video from a custom memorystream?
[14:21:02 CEST] <feliwir> not from a filehandle
[14:48:19 CEST] <JEEB> feliwir: make your own avio wrapper
[14:48:59 CEST] <feliwir> JEEB, yep thanks. Found a tutorial already
[14:49:01 CEST] <JEEB> you need to implement functions that do what you need for that io mechanism
[14:49:04 CEST] <JEEB> ok
[14:49:31 CEST] <JEEB> yea it's pretty easy if I could do one in '13 :D
[14:49:55 CEST] <JEEB> (for windows IOStreams)
[20:02:50 CEST] <kierank> I don't understand what nicholas is saying
[20:03:12 CEST] <kierank> how does the alignment of avframe and the output of get_buffer returning an avframe make a difference
[20:43:40 CEST] <durandal_1707> nobody does
[23:24:11 CEST] <cone-248> ffmpeg 03Mark Thompson 07master:f48efb14f9f9: pixdesc: Explicitly handle invalid arguments to av_find_best_pix_fmt_of_2()
[23:24:11 CEST] <cone-248> ffmpeg 03Mark Thompson 07master:f2c11b9337c9: pixdesc: Reindent after previous commit
[23:35:52 CEST] <cone-248> ffmpeg 03foo86 07master:34fb84a97d11: avcodec/dcaadpcm: check for av_malloc() failure
[23:35:53 CEST] <cone-248> ffmpeg 03foo86 07master:dd4b7badb416: avcodec/dcaadpcm: fix use of uninitialized variable
[00:00:00 CEST] --- Sun Jul 23 2017
1
0
[00:40:11 CEST] <Nixola> hi, quick question
[00:41:38 CEST] <Nixola> I'm trying to record both video and audio output using ffmpeg on Linux (using Jack) but capturing video and audio in the same command results in a lot of xruns, even if I'm not even compressing neither audio nor video, whereas only capturing audio works fine
[00:42:00 CEST] <Nixola> is there some way to prevent this from happening without having to run two separate ffmpeg instances?
[00:47:11 CEST] <DHE> you'd have to crank some buffers and make sure your CPU is up to the task
[00:51:11 CEST] <Nixola> my CPU is up to the task, and the buffer already is 512 which is quite a lot
[00:51:25 CEST] <Nixola> (6700K, not much else running except for Chrome)
[00:54:41 CEST] <Nixola> I'm encoding to a mkv file with libx264 (-preset ultrafast -qp 0) and pcm_s16le as codecs
[00:54:51 CEST] <Nixola> (if that's of any help)
[00:57:41 CEST] <Nixola> hi debian user (don't want to ping you)
[02:29:32 CEST] <agentsim> do I need to call av_register_all / avcodec_register_all once per thread, or just once?
[02:36:23 CEST] <kepstin> agentsim: I don't think it's a thread-safe function. Call it once in the main thread of your app before using other ffmpeg stuff.
[02:36:36 CEST] <agentsim> kepstin: thx
[02:49:49 CEST] <agentsim> I'm getting a segmentation fault in avcodec_open2 using ffmpeg 3.3.2. I've recently updated to 3.3.2 from 3.2.something, and didn't have the crash before.
[02:49:58 CEST] <agentsim> My code looks like this: https://pastebin.com/jP0Mv9ZC
[02:50:21 CEST] <agentsim> the codec is MJPEG and the size is 1920x1920, I'm resizing an image (in this case from 2048x2048)
[02:50:27 CEST] <agentsim> any ideas what I'm doing wrong?
[03:02:49 CEST] <kepstin> agentsim: well, that's obviously not all the code. Did you verify that 'codec' is not null?
[03:04:57 CEST] <kepstin> agentsim: also note the warning on 'avcodec_open2', "This function is not thread safe!"
[03:05:31 CEST] <agentsim> kepstin: yep, codec is not null and is MJPEG
[03:06:01 CEST] <agentsim> as for threads, I am using multiple threads, but the codec is created and used and ultimately freed all in the same thread, so that should be ok
[03:06:30 CEST] <agentsim> I'm rebuilding my library now with debug symbols so I can get some more info about the ffmpeg internals when it fails
[03:07:02 CEST] <kepstin> i think opening a codec can result in initializing some shared global state, which is why it's not threadsafe
[03:08:42 CEST] <agentsim> looks like the crash is in ff_mpv_common_init, for whatever reason I'm missing line numbers :(
[03:09:12 CEST] <kepstin> so it's not that the codec has to be created and freed in the same thread, it's that you have to make sure avcodec_open2 isn't run concurrently in multiple threads.
[03:18:31 CEST] <agentsim> that's not my problem, I'm reproduced the crash on one thread
[03:18:57 CEST] <kepstin> that said, the internal mpeg decoder doesn't appear to have much if any global state, it's all per-context
[03:19:15 CEST] <kepstin> (or global tables initialized on open, etc.)
[03:22:18 CEST] <kepstin> the context alloc obviously didn't fail or you would have gotten a segfault much earlier
[03:38:52 CEST] <agentsim> kepstin: was caused by --enable-lto on the mac
[03:39:52 CEST] <kepstin> hmm, that's not cool. macs use clang nowadays, right?
[03:40:38 CEST] <kepstin> with gcc on linux, i seem to recall there were issues with ffmpeg and lto due to the assembly code
[03:40:40 CEST] <agentsim> yep, their own version though
[03:40:44 CEST] <kepstin> or maybe i'm getting confused
[03:41:16 CEST] <agentsim> since they've started on Swift I've noticed more ICE issues and general compiler weirdness from them
[03:41:32 CEST] <agentsim> so hopefully this LTO issue is isolated to mac :)
[03:42:52 CEST] <kepstin> i'd expect minimal speed gains from lto with ffmpeg anyways, since so much of the hot code is either assembly or already in the same file together.
[03:43:10 CEST] <kepstin> but I haven't seen any testing, so :/
[07:37:43 CEST] <awesomess3> I want to put all songs in my Music folder (147 songs) and put them all into one song where they all play syncrounousilyican'tspell into one .ogg file. Possible with ffmpeg? 147 input songs all played in sync into one .ogg file?
[07:39:17 CEST] <awesomess3> I want to do this with a less than 200 character one-lined bash command.
[07:42:41 CEST] <Blubberbub> with 'in sync' you mean 'in parallel', so 'next to each other', so all hearable at the same time?
[07:43:32 CEST] <awesomess3> in parallel
[07:43:44 CEST] <awesomess3> all hearable at the same time
[07:46:33 CEST] <Blubberbub> amerge or amix filter might be able to do it...
[07:57:23 CEST] <Blubberbub> not sure if you can really improve the experience by listening to all your favorite songs at the same time, though ;)
[08:00:58 CEST] <awesomess3> the point is to hear what it sounds like and if I want it I am guaranteed to improve my experience at least until I actually get what I want.
[08:12:24 CEST] <c3r1c3-Win> Mixing that many finished/mastered tracks at one time would result in horribly blown out audio.
[08:13:37 CEST] <Blubberbub> but that is the desired result, isn't it?
[08:15:28 CEST] <awesomess3> yeah i need new speakers
[08:16:02 CEST] <awesomess3> but seriously, ok maybe I'll just start out with 3 songs together then
[10:26:04 CEST] <BtbN> Does ffmpeg nice itself to level 10? Or is something else doing that?
[10:52:14 CEST] <Nixola> hi, quick question
[10:52:17 CEST] <Nixola> I'm trying to record both video and audio output using ffmpeg on Linux (using Jack) but capturing video and audio in the same command results in a lot of xruns, even if I'm not even compressing neither audio nor video, whereas only capturing audio works fine
[10:52:21 CEST] <Nixola> is there some way to prevent this from happening without having to run two separate ffmpeg instances?
[10:52:26 CEST] <Nixola> my CPU is up to the task, and the buffer already is 512 which is quite a lot
[10:52:30 CEST] <Nixola> (6700K, not much else running except for Chrome)
[10:52:33 CEST] <Nixola> I'm encoding to a mkv file with libx264 (-preset ultrafast -qp 0) and pcm_s16le as codecs
[10:52:36 CEST] <Nixola> (if that's of any help)
[10:52:55 CEST] <Nixola> (I also tried changing the video codec to a raw format despite being incompatible with mkv, no dice)
[10:57:40 CEST] <JEEB> are you sure the video capture side up to the video encoder is not the bottleneck? same for the actual io.
[10:58:34 CEST] <JEEB> you can check with just video and putting -f null - or something as output for example
[11:08:26 CEST] <Nixola> I tried recording audio only and it apparently doesn't have any crossruns in that case; still, the video is uncompressed and even if I write it to a SSD or to /tmp/ I get the same issue
[11:08:47 CEST] <Nixola> increasing JACK's buffer size to 1024 helps, but then latency's increased for the whole system
[11:11:09 CEST] <JEEB> well yes, I see you've tested audio only
[11:11:17 CEST] <JEEB> also video is not that simple as you might think
[11:11:21 CEST] <JEEB> your screen is RGB
[11:11:37 CEST] <JEEB> video generally is YCbCr (colloquially called 'yuv')
[11:11:56 CEST] <JEEB> so you most likely have a conversion (most likely in software) somewhere in the middle
[11:12:03 CEST] <JEEB> the amount of data is also completely different
[11:14:27 CEST] <JEEB> so yes, I would check if just video is being a bottleneck or not. of course if the case is that you're running out of buffer because the video work takes too long to accomplish (in which case the audio buffer increase helping would explain), then I don't really see any other ways around it (you could in theory add another buffer in the audio component of lavd or something, but that would just move the buffer
[11:14:33 CEST] <JEEB> into another place)
[11:15:41 CEST] <JEEB> the jack module might be written not optimally or whatever video capture module you're using might have the same thing :P I just cannot know
[13:12:30 CEST] <yegortimoshenko> what is the shortest ffmpeg command to merge multiple flac files by glob?
[13:13:44 CEST] <yegortimoshenko> unfortunately neither `ffmpeg -f concat -i '*.flac' -c copy out.flac` nor `ffmpeg -i 'concat:*.flac' -c copy out.flac` work because it doesn't recognize the glob (*.flac: No such file or directory)
[13:15:18 CEST] <yegortimoshenko> %*.flac also doesn't work for some reason...
[13:15:29 CEST] <furq> https://trac.ffmpeg.org/wiki/Concatenate#demuxer
[13:16:17 CEST] <yegortimoshenko> furq: demuxer is definitely not the shortest or simplest way to do that
[13:16:26 CEST] <yegortimoshenko> s/simplest/easiest
[13:16:31 CEST] <furq> it is
[13:17:02 CEST] <yegortimoshenko> what about http://ffmpeg.org/ffmpeg-protocols.html#concat
[13:17:16 CEST] <furq> that only works for concatenatable formats
[13:17:27 CEST] <furq> which doesn't include flac
[13:17:50 CEST] <furq> the protocol is pretty much the same as doing cat 1.flac 2.flac > 3.flac
[13:18:27 CEST] <yegortimoshenko> i see. it's unfortunate, demuxer produces broken flac files for me for some reason
[13:19:21 CEST] <furq> did you try reencoding
[13:21:13 CEST] <yegortimoshenko> yes, sure. but i'd like to use fewer tools if possible. i could use sox or shntool and just reencode them.
[13:21:32 CEST] <furq> i mean using -c:a flac instead of -c:a copy
[13:21:40 CEST] <yegortimoshenko> oh, i didn't. thanks!
[13:22:05 CEST] <furq> it'll obviously take a lot longer but stream copying with concat is a bit flak
[13:22:06 CEST] <furq> y
[13:22:21 CEST] <furq> the concat filter is generally the most reliable in my experience but the syntax is even more annoying
[13:24:45 CEST] <JEEB> yes, the filter is most reliable because there's no format parsing specialities required. the content's already decoded at the point of concatenation
[13:40:47 CEST] <yegortimoshenko> furq: now it works as intended after i've switched to `-c flac`. thanks a lot! :-)
[14:13:32 CEST] <faLUCE> Hello. How can I set VARIABLE frame rate for an AVCodecContext instance? I tried with ->time_base = AVRational{1, 0} but it doesn't work
[14:28:42 CEST] <meriipu> I created a combined sink for pulseaudio. Until something outputs to it, it does not seem to be possible to use it as an input. If something outputs to it and ffmpeg is using it, if the process outputting stops (and ffmpeg is using thread_queue_size ?) memory usage will skyrocket. Is this a pulse issue, ffmpeg issue, or wrong use of sinks? https://bpaste.net/show/d74c48e0be26 e.g should I have had some
[14:28:48 CEST] <meriipu> sort of option to keep the sinks output "always active" or some empty signal to achieve the same?
[14:30:39 CEST] <meriipu> I amnot sure if it happens if I remove the video-part, maybe it does but audio is so small that it will take forever to build up.
[15:10:17 CEST] <Tzimmo> Due to ticket #2622 not being fixed and due to my TV not reliably displaying hdmv_pgs_subtitles, I
[15:11:17 CEST] <Tzimmo> 'd like to extract the subtitles, OCR them, spellcheck/fix them and watch the videos using it as external .sub/.srt/.ass which works reliably.
[15:12:09 CEST] <Tzimmo> Any suggestions on how to achieve this goal, i.e, which steps can ffmpeg or other reliable tools (on Linux) do and which steps is better for me to code myself?
[15:14:11 CEST] <Tzimmo> I've already made a tool to convert DVB subtitles in .son format (extracted by projectx) to text myself, so I'm familiar converting bitmaps to text without using any already made OCR software (which tend to be unreliable because they are so generic that the accept text in any orientation)
[15:14:46 CEST] <Tzimmo> but just coded one one my own which works on subtitles that are always in perfect orientation.
[15:16:09 CEST] <Tzimmo> For example, what kind of output format can ffmpeg provide me from which I could easily read the bitmap and do conversion myself (or use gocr if it works sell, often it doesn't seem to work, especially with non-ascii characters)
[15:22:57 CEST] <JEEB> Tzimmo: lavc decoder outputs rgb for the subpictures
[15:23:30 CEST] <JEEB> see libavcodec/pgssubdec (i think?) dot c
[15:23:59 CEST] <JEEB> the struct at the end shows the supported pix_fmts
[15:47:51 CEST] <faLUCE> Hello. How can I set VARIABLE frame rate for an AVCodecContext instance? I tried with ->time_base = AVRational{1, 0} but it doesn't work. The documentation says: "For fixed-fps content, timebase should be 1/framerate and timestamp increments should be identically 1." . But what about variable frame rate?
[15:49:41 CEST] <faLUCE> Should I set the vsync option to 2? (vfr) but how...?
[15:51:08 CEST] <JEEB> faLUCE: just set a large enough time base and set pts accordingly
[15:51:12 CEST] <JEEB> that's vfr
[15:51:49 CEST] <iive> faLUCE: mpeg uses 90kHz or 27MHz timer
[16:01:13 CEST] <faLUCE> [15:51] <JEEB> faLUCE: just set a large enough time base and set pts accordingly <--- I already did that. I tried with mVideoEncoderCodecContext->time_base = (AVRational){1, 1000000000}; But the player (gstreamer) parses the framerate, from the NAL unit, as 1/1000000000 and it doesn't understand that it is variable. Instead, when I encode with ffmpeg CLI, the player parses the framerate as {0/1} and it understand
[16:01:14 CEST] <faLUCE> it's variable
[16:01:48 CEST] <faLUCE> so, I suspect there's some flag which ffmpeg sets, for variable framerate
[16:06:25 CEST] <faLUCE> this post says that there's a flag (fixed_frame_rate_flag) for that: http://forum.doom9.org/archive/index.php/t-126584.html
[16:06:41 CEST] <faLUCE> but I don't understand if libav can manage it
[16:08:01 CEST] <faLUCE> (the flag is in SPS)
[16:09:31 CEST] <faLUCE> More precisely: http://gstreamer-devel.966125.n4.nabble.com/How-is-a-video-frame-rate-calcu…
[16:26:10 CEST] <faLUCE> well, people from x264 staff confirmed that:
[16:26:13 CEST] <faLUCE> [16:19] <BugMaster> there is fixed_frame_rate_flag in VUI
[16:26:14 CEST] <faLUCE> [16:23] <faLUCE> BugMaster: what is VUI ?
[16:26:15 CEST] <faLUCE> [16:24] <BugMaster> "Video usability information" part of SPS
[16:26:17 CEST] <faLUCE> [16:24] <faLUCE> thanks BugMaster. How can I set it through libx264 ?
[16:26:18 CEST] <faLUCE> [16:25] <faLUCE> (more precisely: I use libav which wraps x264, but I can search for the equivalent option)
[16:26:20 CEST] <faLUCE> [16:25] <BugMaster> b_vfr_input = 0
[16:28:41 CEST] <faLUCE> they just told me that 16:26] <BugMaster> for ffmpeg you probably would need to set --force-cfr
[16:37:11 CEST] <faLUCE> found the solution: av_opt_set(mVideoEncoderCodecContext->priv_data, "x264opts", "no-force-cfr",0);
[16:53:05 CEST] <kepstin> that's strange, because the ffmpeg cli wouldn't be doing that
[16:54:48 CEST] <faLUCE> kepstin: I just saw that cfr is set by zerolatency (which I set before)
[16:54:49 CEST] <kepstin> try setting the framerate field on the codec context to {1,0} to indicate vfr content
[17:12:58 CEST] <kepstin> i think if uninitialized as {0,0}, it'll try to guess the value or copy it from somewhere else, like interted time base
[17:45:50 CEST] <leif> Is there any way to redirect the ffmpeg log when using the libav* libraries?
[17:47:20 CEST] <kepstin> leif: yeah, av_log_set_callback
[17:47:29 CEST] <leif> kepstin: Cool, thanks
[18:34:23 CEST] <Azrael_-> kepstin: thx
[18:35:35 CEST] <rsegecin> to set the environment to compile ffmpeg for windows in Visual Studio I need to run "msys_shell.bat" in VS command prompt but I couldn't find any "msys_shell.bat" file
[18:36:15 CEST] <rsegecin> in C:\msys64 there's only autorebase.bat
[18:36:50 CEST] <rsegecin> does anyone knows where it is?
[18:37:52 CEST] <Blubberbub> maybe its not a bat, but a *.cmd file?
[18:38:16 CEST] <rsegecin> ohh I see
[18:38:31 CEST] <Blubberbub> not sure if thats the correct file, though...
[18:38:42 CEST] <rsegecin> hmmm
[18:39:03 CEST] <rsegecin> sure there is msys2_shell.cmd file there
[18:39:21 CEST] <Blubberbub> just test it - i guess :D
[18:39:33 CEST] <Blubberbub> i think i actually use just one of the normal .exe files - to be honest
[18:40:26 CEST] <Blubberbub> but i don't know if that has any weird side effects
[18:40:26 CEST] <rsegecin> ok I'll tryi it, this will be my fisrt attempt on compiling ffmpeg
[18:41:57 CEST] <rsegecin> np
[18:43:56 CEST] <rsegecin> not sure if it did anything, it just opened msys2 command prompt
[18:45:37 CEST] <Blubberbub> thats what its supposed to do
[18:46:02 CEST] <rsegecin> also there's no yasm anywhere just nasm
[18:46:16 CEST] <rsegecin> may be it was a typo?
[18:46:48 CEST] <Blubberbub> i think i used pacman to install the packages in msys2
[18:49:17 CEST] <rsegecin> hmmm
[18:50:45 CEST] <rsegecin> do I need to have a good cpu to compie ffmpeg?
[18:50:52 CEST] <rsegecin> compile*
[18:51:12 CEST] <Blubberbub> its either that or time - i think
[18:51:22 CEST] <faLUCE> is there a way to encode h264 in BYTESTREAM format?
[18:51:55 CEST] <rsegecin> lol I guess you're right
[18:52:17 CEST] <Blubberbub> rsegecin, you only know it, when you try. You can make it parallel with `make -j 4` if you have 4 cores available
[18:53:55 CEST] <Blubberbub> it will not rebuild everything after the first time - if you are lucky and don't need to reconfigure
[19:00:18 CEST] <rsegecin> Thank you Blubberbub but I think I'll put the ffmpeg compilation aside for now
[19:00:28 CEST] <Blubberbub> its not that hard.
[19:02:03 CEST] <rsegecin> the instructions to compile in Microsoft Visual C++ are not very clear and all I want to know is how ffmpeg does the parsing from wavex to pcm of a wave file
[19:02:27 CEST] <Blubberbub> you can always take a look at the sourcecode on github
[19:02:35 CEST] <rsegecin> I want to be able to debbug as well
[19:02:35 CEST] <Blubberbub> or any other mirror
[19:07:53 CEST] <kepstin> rsegecin: yeah, most of the ffmpeg windows builds around are actually cross-compiled from a linux box with mingw64 :/
[19:08:17 CEST] <yegortimoshenko> how do i fix that flac? ffplay warns me:
[19:08:19 CEST] <yegortimoshenko> [swscaler @ 0x7f84888a3400] deprecated pixel format used, make sure you did set range correctly
[19:08:28 CEST] <Blubberbub> i just spent half an hour trying to figure out, why my custom indev was not available even though all the configs appeared to be correct.... i was executing my system-ffmpeg and not my custom ffmpeg -.-
[19:08:45 CEST] <kepstin> yegortimoshenko: if you're using the ffmpeg cli tool, just ignore that warning - it's a message to the programmers.
[19:09:25 CEST] <yegortimoshenko> kepstin: i think it's a particular flac file problem, or at least some albums don't trigger it
[19:09:58 CEST] <kepstin> yegortimoshenko: that message would be triggered by the flac having an embedded jpeg file for cover art, yeah. There's nothing for you to fix, just ignore the message.
[19:10:58 CEST] <yegortimoshenko> kepstin: that's it! i plan to embed jpg cover art in quite a few albums, though. should i continue or is that considered to be deprecated?
[19:11:55 CEST] <yegortimoshenko> i use metaflac to embed cover art
[19:11:59 CEST] <kepstin> no, it'll work fine. the thing that's deprecated is a particular internal to ffmpeg representation of the color type that the jpeg file is using - it's just a reminder to programmers saying "please switch to using this other thing instead"
[19:12:30 CEST] <yegortimoshenko> got you. thanks!
[19:14:17 CEST] <kepstin> note that if you're copying cover art with ffmpeg, you probably want to use the "-c:v copy" option so it doesn't re-encode the images
[19:14:27 CEST] <kepstin> since that'll be a lossy conversion, lose quality each generation
[19:14:38 CEST] <kepstin> with ffplay, not an issue
[19:15:23 CEST] <faLUCE> is there a way to encode h264 in BYTESTREAM format?
[19:15:49 CEST] <yegortimoshenko> i use metaflac to embed cover art because ffmpeg doesn't seem to support that for flac files. if i'm wrong, though, please do tell me: i'd like to manage all my audio needs using ffmpeg without any external tools :-)
[19:16:54 CEST] <kepstin> faLUCE: like, raw h264 video as a series of nal units? That's usually done with the "h264" muxer
[19:17:30 CEST] <faLUCE> kepstin: http://yumichan.net/video-processing/video-compression/introduction-to-h264…
[19:17:56 CEST] <faLUCE> "a three-byte or four-byte start code, 0x000001 or 0x00000001, is added at the beginning of each NAL unit. "
[19:18:05 CEST] <faLUCE> kepstin: is this the "h264" muxer?
[19:18:20 CEST] <kepstin> the h264 muxer should do that, yeah
[19:18:29 CEST] <faLUCE> tnx
[19:19:20 CEST] <faLUCE> kepstin: -f h264 ?
[19:19:48 CEST] <faLUCE> I need to put them into a mpegts container
[19:19:52 CEST] <kepstin> faLUCE: as an output option when using ffmpeg cli tool? yes. It's also auto-selected by a file with the ".h264" extension
[19:20:07 CEST] <kepstin> .. if you want mpegts, just write to mpegts? ffmpeg can do that directly...
[19:20:19 CEST] <faLUCE> kepstin: I need to use both mpegts+bytestream
[19:20:27 CEST] <faLUCE> together
[19:20:52 CEST] <kepstin> like, the same encoded video both as a raw bytestream and muxed into mpegts?
[19:20:59 CEST] <faLUCE> exactly
[19:21:31 CEST] <kepstin> ffmpeg can do that at the same time, but it's a bit tricky to set up. Look up the "tee" muxer
[19:22:20 CEST] <kepstin> that can send the same encoded video to multiple muxers, so you can pass it to the h264 muxer and mpegts muxer at the same time.
[19:23:36 CEST] <faLUCE> kepstin: what if I do ffmpeg -i input output.h264; ffmpeg -i output.h264 -f mpegts output2.ts ?
[19:24:01 CEST] <kepstin> faLUCE: that would work too, but you have to wait for the whole encode to be done before writing the mpegts file :)
[19:24:15 CEST] <faLUCE> NP for that ;-)
[19:24:19 CEST] <kepstin> and it would also lose timestamps of course
[19:24:24 CEST] <dystopia_> why do, video bitate + audio bitrate not add up to overall bitrate?
[19:25:00 CEST] <kepstin> dystopia_: containers have some overhead for things like seek indexes, and being able to actually separate the audio from the video
[19:25:14 CEST] <kepstin> usually in single-digit percents, but varies by format.
[19:25:16 CEST] <relaxed> faLUCE: don't forget -c copy
[19:25:47 CEST] <dystopia_> 36kb diff
[19:25:59 CEST] <dystopia_> thanks for the answer kepstin
[19:26:06 CEST] <dystopia_> i thought i was just failing at math
[19:28:03 CEST] <faLUCE> yes
[19:43:43 CEST] <cryptodechange> the research window in the nlmeans filter, does 'window' mean frames?
[20:05:10 CEST] <Blubberbub> is there any special way i need to signal EOF when writing a demuxer? because it appears that ffplay keeps executing my read_packet after it returned EOF?
[21:49:47 CEST] <Dovid> Hi. Can anyone help me with this error?https://pastebin.ca/3845626
[21:51:41 CEST] <ChocolateArmpits> Dovid, did you try using lowercase "8k" ?
[21:55:23 CEST] <Dovid> ChocolateArmpits: Yes I tried that. I think the issue is that the stream is not 8k but I thought -ar is the output
[21:56:01 CEST] <ChocolateArmpits> it's used as an output option
[21:56:07 CEST] <ChocolateArmpits> in your command
[21:56:30 CEST] <Dovid> correct which is why I am trying to figure out why I am getting the error
[21:58:04 CEST] <ChocolateArmpits> Dovid, looks like an old version, what about using plain number ? '8000'
[21:58:39 CEST] <furq> yeah you probably want to use an ffmpeg that isn't five years old
[21:58:41 CEST] <Dovid> ChocolateArmpits: A simple 8000 seems to work from the cli. let me try from my app
[00:00:00 CEST] --- Sun Jul 23 2017
1
0
[00:02:49 CEST] <tdjones> Is it recommended to add separate fate tests for different audio channel configurations (mono, stereo, 5.1, etc)?
[00:04:52 CEST] <sfan5> anyone know whether android's mediacodec could support decoding motion jpeg?
[00:06:37 CEST] <atomnuker> tdjones: no, avoid getting more fate tests for encoders in until an encoder is feature complete
[00:06:57 CEST] <atomnuker> or is an encoder for a lossless format
[00:09:59 CEST] <tdjones> atomnuker: Alright, I figured so but wanted to check
[00:11:32 CEST] <atomnuker> however yes, having mono, stereo and 5.1 tests should cover 100% of what encoders use wrt multichannel
[00:15:05 CEST] <tdjones> I understand
[01:05:46 CEST] <J_Darnley> What the..? Why does ffmpeg limit to 16 threads when the MAX_THREADS define is 64?
[01:07:11 CEST] <nevcairiel> limit where and what? mine doesnt =p
[01:09:11 CEST] <J_Darnley> In vc2enc, I printed avctx->thread_count; that was 16.
[01:09:13 CEST] <iive> J_Darnley: have you solved the buffer issue?
[01:09:18 CEST] <J_Darnley> iive: yes
[01:09:24 CEST] <J_Darnley> My own silly mistake
[01:09:25 CEST] <iive> what was it?
[01:09:28 CEST] <iive> :D
[01:09:48 CEST] <iive> hapens all the time.
[01:10:32 CEST] <J_Darnley> The transform buffer is not a plane. The transform uses a contiguous region of it. I was offsetting the base pointer like a plane which mean neighbouring slices were writing to the same place.
[01:11:15 CEST] <J_Darnley> Not a problem when it is all linear because it is a temp/scratch buffer.
[01:11:41 CEST] <J_Darnley> Thanks for the help. You too BBB and nevcairiel
[01:12:12 CEST] <J_Darnley> to continue: ffmpeg also printed "Application has requested 24 threads. Using a thread count greater than 16 is not recommended."
[01:12:26 CEST] <J_Darnley> ... when I set -threads 24
[01:12:35 CEST] <nevcairiel> thats normal, it complains if you use more then cpu cores, but it doesnt do anything but log that
[01:12:37 CEST] <iive> well, messages are easier to find.
[01:13:12 CEST] <J_Darnley> Huh? This server has 24 threads (2sockets, 6core, hyperthreading)
[01:13:35 CEST] <nevcairiel> maybe thats a hardcoded value then for dumb reasons
[01:13:50 CEST] <J_Darnley> it is in avcodec/pthreads.c
[01:14:24 CEST] <nevcairiel> the only time its really setting thread_count is if you have it at 0
[01:14:32 CEST] <nevcairiel> dont see where it might be overriding a requested value
[01:14:33 CEST] <J_Darnley> Ah. That seems to be MAX_AUTO_THREADS
[01:16:38 CEST] <iive> i like the comment before its define :}
[01:18:04 CEST] <J_Darnley> hahaha
[01:18:13 CEST] <nevcairiel> sounds like some hack fix in response to some stupid trac ticket
[01:19:38 CEST] <nevcairiel> although surprisingly it is not from trac, but it remains some clumsy hack
[01:21:09 CEST] <iive> git blame says that file is from 2013
[01:27:28 CEST] <drv> it got moved around - it was originally introduced in ea4d5f48373ab856e01a3cf05426db6e823e01d1
[01:34:15 CEST] <ZeroWalker> well i am at least getting some audio now after swr conversion. Though it's glitchy, not sure if the conversion is wrong or if it has to do with the timestamps, as normally it's set by time when the capture occurs. But if i use swr there will be some buffering, so it will set the timestamp that happens to be when the buffer gets full. Though i think that would be fine as it should still be an interval that causes it to keep
[01:34:15 CEST] <ZeroWalker> up
[02:32:04 CEST] <ZeroWalker> no ideas;d
[02:33:32 CEST] <cone-956> ffmpeg 03Wan-Teh Chang 07master:ea1ca17be230: avcodec/x86/cavsdsp: Delete #include "libavcodec/x86/idctdsp.h".
[02:33:32 CEST] <cone-956> ffmpeg 03Wan-Teh Chang 07master:b77e26b28525: avcodec/hevcdec: hevc_await_progress: declare |y| only if used.
[02:33:32 CEST] <cone-956> ffmpeg 03Wan-Teh Chang 07master:99c5ac20397e: avcodec/h264: Declare the local variable decode_chroma as const.
[04:46:39 CEST] <ZeroWalker> so with the avcodec_send_frame, isn't it possible to get a callback or something when it's done, rather then check, cause if you check all the time, isn't it the same as the previous API versions?
[04:50:53 CEST] <wm4> lol apparently US police uses jpeg2000 to store high resolution fingerprints
[04:51:12 CEST] <wm4> and for lower resolution, WSQ (whatever that is)
[04:51:27 CEST] <wm4> according to wikipedia
[04:53:45 CEST] <atomnuker> ZeroWalker: its not async, you give it packets and it won't return until there's something to do
[04:54:12 CEST] <atomnuker> you don't need to poll it, there'll always be something to do
[04:54:22 CEST] <atomnuker> either feed it more packets or get a frame out
[04:55:35 CEST] <atomnuker> wm4: that kinda makes sense, both are wavelet based so both don't have blocking artifacts (and don't have to bodge them with filters)
[04:56:10 CEST] <TD-Linux> jpeg2000 is heavily used for US government contracts
[04:56:17 CEST] <ZeroWalker> so if i am capturing, it would just be "Send/Receive" whenever a frame is to be encoded?
[04:56:20 CEST] <TD-Linux> most government satellites also use jpeg2000
[04:56:52 CEST] <TD-Linux> the ability to progressively download higher resolutions is very useful
[05:03:19 CEST] <ZeroWalker> cause well, i was wondering if one could use this Send frame thing to let the encoder handle audio frames, so you can just push it and it will encode whenever it gets enough.
[05:03:48 CEST] <ZeroWalker> cause been having a point solving that, especially since it's all timestamp bound for video and audio for me
[05:58:49 CEST] <ZeroWalker> i can't use swr_convert_frame, i get "Output Changed", and i don't understand what it's supposed to mean. What does it mean "changed", i can't seem to find any information on it
[06:13:01 CEST] <wm4> doesn't the doxygen say? if in doubt, look at libavresample's doxygen, where this was apparently stolen from
[06:23:26 CEST] <ZeroWalker> you talking to me, or someone else?
[08:57:57 CEST] <ZeroWalker> okay i finally got it working, probably had it somewhat working before, but of course i had this stupid mistake of having the swr channel layout (input or if it was output) to the Channel count instead -_-
[08:58:32 CEST] <ZeroWalker> now i do however get a constant delay, but that's expected, probably a pain but it's solvable;d
[08:59:35 CEST] <ZeroWalker> now there's cleanup to do, and i am kinda confused wham to actually free some stuff, cause i never understand when a function makes a copy of it or not, cause some are referenced count, clean up themselves etc, now my expertise:(
[10:08:58 CEST] <durandal_1707> michaelni: you broke another codec again ^
[10:09:33 CEST] <thebombzen> we should have a tvshow series starring michael but instead of calling it "code breakers" it's "codec breakers"
[10:24:26 CEST] <FlowerCodec> hello everyone.
[10:26:04 CEST] <stevenliu> hi
[10:26:55 CEST] <FlowerCodec> haha dashixiong...
[10:29:26 CEST] <kierank> durandal_1707: yes but it doesn't have a maintainer so michaelni can push when he want
[10:30:30 CEST] <kierank> did you know I maintain the moon and sky
[10:30:45 CEST] <kierank> you can maintain the trees
[10:30:53 CEST] <kierank> we just have to make a file saying so
[10:36:25 CEST] <durandal_1707> kierank: there was before addition: every single patch must be sent to maintainer before pushing, looks like it got removed
[10:37:22 CEST] <durandal_1707> you just add such sentence in maintainers file
[11:52:12 CEST] <michaelni> durandal_1707, thebombzen kierank, patch posted which fixe ticket 6546
[11:52:28 CEST] <thebombzen> well okay
[11:55:31 CEST] <michaelni> also reviews for any other patch i post are welcome. I have the feeling most of the patches i post get no review
[12:33:35 CEST] <J_Darnley> Does avcodec employ any tricks for edge extension other than just copying to a larger buffer and duplicating data?
[12:44:45 CEST] <kierank> J_Darnley: no, that's the way to do it per slice afaik
[13:01:31 CEST] <J_Darnley> I thought as much
[13:12:25 CEST] <michaelni> J_Darnley, "git grep edge_emu" if you want to see some of the code that deal with edge extension
[13:22:40 CEST] <J_Darnley> thanks, I'll check it out
[13:25:06 CEST] <kierank> J_Darnley: it's not comparable edge extension
[14:10:36 CEST] <kierank> J_Darnley: when michaelni means edge extension he means edge of frame
[14:10:39 CEST] <kierank> we mean edge of slice
[14:11:03 CEST] <kierank> if you want to do it inplace I guess you could allocate a larger buffer
[14:11:18 CEST] <J_Darnley> I know that.
[14:11:35 CEST] <J_Darnley> I'm still going to look at it to se if it provides anything useful
[14:11:36 CEST] <kierank> might be easier to do the edge extension in a scratch buffer, I dunno
[14:11:37 CEST] <kierank> ok
[14:12:31 CEST] <J_Darnley> I believe the spec or those white papers say you should duplicate even and odd samples rather than just the edge one or a mirror
[14:12:45 CEST] <kierank> yes
[17:21:08 CEST] <cone-621> ffmpeg 03James Almer 07master:7c9d2ad45f4e: avcodec/dca: remove GetBitContext usage from avpriv_dca_parse_core_frame_header()
[17:21:09 CEST] <cone-621> ffmpeg 03foo86 07master:67af24da0dc2: MAINTAINERS: add myself
[17:38:01 CEST] <cone-621> ffmpeg 03Kaustubh Raste 07master:ef1b4bdf4456: libavutil/mips: Updated msa generic macros
[17:38:02 CEST] <cone-621> ffmpeg 03Michael Niedermayer 07master:1196e53b7013: doc: Add initial documentation explaining undefined behavior and SUINT
[17:38:03 CEST] <cone-621> ffmpeg 03Michael Niedermayer 07master:edc88646ee40: avcodec/diracdec: Check dimensions which are closer to what is allocated in alloc_sequence_buffers()
[21:28:10 CEST] <cone-621> ffmpeg 03Vittorio Giovara 07master:0a243bedec0a: zscale: Factor out format initialization
[21:28:11 CEST] <cone-621> ffmpeg 03Vittorio Giovara 07master:2e91a96d7bc9: zscale: Factor out graph building
[21:28:12 CEST] <cone-621> ffmpeg 03Vittorio Giovara 07master:dc9735eb67ca: hevc: Make sure to update the current frame transfer characteristic
[21:28:13 CEST] <cone-621> ffmpeg 03Vittorio Giovara 07master:d24a82d2e2b7: ffprobe: Print color properties from show_frames
[00:00:00 CEST] --- Sat Jul 22 2017
1
0
[00:34:15 CEST] <cryptodechange> Wow, trying to encode some 1080p anime
[00:34:31 CEST] <cryptodechange> crf=17, over twice the bitrate of some films I've done
[00:34:34 CEST] <cryptodechange> bluray source
[00:34:54 CEST] <cryptodechange> It's a blu ray release of an old release, very grainy
[00:34:57 CEST] <cryptodechange> Probably upscaled
[00:35:03 CEST] <JEEB> well yea, grain kills the man :P
[00:35:07 CEST] <JEEB> (and encoders)
[00:35:25 CEST] <cryptodechange> So, filter?
[00:35:26 CEST] <JEEB> also that crf is low for most 1080p animoo I've poked my fingers at
[00:35:38 CEST] <JEEB> no, don't filter other than downscale if it's an upscale
[00:35:47 CEST] <JEEB> unless there's something really wrong with it
[00:35:48 CEST] <dystopia_> add -tune animation
[00:35:54 CEST] <JEEB> dystopia_: lol
[00:36:01 CEST] <cryptodechange> I'm pretty much using the animation preset
[00:36:07 CEST] <JEEB> I would have expected tune grain or something 'cause he said it was grainy
[00:36:08 CEST] <JEEB> :P
[00:36:21 CEST] <cryptodechange> Tune grain would've preserved the grain though?
[00:36:28 CEST] <JEEB> that's what it's doing anyways
[00:36:32 CEST] <c_14> tune grain preserves more grain
[00:36:40 CEST] <JEEB> anyways, re-calibrate your CRF range and downscale if it's upscaled
[00:36:45 CEST] <cryptodechange> = more bitrate, which is what I want to avoid.
[00:36:48 CEST] <JEEB> no need to keep it at 1080p if the content's not that
[00:36:58 CEST] <cryptodechange> It's the DBZ blurays, so most definitely upscaled
[00:37:30 CEST] <cryptodechange> so I want to downscale it to 480p?
[00:37:51 CEST] <c_14> that's probably overkill
[00:38:08 CEST] <cryptodechange> Raw, they are ~3.8gb
[00:38:15 CEST] <dystopia_> first aired in 1996
[00:38:24 CEST] <dystopia_> i wonder what jpn broadcast standard was then
[00:38:38 CEST] <cryptodechange> crf=17 was producing up to 25mbps
[00:38:40 CEST] <JEEB> well yea, blu-rays are gonna be what they are unless the mastering studio wanted to save space (and put more stuff on a single disc)
[00:39:02 CEST] <JEEB> and this is what encoders actually do, you start the journey into looking up the actual detail level in that thing :|
[00:39:18 CEST] <JEEB> most likely someone else has already done that but you need to base your thing on good enough data
[00:39:20 CEST] <cryptodechange> 10 episodes at 3.8gb each
[00:39:44 CEST] <JEEB> that doesn't fucking matter as I noted. that sounds like the most usual BD bit rate I've seen :P
[00:39:47 CEST] <cryptodechange> If I stored them all raw, it'd be 1TB :D
[00:39:47 CEST] <JEEB> ~40mbps
[00:40:41 CEST] <JEEB> anyways, time for you to get your lazy ass and do some research and experimentation. and to be honest, if it was analog art then if it was re-scanned it could be surpriisngly high. but if it wasn't, then you've just got better bit rate compared to DVDs (for the source) and you can downscale it
[00:41:11 CEST] <JEEB> there's also things that can help you guesstimate the actual pre-upscale resolution if it was upscaled in a sane way
[00:41:39 CEST] <dystopia_> i guess 640x480 would be a good place to go
[00:42:14 CEST] <cryptodechange> The quality is not bad for 1080p
[00:42:15 CEST] <cryptodechange> https://imgur.com/a/YsweE
[00:42:38 CEST] <JEEB> dystopia_: it really depends on how much was actually remastered (and how much was filtered to hell)
[00:42:45 CEST] <cryptodechange> upscaled 1080p*
[00:42:56 CEST] <JEEB> dat blur
[00:43:23 CEST] <JEEB> anyways, have fun properly thinking it out :P
[00:43:24 CEST] <cryptodechange> Though around the outlines
[00:43:30 CEST] <c_14> It's not even that grainy
[00:43:43 CEST] <cryptodechange> It's the motion grain
[00:54:38 CEST] <kepstin> from 1996? that predates most digimation stuff in japan, it might actually be a new scan from film
[00:54:52 CEST] <kepstin> in which case, it's actually native hi def :/
[00:55:29 CEST] <kepstin> weird that they cropped it to 16:9 ratio tho, the original video would have been 4:3
[00:56:00 CEST] <c_14> 16:9 is in, 4:3 is way old news
[00:56:09 CEST] <Threads> dont you know ?, 16:9 is the new standard for people who dont know anything
[00:56:39 CEST] <kepstin> it's kind of sad that the only way to store HD 4:3 stuff on bluray is to pillarbox it
[00:58:32 CEST] <Threads> just leave it as nobody will care
[00:58:40 CEST] <Threads> fuck just give me the 4:3 dvd
[00:59:08 CEST] <c_14> the thing with the bluray is that someone could have potentially if they reeeally felt like it rescanned the film in high definition
[00:59:14 CEST] <cryptodechange> I should hold back in telling you guys I'm cropping it further to match my 21:9 monitor >_>
[00:59:23 CEST] <cryptodechange> because I like staring at eyes only
[01:00:03 CEST] <cryptodechange> So in the event of being rescans/native hd, would I want to try and remove the grain instead of downscale?
[01:00:06 CEST] <furq> kepstin: emphasis on "might"
[01:00:15 CEST] <furq> http://i.imgur.com/AeA6K7N.png
[01:00:25 CEST] <furq> check out this pristine upscale of a show from 1993
[01:00:38 CEST] <c_14> oh my good
[01:00:39 CEST] <kepstin> I personally own a few really nice looking HD anime blu-rays that were rescanned from film, they're gorgeous.
[01:00:42 CEST] <furq> and yes, of course it's pan&scan
[01:00:44 CEST] <cryptodechange> his face is an accurate representation
[01:00:49 CEST] <Threads> give it 10years we will see film from 1980 remastered to 4k
[01:00:55 CEST] <furq> we're already seeing that
[01:01:03 CEST] <furq> film from 1980 is no problem, you can just rescan it
[01:01:32 CEST] <Threads> furq the simpsons on fxx was cropped like mad
[01:01:37 CEST] <kepstin> any animation done digitally from the mid-2000s is just gonna be awful, it's natively SD resolution and there's no way you can make it look good.
[01:01:41 CEST] <furq> 35mm film will theoretically go way behind 8k
[01:01:52 CEST] <furq> assuming you still have a good master ofc
[01:01:54 CEST] <c_14> beyond?
[01:01:57 CEST] <furq> er, yeah
[01:02:00 CEST] <furq> im good at typeing
[01:02:12 CEST] <cryptodechange> What's your opinion on this, kepstin? https://i.imgur.com/8bYRB65.jpg
[01:02:44 CEST] <cryptodechange> My eyes are untrained, but is there blocking around the outlines?
[01:02:47 CEST] <kepstin> cryptodechange: hard to tell, if that is an upscale, it's very well disguised
[01:02:59 CEST] <furq> please learn how to use your video player's screenshot function
[01:03:27 CEST] <furq> but yeah that looks like it could be a rescan
[01:03:30 CEST] <cryptodechange> Sorry, it was a habit to prtscr and paste into imgur
[01:03:46 CEST] Action: cryptodechange even pastes into paint to crop at times
[01:04:09 CEST] <kepstin> there's some telltale smearing in some of the lines around the eyes that point to filtering, but it's hard to say
[01:04:25 CEST] <furq> yeah the lines generally look a bit unnatural
[01:04:29 CEST] <cryptodechange> The somewhat grainy blue sky is super noticeable when the video is playing
[01:04:42 CEST] <cryptodechange> being not so 'somewhat'
[01:04:59 CEST] <kepstin> i'm not familiar with that era of dragonball, but it might have actually been done on 8mm rather than 16mm film, which could explain the thicker lines and extra grain.
[01:05:42 CEST] <cryptodechange> Some of the 'distance' shots are humourous, as you can clearly see it's a still image when they talk
[01:06:10 CEST] <kepstin> yeah, that's a fun thing about these anime rescans - you can see detail that would have been invisible on an SD television.
[01:06:16 CEST] <kepstin> as so was left out
[01:06:26 CEST] <Threads> http://www.kanzenshuu.com/production/kai-remastering/
[01:06:54 CEST] <kepstin> ah, so it was 16mm
[01:07:22 CEST] <cryptodechange> This is from the non-kai bluray, but I assume it was a similar process, without the reworking of any of the content
[01:07:46 CEST] <furq> In fact, the first 194 episodes of the original Dragon Ball Z TV series were condensed down into a mere 98 episodes, resulting in nearly 100 episodes worth of material being cut out.
[01:07:52 CEST] <cryptodechange> Maybe the DBZ blurays were the precursor to kai, they released them to ensure extra funding
[01:07:56 CEST] <furq> 100 episodes worth of two dudes going AAAAAAAAHHHHHHH and glowing
[01:08:31 CEST] <kepstin> my favourite modern film rescan is the 1960s batman tv series, of course
[01:08:35 CEST] <cryptodechange> I want the AHHHHHHHHHHHHHH
[01:08:48 CEST] <kepstin> that is absolutely glorious on bluray.
[01:09:14 CEST] <cryptodechange> I've still got the interlaced/telecined 90s Batman and X-men animated shows to encode
[01:09:44 CEST] <furq> So its no surprise why certain scenes were edited to remove some blood or male genitalia.
[01:09:48 CEST] <furq> well this is no good any more
[01:09:48 CEST] <Threads> ohh wow they left the batman in 4:3
[01:10:48 CEST] <cryptodechange> so now to look into degrain filters and try that out
[01:10:48 CEST] <kepstin> of course. if they cropped it you wouldn't be able to read all the tiny sign gags in the background
[01:11:24 CEST] <kepstin> (the background gags in that show are hilarious, particularly since many would have been invisible in the original broadcast)
[01:15:29 CEST] <furq> and to tie it all together
[01:15:30 CEST] <furq> https://www.youtube.com/watch?v=JJdXMrFRDGk
[03:01:44 CEST] <cryptodechange> This is a pretty good resource for denoising
[03:01:45 CEST] <cryptodechange> http://www.dirk-farin.net/projects/nlmeans/index.html
[03:05:03 CEST] <leif> Does anyone know what format I would use if I wanted to use the rawvideo video codec and s16 audio codec?
[03:05:09 CEST] <furq> nut
[03:05:23 CEST] <leif> There seems to be a rawvideo format, but for audio the closest thing I can find is the wv format.
[03:05:36 CEST] <furq> do you mean format or codec
[03:05:48 CEST] <furq> the audio codec for s16 pcm is pcm_s16le
[03:06:07 CEST] <furq> or be, but nobody uses that any more
[03:06:47 CEST] <leif> furq: I mean, I know the codec I want is pcm_s16le, but I am trying to figure out what format I should put the codec into.
[03:08:03 CEST] <leif> Basically, I'm trying to convert a file to rgb24 (which looks like it needs to be in the rawvideo codec), and s16 audio, which is thepcm_s16le format.
[03:08:09 CEST] <leif> err...codec*
[03:08:20 CEST] <leif> But I'm having trouble figuring out what format that can go into.
[03:08:45 CEST] <furq> if you mean both together then nut
[03:09:09 CEST] <drv> you can use the s16le format to get raw audio
[03:09:30 CEST] <leif> drv: Cool, thanks.
[03:09:43 CEST] <leif> furq: Honestly together or seperate is fine.
[03:10:06 CEST] <leif> But ya, drv answered the question. (I was searching for formats with raw in the name...)
[03:10:19 CEST] <leif> But ya, the s16le one works great. :)
[03:10:24 CEST] <drv> yeah, not sure why there's a single rawvideo and lots of raw PCM formats
[03:11:59 CEST] <leif> drv: Ya. I mean, I get that there's a lot of different types of 'raw' audio...but there are also lots of different types of 'raw' video too. :D
[03:12:03 CEST] <leif> Anyway, thanks again.
[04:12:29 CEST] <redrabbit> hi
[04:12:39 CEST] <redrabbit> im trying to transcode my dvbviewer streams to hevc / heaac instead of avc/mp3 defaults
[04:13:14 CEST] <redrabbit> http://dpaste.com/3VJ3SS2.txt here is the config line, there must be something wrong with it; probably some option that only works with the original codecs ?
[04:14:54 CEST] <furq> what's the error
[04:15:35 CEST] <furq> i'm guessing it's something to do with -profile baseline and -tune film because neither of those exist in x265
[04:16:04 CEST] <redrabbit> that's a good question, i can't/dont know how see the error because its ran by a service
[04:16:16 CEST] <redrabbit> ok, im going to try to remove this
[04:16:56 CEST] <furq> also you probably won't get very good results from changing the video codec
[04:17:09 CEST] <furq> unless you have a fast enough cpu to run x265 in realtime with a slow profile
[04:17:48 CEST] <furq> x265 doesn't really outperform x264 at the same encoding speed
[04:18:19 CEST] <furq> (or the same cpu utilisation for realtime input)
[04:18:23 CEST] <redrabbit> its for low bw application
[04:19:02 CEST] <redrabbit> the 1st part i wanted to get right was the he-aac
[04:19:23 CEST] <furq> well that bit will definitely make a difference
[04:21:21 CEST] <redrabbit> furq: the h265 part works now
[04:21:31 CEST] <redrabbit> you were right about -profile baseline and -tune film
[04:21:50 CEST] <redrabbit> there must be something with the aac part as well
[04:22:04 CEST] <redrabbit> i had to revert to lame to try the hevc
[04:22:09 CEST] <furq> if you didn't build ffmpeg yourself then you don't have fdk-aac
[04:22:27 CEST] <furq> it's not gpl compatible so binaries with it aren't distributable
[04:23:01 CEST] <redrabbit> i got it ther https://ffmpeg.zeranoe.com/builds/win64/shared/?C=M&O=A
[04:23:21 CEST] <furq> yeah that doesn't have fdk
[04:23:33 CEST] <redrabbit> so there is no way to get it without diy compile
[04:23:35 CEST] <furq> and the builtin aac encoder doesn't support he-aac
[04:23:41 CEST] <furq> although it should still be better than lame at 64k
[04:23:59 CEST] <redrabbit> certainly
[04:24:30 CEST] <redrabbit> compling it myself is a bit out of my league i guess
[04:24:43 CEST] <furq> i take it you can't use opus
[04:24:48 CEST] <redrabbit> i wish there was builds somewhere
[04:25:01 CEST] <redrabbit> i dont know what is opus
[04:25:01 CEST] <furq> blame fraunhofer for their stupid license
[04:25:12 CEST] <furq> opus is a better audio codec that outperforms he-aac at 64k
[04:25:17 CEST] <furq> but it's not as widely compatible
[04:25:20 CEST] Action: redrabbit blames
[04:25:32 CEST] <redrabbit> i need a TS compatible format
[04:25:42 CEST] <furq> opus will mux into mpegts iirc
[04:25:49 CEST] <furq> but whether your devices will decode it is another issue
[04:26:05 CEST] <redrabbit> oh its for a pc
[04:26:32 CEST] <furq> that should probably work then
[04:26:43 CEST] <redrabbit> i have a very weak BW for a couple week vacation and im trying to enhance quality i get
[04:26:46 CEST] <furq> -c:a libopus
[04:27:57 CEST] <redrabbit> so i replace -acodec libmp3lame with -c:a libopus ?
[04:28:01 CEST] <furq> right
[04:30:15 CEST] <redrabbit> it must not like some of the options, fails
[04:33:13 CEST] <redrabbit> aac works though
[04:33:46 CEST] <redrabbit> its an improvement
[04:34:29 CEST] <furq> 64k is plenty for lc-aac if you're downmixing to mono
[04:36:29 CEST] <redrabbit> yep its mono
[04:36:40 CEST] <redrabbit> a big step from 48k mp3
[04:36:41 CEST] <redrabbit> :)
[04:37:08 CEST] <redrabbit> (the original quality preset)
[04:52:05 CEST] <cryptodechange> oh wow
[04:52:27 CEST] <cryptodechange> is it just me or does nlmean work wonders?
[04:52:42 CEST] <cryptodechange> https://imgur.com/a/scY02
[04:53:07 CEST] <cryptodechange> using -vf nlmeans=s=6
[05:03:31 CEST] <sikilikis> hi everyone. quick question. If it better to compile ffmpeg with --enable-librtmp or to just use the native rtpm?
[05:04:51 CEST] <sikilikis> I've been using the --enable-librtmp option and it works, but I'm using ffmpeg to stream 24/7 to youtube and the stream will randomly get disconnected
[05:05:43 CEST] <sikilikis> forget the error but its some generic rtmp error. It's like writeN error 32 or something. I've no idea if using the native rtmp will be better, or perhaps trying to compile the latest version of librtmp-dev
[05:05:51 CEST] <redrabbit> sweet. after some optimisations i get quite a good picture with the high efficiency codecs
[05:05:54 CEST] <PixelPerfect> ...Do you mean rtmp?
[05:05:59 CEST] <PixelPerfect> sikilikis
[05:06:05 CEST] <sikilikis> yeah. Did I spell it wrong?
[05:06:15 CEST] <PixelPerfect> >rtpm
[05:06:17 CEST] <redrabbit> still need to get what failed with opus
[05:06:23 CEST] <sikilikis> oh oops. But yes
[05:06:28 CEST] <redrabbit> some extra audio quality is nice
[05:08:19 CEST] <sikilikis> anyway yes I'll randomly get like rtmp send error 104, send error 32, and send error 9
[05:08:33 CEST] <sikilikis> stream might go days before it gets that error
[05:08:37 CEST] <sikilikis> sometimes hours
[05:08:55 CEST] <sikilikis> I had to wrap my ffmpeg command inside a simple bash script with a loop just so it can recover
[05:10:11 CEST] <furq> sikilikis: librtmp isn't really developed any more afaik
[05:10:29 CEST] <furq> and the native rtmp support works just fine for me, although i'm not streaming 24/7
[05:10:48 CEST] <PixelPerfect> Yeah, I'd wonder if that's just net hiccups or DHCP release renew
[05:11:06 CEST] <sikilikis> dhcp renew?
[05:11:14 CEST] <furq> cryptodechange: denoising ought to give great results on that source because there's not really any fine detail for it to confuse with grain
[05:11:35 CEST] <PixelPerfect> sikilikis as in, your router automatically reassigning IP addresses when they expire
[05:11:39 CEST] <furq> nlmeans is pretty good in general though
[05:12:20 CEST] <sikilikis> hmm. actual ip adress right? not the lan ip?
[05:12:27 CEST] <furq> no, the lan ip
[05:12:31 CEST] <PixelPerfect> or both
[05:12:34 CEST] <PixelPerfect> but likely lan
[05:12:37 CEST] <sikilikis> oh. No that hasn't changed
[05:12:59 CEST] <PixelPerfect> Your DHCP lease can still expire even if you're reassigned the same IP
[05:13:00 CEST] <sikilikis> I didn't set up a static ip, but I've been using the same ip to ssh to
[05:13:14 CEST] <sikilikis> ah I see. You think setting a static ip might fix things?
[05:13:15 CEST] <furq> yeah you probably want to set up a static lease regardless
[05:13:17 CEST] <furq> or a static ip
[05:13:32 CEST] <sikilikis> I can try that then. thanks
[05:13:35 CEST] <PixelPerfect> It's one less variable in the equation
[05:13:54 CEST] <sikilikis> would you also recommend using the native rtmp? sounds like I should if librtmp isnt in development
[05:14:00 CEST] <PixelPerfect> Honestly, I think programs like OBS just have fallover wrapping already, which is why you don't have to bother with it
[05:14:02 CEST] <furq> it's worth a try
[05:14:10 CEST] <PixelPerfect> Go for it
[05:14:22 CEST] <furq> i know librtmp causes a couple of option parsing bugs that builtin doesn't have
[05:14:29 CEST] <furq> no idea about the actual meat of it though
[05:16:12 CEST] <cryptodechange> where can I find more information regarding a specific filter? Mostly in regards to ranges and default values
[05:16:34 CEST] <cryptodechange> ie. nlmean, I am not sure what the default strength value is, or its range
[05:18:19 CEST] <furq> http://vpaste.net/UX337
[05:19:27 CEST] <furq> usually also https://ffmpeg.org/ffmpeg-filters.html but not all the filters are fully documented on there
[05:26:00 CEST] <cryptodechange> ty!
[07:10:20 CEST] <kepstin> cryptodechange: 'ffmpeg -h filter=nlmeans' will show you all the option defaults and ranges
[07:10:40 CEST] <kepstin> er, that's what furq pasted
[07:10:41 CEST] <kepstin> ok
[08:24:38 CEST] <dynek> hello all!
[08:25:09 CEST] <dynek> I'm trying to read an rtsp stream into an flv file using vaapi but it ends-up empty: https://pastebin.com/LNtD4w4K
[08:25:21 CEST] <dynek> any hint will be much appreciated - I've been trying to get this va-api thingie work for quite some time :-(
[10:00:15 CEST] <thebombzen> wait, I'm confused about something
[10:00:34 CEST] <thebombzen> if Matroska only has a timebase of 1k, how do you put 24 fps, 30 fps, 60 fps etc. video inside it correctly?
[10:00:57 CEST] <thebombzen> after encoding a 60 fps video and putting inside matroska (using lavf's muxer), ffprobe reports 60 fps. But how does that work with a 1k timebase?
[10:03:32 CEST] <rsegecin> HI
[10:03:35 CEST] <rsegecin> ops
[10:03:39 CEST] <rsegecin> Hello
[10:06:36 CEST] <rsegecin> is anyone out there?
[10:07:28 CEST] <thebombzen> I'm sure someone is here
[10:07:39 CEST] <thebombzen> if you have a question, you should just ask it though
[10:07:58 CEST] <thebombzen> if nobody knows the answer who's on at the moment, nobody will say anything
[10:08:05 CEST] <thebombzen> if someone knows, and sees it, they'll respond
[10:08:17 CEST] <rsegecin> thanks
[10:08:19 CEST] <thebombzen> but if you just say "hello" most people aren't nice enough to say "hello" back or to give you this little bit of info
[10:09:44 CEST] <rsegecin> I'm trying to run this code:
[10:09:45 CEST] <rsegecin> loopback-capture | ffmpeg -i pipe:0 -f s16be -ar 44100 -acodec pcm_s16be pipe:1
[10:10:24 CEST] <rsegecin> loopback-capture captures and prints in the stdout the chunk of a wav file
[10:10:25 CEST] <thebombzen> what's wrong?
[10:10:27 CEST] <thebombzen> oh
[10:11:02 CEST] <thebombzen> what seems to be the issue? (also, fyi, you can use -i - to read from standard in and - to write to standard out. you don't need to use pipe:0 or pipe:1)
[10:11:39 CEST] <thebombzen> also your current command looks like it's printing raw PCM samples to the terminal on standard output
[10:11:45 CEST] <thebombzen> are you sure you want to do that? or is that not the correct command?
[10:11:57 CEST] <rsegecin> but ffmpeg doesn't do anything because I think "loopback-capture" doesn't spit the beggining of the header wav file
[10:12:15 CEST] <thebombzen> what do you mean by "doesn't do anything"
[10:12:28 CEST] <thebombzen> do you mean it sits there and hangs or do you mean it fails to detect the input file format?
[10:13:07 CEST] <thebombzen> I can't help you without the exact command and full uncut output that is. I can't see what's on your screen
[10:14:09 CEST] <rsegecin> https://pastebin.com/d2EARtPX
[10:14:55 CEST] <rsegecin> by doesn't do anything I mean ffmpeg should print in stdout
[10:15:53 CEST] <rsegecin> what I want that ffmpeg do is to convert a wave file format from type WAVE_FORMAT_EXTENSIBLE to PCM
[10:17:09 CEST] <thebombzen> well if loopback-capture is printing samples without a WAV header, then FFmpeg isn't able to autodetect the format
[10:17:12 CEST] <thebombzen> it looks like this is happening
[10:17:38 CEST] <thebombzen> because if it printed a WAV header, FFmpeg would be able to read that, and autodetect the format of the input.
[10:18:05 CEST] <thebombzen> if loopback-capture is outputting raw samples, you have to tell FFmpeg what sort of stuff it's getting
[10:18:36 CEST] <rsegecin> I think ffmpeg needs the header but as its a continious stream from my output device I don't have the information of the total size because I don't know wether it's going to stop
[10:19:01 CEST] <thebombzen> if it doens't have the header, it's fine. It just means it cannot auto-detect the stuff like sample rate or sample format, so you have to provide them yourself
[10:19:07 CEST] <thebombzen> try this: loopback-capture | ffmpeg -f s16le -ar 48000 -ac 2 -i - -c copy -f wav -
[10:19:22 CEST] <rsegecin> ok
[10:19:43 CEST] <thebombzen> what this does is it has ffmpeg read signed 16-bit little endian samples from standard in, at 48 kHz in stereo, attaches a wav header, and then writes the WAV to standard out.
[10:20:24 CEST] <rsegecin> hmm I need PCM in the stdout
[10:20:34 CEST] <thebombzen> Well if you have pcm in the input then why do you need FFmpeg
[10:20:53 CEST] <rsegecin> shouldn't I need to add pipe:0 and pipe:1 as well?
[10:21:11 CEST] <thebombzen> no, the -i - tells ffmpeg to use stdin, you don't need -i pipe:0
[10:21:21 CEST] <thebombzen> similarly writing to "-" tells it to write to stdout, no need for pipe:1
[10:21:33 CEST] <thebombzen> but loopback-capture is outputting raw PCM samples. if you need raw pcm samples, why do you need FFmpeg at all?
[10:21:49 CEST] <thebombzen> is there any reason you cannot pipe loopback-capture directly to the program reading the PCM samples?
[10:21:55 CEST] <rsegecin> loopback-capture is outputting chunks of wave file
[10:22:01 CEST] <thebombzen> It definitely isn't.
[10:22:13 CEST] <thebombzen> FFmpeg can read the wave header
[10:22:38 CEST] <thebombzen> now, you can force FFmpeg to interpret the input as a WAV
[10:22:47 CEST] <thebombzen> add "-f wav" before the -i
[10:23:02 CEST] <thebombzen> so it's ffmpeg -f wav -i - (or as you like it, ffmpeg -f wav -i pipe:0)
[10:23:46 CEST] <rsegecin> ok I'll try the command you showed me before
[10:25:21 CEST] <thebombzen> the command I said before outputs wav
[10:26:07 CEST] <thebombzen> rsegecin: if you're sure loopback-capture is outputting chunked wav and you need pcm, try this:
[10:26:30 CEST] <thebombzen> loopback-capture | ffmpeg -f wav -i - -f s16be -
[10:26:41 CEST] <thebombzen> now, this will convert it to signed 16-bit big-endian samples
[10:26:50 CEST] <thebombzen> you probably want little-endian samples
[10:26:55 CEST] <thebombzen> because little-endian is fairly standard
[10:27:06 CEST] <thebombzen> (CD Audio is little-endian, i.e. s16le, not s16be)
[10:27:50 CEST] <rsegecin> can we go on private?
[10:28:32 CEST] <rsegecin> I got an error
[10:28:33 CEST] <rsegecin> [wav @ 0000000001c924a0] invalid start code Pres in RIFF header pipe:: Invalid data found when processing input
[10:29:01 CEST] <thebombzen> no
[10:29:09 CEST] <thebombzen> I'm not going to private message you about an issue in a public channel
[10:29:17 CEST] <thebombzen> if it says "invalid start code" that means it could not read the WAV header
[10:30:58 CEST] <thebombzen> so it's likely writing raw PCM samples
[10:31:07 CEST] <rsegecin> yes, loopback-capture doesn't print the header because it's getting in "real time"
[10:31:38 CEST] <thebombzen> but if loopback-capture is printing raw PCM samples, why do you need FFmpeg?
[10:31:49 CEST] <thebombzen> why can't you just pipe loopback-capture into whatever is reading the PCM samples?
[10:31:56 CEST] <thebombzen> What are you actually trying to do?
[10:32:25 CEST] <rsegecin> hold on may be it's a miss communication
[10:32:31 CEST] <rsegecin> let me explain
[10:35:50 CEST] <rsegecin> loopback-capture is printing on it's stdout chunk of wave data that is getting from my PC output device, it doesn't contain the header of a wav file because as it happens while the song is playing from my pc I don't have the file size that it's going to be
[10:37:38 CEST] <rsegecin> ffmpeg should be able to read the chunk of data and convert it to PCM type and print it on stdout
[10:40:09 CEST] <rsegecin> so as soon I execute this both commands the ffmpeg should be printing PCM data values to me converted from SubFormat generated by loopback-capture
[10:40:35 CEST] <thebombzen> rsegecin: you realize that WAV audio is just raw pcm samples with a header attached to it?
[10:41:02 CEST] <rsegecin> no it's not I thought it was it's not
[10:41:06 CEST] <thebombzen> It definitely is
[10:41:18 CEST] <rsegecin> http://www.onicos.com/staff/iz/formats/wav.html
[10:41:31 CEST] <thebombzen> (usually)
[10:41:35 CEST] <thebombzen> (it can contain other things)
[10:41:46 CEST] <rsegecin> there are various types of wav format
[10:42:20 CEST] <thebombzen> Yes, but 99% of all WAVs are just PCM audio with a header
[10:42:41 CEST] <thebombzen> the audio generated by your loopback capture device will be PCM
[10:44:01 CEST] <Fig1024> I actually implemented C++ loop-back capture from Windows audio playback devices. Most common format is floating point samples, -1.0 to +1.0
[10:44:22 CEST] <rsegecin> ok so I will try to not use ffmpeg and pipe it up with the rest of the system
[10:44:34 CEST] <rsegecin> and see what I've got
[10:44:34 CEST] <thebombzen> Yea. Although you should check the sample format.
[10:44:50 CEST] <thebombzen> Because your loopback capture is probably going to output 16-bit little endian samples
[10:44:57 CEST] <thebombzen> not big-endian
[10:45:02 CEST] <thebombzen> (little-endian is more standard)
[10:45:17 CEST] <thebombzen> which means that if you're expecting big-endian samples, you'll get static
[10:45:30 CEST] <rsegecin> hmmm ok let me check and I'll brb
[10:51:00 CEST] <rsegecin> I get an error sayng "pa_stream_write() failed: Invalid argument"
[10:56:03 CEST] <rsegecin> anyhow do you guys know if there's is a way to create a wav header file without it's content's size, so may be ffmpeg would understand that it's a stream and should convert the audio wav formats on the fly
[10:59:57 CEST] <rsegecin> https://pastebin.com/NNrCudKD
[11:00:50 CEST] <rsegecin> this time I didn't use ffmpeg hopping for the wav content be in PCM type
[11:02:14 CEST] <rsegecin> pulse audio that is playing back on a orange pi connected through ssh
[11:03:56 CEST] <rsegecin> I've this command ffmpeg -i loopback-capture.wav -f s16be -ar 44100 -acodec pcm_s16be pipe:1 | plink -v 192.168.11.5 -l rinaldi -pw star13r "cat - | pacat --playback --format s16be --rate 44100 --volume 30000" that it works
[11:04:23 CEST] <rsegecin> And I can listen
[11:05:17 CEST] <rsegecin> but my wav file now needs to come from my PC output device
[11:07:05 CEST] <Fig1024> so you need loopback from audio playback device, not sure if ffmpeg supports it. I knows Windows audio devices support such an interface, but dunno about other operating systems
[11:08:20 CEST] <rsegecin> I know that ffmpeg doesn't support getting the input from an Windows output device, only in linux
[11:08:51 CEST] <rsegecin> so that's what loopback-capture is doing
[11:09:10 CEST] <Mavrik> hmm
[11:09:15 CEST] <Mavrik> wav by definition needs content size
[11:09:23 CEST] <rsegecin> loopback-capture is generating correctly the wav file but I don't know how to output it as PCM format
[11:09:28 CEST] <Mavrik> As such it's a strange format to stream data in.
[11:09:46 CEST] <rsegecin> hmmmm
[11:10:45 CEST] <Mavrik> Are you sure you don't really just want to send raw PCM data?
[11:10:51 CEST] <Mavrik> Or mux it into something else?
[11:11:42 CEST] <Fig1024> on Windows you can create a DirectShow capture filter that acts as loopback from output device. This directshow filter can then by used by FFMPEG. To create this filter, you go to Windows Sounds -> Recording tab, then enable "Stereo Mix"
[11:12:29 CEST] <rsegecin> I'd like to send PCM data directly from loopback-device but I don't know how, but I think ffmpeg should be able to handle this
[11:14:34 CEST] <rsegecin> Fig1024 I see my two devices there but I don't have the stereo mix feature
[11:17:45 CEST] <Fig1024> right click on the device list (not device item), popup menu should appear with "show disabled devices" - should be checked
[11:19:14 CEST] <rsegecin> yes it's checked
[11:19:35 CEST] <rsegecin> I see that there might be a way of installing it
[11:24:07 CEST] <rsegecin> I'll have to restart the computer
[11:24:12 CEST] <rsegecin> brb
[11:24:29 CEST] <thebombzen> rsegecin: if you're looking to forward pulseaudio over an SSH connection, you should check out Xpra Winswitch
[11:24:47 CEST] <thebombzen> https://xpra.org/
[11:29:08 CEST] <rsegecin> omg stereo mix appeared
[11:29:34 CEST] <rsegecin> so much trouble I went through
[11:29:55 CEST] <thebombzen> [05:24:29] <thebombzen> rsegecin: if you're looking to forward pulseaudio over an SSH connection, you should check out Xpra Winswitch
[11:30:10 CEST] <thebombzen> you missed that b/c reboot probably
[11:30:11 CEST] <rsegecin> I'll try to do the streaming with LineinCode now
[11:30:23 CEST] <thebombzen> but you should check out Xpra Winswitch if you're looking to forward PulseAudio over an SSH Connection
[11:30:25 CEST] <thebombzen> it can do that
[11:30:42 CEST] <thebombzen> it's much easier than trying to manually capture and stuff
[11:31:23 CEST] <thebombzen> instead, it essentially implements the PulseAudio sound server protocol on the server, and forwards the playing audio through an SSH tunnel to the client rather than send it to the speakers on the server.
[11:33:08 CEST] <rsegecin> hmmm I'm trying to understand
[11:33:14 CEST] <thebombzen> http://xpra.org/
[11:33:43 CEST] <Fig1024> big question is whether you want the audio to go thru speakers or not
[11:34:20 CEST] <rsegecin> ohh is it just like an tem view for linux?
[11:35:02 CEST] <rsegecin> xpra
[11:35:26 CEST] <thebombzen> just go to the home page, they explain it better than I could
[11:35:36 CEST] <thebombzen> Fig1024: if the goal is to play audio through the speakers on the server, then everything we've discussed would have been pointless.
[11:36:15 CEST] <thebombzen> You keep doing that, interjecting into a conversation with random questions and stuff that we've already discussed if you scroll up.
[11:36:17 CEST] <rsegecin> from what I understood it's a remote display
[11:36:36 CEST] <thebombzen> Yea, but it can also forward sound and printing.
[11:36:52 CEST] <thebombzen> So you could play a song on the server and the audio will be forwarded through the client.
[11:36:53 CEST] <rsegecin> I need the audio streamed from windows
[11:37:18 CEST] <thebombzen> you're using pulseaudio....
[11:38:00 CEST] <rsegecin> the device I'm trying to reach is an arm that I can't run some programs, they weren't made to be compile in arm
[11:38:07 CEST] <rsegecin> like spotify
[11:38:19 CEST] <rsegecin> so I need to stream from my pc
[11:38:19 CEST] <thebombzen> well what are you actually trying to do then
[11:40:09 CEST] <rsegecin> Stream from my Windows output device to my ArmBian device to play
[12:01:31 CEST] <rsegecin> I'll create a thread in the forum and post the code in github
[12:01:59 CEST] <rsegecin> I've to go now thank you all anyway
[13:24:15 CEST] <hexhaxtron> How can I convert a 3D Bluray MKV to MP4?
[13:43:51 CEST] <dynek> thebombzen: when you talked about Matroska (around 2h ago) where you mentioning my pastebin?
[13:44:03 CEST] <thebombzen> completely unrelated question
[13:45:17 CEST] <rsegecin> I couldn't make the thread in the forum yet but here it's the code to the project https://github.com/rsegecin/WLStream
[13:45:58 CEST] <rsegecin> see you guys later
[13:46:05 CEST] <thebombzen> speaking of my matroska question, apparently the codec timebase is 1/240
[13:46:19 CEST] <thebombzen> but the format and Opus timebase is 1/1000
[13:46:33 CEST] <thebombzen> how do you have a H.264 timebase of 1/240 inside matroska if it only does powers of 10?
[15:11:47 CEST] <c7j8d9> Is is possible to add --enable-vp9-highbitrate to and existing ffmpeg.exe or would I need to rebuild?
[15:14:12 CEST] <Fig1024> pretty sure those are build options
[15:14:16 CEST] <kepstin> c7j8d9: where do you get this "--enable-vp9-highbitrate" option from? That's not an ffmpeg or ffmpeg configure option, and googling it doesn't seem to find anything relevant
[15:14:36 CEST] <furq> it's a libvpx configure option
[15:14:39 CEST] <furq> and also it's highbitdepth
[15:15:01 CEST] <c7j8d9> yes sorry miss spell
[15:16:24 CEST] <kepstin> c7j8d9: you should recompile ffmpeg if you switch that option on libvpx.
[15:16:43 CEST] <c7j8d9> got it. thanks kepstin
[15:17:00 CEST] <c7j8d9> never hurts to check for a shortcut
[15:34:50 CEST] <kerio> is nut the best format
[15:40:05 CEST] <iive> yes
[15:46:32 CEST] <dviola> hi
[15:47:30 CEST] <dviola> I'm trying to encode a small video for sending it over https://web.whatsapp.com/ i.e. ffmpeg -i foo.gif out.mp4 but after trying to send it I always get "unsupported format"
[15:47:42 CEST] <dviola> any ideas what format I should use?
[15:48:00 CEST] <dviola> I tried googling this and I get not much results, there are other mp4 files I can send just fine
[15:48:46 CEST] <Mavrik> What's ffmpegs output when you run the encode?
[15:50:44 CEST] <dviola> http://ix.io/yC3
[15:54:23 CEST] <furq> dviola: add -pix_fmt yuv420p
[15:55:12 CEST] <dviola> ok
[15:56:09 CEST] <dviola> that worked, thank you :)
[16:27:30 CEST] <zerodefect> Using the C-API, is there a handy function to clear an AVFrame containing pixels to a pre-defined set of colors?
[16:28:35 CEST] <zerodefect> say clear to red, black, blue or green.
[16:29:42 CEST] <devinheitmueller> zerodefect: You can probably do that with the chromakey filter.
[16:30:02 CEST] <zerodefect> Tbanks for the hint. I'll check it out.
[16:31:13 CEST] <zerodefect> and set the 'similarity' to 1.0?
[16:32:35 CEST] <devinheitmueller> I think you would only want to do that if the colors are an *EXACT* match. If the color is inserted by some digitial process then that would be appropriate. Otherwise you would need the similarity to be lower in order to approximate the color.
[16:33:10 CEST] <devinheitmueller> With real video from a camera, youre never going to have pixels which are red. They will be some shade of red.
[16:34:13 CEST] <devinheitmueller> Oh wait, I have it backwards. The value 0.01 means exact match.
[16:34:46 CEST] <devinheitmueller> If youre processing real video then youll likely have to play with that value. If the color is injected through some digital process, then 0.01 would be appropriate.
[16:36:22 CEST] <zerodefect> Ok. Cool thanks.
[16:38:32 CEST] <zerodefect> It's a bit of shame to setup a graph/filter to retrieve one AVFrame of a certain color. :(
[16:39:51 CEST] <devinheitmueller> Better than writing an application from scratch. :-)
[16:40:50 CEST] <zerodefect> Certainly! :)
[16:51:24 CEST] <zerodefect> devinheitmueller: Looks like I may need to use a pix_fmt that has alpha transparency (looking at the code).
[16:51:56 CEST] <devinheitmueller> That wouldnt be shocking. The goal is typically to overlay with some other video/image, which would typically make use of the alpha channel.
[16:53:04 CEST] <devinheitmueller> You would probably colorspace convert to a format with an alpha channel, pass through the filter, and then the resulting image/video would have the alpha channel cleared for the areas that matched the requested color.
[16:53:36 CEST] <devinheitmueller> At least thats how chroma keying works in general. I have never used ffmpegs implementation.
[16:55:36 CEST] <zerodefect> Ok. That gives me enough to give it a go. Thanks.
[17:59:08 CEST] <lukas_gab> Hi everyone!
[17:59:27 CEST] <lukas_gab> I want, to play rtsp stream from ip camera using ffplay.exe
[17:59:50 CEST] <lukas_gab> In VLC I can play this stream, but in ffplay.exe no
[18:00:01 CEST] <lukas_gab> please take see on this output
[18:00:02 CEST] <lukas_gab> https://pastebin.com/CLX9Jqzg
[18:00:14 CEST] <lukas_gab> how can I play stream in ffplay.exe ?
[18:00:47 CEST] <shincodex> what the crack
[18:00:48 CEST] <lukas_gab> Finally, I want mix 5 streams in ffmpeg i restream trugh ffserver, but now I test connection i ffplay.exe
[18:00:52 CEST] <shincodex> watch out for probe
[18:00:58 CEST] <shincodex> it sucks sometimes on virtual mjpeg streams
[18:01:03 CEST] <shincodex> you have to force the format
[18:01:23 CEST] <DHE> lukas_gab: might try adding "-rtsp_transport tcp" to the commandline
[18:01:44 CEST] <lukas_gab> ok, I try use this flag
[18:02:33 CEST] <Dhruv> Hello there, can anyone tell me if we can scale and crop video in the same ffmpeg command?
[18:02:49 CEST] <lukas_gab> WTF ?!
[18:02:59 CEST] <lukas_gab> @DHE - you are my God now
[18:03:04 CEST] <lukas_gab> it's work
[18:03:13 CEST] <lukas_gab> thank's a lot man
[18:04:23 CEST] <lukas_gab> I try to make some rtsp proxy server - becouse when I play grid with 5 stream HD, my terminal myst resize this stream in realtime and on Core2Quad 2,8Ghz is very laggy make calcuate 5 HD Streams
[18:04:35 CEST] <lukas_gab> and take this 20Mbps on my WiFi ...
[18:05:14 CEST] <hron84> Hi! I'd like to loop infinitely an image merged with an audio stream as flv. However, ffmpeg -stream_loop -1 -i 'file.mp3' -loop 1 -i 'image.png' does not work, any option i tried with them makes the stream end at least after the audio stream ends. But I need repeating audio stream under the image.
[18:05:17 CEST] <lukas_gab> ok, I go to try mix this stream in ffmpeg.exe, meybe in future I'll need your help
[18:05:26 CEST] <lukas_gab> but now Thank You !
[18:05:41 CEST] <lukas_gab> btw ffmpeg it's cool stuff
[18:06:10 CEST] <lukas_gab> in past I made some corporation soft to record and store users desktop
[18:12:00 CEST] <lukas_gab> @DHE - now I see little slow down the stream. I try to use "-rtsp_transport udp", to make low lag, but I have this same errors
[18:12:12 CEST] <lukas_gab> how can I play this stream on UDP layer ?
[18:15:49 CEST] <Dhruv> can anyone tell me if we can scale and crop video in the same ffmpeg command?Has anyone tried that? In my case it seems it ignores scale command totally, here is my command ffmpeg-ss 00:00:01 -i /sdcard/input.mp4 -to 00:00:07 -vf scale=720:720 -filter:v crop=2160:2160:840:0 -preset ultrafast /sdcard/output.mp4
[18:16:00 CEST] <Dhruv> can anyone tell me if we can scale and crop video in the same ffmpeg command?Has anyone tried that? In my case it seems it ignores scale command totally, here is my command ffmpeg -ss 00:00:01 -i /sdcard/input.mp4 -to 00:00:07 -vf scale=720:720 -filter:v crop=2160:2160:840:0 -preset ultrafast /sdcard/output.mp4
[18:20:47 CEST] <iive> lukas_gab: error are probably caused by something readodering or dropping packets, some shaper or priority queue. If you don't have loss, then tcp should have about same latency as udp.
[18:23:48 CEST] <lukas_gab> this is wird but on otherr soft udp work
[18:24:08 CEST] <lukas_gab> ok, but I have 1Gbps LAN cord betwean switch and cameras
[18:24:39 CEST] <lukas_gab> Now I work on RDP Desktop but on other machine TCP is god for me, zero latency
[18:38:06 CEST] <Blubberbub> I'm a little bit confused by Frames and Packets. The Documentation says that "Reading data from an AVFormatContext is done by calling av_read_frame, which will return an AVPacket... But what is AVFrame then, if read_frame generates a packet?
[18:38:29 CEST] <Anne> folks, I was wondering if any one knows why a video encodec by h264, with an AVI container does not play in media player, and how can I resolve this issue
[18:38:39 CEST] <Anne> I have to to WMP for this vido
[18:38:43 CEST] <hron84> Blubberbub: it sounds like #ffmpeg-devel would be more helpful for you :-)
[18:39:16 CEST] <hron84> Anne: did you installed a h264 codec for WMP?
[18:39:31 CEST] <Anne> no, how can I do that ?
[18:39:36 CEST] <iive> Blubberbub: packet contains complressed bitstream, frame contains raw image
[18:39:46 CEST] <iive> the codec turns one into the other.
[18:39:48 CEST] <hron84> I think WMP does not know the video codec by default.
[18:40:01 CEST] <Anne> Also is there any way to just make the codec available in windows for all the player ?
[18:40:54 CEST] <iive> wmp might be able to play it, if you use fourcc that it knows.
[18:40:57 CEST] <hron84> Anne: this is what you looking for i think: http://www.mediaplayercodecpack.com/
[18:41:10 CEST] <hron84> Anne: however, VLC can play nearly an video and audio format and codec.
[18:42:11 CEST] <Anne> so there is another video player which is important for my application, which is not playing this video
[18:42:23 CEST] <Anne> VlC is the only one playing it
[18:42:26 CEST] <Blubberbub> iive, but there are some demuxers that already return decompressed data which is then also stored in a packet, right? like alsa or lavfi?
[18:42:36 CEST] <hron84> Anne: then use the codec pack i linked before
[18:43:00 CEST] <hron84> that would install the codec for all applications that use DirectShow / WMP for playing videos
[18:43:29 CEST] <lukas_gab> Ok, now I want to combine some streams in one file - coud you can me tell why I have some error ?
[18:43:30 CEST] <lukas_gab> https://pastebin.com/1PhfMp8d
[18:43:32 CEST] <iive> Blubberbub: yes, and there is a raw codec that turns one into the other by doing a simple copy :D
[18:43:51 CEST] <Anne> hron84, let me install it
[18:44:02 CEST] <Blubberbub> iive, ah okay. That explains things. Thank you :)
[18:44:51 CEST] <Blubberbub> how does it know if something is raw, though?
[18:46:20 CEST] <iive> fourcc
[18:47:04 CEST] <hron84> How can I apply an image to this stream? ffmpeg -re -stream_loop -1 -i Music.mp3 -f flv rtmp://127.0.0.1:1935/live
[18:47:16 CEST] <hron84> -loop 1 -i image.png does not work
[18:47:23 CEST] <hron84> Maybe I need some -filter_complex
[18:47:43 CEST] <hron84> but i am terrible using this stuff.
[18:59:03 CEST] <relaxed> hron84: try, ffmpeg -loop 1 -i image.png -re -stream_loop -1 -i Music.mp3 -f flv rtmp://127.0.0.1:1935/live
[19:04:33 CEST] <Anne> hron84 WMP not playing
[19:05:14 CEST] <hiru> what's the correct way to use -ss and -to to cut a video file? using them before or after the -i string?
[19:06:05 CEST] <hiru> using it before the -i should make ffmepg read only that portion of the input file instead of the whole file making the process faster, right?
[19:06:09 CEST] <hron84> relaxed: I tried, stream ends
[19:06:31 CEST] <hron84> hmm, wait, i mistyped soemthing
[19:07:56 CEST] <hron84> relaxed: i fixed the command, picture streaming continue, but no audio
[19:08:40 CEST] <hron84> i want audio to streamed with the image in loop
[19:10:15 CEST] <hron84> hiru: order is needed. -t and -ss can be only applied after inputs are specified. So, ffmpeg -i something.mp4 -c copy -t 30 output.mp4 makes an output with the first 30 seconds of the input and this is the only valid way to specify these optioms
[19:10:55 CEST] <hron84> s/needed/important/
[19:11:28 CEST] <hiru> in the doc there's this part -> "When used as an input option (before -i), seeks in this input file to position."
[19:12:08 CEST] <hiru> "When used as an output option (before an output url), decodes but discards input until the timestamps reach position."
[19:14:34 CEST] <relaxed> hron84: maybe, ffmpeg -re -stream_loop -1 -i Music.mp3 -loop 1 -i image.png -map 0 -map 1 -f flv rtmp://127.0.0.1:1935/live
[19:15:06 CEST] <cryptodechange> does deblock occur before or after filters?
[19:15:19 CEST] <cryptodechange> So when I use the hlmean filter, does it apply deblocking after?
[19:18:19 CEST] <furq> if you mean x264 deblocking then after
[19:19:02 CEST] <hron84> relaxed: it plays the music only once again
[19:19:21 CEST] <hron84> I cannot imagine what happens
[19:19:44 CEST] <hron84> i copy-pasted the command line you specified from here
[19:26:07 CEST] <hron84> relaxed: the solution was: ffmpeg -y -loglevel 0 -re -stream_loop -1 -i Music.mp3 -f mp3 - | ffmpeg -y -re -i pipe:0 -loop 1 -i image.png -f flv rtmp://127.0.0.1:1935/live
[19:32:52 CEST] <relaxed> hron84: maybe he gets confused by the different loops in one command
[19:33:54 CEST] <hron84> relaxed: yeah.
[19:41:59 CEST] <thomedy> okay im reading throught the source code on ffmpeg because im writing my own player right now
[19:43:25 CEST] <thomedy> here is my question..
[19:43:26 CEST] <thomedy> https://www.ffmpeg.org/doxygen/2.5/avio_8c_source.html#l00218
[19:43:35 CEST] <JEEB> unless you really need to re-invent the wheel I recommend you basing your efforts on either libvlc or libmpv
[19:43:47 CEST] <thomedy> are you tlking to me
[19:43:53 CEST] <JEEB> yes
[19:44:03 CEST] <dsc> "punk"
[19:44:05 CEST] <thomedy> okay then let me tell you what i need and you tell me if im wasting my time
[19:44:11 CEST] <JEEB> surefine
[19:44:12 CEST] <thomedy> i ws just runnning command line
[19:44:28 CEST] <JEEB> your keyboard seems a bit borked .)
[19:44:30 CEST] <thomedy> because i have several different videos ... i want to keep them seperate i
[19:44:33 CEST] <thomedy> yes it is
[19:44:42 CEST] <thomedy> my son rippped off a keys so its temp
[19:44:44 CEST] <thomedy> ha ha
[19:44:56 CEST] <thomedy> okay....
[19:45:34 CEST] <thomedy> i dont want to combine files... they need to stay seperate but i do need them to play in back to back without any pause...
[19:45:56 CEST] <thomedy> i tried ffplay and i get a hiccup in time so i figured i would redo my own player and just call the next frame myself
[19:46:05 CEST] <thomedy> recommendations?
[19:46:09 CEST] <JEEB> ffplay is just a proof of concept / example :)
[19:46:19 CEST] <JEEB> test mpv with the playlist loop options
[19:46:20 CEST] <JEEB> *option
[19:46:31 CEST] <thomedy> what do you mean im sorry
[19:46:37 CEST] <thomedy> ill google mpv
[19:46:42 CEST] <JEEB> https://mpv.io
[19:46:55 CEST] <JEEB> it's a nice player based on the FFmpeg libraries and custom V/A outputs
[19:47:06 CEST] <JEEB> least retarded mplayer fork there is :)
[19:47:18 CEST] <JEEB> https://mpv.io/manual/master/#options-loop-playlist
[19:47:24 CEST] <JEEB> and it has a command line option to loop the playlist
[19:47:49 CEST] <thomedy> okay well here is to cutting time...
[19:48:11 CEST] <thomedy> i dont know how to cross my fingers in the chat room but know that i am crossing my fingers because the faster i can get done the better off
[19:48:14 CEST] <thomedy> your awesopme
[19:48:15 CEST] <thomedy> thanksw
[19:51:19 CEST] <thomedy> so far so good
[19:52:22 CEST] <JEEB> thomedy: also #mpv is for mpv support, and unlike ffplay it's a proper player :)
[19:55:17 CEST] <thomedy> i agree and mpv is the next room your awesome... im trying to read before i ask questions rtfm
[19:55:19 CEST] <thomedy> you get it
[19:55:30 CEST] <JEEB> sure :)
[19:56:05 CEST] <JEEB> anyways, learning FFmpeg's APIs or contributing to it can be fun, but "I just want a player" is usually something that has already been made, and in that case it's better to contribute to it
[20:04:40 CEST] <thomedy> there is the slightest of jump in files... ever so slight but it might just be my video... but this will get me to the next step
[20:05:03 CEST] <thomedy> if i find that i need to write an app i will but im hoping i can use this for now
[20:05:16 CEST] <thomedy> seriously JEEB you have saved me an enourmous amount of time
[20:05:41 CEST] <JEEB> yay
[20:11:17 CEST] <cryptodechange> So experimenting with nlmean, I feel s=6 is a good compromise
[20:11:25 CEST] <cryptodechange> but I noticed a bit of discoloring in small details
[20:11:25 CEST] <cryptodechange> https://imgur.com/a/lnktv
[20:12:15 CEST] <cryptodechange> Some blocking still around the outlines, but it was encoded with deblock=0,0, so I'll try with 1,1
[20:12:27 CEST] <cryptodechange> Would decreasing the patch size help with the discolor?
[21:38:44 CEST] <Blubberbub> if ffplay is only a "proof of concept / example" what is missing? what are the downsides? (regarding playback and not user-control-ability or user "friendlyness")
[21:50:26 CEST] <DHE> a user interface would be nice
[21:50:49 CEST] <Blubberbub> thats the thing i don't need :D
[21:51:49 CEST] <DHE> personally I consider ffplay to be a baseline for ffmpeg. it's not great, but it's a true ffmpeg experience. see how ffmpeg filters will react, etc.
[21:55:12 CEST] <Blubberbub> i have to admit: for a moment i was worried that my pts might overflow when i run my app for too long... then i did the math... :D:D
[21:55:58 CEST] <Blubberbub> Also i feel like every time i want to code something with ffmpeg i find implementing a state machine to be the easiest & cleanest thing i can think of
[22:03:16 CEST] <JEEB> Blubberbub: basically it's not optimized in any way or form. it's a basic thing fully based on SDL and there is no attempt to make anything work "the best it could". it's just that, a test app.
[22:03:48 CEST] <JEEB> not necessarily bad as such, but if you want a media player it's not the one you would go and recommend to people
[22:05:23 CEST] <yegortimoshenko> can i use ffmpeg to embed album art into a flac file? currently i use metaflac but i want to redistribute this so i'd like to use as few dependencies as possible
[22:09:45 CEST] <durandal_1707> no
[22:11:24 CEST] <Blubberbub> JEEB, could you name a few optimizations that are missing?
[22:12:33 CEST] <JEEB> proper optimized pipe line for video/audio rendering that can support properly most of the operating systems in use (Win, MacOS, *nix) and that lets you do most of the rendering on something that is good at it (the GPU)
[22:13:10 CEST] <JEEB> ffplay's idea is mostly just to use SDL as a sand bag, which works to a level
[22:13:57 CEST] <JEEB> and don't get me wrong, SDL can be used as a base to create a basic graphical application - it's just that when you go barebones you get barebones
[22:14:49 CEST] <Blubberbub> ah ok. i think i see what you mean now. Thank you
[22:14:51 CEST] <JEEB> even if on just *nix, you can just take a look at the differences between, say, ffplay and mpv
[22:17:09 CEST] <leif> Does anyone know what would cause the error: `Invalid pts (0) <= last (0)`?
[22:17:32 CEST] <leif> I _think_ its an encoding error as it only shows up when I'm encoding to mpeg4
[22:17:48 CEST] <JEEB> it means that you fed two things with the same PTS
[22:17:59 CEST] <JEEB> given that last was zero and now you're at zero again
[22:18:12 CEST] <leif> JEEB: I see. I was trying to speed up the video with (PTS-STARTPTS)*0.5
[22:19:17 CEST] <Blubberbub> so you need to drop some frames?
[22:19:53 CEST] <JEEB> leif: not sure if what's happening is correct, but in theory it could be integer PTS becoming the same if the time base is small enough :P
[22:20:00 CEST] <leif> Blubberbub: mmm...that would work. What filter does that?
[22:20:16 CEST] <leif> JEEB: that makes sense.
[22:21:42 CEST] <Blubberbub> select filter might be what you want?
[22:22:38 CEST] <leif> Blubberbub: Ah yes, that should work. Thanks.
[22:32:45 CEST] <Blubberbub> is there a generic method to add 2 audio samples with the same sample format together that also does clipping? (clipping is better than overflowing - right?) I only found AVFloatDSPContext - but that is only float and i would prefer to also be able to use some of the integer formats
[22:49:13 CEST] <leif> Is there any good way to simulate pausing in a stream?
[22:50:48 CEST] <leif> I guess I could just use selectframe and just set the PTS to be really long.
[00:00:00 CEST] --- Sat Jul 22 2017
1
0