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
August 2017
- 1 participants
- 62 discussions
[02:16:55 CEST] <cone-376> ffmpeg 03Michael Niedermayer 07master:f762555a9079: avformat/mxfenc: Replace literal numbers by named enum values.
[11:27:08 CEST] <cone-221> ffmpeg 03Timo Rothenpieler 07master:1ac03c8dc0a9: configure: add support for libnpp* from cuda sdk 9
[11:27:09 CEST] <cone-221> ffmpeg 03Ricardo Constantino 07master:7fbc0825773e: compat/cuda/ptx2c: strip CR from each line
[11:29:23 CEST] <wbs> if anybody cares; I see a lot of discussion around handling and parsing of dash segment file template handling, and potential exploitability around that and so on
[11:29:35 CEST] <wbs> ... there's already code that does that, that should be pretty ok, in dashenc.c
[11:29:57 CEST] <wbs> so instead of reinventing the wheel, that could be reused/shared, so there's at least a single set of common vulnerabilities, instead of two different sets
[11:33:13 CEST] <BtbN> I'm pretty sure dashenc does not parse dash segments.
[11:33:24 CEST] <BtbN> it only writes them, which is far more trivial
[11:34:09 CEST] <BtbN> dashdec needs a full xml parser though
[11:34:24 CEST] <wbs> no, that's not what they are arguing about
[11:35:23 CEST] <wbs> within the dash spec, there's a feature that you can have segment names in the form segment-$Bandwidth03d$-$Time$.m4s
[11:35:40 CEST] <wbs> so a dash demuxer needs to interpret this and plug in values for bandwidth and time to find the file name to request
[11:35:57 CEST] <wbs> now, the dash muxer also has support for this; the user can provide the pattern to use, so the muxer writes filenames in the given pattern
[11:36:19 CEST] <BtbN> In that case, the pattern is given on the ffmpeg commandline though.
[11:36:32 CEST] <wbs> so?
[11:36:42 CEST] <wbs> my point is, there is an exact piece of code that does exactly this
[11:36:42 CEST] <BtbN> In the other case, it's given in the file itself. And you don't ever put format strings from input data into the printf family.
[11:36:47 CEST] <BtbN> That's a security vulnerability.
[11:36:50 CEST] <wbs> exactly
[11:37:07 CEST] <BtbN> So there is no issue there in dashenc, as it's not parsing input data.
[11:37:16 CEST] <wbs> ... so?
[11:37:22 CEST] <wbs> there is code there already, without known vulnerabilities
[11:37:23 CEST] <BtbN> ?
[11:37:36 CEST] <BtbN> The code in dashenc is vastly different.
[11:37:46 CEST] <BtbN> It does a whole diffrent job
[11:37:49 CEST] <wbs> dash_fill_tmpl_params
[11:38:09 CEST] <wbs> does exactly the same thing that the demuxer needs to do
[11:38:23 CEST] <wbs> given a format string and the provided numbers, expand the format string
[11:38:33 CEST] <wbs> without blindly passing the string into printf or something like that, that would be insane
[11:38:43 CEST] <JEEB> :)
[11:38:50 CEST] <wbs> yes, with the muxer, the only attack vector would be the command line user passing a weird option
[11:39:01 CEST] <wbs> but despite that, I don't think there is any such vulnerability in the existing code in dashenc
[11:39:14 CEST] <BtbN> Yeah, that function does indeed look very reusable
[11:39:37 CEST] <wm4> the dash patch also duplicates some nasty code from hls
[11:39:38 CEST] <wbs> and there's this huge argument on the mailing list, about how the reimplementation of this exact function should be, with or without potential vulenrabilities
[11:39:50 CEST] <wm4> like trying to open segments with correct cookies/useragent
[11:39:54 CEST] <BtbN> well, have you told them about the existence of that function?
[11:40:03 CEST] <wm4> or this awful "security" bullshit that checks protocol names
[11:40:03 CEST] <wbs> I have not, and I'm not going to enter into that mailing list thread
[11:40:20 CEST] <wbs> if you care, you can point the masses to this function in dashenc.c, if not, let them keep arguing
[12:21:00 CEST] <cone-221> ffmpeg 03Paras Chadha 07master:61e4db4bb730: Add FITS Decoder
[12:21:01 CEST] <cone-221> ffmpeg 03Paras Chadha 07master:207f0cff2ac8: Add FITS Demuxer
[12:21:02 CEST] <cone-221> ffmpeg 03Paras Chadha 07master:6e02f66f1bc7: Add FITS Encoder
[12:21:03 CEST] <cone-221> ffmpeg 03Paras Chadha 07master:df475db9a29e: Add FITS Muxer
[12:21:04 CEST] <cone-221> ffmpeg 03Paras Chadha 07master:9d99f0afbeed: FATE: Add FITS tests
[12:21:05 CEST] <cone-221> ffmpeg 03Paul B Mahol 07master:a4d18a3f54e5: avfilter/vf_lut2: add framesync options
[12:21:06 CEST] <cone-221> ffmpeg 03Paul B Mahol 07master:2b9fd157342f: avcodec/codec_desc: make FITS description longer
[12:52:10 CEST] <arpu> a ffmpeg -re -stream_loop -1 -i testme.flv -c:v copy -an -f flv "rtmp://..." alwys stops after the eos of the file is reached with av_interleaved_write_frame(): Broken pipe
[12:52:59 CEST] <arpu> verbose output http://lpaste.net/7901301616186228736
[12:53:08 CEST] <arpu> is this a bug? or i do something wrong?
[14:07:55 CEST] Action: JEEB appreciates wm4's http://git.videolan.org/?p=ffmpeg.git;a=commit;h=463b81de2b252691d754176435…
[14:09:18 CEST] <wm4> amusingly it got already broken by the float pixfmt additions
[14:09:26 CEST] <JEEB> :D
[14:09:49 CEST] <nevcairiel> how so? at least binary 0 is also float 0 :d
[14:10:06 CEST] <nevcairiel> or are those yuv floats
[14:10:11 CEST] <JEEB> I guess float YCbCr
[14:11:09 CEST] <wm4> float are 4 bytes per component
[14:11:18 CEST] <wm4> the code can handle only 2 bytes per component
[14:11:46 CEST] <wm4> also, half-range yuv doesn't use 0
[15:24:19 CEST] <cone-221> ffmpeg 03Ashish Singh 07master:2a4a26fa4f3c: avfilter/vf_libvmaf: fix pre convert to framesync2 bugs
[15:24:20 CEST] <cone-221> ffmpeg 03Ashish Singh 07master:1dc33c123715: configure: require pkg-config for libvmaf
[15:33:11 CEST] <kierank> vis_mb_type is broke
[15:48:26 CEST] <durandal_1707> kierank: isnt that done with codecview?
[16:23:59 CEST] <kierank> durandal_1707: no
[16:24:02 CEST] <kierank> mv is codecview
[16:58:43 CEST] <JEEB> so do I see correctly that the AAC encoder could in theory handle !1024 nb_sample AVFrames since it has its own internal ff_af_queue, but the audio encoding framework requires AVFrame->nb_samples to be exactly AVCodecContext->frame_size?
[16:59:24 CEST] <atomnuker> no
[17:00:25 CEST] <JEEB> ok
[17:00:43 CEST] <atomnuker> the afq only does packet timestamps and is sometimes used to calculate the last frame's skip samples
[17:00:52 CEST] <atomnuker> (on some encoders)
[17:01:15 CEST] <atomnuker> so its not a queue for the actual samples but for keeping track of the numer of samples in and out
[17:01:43 CEST] <JEEB> ok
[17:01:57 CEST] <JEEB> also there's that copy_input_samples thing, which seems to be some sort of a buffer
[17:02:02 CEST] <JEEB> will have to see how big it is etc
[17:02:14 CEST] <JEEB> ok
[17:02:15 CEST] <JEEB> s->planar_samples[ch] = s->buffer.samples + 3 * 1024 * ch;
[17:02:17 CEST] <JEEB> so yea
[17:02:32 CEST] <JEEB> I will need to cut AVFrames from decoder/filtering to fit the nb_frames
[17:02:51 CEST] <JEEB> somehow I hadn't cut myself with this yet
[19:10:02 CEST] <cone-221> ffmpeg 03James Almer 07master:350dc01dcb80: fate: remove usage of deprecated AVCodecContext.me_method in vsynth snow tests
[19:16:13 CEST] <cone-221> ffmpeg 03James Almer 07master:ec07574a15ba: fate: stop using deprecated filter syntax in hls tests
[19:36:53 CEST] <cone-221> ffmpeg 03James Almer 07master:f7d4c60ac475: avfilter/vf_mcdeint: free the AVCodecContext struct properly
[19:45:28 CEST] <cone-221> ffmpeg 03James Almer 07master:2b7da70a70fe: postproc: remove usage of deprecated QP_STORE_T define
[20:26:37 CEST] <cone-221> ffmpeg 03Paul B Mahol 07master:6ccd32c36760: avfilter/af_adelay: remove requirement that at least one delay should be provided
[00:00:00 CEST] --- Thu Aug 31 2017
1
0
[00:11:09 CEST] <DHE> I usually say mp4 for industry codecs, mkv for anything that gives you trouble
[00:30:58 CEST] <mozzarella> holyshit lol
[00:31:15 CEST] <mozzarella> av_interleaved_write_frame(): No space left on device
[00:31:22 CEST] <mozzarella> Conversion failed!
[00:31:26 CEST] <mozzarella> all that for nothing
[00:31:29 CEST] <mozzarella> I hate myself
[00:42:16 CEST] <systemd0wn> Question, When FFmpeg constructs a RTMP packet, what is the value of the Timestamp field? Is this the system time when the packet was constructed?
[00:42:34 CEST] <c_14> check the source code?
[00:43:03 CEST] <systemd0wn> c_14: I looked around a bit but I'm not super savy with C.
[00:57:37 CEST] <nicolas17> hmm I should write an AWS S3 protocol for ffmpeg
[01:03:58 CEST] <nicolas17> does ffmpeg ever read from output files? or is all the data for eg. writing the moov atom kept in memory?
[01:04:32 CEST] <nicolas17> (obviously -movflags faststart does read from the file, but that's a bit of a special case)
[01:05:21 CEST] <c_14> numerous output formats require seeking
[01:05:31 CEST] <c_14> non fragmented mp4
[01:05:35 CEST] <c_14> non streamable matroska
[01:05:56 CEST] <nicolas17> a plain old mp4 will write to the file, and when it finishes it will seek to the beginning and write the header
[01:06:18 CEST] <nicolas17> but does it need to *read*? or just writes to the beginning?
[01:07:03 CEST] <nicolas17> faststart is a notable case where ffmpeg will have to read the file it just wrote again
[01:08:41 CEST] <c_14> I think it won't read in most cases
[01:08:43 CEST] <c_14> But I'm not sure
[01:19:59 CEST] <nicolas17> bah nevermind
[01:20:04 CEST] <nicolas17> I would need the ability to read anyway
[01:21:51 CEST] <nicolas17> if ffmpeg seeks to the beginning and rewrites the first 100 bytes... I can't overwrite a chunk that small in S3, the minimum part size is 5MB, so I would need to read the existing contents first
[01:22:21 CEST] <nicolas17> screw that, I'll make it read-only
[01:27:05 CEST] <acos> Back. Now where was I
[01:28:22 CEST] <dorvan> nicolas17: I've reduced to 5mbit/s and removed almost all optimization for mpeg-dash conversion on streamed input. at moment i have 38mbyte/s input stream and a fluent 5.x <6 sec delayed live (net cam have a native delay of 2sec)
[01:29:13 CEST] <dorvan> nicolas17: profile it's high always, no vantages to downgrade it..
[01:30:58 CEST] <acos> What's a good format to avoid generation loss? What's a good format to merge many files into a single one?
[01:33:10 CEST] <dorvan> acos: what do you need as output? a big file to see like a movie, or a live dynamic stream?
[01:34:06 CEST] <dorvan> acos: at moment we record small .mp4 files for playback and a small and fast live stream with dash...
[01:34:38 CEST] <dorvan> where, like to hls, you have a playlist of various files
[01:35:12 CEST] <dorvan> acos: not a single monolithic file, but a playlist.
[01:35:41 CEST] <acos> Well dorvan I'm editing a wedding video and am doing it part by part exporting each scene from an editor. Then I want to merge into a single file to send to my client.
[01:36:26 CEST] <acos> I'm trying to avoid generation loss
[01:37:05 CEST] <dorvan> acos: ah okay a totally different case, so you need to reorder single slices and merge a single video without recoding a full video?
[01:37:49 CEST] <acos> That's the hope. But concat no work for me
[01:38:37 CEST] <dorvan> source slices are all in the same format? what is the format?
[01:39:01 CEST] <acos> Well it's h264 as an avi
[01:40:30 CEST] <dorvan> i think you can use ffmpeg with params to avoid a reconding on live realtime streaming
[01:41:16 CEST] <dorvan> simply the video it's read "as is" and sent to output (same format)
[01:41:34 CEST] <acos> It complains about the audio. Source is mp3 and it wants aac
[01:41:38 CEST] <klaxa> you mean -c copy?
[01:42:21 CEST] <dorvan> klaxa: copy with preset to force the realtime...
[01:43:42 CEST] <dorvan> klaxa: https://trac.ffmpeg.org/wiki/StreamingGuide
[01:44:11 CEST] <dorvan> in this way, follow the logic, you have only to organize the input stream
[01:45:03 CEST] <dorvan> klaxa: do you know if a playlist can be used as input directly?
[01:45:08 CEST] <acos> Ohhh. I was following that concat guide trying to convert to a ts file then merge those.
[01:45:28 CEST] <klaxa> you can use the concat demuxer
[01:45:43 CEST] <klaxa> the playlist has to be in the format: file "somefile.mkv" for each file
[01:45:59 CEST] <klaxa> then you can do: ffmpeg -f concat -i playlist.txt [whatever] output.mkv
[01:46:01 CEST] <acos> It did not work klaxa
[01:46:18 CEST] <acos> And it reszied my video to 1920x1088
[01:46:52 CEST] <dorvan> klaxa: acos have asked for something different :-)
[01:47:13 CEST] <klaxa> huh, but you asked for the playlist thing
[01:47:16 CEST] <klaxa> i'm confused
[01:47:24 CEST] <dorvan> consider the request firstly :-)
[01:47:27 CEST] <acos> :/ I'm hitting all the errors possible with this software.
[01:47:35 CEST] <dorvan> yes... acos can't use concat...
[01:47:52 CEST] <acos> Aww. Well at least I tried.
[01:48:00 CEST] <dorvan> klaxa: acos does not want to use concat...
[01:48:17 CEST] <acos> Also my videos have a green line on top and bottom of my video not sure why.
[01:48:26 CEST] <dorvan> so i'm thinking a way to produce a single file for a multiple input....
[01:48:39 CEST] <klaxa> use the concat filter?
[01:48:45 CEST] <dorvan> no
[01:48:47 CEST] <dorvan> :-D
[01:48:48 CEST] <klaxa> that needs re-encoding though
[01:48:49 CEST] <acos> I will post logs in a bit.
[01:49:00 CEST] <dorvan> oh fuc*
[01:49:07 CEST] <klaxa> you can use a lossless codec to avoid quality loss
[01:49:09 CEST] <dorvan> klaxa... without using concat...
[01:49:33 CEST] <klaxa> so you want to concat without concat
[01:49:36 CEST] <dorvan> klaxa: acos does not want to "re-convert"
[01:49:42 CEST] <klaxa> there are two ways to concat
[01:49:44 CEST] <dorvan> exactly:-D
[01:49:59 CEST] <acos> Maybe my logs will help clarify the issue
[01:50:02 CEST] <klaxa> one only works if the files have the same codec and codec parameters
[01:50:07 CEST] <klaxa> the other is independent
[01:50:13 CEST] <klaxa> but requires re-encoding
[01:50:19 CEST] <acos> How can I force an output resolution ?
[01:50:28 CEST] <klaxa> -s 1920x1080
[01:50:37 CEST] <klaxa> that will re-encode
[01:50:44 CEST] <klaxa> if you use -c copy it will be ignored afaik
[01:50:46 CEST] <dorvan> input (playlist) -> c:copy preset ultrafast lowlatency -> 1 file output :-)
[01:51:02 CEST] <acos> Why would it change the resolution ? Some kind of x264 bug?
[01:51:28 CEST] <dorvan> klaxa: resolution it's not included in acos question... can be a secondary problem
[01:51:28 CEST] <klaxa> what is your command line?
[01:51:51 CEST] <acos> Got 99 problems and a girl ain't one
[01:51:55 CEST] <dorvan> acos... if you have all the slices in same and correct format you don't need to change resolution...
[01:52:01 CEST] <dorvan> right?
[01:52:11 CEST] <acos> It does it for me for some reason.
[01:52:15 CEST] <dorvan> you have only to mount the movie...
[01:52:18 CEST] <klaxa> codec options (i.e. preset ultrafast lowlatency) are ignored when using -c copy
[01:52:29 CEST] <dorvan> not...
[01:52:35 CEST] <dorvan> i have different results
[01:52:38 CEST] <acos> Also it changed the frame rate to 28.6882828
[01:52:45 CEST] <acos> From 30
[01:53:03 CEST] <klaxa> what is your command line?
[01:53:30 CEST] <acos> I will post in a bit. Computers off right now. Thanks for the help people ^_^
[01:53:31 CEST] <klaxa> afaict you have a bunch of clips you exported from some other program, right?
[01:53:53 CEST] <klaxa> and you want to concatenate them into one file?
[01:54:46 CEST] <klaxa> are you sure the program you use for exporting isn't messing something up already?
[01:54:46 CEST] <dorvan> it's embedded in the our program since a week after some weeks on here to read the same things you are writing now..
[01:55:09 CEST] <dorvan> I've followed this https://trac.ffmpeg.org/wiki/StreamingGuide
[01:55:29 CEST] <dorvan> and many other related topics on the web...
[01:55:52 CEST] <klaxa> wait, how is this related to streaming?
[01:55:52 CEST] <dorvan> also this https://sonnati.wordpress.com/
[01:55:56 CEST] <klaxa> or is that another problem?
[01:56:02 CEST] <acos> klaxa: ya
[01:56:02 CEST] <dorvan> yes :-)
[01:56:09 CEST] <klaxa> it was an "or" question
[01:56:12 CEST] <klaxa> "yes" is an invalid answer
[01:56:23 CEST] <dorvan> klaxa: i'm happy i've not a problem, i've answering and trying to help acos...
[01:56:47 CEST] <acos> klaxa: well yes videos from a program. They are exports.
[01:56:49 CEST] <dorvan> i've asked to you 1 thing i don't know... and you are going around and around :-)
[01:57:27 CEST] <klaxa> can you repeat that question? i'm really confused by you guys :P
[01:57:31 CEST] <acos> Sorry. Not sure what to do.
[01:57:38 CEST] <dorvan> acos: your video slices are all ready in the same format and all you need, right? you have only to merge up without make a recoding, right?
[01:57:59 CEST] <acos> Yes? They are h264 video clips
[01:58:18 CEST] <klaxa> if they really are the same format, the concat demuxer *should* work, however without output from ffmpeg no definite conclusion can be made
[01:58:20 CEST] <dorvan> ok... you have to concat without using concat :-D
[01:58:31 CEST] <dorvan> klaxa: you are a mirror
[01:58:33 CEST] <acos> It gets mad about the audio not being acc
[01:58:43 CEST] <klaxa> then use a different container
[01:58:52 CEST] <acos> Not sure how.
[01:58:53 CEST] <dorvan> ok... i go to bed ...
[01:59:04 CEST] <klaxa> ffmpeg [input stuff] output.mkv
[01:59:05 CEST] <acos> I'm new to ffmpeg command line
[01:59:19 CEST] <klaxa> just specify the output file as something that ends in .mkv
[01:59:27 CEST] <dorvan> good night acos, good night mr blinders
[01:59:44 CEST] <acos> Night dorvan
[01:59:51 CEST] <acos> Thanks for the help :)
[02:00:15 CEST] <klaxa> whoops
[02:00:17 CEST] <klaxa> bad touchpad
[02:01:35 CEST] <dorvan> acos: if the solution of klaxa, does not match your problem (can be a good percentage...) looks to merge video as streaming input, without recoding.
[02:02:47 CEST] <acos> Will do. Going to do some dishes then hop on the pc
[02:06:26 CEST] <dorvan> acos: the klaxa tips can be good... https://stackoverflow.com/questions/11647868/using-ffmpeg-to-stream-continu…
[02:07:39 CEST] <acos> Sounds great. :D
[03:25:44 CEST] <redrabbit> what is a good interface/service for win10 to transcode a media library, music and videos
[03:26:01 CEST] <redrabbit> i dont want something like plex
[04:33:34 CEST] <mozzarella> guys
[04:34:15 CEST] <mozzarella> when I reencode a video, it doesn't use hardware acceleration (i.e. my graphic card), right?
[04:37:31 CEST] <c3r1c3-Win> Well... not unless you tell it to use whatever compressor your GPU has.
[04:39:09 CEST] <Over> Hi, i'm having trouble with ffmpeg, and searching on google didn't solve my problem
[04:40:53 CEST] <mozzarella> c3r1c3-Win: how do I do that? is it going to be faster?
[04:41:59 CEST] <c3r1c3-Win> mozzarella: Faster? Depends. Better Quality at the same bitrate as x264@veryfast? No, at least not that I've ever seen.
[04:45:11 CEST] <Over> Maybe someone can help me, so here is my problem, i'm using cuda to hw accelerate the encoding of a rtmp live stream, and when i want to apply filters to resize it, i get this : "Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
[04:45:27 CEST] <c3r1c3-Win> mozzarella: How? Depends on your GPU. If you have an Intel look at the Quicksync option in ffmpeg. If you have an NVidia, look at the NVENC options. If you have an AMD... I think someone by the name of Xaymar is working on AMF support in ffmpeg, but don't quote me on that.
[08:54:00 CEST] <igracia> morning! go a question related to padding a video with black frames to delay it, using vstack and hstack. I've managed to achieve this with overlay and setpts=PTS-STARTPTS+xx/TB, and yesterday c_14 suggested just concatenating black video. Thing is I'll be building a matrix of 16-25 videos, and 15-24 of them will have this offset. Is hstack+vstack+concat 16 videos more performant than overlaying 16 videos?
[08:54:13 CEST] <igracia> Morning! got a question related to padding a video with black frames to delay it, using vstack and hstack. I've managed to achieve this with overlay and setpts=PTS-STARTPTS+xx/TB, and yesterday c_14 suggested just concatenating black video. Thing is I'll be building a matrix of 16-25 videos, and 15-24 of them will have this offset. Is hstack+vstack+concat 16 videos more performant than overlaying 16 videos?
[08:54:31 CEST] <igracia> c_14: yesterday I lost connection, that's why I couldn't follow up
[09:08:54 CEST] <thebombzen> igracia: overlay is much slower than hstack and vstack
[09:12:21 CEST] <igracia> thebombzen: even with the generation+concatenation of 15 black color streams? Of course I cna always measure, but just checking here just in case it's not even worth measuring
[09:12:50 CEST] <igracia> I can't reuse the same "color" filter output, right?
[09:13:01 CEST] <thebombzen> generation of pure black is extremely easy
[09:13:29 CEST] <thebombzen> the overlay filter is slow, and if you can avoid using it you should
[09:14:16 CEST] <thebombzen> I mean, to generate pure black you basically just have to zero out memory. that's not hard
[09:34:21 CEST] <igracia> thebombzen: thanks a lot!
[09:59:01 CEST] <mozzarella> guys
[09:59:06 CEST] <mozzarella> hello
[10:04:20 CEST] <tadau> hi
[10:04:49 CEST] <tadau> are there no keys defined to adjust volume in ffplay?
[10:07:31 CEST] <JEEB> don't try to use ffplay as a real player; utilize something like mpv or libmpv as a player based on the FFmpeg libraries :)
[10:42:42 CEST] <taniey> can ffplay get multiple input?
[10:49:40 CEST] <BtbN> thebombzen, zeroing out memory gives you green though
[10:50:13 CEST] <BtbN> getting black, with yuv, is slightly more complex
[10:50:23 CEST] <JEEB> I think wm4 added a function for that
[10:50:43 CEST] <JEEB> it went into libav at least, probably ffmpeg too
[10:50:58 CEST] <JEEB> http://git.videolan.org/?p=ffmpeg.git;a=commit;h=463b81de2b252691d754176435…
[10:51:01 CEST] <JEEB> yup
[10:51:32 CEST] <JEEB> > Common cases like yuv420p10 or RGBA can't be handled with a simple memset
[11:48:32 CEST] <dragmore> so im trying to test my Nvidia 1070GTX for cuvid encoding, anyone got some examples where one can see the profile, preset, scenecut usage etc?
[11:49:45 CEST] <BtbN> cuvid is a decoder. nvenc is the encoder
[11:52:37 CEST] <dragmore> btbn, sorry, i mean nvenc
[11:53:16 CEST] <BtbN> Can always consult ffmpeg -help encoder=nvenc
[11:54:06 CEST] <dragmore> nvenc is h264, is the same one used for HEVC ?
[11:54:19 CEST] <JEEB> I think the encoders are separate
[11:54:22 CEST] <JEEB> nvenc_hevc or so?
[11:54:27 CEST] <BtbN> hevc_nvenc
[11:54:30 CEST] <JEEB> ight
[11:54:33 CEST] <BtbN> as h264_nvenc is the h264 one
[11:54:47 CEST] <dragmore> yupp thats the one
[11:54:50 CEST] <BtbN> They are essentially the same encoder though. Sharing 99% of the code
[11:55:25 CEST] <BtbN> And don't expect wonders from the hevc encoder. It's not very good
[11:55:31 CEST] <dragmore> i knwo
[11:55:38 CEST] <dragmore> its for some realtime projects
[11:55:52 CEST] <JEEB> you'd probably get better results from realtime AVC :D
[11:55:54 CEST] <dragmore> 2160p50 8bit source material
[11:55:56 CEST] <JEEB> in either SW or HW
[11:56:03 CEST] <BtbN> You might be better off sticking with h264 for those. Way better compatiblity.
[11:56:17 CEST] <dragmore> target is our STB (uhd main10 decode)
[11:56:27 CEST] <JEEB> right
[11:57:04 CEST] <BtbN> As stupid as it sounds: For video encoding jobs with nvenc, a 1050 or 1050 Ti is the better choice, if you don't need the GPU power of a 1070.
[11:57:06 CEST] <dragmore> im just curious if ffmpeg+nvenc can deliver something thats watchable at all ;)
[11:57:23 CEST] <dragmore> 1070 is what i have here infront of me ;)
[11:57:26 CEST] <JEEB> BtbN: it's not stupid, it's called "they share an ASIC"
[11:57:46 CEST] <BtbN> the 1050 has a better, more modern, ASIC than the 1060 and higher
[11:57:51 CEST] <JEEB> oh
[11:57:52 CEST] <JEEB> funky
[11:57:58 CEST] <dragmore> whats the relationship with the cudacores and the nvenc asic part?
[11:58:01 CEST] <BtbN> Because it was the last card to be released
[11:58:06 CEST] <JEEB> dragmore: not really much
[11:58:11 CEST] <BtbN> nvenc/cuvid is dedicated silicon
[11:58:17 CEST] <JEEB> ASIC is a separate component on the thing
[11:58:19 CEST] <BtbN> the GPU is not involved with it at all
[11:58:21 CEST] <dragmore> does the nvenc "encoder" use cuda at all for some parts of the work?
[11:58:26 CEST] <dragmore> ok
[11:58:41 CEST] <BtbN> Some of the post-processing features of cuvid use cuda
[11:58:45 CEST] <BtbN> like deinterlacing and scaling
[11:58:55 CEST] <JEEB> even GPU manufacturers noticed that the kool-aid was not gonna help GPGPU encoding
[11:59:01 CEST] <dragmore> well this is source = destination regards to resolution, framerate etc
[11:59:20 CEST] <dragmore> any reccomended settings for RT 25fps?
[11:59:45 CEST] <BtbN> the slowest one you can find
[12:00:02 CEST] <BtbN> so, just put slow there, and let the automatism do its job
[12:00:13 CEST] <dragmore> -preset slow -profile main10 -level 5
[12:00:18 CEST] <dragmore> what rate control method?
[12:00:25 CEST] <BtbN> no need to specify a level, unless you are constrained
[12:00:36 CEST] <dragmore> box can handle 5.1 main10
[12:00:59 CEST] <BtbN> yeah, restrict it to 5.1 then
[12:01:09 CEST] <BtbN> rate control is up to you
[12:01:23 CEST] <dragmore> -rc cbr_ld_hq -b 25000 would prolly suffice
[12:01:26 CEST] <BtbN> if you don't care about the bitrate, just use constqp for a constant quality
[12:01:47 CEST] <dragmore> im allowed a max of 30mbps
[12:01:50 CEST] <BtbN> cbr is generally the worst choice quality wise
[12:01:59 CEST] <dragmore> but for Realtime encoding
[12:02:20 CEST] <BtbN> I'd still stick with vbr_hq and specify a maxrate
[12:02:25 CEST] <dragmore> this is prolly gonna be SMTE 2022-6 input and RTP multicast out
[12:03:04 CEST] <dragmore> SMPTE 2022-6 sorry
[12:03:12 CEST] <BtbN> the only difference between cbr and vbr is that cbr inserts NULL-NAL-Units to fill up to the given bitrate
[12:03:28 CEST] <BtbN> between cbr and vbr + maxrate
[12:03:50 CEST] <BtbN> If you need the strict static bitrate, cbr_hq
[12:03:51 CEST] <dragmore> is there a "skewed realtime" mode for 2 pass vbr?
[12:03:56 CEST] <BtbN> hm?
[12:03:59 CEST] <dragmore> with increased latency
[12:04:10 CEST] <BtbN> nvenc does not have classic two pass
[12:04:15 CEST] <BtbN> It's some weird internal thing.
[12:04:19 CEST] <dragmore> i was just thinking the other day, can one let the encoder to multiple passes within the VBV buffer
[12:04:31 CEST] <BtbN> you can just always turn it on. It just makes it slightly slower
[12:05:01 CEST] <BtbN> I guess you are looking for -rc-lookahead?
[12:05:27 CEST] <dragmore> well.. im a newb here.. so i dont know ;)
[12:05:36 CEST] <dragmore> but this is my offline h264 encoding
[12:05:37 CEST] <dragmore> "ffmpeg -i source.mp4 -pix_fmt yuv420p -codec:v libx264 -x264opts rc-lookahead=50:keyint=100:min-keyint=50:crf=24 -profile high -level 4.1 -preset slow -maxrate 7M -bufsize 14M -force_key_frames "expr:eq(mod(n,50),0)" -c:a copy -y AiB_HQ_3.mp4"
[12:05:57 CEST] <dragmore> something like that, just for Realtime and hevc using nvenc
[12:06:41 CEST] <dragmore> i need to force an IDR frame each gop (2 sec) and give the encoder a scenecut ability to insert an iframe where neded
[12:07:06 CEST] <BtbN> I don't think you can do that with ffmpeg.c
[12:07:25 CEST] <BtbN> There is no interface to dynamically insert an I frame
[12:07:41 CEST] <dragmore> well it works with x264
[12:07:48 CEST] <BtbN> How do you signal it?
[12:07:52 CEST] <BtbN> There is no interface for that
[12:07:54 CEST] <dragmore> as my syntax above, ffprobe confirms it
[12:08:35 CEST] <dragmore> i get an IDR frame every 50fps
[12:08:49 CEST] <dragmore> and additional iframes when there is a hard scene change
[12:08:50 CEST] <BtbN> That's just the gop length
[12:08:59 CEST] <BtbN> And there is some automatic scenecut detection if you use lookahead
[12:09:21 CEST] <dragmore> yes, (i just found it on the net).. so i dont understand it completely
[12:09:32 CEST] <dragmore> but from the export in ffprobe, it seem to work
[12:12:01 CEST] <dragmore> so the syntax for hevc would be something like : ffmpeg input -rc vbr_hq -level 5.1 -profile main10 -preset slow -pix_fmt yuv420p -codec:v hevc_nvenc output
[12:12:58 CEST] <dragmore> how does one specify the max bitrate for -rc ?
[12:13:12 CEST] <dragmore> -rc vbr_hq -maxrate 40000 ?
[12:14:49 CEST] <BtbN> -b:v for the average bitrate, and -maxrate:v for the maxrate
[12:15:12 CEST] <BtbN> Setting a -bufsize:v might also be a good idea
[12:15:45 CEST] <dragmore> ok
[12:15:47 CEST] <dragmore> ffmpeg -i AiB_GoT_Master4-2-2_1080p-IMX-2chWAV.mkv -rc vbr_hq -b:2000 -maxrate:4000 -bufsize:4000 -level 5.1 -profile main10 -preset slow -rc-lookahead=50 -pix_fmt yuv420p -codec:v hevc_nvenc test.ts
[12:16:27 CEST] <dragmore> forgot the encoder ;)
[12:16:29 CEST] <dragmore> ffmpeg -i AiB_GoT_Master4-2-2_1080p-IMX-2chWAV.mkv -c:v hevc_nvenc -rc vbr_hq -b:2000 -maxrate:4000 -bufsize:4000 -level 5.1 -profile main10 -preset slow -rc-lookahead=50 -pix_fmt yuv420p -codec:v hevc_nvenc test.ts
[12:16:33 CEST] <BtbN> and that whole -force_key_frames thing looks just like -g 50 to me?
[12:16:57 CEST] <dragmore> Unrecognized option 'rc-lookahead=50'.
[12:17:17 CEST] <BtbN> the = does not belong there
[12:17:46 CEST] <dragmore> ffmpeg -i AiB_GoT_Master4-2-2_1080p-IMX-2chWAV.mkv -c:v hevc_nvenc -rc vbr_hq -b:2000 -maxrate:4000 -bufsize:4000 -level 5.1 -profile main10 -preset slow -rc-lookahead 50 -pix_fmt yuv420p -codec:v hevc_nvenc test.ts
[12:17:52 CEST] <dragmore> [NULL @ 00000000028833c0] Unable to find a suitable output format for '5.1' 5.1: Invalid argument
[12:18:50 CEST] <BtbN> It thinks 5.1 is your output filename
[12:19:13 CEST] <BtbN> The : is also wrong
[12:19:19 CEST] <BtbN> It's always a space
[12:19:24 CEST] <BtbN> and it's -b:v and -maxrate:v
[12:19:32 CEST] <dragmore> ffmpeg -i AiB_GoT_Master4-2-2_1080p-IMX-2chWAV.mkv -c:v hevc_nvenc -rc vbr_hq -b:2000 -maxrate:4000 -bufsize:4000 -level 5.1 -profile main10 -preset slow -rc-lookahead 50 -pix_fmt yuv420p -codec:a copy -f test.ts
[12:19:54 CEST] <BtbN> I'd also recommend dropping the -pix_fmt entirely
[12:20:05 CEST] <BtbN> and if the input is h264, you can utilize full hw transcoding
[12:20:12 CEST] <dragmore> problem is that the source is 4:2:2
[12:20:19 CEST] <dragmore> mpeg2 xdcam as source
[12:20:28 CEST] <BtbN> hm, yeah. That won't work with hw decoding then
[12:21:26 CEST] <dragmore> hmm
[12:21:27 CEST] <dragmore> ffmpeg -i AiB_GoT_Master4-2-2_1080p-IMX-2chWAV.mkv -c:v hevc_nvenc -rc vbr_hq -b:2000 -maxrate:4000 -bufsize:4000 -level 5.1 -profile main10 -preset slow -rc-lookahead 50 -pix_fmt yuv420p -codec:a copy -f test.ts
[12:21:54 CEST] <dragmore> still : Unable to find a suitable output format for '5.1' 5.1: Invalid argument
[12:25:33 CEST] <dragmore> ffmpeg -i AiB_GoT_Master4-2-2_1080p-IMX-2chWAV.mkv -c:v hevc_nvenc -rc vbr_hq -b:v 2000 -maxrate:v 4000 -bufsize:v 4000 -level 5.1 -profile:v main10 -preset slow -rc-lookahead 50 -pix_fmt yuv420p -c:a copy -f test.ts
[12:25:36 CEST] <dragmore> getting closer
[12:28:33 CEST] <dragmore> hehe
[12:28:34 CEST] <dragmore> [hevc_nvenc @ 00000000026a3d40] No NVENC capable devices found
[12:28:39 CEST] <dragmore> ffmpeg crashed
[12:29:12 CEST] <dragmore> even if ffmpeg -help encoder=hevc_nvenc gave me an output
[12:31:52 CEST] <dragmore> "[hevc_nvenc @ 0000000002797020] Loaded Nvenc version 8.0 [hevc_nvenc @ 0000000002797020] Nvenc initialized successfully [hevc_nvenc @ 0000000002797020] 1 CUDA capable devices found [hevc_nvenc @ 0000000002797020] [ GPU #0 - < GeForce GTX 770 > has Compute SM 3.0 ] [hevc_nvenc @ 0000000002797020] Codec not supported [hevc_nvenc @ 0000000002797020] No NVENC capable devices found"
[12:32:06 CEST] <dragmore> ffs.. wrong gfx card ;)
[13:07:33 CEST] <BtbN> That last commandline looks fine. Only missing the -g 50 for the gop length
[13:47:56 CEST] <dystopia_> hevc encoding doesnt seem viable yet
[13:48:01 CEST] <dystopia_> sooo slooow :(
[13:48:14 CEST] <JEEB> and very few care about the format it seems
[13:48:17 CEST] <JEEB> at least in open source
[13:48:22 CEST] <JEEB> so decoding isn't optimized, either
[13:50:34 CEST] <BtbN> blame the patent crazyness around it
[13:50:46 CEST] <BtbN> And it just is a very complex codec. It will always be somewhat slow
[13:52:00 CEST] <JEEB> in encoding, yes
[13:52:16 CEST] <JEEB> comparatively to AVC that is
[13:52:23 CEST] <JEEB> decoding wise it should be on similar level as VP9 if someone put some love into it
[13:52:35 CEST] <BtbN> hw decoding for it is quite widespread by now
[13:52:39 CEST] <JEEB> yea
[14:14:26 CEST] <charly> Hello
[14:14:33 CEST] <charly> I have a live TS stream containing closed captions
[14:14:41 CEST] <charly> How to burn them into the decoded video ?
[14:15:08 CEST] <JEEB> which type of CCs?
[14:15:33 CEST] <charly> eia608
[14:18:12 CEST] <JEEB> charly: when you demux packets for the track that can have CCs, check for side data packets with CCs. then if found, open a decoder for the format and create an AVPacket of the side data => feed to decoder => get text => render text with libass or something on top of the video => done
[14:18:19 CEST] <JEEB> it's contrived but possible :P
[14:21:06 CEST] <charly> ok so as i supposed, ass & subtitles filters can't operate with live streams ?
[14:21:28 CEST] <JEEB> why not? it's just that I don't think there's any AVFilters that take in subtitles :D
[14:22:08 CEST] <JEEB> charly: so you get an RGB overlay from libass, and then you can overlay that with the overlay avfilter
[14:22:09 CEST] <JEEB> whether or not you're live or not doesn't really matter does it :P
[14:23:57 CEST] <charly> ok, i will use libass. Thank you !
[14:24:42 CEST] <JEEB> good luck
[16:54:40 CEST] <blap> libass needs fixing :/
[16:55:14 CEST] <blap> putting new subs up at 'random' lines on the screen is unreadable, for multiline/overlapping subs
[17:03:44 CEST] <JEEB> I think the rendering order depends on the order of entry
[17:32:30 CEST] <thatandyrose> hey there! total n00b here. Can anyone help with a question or shall I just ask?
[17:33:55 CEST] <DHE> IRC rule is to read the topic, then just ask according to whatever rules the topic has provided
[17:34:59 CEST] <thatandyrose> thanks DHE... sorry, first time on IRC. Basically I have this ffmpeg related question: https://stackoverflow.com/questions/45964212/how-to-merge-two-audio-files-w…
[17:35:35 CEST] <thatandyrose> If my question is inappropriate or I'm asking in an inappropriate way do let me know
[17:48:10 CEST] <durandal_1707> thatandyrose: perhaps you neeed asetpts filter, hard to guess without input files
[17:50:29 CEST] <thatandyrose> @durandal_1707 thank you for the heads up. You know what... I think my question is flawed. When do `ffmpeg -i 1audio.m4a` I see that start is not at 0... it's at 5... I don't quite get this.... but, is there a way to merge two audio files which take into account non 0 start positions?
[17:50:55 CEST] <thatandyrose> sorry, typo. It should be "When I do ffmpeg..."
[17:52:19 CEST] <durandal_1707> thatandyrose: then you need adelay filter with parameters that will add silence samples so start matches
[17:53:50 CEST] <thatandyrose> @durandal_1707 hmm can you point me to an example? I'll start googling now but if you know of a good one let me know. Another option is to pad each file so they start at 0 right? how would I do that?
[17:54:44 CEST] <durandal_1707> adelay pads audio at beginning
[17:54:57 CEST] <durandal_1707> apad filter pads at end
[17:59:08 CEST] <thatandyrose> cool, thanks @durandal_1707, I'll start taking a look at those. Thanks for your help!
[17:59:35 CEST] <durandal_170> thatandyrose: something like: ffmpeg -i first.mp4 -i second.mp4 -lavfi "[0:a]adelay=5000|5000[a],[a][1:a]amerge"
[18:00:01 CEST] <durandal_170> 5000|5000 says to delay each channel to 5 seconds
[18:02:53 CEST] <thatandyrose> hmm thanks @durandal... ok, I gotta figure out how I get the delay first as I need this to be programmatic with dynamic input. #killmenow
[18:04:10 CEST] <durandal_170> thatandyrose: delays is first pts of first input minus first pts of second input
[19:26:55 CEST] <idlus> Hello, isn't it possible to chain two chromakey filters? It seems that only the last one is in effect.
[19:28:25 CEST] <durandal_1707> idlus: of you need 2 you are doing something wrong
[19:28:56 CEST] <durandal_1707> -vf chromakey,chromakey
[19:30:16 CEST] <idlus> I'll paste my filter chain, hope it's not too long
[19:30:26 CEST] <idlus> [vid1] split=2 [jeu][cam]; [jeu] crop=.65*iw:.86*ih:.065*iw:.01*ih [jeu]; [cam] crop=.21*iw:.23*ih:.75*iw:.75*ih, chromakey=black,chromakey=blue, scale=-1:ih, [jeu] overlay=0:main_h-overlay_h [vo]
[19:30:56 CEST] <BtbN> it's probably not exactly black or not exactly blue
[19:31:17 CEST] <idlus> if I use either one individually it works as I expect
[19:31:43 CEST] <idlus> eg the black region or the blue region is filtered out, but when chained only the blue is in effect
[19:31:51 CEST] <durandal_1707> chromakey only modifies alpha
[19:32:09 CEST] <BtbN> Well, it will overwrite the alpha channel
[19:32:17 CEST] <idlus> oh ok
[19:32:17 CEST] <BtbN> so it kind of makes sense only the last one is "active"
[19:32:30 CEST] <idlus> sure, how can I combine them then
[19:32:31 CEST] <idlus> ?
[19:32:39 CEST] <BtbN> Don't think you can
[19:32:51 CEST] <durandal_1707> yes just merge alphas
[19:33:01 CEST] <durandal_1707> its complicated
[19:34:06 CEST] <idlus> so maybe another filter branch with alphamerge?
[19:34:17 CEST] <BtbN> alphamerge does not just merge two alpha channels
[19:34:21 CEST] <durandal_170> split[a][b],[a]chromakey=black[a],[b]chromakey=blue[b],[a][b]blend=c3_mode=and...
[19:35:23 CEST] <durandal_170> this will create union of two alpha channels
[19:36:21 CEST] <idlus> ok, never used "blend" before, I'll read up on it and test your solution
[19:36:24 CEST] <idlus> thank you both
[20:09:56 CEST] <nicolas17> how do I stop ffplay from disabling my desktop compositor?
[20:10:09 CEST] <nicolas17> I lose window transparency and shadows while ffplay is running
[20:10:25 CEST] <JEEB> don't use ffplay if you want a player based on FFmpeg's libraries: mpv is much preferred
[20:10:33 CEST] <JEEB> it is an actual player while ffplay is a Proof of Concept
[20:11:56 CEST] <nicolas17> I made a 4fps timelapse with ffmpeg and I'm watching the result with ffplay just because vlc seems to get an inconsistent framerate
[20:27:02 CEST] <alexpigment> hey guys, I'm trying to make a patch that adds "coder" (cabac vs cavlc) to NVENC. i'm extremely green on the source code, but here's what I see in libx264.c: https://ffmpeg.org/doxygen/3.0/libx264_8c_source.html (line 974)
[20:27:51 CEST] <alexpigment> and here's what I see in nvEncodeAPI.h https://www.ffmpeg.org/doxygen/3.2/nvEncodeAPI_8h_source.html (line 570)
[20:28:31 CEST] <JEEB> note: that's from 3.2, if you want latest that's "trunk" (or you just use git.videolan.org to browse)
[20:28:39 CEST] <alexpigment> I'm wondering if I can copy what's shown in libx264 into nvenc.c , but I'm not sure what parameters need to reference what's shwn in nvEncodeAPI.h
[20:29:06 CEST] <JEEB> also I have no idea if nvenc even lets you set CAVLC or CABAC
[20:29:25 CEST] <JEEB> well, OK - baseline profile requires CAVLC IIRC
[20:29:33 CEST] <JEEB> so it has to have it around
[20:29:47 CEST] <alexpigment> the API says you can set it
[20:30:04 CEST] <alexpigment> but it's not hooked up in FFMPEG's nvenc in any way that I can tell
[20:30:10 CEST] <alexpigment> the coder parameter is certainly ignored
[20:30:22 CEST] <alexpigment> but the API exposes it, which you can see in nvEncodeAPI.h
[20:30:49 CEST] <JEEB> ok, then you just limit the parameter according to valid values in init()
[20:30:59 CEST] <JEEB> of the libavcodec thing you want
[20:31:10 CEST] <JEEB> and then set the value accordingly in nvenc's API
[20:31:15 CEST] <alexpigment> I've transplanted the code from libx264.c into nvenc.c , but I just am not sure how to hook up the specific parameters from the API
[20:31:47 CEST] <BtbN> also needs a proper capability check if the hardware even supports CABAC
[20:31:56 CEST] <BtbN> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=compat/nvenc/nvEncodeAPI.h;h…
[20:32:55 CEST] <alexpigment> I don't think there are any nvenc-capable cards that dont' support cabac, although I understand it's safer to check
[20:33:31 CEST] <JEEB> huh, I thought coder was a global avcodec option but the vaapi thing actually defined the AVOption there
[20:33:34 CEST] <JEEB> http://git.videolan.org/?p=ffmpeg.git;a=commit;h=c6a8c2a4f7396c4524a081df8a…
[20:33:45 CEST] <JEEB> (it has more values most likely because it supports more than AVC)
[20:33:46 CEST] <alexpigment> it's global, but it isn't hooked up for nvenc
[20:34:15 CEST] <JEEB> then I wonder why vaapi wrapper got it implemented in the way it got
[20:34:25 CEST] <JEEB> because you can see it definining those AVOoptions
[20:34:53 CEST] <JEEB> if it's just available in AVCodecContext then (Ž4@)
[20:35:13 CEST] <BtbN> probably so it shows up in help
[20:35:40 CEST] <BtbN> I wish there was some kinda mechanism to declare "I use this global option"
[20:35:47 CEST] <BtbN> which then makes it show up in -help for that encoder.
[20:35:51 CEST] <jkqxz> This one, with all the deprecation guards around it? <http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/avcodec.h;h=51323…>
[20:35:59 CEST] <alexpigment> BtbN, i would be a big fan of that
[20:36:48 CEST] <JEEB> jkqxz: ah ok
[20:36:59 CEST] <JEEB> I had no idea it was being deprecated in favour of encoder-specific AVOptions
[20:37:03 CEST] <JEEB> but then it makes sense :)
[20:37:05 CEST] <jkqxz> I didn't actually look at when it was deprecated, but the private option matches libx264.
[20:37:36 CEST] <alexpigment> for what it's worth, I'm just trying to address a bug I logged up a while back: https://trac.ffmpeg.org/ticket/6475
[20:37:50 CEST] <alexpigment> there's no deprecation warning, at least the last time I tested
[20:39:14 CEST] <BtbN> there definitely is one now
[20:39:54 CEST] <jkqxz> Commit was <http://git.videolan.org/?p=ffmpeg.git;a=commit;h=be00ec832c519427cd92218aba…>, apparently. Makes sense, I guess.
[20:40:44 CEST] <jkqxz> alexpigment: There is just no warning in general for common options which aren't actually used.
[20:42:16 CEST] <jkqxz> And that isn't really a very easy thing to change. Every codec would need to declare the set of options they care about and then there could be some common code to check whether any of them are specified and warn.
[20:44:19 CEST] <jkqxz> And if they only use them in some modes but not others then that becomes even more complicated.
[20:44:37 CEST] <alexpigment> honestly, i'm not really picky about global vs encoder-specific options
[20:44:39 CEST] <BtbN> well, only warn if they do declare
[20:44:43 CEST] <BtbN> so the transition can go slowly
[20:44:49 CEST] <alexpigment> I just need it to be hooked up
[20:44:59 CEST] <alexpigment> fwiw, it's certainly not deprecated for x264 as a global option
[20:45:08 CEST] <alexpigment> no warnings
[20:45:13 CEST] <jkqxz> x264 is a private option as well.
[20:45:57 CEST] <jkqxz> <http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/libx264.c;h=b11ed…>
[20:46:12 CEST] <alexpigment> ok, so you'll have to pardon my ignorance on how this all works. everything I log on trac is ignored, so I'm trying to about addressing things and I know nothing about programming or the inner workings of ffmpeg
[20:46:33 CEST] <BtbN> I haven't seen anything about this option missing on trac
[20:46:34 CEST] <alexpigment> all I'm trying to do is to get CAVLC encoding in nvenc via ffmpeg
[20:46:36 CEST] <alexpigment> and it is not hooked up
[20:46:46 CEST] <BtbN> what even is that? I never heard that term before.
[20:47:08 CEST] <alexpigment> BtbN: are you being facetious?
[20:48:19 CEST] <alexpigment> well, I'll assume you aren't. it's "context-adaptive variable-length coding", as opposed to cabac = "context-adaptive binary arithmetic coding"
[20:48:19 CEST] <BtbN> what?
[20:49:12 CEST] <alexpigment> cavlc is requires much less processing power and is commonly used on intra-frame formats in NLEs
[20:49:49 CEST] <BtbN> Does HEVC have something similar, or is it h264 only?
[20:50:03 CEST] <alexpigment> if HEVC has it, I'm not aware
[20:50:25 CEST] <jkqxz> HEVC does not have any non-arithmetic coder, no.
[20:50:40 CEST] <JEEB> HEVC decided to drop CAVLC
[20:50:43 CEST] <JEEB> it's CABAC only
[20:51:03 CEST] <alexpigment> yeah, HEVC is already processor intensive enough that they probably didn't see much merit in a coding mode that was easier to process
[20:52:16 CEST] <sikilikis> hey all. How do I get the "fontfile" parameter to work when using the drawtext filter? It seems to be completely ignored. The font never changes and if I provide a bogus filepath to it, ffmpeg happily ignores it anyway
[20:58:08 CEST] <sikilikis> the text gets drawn but I can't change the font being used
[21:00:47 CEST] <jkqxz> BtbN: Um, ffmpeg probably shouldn't segfault if you try to use h264_nvenc without any hardware, right?
[21:01:04 CEST] <jkqxz> alexpigment: This work? <http://sprunge.us/ZbMH> (Not actually tested.)
[21:01:15 CEST] <BtbN> It should just tell you that it found no GPU. Or just straight up failed to load the cuda libs
[21:03:07 CEST] <jkqxz> Apparently not <http://sprunge.us/QSEZ>.
[21:04:01 CEST] <jkqxz> It shouldn't be trying to call that context function if there is no cuda at all, I guess?
[21:10:53 CEST] <alexpigment> jkqxz: sorry, was away
[21:11:25 CEST] <alexpigment> when you said "Apparently not" were you saying that the patch didn't work, or were you replying the BtbN?
[21:12:29 CEST] <alexpigment> BtbN: actually, I know someone who ran into that same thing, although I had no explanation. I figured he just had some driver debris sitting around
[21:12:41 CEST] <BtbN> The crash?
[21:12:44 CEST] <alexpigment> Yeah
[21:12:55 CEST] <BtbN> That's just an oversight when adding context pushes everywhere
[21:12:56 CEST] <jkqxz> That was to the crash. First patch might work.
[21:13:00 CEST] <alexpigment> They started getting the crash with a build from late June
[21:13:27 CEST] <alexpigment> OK
[21:13:29 CEST] <alexpigment> Testing this out now
[21:14:03 CEST] <alexpigment> Thank you very much. I would have never known that I needed to make changes to all 3 files
[21:16:20 CEST] <BtbN> https://github.com/BtbN/FFmpeg should have fixes for both
[21:18:06 CEST] <alexpigment> Awesome. Testing now
[21:18:34 CEST] <BtbN> no idea how to determine if that coder mode works or does anything though
[21:19:08 CEST] <alexpigment> really it's just specifying coder 0 and seeing if MediaInfo reports it as CABAC still
[21:19:08 CEST] <jkqxz> Run it through the trace_headers BSF and look for entropy_coding_mode_flag in the PPS.
[21:19:21 CEST] <alexpigment> if coder 0 creates a CABAC file, it's not working ;)
[21:19:38 CEST] <BtbN> coder 0 is auto, which will produce whatever nvenc likes
[21:19:49 CEST] <alexpigment> really?
[21:19:53 CEST] <BtbN> yes
[21:19:58 CEST] <alexpigment> OK, well, i'll use the appropriate command
[21:20:07 CEST] <alexpigment> x264 has coder = cavlc
[21:20:20 CEST] <alexpigment> a little confusing when switching between the two, but not a huge deal I suppose
[21:20:30 CEST] <BtbN> I keps the names consistent for a reason
[21:20:33 CEST] <BtbN> *kept
[21:20:42 CEST] <alexpigment> sorry, i meant to say coder = 0 is cavlc in x264
[21:20:42 CEST] <BtbN> The numerical values are arbitrary
[21:21:25 CEST] <alexpigment> well, they are certainly arbitrary, although you'd like their meanings to stay the same when switching between two encoders
[21:21:43 CEST] <BtbN> nvenc and x264 are diffrent. Can't make them match up perfectly
[21:22:15 CEST] <alexpigment> I agree with you, but you also don't want the behavior to be the opposite
[21:22:31 CEST] <BtbN> The opposite?
[21:22:36 CEST] <alexpigment> At any rate, I can work with this and change the code accordingly so that coder 0 does cavlc
[21:22:49 CEST] <BtbN> Just use the const name, it's there for that reason
[21:22:50 CEST] <alexpigment> nvenc is probably always going to do cabac when set to auto
[21:32:03 CEST] <alexpigment> coder now working for NVENC :)
[21:32:08 CEST] <alexpigment> awesome work
[21:32:18 CEST] <alexpigment> checking the other patches I made now
[21:33:08 CEST] <alexpigment> jkqxz: to clarify, I tested your patch
[21:33:30 CEST] <alexpigment> coder 0 produces CAVLC and coder 1 produces CABAC, perfectly matching x264
[21:34:56 CEST] <BtbN> do not use the numerics
[21:35:02 CEST] <BtbN> they are arbitrary
[21:35:09 CEST] <BtbN> and can change without notice
[21:35:35 CEST] <alexpigment> BtbN: honestly, if you saw how many tutorials and stackoverflows and the like on google that specifically mention coder 0, you might think differently
[21:35:38 CEST] <alexpigment> this is not about me
[21:35:51 CEST] <BtbN> There are a lot of bad "guides" out there, yes.
[21:35:52 CEST] <DHE> doesn't make it right
[21:35:58 CEST] <alexpigment> this is about making sure that the information on the internet remains applicable
[21:36:08 CEST] <BtbN> It never was applicable in the first place
[21:36:12 CEST] <alexpigment> it certainly was
[21:36:15 CEST] <BtbN> It's a const option. You are supposed to use the name.
[21:36:17 CEST] <alexpigment> It was 100% applicable
[21:36:26 CEST] <alexpigment> The guides specifically are referring to x264
[21:36:40 CEST] <BtbN> It's the same for libx264
[21:36:52 CEST] <alexpigment> What I'm saying is that it's preferable to maintain parity with x264 since it's another encoder that produces the same output format
[21:36:59 CEST] <alexpigment> what is the same?
[21:37:14 CEST] <BtbN> It maintains perfect parity with x264. As it uses the exact same constants.
[21:37:59 CEST] <alexpigment> then why are you insisting that I not use constants?
[21:38:07 CEST] <BtbN> Because you are not.
[21:38:15 CEST] <alexpigment> sorry
[21:38:17 CEST] <alexpigment> constants
[21:38:17 CEST] <alexpigment> yes
[21:38:24 CEST] <alexpigment> lemme rephrase
[21:38:35 CEST] <alexpigment> why are you insisting that I not use numerics
[21:38:44 CEST] <BtbN> Because they are not part of the API
[21:38:51 CEST] <BtbN> And can change without notice
[21:39:21 CEST] <alexpigment> look, just google "ffmpeg cabac"
[21:39:22 CEST] <alexpigment> first result
[21:39:27 CEST] <alexpigment> it will tell you to use coder 0
[21:39:37 CEST] <alexpigment> that's very powerful and important
[21:39:42 CEST] <BtbN> And wrong
[21:39:48 CEST] <alexpigment> the first result is spreading "misinformation" according to you
[21:39:50 CEST] <alexpigment> but it works for libx264
[21:39:54 CEST] <alexpigment> to this day it works
[21:40:05 CEST] <alexpigment> if coder 0 can work for nvenc, it should
[21:40:32 CEST] <BtbN> I'm not going to make this code more complicated to cater to bad answers someone gave on stackoverflow.
[21:40:44 CEST] <alexpigment> it's the old saying about software companies. if microsoft has a bug that affects your software, *it's your bug*
[21:40:58 CEST] <BtbN> The numerics are not part of the API for libx264 either.
[21:41:05 CEST] <alexpigment> BtbN: you don't need to. jkqxz already did this in his patch
[21:41:19 CEST] <BtbN> His patch does not expose the auto option nvenc has
[21:41:43 CEST] <DHE> http://ffmpeg.org/ffmpeg-codecs.html#Options-25 libx264 does not list 0 and 1 as valid options to the 'coder' parameter
[21:41:43 CEST] <alexpigment> what is the point of auto?
[21:42:07 CEST] <BtbN> It lets nvenc automatically decide which mode to use
[21:43:29 CEST] <alexpigment> if you specify profile baseline and set the coder to auto, what happens?
[21:43:45 CEST] <BtbN> Don't know. That's driver-internal.
[21:43:50 CEST] <DHE> it will adhere to the baseline limitations
[21:44:13 CEST] <alexpigment> ok, so if you don't specify coder auto and set it to baseline, what happens?
[21:44:24 CEST] <BtbN> It will use the value the preset declares
[21:44:48 CEST] <alexpigment> then I guess it brings me back to the question of "what is the point of auto"?
[21:45:13 CEST] <BtbN> It's what the API declares. So if a preset defines something else, you can override it.
[21:45:24 CEST] <alexpigment> if setting the profile automatically changes the coding mode, then there is really no point in additionally specifying that the coder should be set to auto
[21:45:43 CEST] <alexpigment> in theory, you would only ever specify the coder when you know that the auto is going to be the opposite of what you want
[21:45:48 CEST] <DHE> it's also possible that using a preset will override any settings that conflict with it. but again that's driver dependent
[21:47:26 CEST] <alexpigment> at any rate, I've got something working now, and I appreciate all the work being done here. I was really just trying to make sure that we could keep parity with x264 in terms of all the information that is readily available on the internet
[21:47:39 CEST] <BtbN> There is perfect parity with x264
[21:47:42 CEST] <BtbN> The public API matches
[21:47:47 CEST] <BtbN> except that nvenc has one additional option
[21:48:56 CEST] <alexpigment> BtbN: you said that coder 0 is auto rather than cavlc
[21:49:04 CEST] <alexpigment> that is the nonparity i'm talking about
[21:49:21 CEST] <BtbN> The numeric values are arbitrary
[21:49:35 CEST] <BtbN> cabac or ac is cabac, cavlc or vlc is cavlc.
[21:49:43 CEST] <alexpigment> I get your point, but please step back from being a developer for once second
[21:49:44 CEST] <BtbN> Exactly the same as for libx264
[21:49:50 CEST] <alexpigment> google: ffmpeg "coder 0"
[21:49:54 CEST] <alexpigment> 28,600 results
[21:50:01 CEST] <alexpigment> now google ffmpeg "coder vlc"
[21:50:03 CEST] <alexpigment> 128 results
[21:50:14 CEST] <alexpigment> that should tell you that you kinda have to just give in to the masses
[21:50:19 CEST] <BtbN> again, I'm not going to cater to wrong guides or answers. If we started doing that, ffmpeg would be one hell of a mess
[21:50:26 CEST] <alexpigment> especially considering your assignment of 0 to auto is arbitrary
[21:50:43 CEST] <BtbN> I did not make any assignments, except defining -1 as undefined
[21:50:54 CEST] <BtbN> everything else just comes from the nvEncodeApi header
[21:51:59 CEST] <BtbN> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=compat/nvenc/nvEncodeAPI.h;h…
[21:53:01 CEST] <alexpigment> I see what you're saying
[21:53:13 CEST] <alexpigment> I don't think you see what I'm saying
[21:53:37 CEST] <BtbN> I see what you're saying. I just plain disagree.
[21:54:19 CEST] <alexpigment> BtbN: Most developers probably would. Anyone in QA or customer-facing positions would not.
[21:54:22 CEST] <JEEB> it's the same thing as all of those recommendations of strict -2 (experimental) breaking if the internal values happen to change for one reason or another (except it was evn mentioned in a message which is d'uh)
[21:55:33 CEST] <alexpigment> Well sure, but any developer probably recognizes that strict -2 is being used rampantly in the wild and won't change it
[21:55:39 CEST] <alexpigment> I would hope so at least
[21:55:51 CEST] <BtbN> If there is a good reason to change it, it would be changed.
[21:56:11 CEST] <alexpigment> BtbN: And that's why people don't update open source software often
[21:56:33 CEST] <alexpigment> I know people in professional environments who won't upgrade their copy of Linux unless they absolutely have to
[21:56:37 CEST] <JEEB> also since the option is being added to a new thing it makes even less sense to try and match internal values between sub-libraries headers since the strings are the thing you're supposed to be using
[21:56:55 CEST] <alexpigment> JEEB: did you see my example about the google search results?
[21:57:16 CEST] <alexpigment> I know you guys are developers, but surely you can see from the end user point of view to *some* degree, right?
[21:57:19 CEST] <JEEB> yes, and that's quite unfortunate. but are any of those about this specific encoder?
[21:57:52 CEST] <alexpigment> No, but that doesn't stop people from having something that works, then trying to port over their code to a similar encoder
[21:58:26 CEST] <alexpigment> I'm sure when you try to learn another programming language, you hope things here and there match up so you don't have to unlearn what you know from the other language
[21:58:29 CEST] <iive> so you are saying that we should forbid this option from taking a number at all
[21:58:38 CEST] <JEEB> iive: that sounds like a good idea
[21:58:50 CEST] <JEEB> the thing is rather incidental anyways :P
[21:59:49 CEST] <alexpigment> I guess I just don't see you guys have such a case of developer-brain that my logic isn't seeping in at all
[22:00:16 CEST] <JEEB> there are cases where doing things for compatibility's sake makes sense
[22:00:27 CEST] <alexpigment> Either way, jkqxz made a great patch, and so I've got something that works fine right now
[22:00:56 CEST] <iive> btw, why do you want cavlc again?
[22:01:13 CEST] <alexpigment> AVC Intra, NLE usage
[22:01:34 CEST] <alexpigment> takes out decoding hit, especially at higher bitrates
[22:01:43 CEST] <iive> so low quant, high bitrates?
[22:01:47 CEST] <alexpigment> right
[22:01:54 CEST] <JEEB> in this case it most definitely doesn't given how this is a new option added for a new encoder (Thus guides do not point at it) and generally if people utilize internal values and expect them to be *globally* the same then derp
[22:02:09 CEST] <JEEB> just like you'd expect all encoders have the same preset values as libx264
[22:02:16 CEST] <iive> alexpigment: does it really help, aka have you benchmarked it?
[22:02:54 CEST] <JEEB> also I think the most hilarious thing would be if the values are mapped to nvidia header values and then *nvidia* changed the internal values they'd point at :P
[22:02:58 CEST] <alexpigment> iive: I trust that the experts at Adobe, Panasonic, etc have done those benchmarks for me and that's why they use it
[22:03:04 CEST] <JEEB> pffft
[22:03:23 CEST] <JEEB> just look at how panasonic, sony etc fucked "AVC Intra"
[22:03:35 CEST] <iive> if you can benchmark, then do benchmark
[22:03:57 CEST] <JEEB> > ISO/IEC standard > companies make proprietary and non-standard versions of it (that cannot be decoded with a standard decoder often)
[22:04:10 CEST] <JEEB> > put out a public spec and an NDA'd implementation thing
[22:04:14 CEST] <iive> because i've heard that cavlc makes low quants so huge, that the cache misses ruin the benefit of the simpler computation.
[22:04:16 CEST] <JEEB> > the two don't match
[22:04:33 CEST] <JEEB> anyways, CAVLC's effect depends really
[22:04:56 CEST] <alexpigment> Why do I feel like every time I come here I'm dealing with a bunch of overworked and underpaid developers? I'm not here to defend international standards. I'd just like to follow what's out there because I don't go out of my way to reinvent to wheel
[22:04:59 CEST] <JEEB> depends on if you use more CPU running through the extra bits, or if you shave off time by the means of CAVLC being faster
[22:05:23 CEST] <JEEB> alexpigment: it's because you say as if those corporations always do their decisions based on cold facts and objective measures
[22:05:38 CEST] <alexpigment> JEEB: again, I'm not trying to defend them. that's not my job
[22:05:46 CEST] <JEEB> yea, your comment was just funny :P
[22:05:53 CEST] <JEEB> but do note I actually commented about CAVLC
[22:05:58 CEST] <iive> alexpigment: we are saying, that you have to do the benchmarks on your own.
[22:06:10 CEST] <iive> their assemstments might be just obsolete
[22:06:24 CEST] <alexpigment> I don't have to do benchmarks. All I came here to do was to make sure that a parameter in the NVENC API was actually hooked up
[22:06:37 CEST] <iive> maybe at the time the cabac hasn't been optimized
[22:06:38 CEST] <JEEB> I generally tend to utilize something like Ut Video for NLE and if I absolutely need to use something non-lossless then libx264 with up to 3 frame or so GOP
[22:07:14 CEST] <JEEB> I think dw made some benchmarks for seeking speed etc some years ago
[22:07:33 CEST] <JEEB> as in, how big of a GOP you can have with H.264 to start having a delay in seeking in NLE-like use cases
[22:08:02 CEST] <alexpigment> Does it really matter though? I'm just trying to match a standard, not see how far I can get away from the standard before it starts to affect performance
[22:08:12 CEST] <JEEB> sure
[22:08:20 CEST] <alexpigment> So this conjecture is pointless to me
[22:08:45 CEST] <alexpigment> You want AVC Intra, you set the GOP to 1 and the encoding type to CAVLC
[22:08:54 CEST] <JEEB> although I'm actually surprised nvenc can output "AVC Intra" looking at how fucked up the panasonic stuff is
[22:09:07 CEST] <JEEB> hard-coded parameter sets that you cannot write into the bit stream
[22:09:08 CEST] <JEEB> etc
[22:09:15 CEST] <alexpigment> Well, this is certainly a case of "let's get as close as we can"
[22:09:25 CEST] <JEEB> ok, so you're not doing actual "AVC Intra"
[22:09:29 CEST] <JEEB> but just intra AVC
[22:09:31 CEST] <JEEB> ;)
[22:09:32 CEST] <BtbN> it probably can't perfectly. But good enough to be accepted by some specific player/software
[22:09:36 CEST] <alexpigment> NVENC's interlace handling is currently fucked, so that's another issue entirely
[22:09:50 CEST] <alexpigment> well, FFMPEG's implementation of nvenc's interlace handling, to be clear
[22:09:52 CEST] <BtbN> It's supposedly fixed in recent enough drivers.
[22:10:01 CEST] <BtbN> The ffmpeg side of it is fine.
[22:10:07 CEST] <BtbN> The driver wasn't
[22:10:14 CEST] <alexpigment> BtbN: I've got an open issue about it still
[22:10:25 CEST] <BtbN> with nvidia?
[22:10:29 CEST] <alexpigment> no, with ffmpeg
[22:10:31 CEST] <BtbN> where?
[22:10:35 CEST] <alexpigment> I compared it with Staxrip
[22:11:07 CEST] <alexpigment> sorry, looking for the ticket now
[22:11:13 CEST] <BtbN> There really isn't a lot to it from the ffmpeg side.
[22:11:23 CEST] <Sgt_Tailor> Hey, I was wondering if it is possible to add a new input to ffmpeg while it is running and add it to a complex_filter as well. I know you can send commands to filters to change the positions of layers in the complex filter, but I've been unable to find anything about adding more inputs on the fly
[22:11:28 CEST] <BtbN> If it does something subtly wrong, it's most likey in the driver
[22:11:46 CEST] <BtbN> Sgt_Tailor, it's not that flexible unfortunately.
[22:11:56 CEST] <BtbN> So, no, not possible.
[22:12:55 CEST] <alexpigment> BtbN: https://trac.ffmpeg.org/ticket/5818
[22:12:59 CEST] <alexpigment> see my last comment
[22:13:02 CEST] <alexpigment> that was from 2 months ago
[22:13:22 CEST] <alexpigment> I haven't checked back in since then, but I think the driver update you're talking about was from earlier this year
[22:13:28 CEST] <Sgt_Tailor> Hmm, can you point me in the direction of something that does allow me to do that BtbN(Excluding OBS because it has no cli or api I can program against)
[22:14:00 CEST] <BtbN> obs has an api
[22:14:14 CEST] <BtbN> All its functionality is in libobs, and the ui just uses that lib itself
[22:14:28 CEST] <BtbN> And it's really the best(and only) thing I know for that job.
[22:14:55 CEST] <Sgt_Tailor> holy balls, thanks! Not sure how I missed that
[22:16:52 CEST] <BtbN> alexpigment, that ticket is quite old. Interlaced Encoding by now works. If you are using the latest nvidia driver
[22:17:04 CEST] <BtbN> I think it was 384?
[22:17:24 CEST] <BtbN> https://devtalk.nvidia.com/default/topic/976088/video-technologies/ffmpeg-h…
[22:17:30 CEST] <BtbN> 375.39
[22:17:34 CEST] <alexpigment> Yes, I remember this thread
[22:17:51 CEST] <alexpigment> In that example, they're getting combing artifacts
[22:18:17 CEST] <alexpigment> Now what happens is that there's no combing, but each field in a frame is from the same timestamp
[22:18:32 CEST] <alexpigment> Either way, I'll double check now that it's been 2 months since I last checked it
[22:23:34 CEST] <alexpigment> BtbN: same problem
[22:23:40 CEST] <alexpigment> https://trac.ffmpeg.org/ticket/6260
[22:23:59 CEST] <alexpigment> if you try the "how to reproduce" code with the interlacedsample.mp4, you'll see the problem
[22:24:09 CEST] <alexpigment> x264 creates a smooth 60i video
[22:24:28 CEST] <alexpigment> nvenc creates a choppy video that looks the same as if it were 30p
[22:26:27 CEST] <alexpigment> now of course, you're going to have to use a player that correctly deinterlaces from 60i to 60p (i.e. not VLC)
[22:30:08 CEST] <alexpigment> I tested with 384.76 for what it's worth. However, the important part is that the encode works in Staxrip's NVENC implementation, but not FFMPEG's, so I don't believe this has anything to do with the driver at this point
[22:38:12 CEST] <azarus> What's faster to encode vp8/9 video with, VDPAU or VAAPI (AMD R9 Fury / Intel i5-6600K)?
[22:38:32 CEST] <BtbN> vdpau is a decoder
[22:38:42 CEST] <BtbN> And I don't think vaapi can encode either of them
[22:39:45 CEST] <azarus> BtbN: https://stackoverflow.com/questions/26000606/how-do-you-get-ffmpeg-to-encod…
[22:39:58 CEST] <azarus> Seems on new platforms hw encode is supported.
[22:40:37 CEST] <jkqxz> VP8 will work on the Intel but not the AMD. VP9 won't work on either.
[22:40:58 CEST] <BtbN> Does ffmpeg even implement the vaapi vp8 encoder?
[22:41:34 CEST] <azarus> jkqxz: And hw encode is almost always faster, right?
[22:41:43 CEST] <BtbN> you trade speed for quality
[22:42:05 CEST] <azarus> BtbN: Still a massive gain in efficiency.
[22:42:15 CEST] <BtbN> depends
[22:42:23 CEST] <BtbN> if you need twice the bitrate for comparable quality
[22:43:42 CEST] <azarus> BtbN: At least it doesn't take hours for simple and short videos -.-
[22:44:16 CEST] <BtbN> if it takes hours for simple and short videos with libvpx, something is very wrong
[22:47:11 CEST] <azarus> Just a slow proc, and
[22:47:19 CEST] <azarus> maybe wrong cmdlind options.
[22:47:21 CEST] <BtbN> slow proc, that has vp8 hw encoding?
[22:47:35 CEST] <azarus> Well... Was doing it on a different proc before.
[22:48:12 CEST] <azarus> Once on a i7-2600 and once on a Core 2 Duo P8600.
[22:48:21 CEST] <azarus> Now I'll try on a CPU with hw encode.
[22:48:33 CEST] <BtbN> that i7 should be more than capable
[22:49:05 CEST] <azarus> Ehh, still too slow. It was about 2x as fast than the P8600 though.
[22:49:13 CEST] <azarus> faster*
[23:00:43 CEST] <alexpigment> BtbN: I don't suppose you have any interest in looking into why NVENC interlacing is broken, right?
[23:00:54 CEST] <alexpigment> I know there's another developer who tackles all the hardcore NVENC stuff
[23:01:24 CEST] <BtbN> It's 11pm. I don't have much interest to look into anything at the moment.
[23:01:33 CEST] <BtbN> But I'll definitely look at it
[23:01:51 CEST] <alexpigment> That's fine. You asked about it earlier, so I didn't know if that meant you were interested
[23:02:15 CEST] <alexpigment> Anyway, do you thing. I do appreciate all your help, even if we disagree about a few specifics :)
[23:02:19 CEST] <alexpigment> *do your thing, rather
[23:31:09 CEST] <BtbN> jkqxz, could you test if that patch fixes the crashing? I'm fairly confident it does, but don't want to push it untested. And I don't have any machines without nvidia GPUs
[23:34:55 CEST] <jkqxz> ? The one I sent to the ML earlier works for me.
[23:35:12 CEST] <jkqxz> Or do you mean something else?
[23:47:20 CEST] <alexpigment> so I tried to patch h264_nvenc so that it accepts -level 52 as a valid parameter
[23:47:56 CEST] <alexpigment> but now that I do that, ffmpeg crashes and I get an error that says "Value 52.000000 for paramter 'level' out of range [0 - 51]"
[23:48:22 CEST] <alexpigment> are the valid parameters defined outside of nvenc_h264.c?
[23:49:28 CEST] <alexpigment> nvEncodeAPI.h shows NV_ENC_LEVEL_H264_52 as being an option
[23:49:39 CEST] <alexpigment> I figured I could just add that option to nvenc_h264.c as well
[23:50:07 CEST] <jkqxz> There is an upper bound in the "level" parameter as well as needing to add the 5.2 value at the end of the list.
[23:50:58 CEST] <jkqxz> Third to last element in the initialiser on the line <http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/nvenc_h264.c;h=5f…>.
[23:51:27 CEST] <alexpigment> yeah, I just added a line after 70
[23:52:00 CEST] <alexpigment> with 5.2 at the beginning instead of 5.1, then I changed the NV_ENC_LEVEL_H264_52 at the end
[23:52:02 CEST] <kepstin> alexpigment: you have to update the max on line 47 as well
[23:52:22 CEST] <alexpigment> ahhh
[23:52:25 CEST] <alexpigment> good eye kepstin
[23:52:27 CEST] <alexpigment> I didn't see that one
[23:53:18 CEST] <alexpigment> Seems weird that it's falsely limited to 5.1, but oh well
[23:53:51 CEST] <kepstin> probably 5.2 was added later and nobody got around to updating it. Once you've done the patch, consider submitting it?
[23:54:20 CEST] <alexpigment> I'll have to familiarize myself with the process, but sure
[23:55:25 CEST] <kepstin> I suppose there isn't usually any reason to set the level to the max supported, of course, since usually the only thing setting level does is apply additional limits
[23:56:02 CEST] <alexpigment> it's a completely fair point. I'm only really doing this because it currently gives a fatal error
[23:56:22 CEST] <alexpigment> sure, no need to do it, but you can't error out on something the encoder supports (and will automatically assign in the right scenarios)
[23:57:48 CEST] <kepstin> i dunno how exactly the nvenc coded works, but with x264 if you set a level that's higher than actually needed, it'll ignore it and save the real, lower level in the file.
[23:58:01 CEST] <alexpigment> yeah, that sounds about right
[23:58:05 CEST] <kepstin> in the file metadata
[23:58:16 CEST] <kepstin> or stream metadata or whatever
[23:58:49 CEST] <alexpigment> the nvenc thing is just like [encoding parameters + -level 52] = fatal error. [encoding parameters without -level 52] = no error, ends up setting level to 5.2 anyway
[23:59:20 CEST] <alexpigment> kepstin: actually, now that I think of it, I think x264 lets you set dumb levels regardless of the need to do so
[00:00:00 CEST] --- Thu Aug 31 2017
1
0
[00:05:33 CEST] <gh0st__> Huh, is that serious, the korean missile launch?
[00:06:41 CEST] <nevcairiel> serious as in it happened? yes, apparently. serious as in will it have consequences? We shall see.
[00:08:21 CEST] <gh0st__> nevcairiel: I am a little terrified now.
[00:09:05 CEST] <nevcairiel> i'm just somewhat happy to live outside of their range
[00:09:37 CEST] <kierank> i am happy we have an independent nuclear deterrent
[00:10:14 CEST] <gh0st__> I live in siberia and I am not sure if that is outside of their range, probably not.
[00:10:30 CEST] <kierank> wow siberia
[00:10:33 CEST] <nevcairiel> as if deterrents stop people like NK
[00:10:48 CEST] <gh0st__> yep
[00:13:38 CEST] <gh0st__> Well, our television is not broadcasting about the north korean missile launches.
[00:16:46 CEST] <gh0st__> I am thinking that if north korea launched nuclear missiles, consequences shall see all of the world.
[00:17:32 CEST] <nevcairiel> it was probably another test without a warhead
[00:17:49 CEST] <nevcairiel> but still quite taunting to have it fly over japan
[00:21:37 CEST] <BBB> as for swr vs. avr, swr is faster (I wrote the assembly for the pieces that I know to be faster)
[00:22:17 CEST] <BBB> I agree that the lack of public review for large components like that is troubling, and a mere manifestation of a much bigger problem
[00:24:56 CEST] <atomnuker> all patches to swr I've seen in my time have been on the ML
[00:25:18 CEST] <jamrial_> he's talking about how it landed
[00:25:35 CEST] <jamrial_> every api change after the first commit made it to the ml
[00:25:48 CEST] <jamrial_> it's old history anyway
[00:25:53 CEST] <BBB> thats true
[00:26:25 CEST] <BBB> anyway, I dont care about swr, it works for stuff I need it to do, I wrote some simd for it, I believe its significantly faster than avr for the same tasks
[00:26:29 CEST] <BBB> so & next?
[00:26:48 CEST] <BBB> I would mind more if it were video-related, where I have actual opinions about how it should work because I know something about it :-p
[00:27:14 CEST] <nevcairiel> you should write us a new sws!
[00:27:34 CEST] <kierank> I still need to get my field caption patch in
[00:27:39 CEST] <kierank> maybe we can discuss at vdd
[00:28:03 CEST] <gh0st__> What's sws?
[00:28:16 CEST] <nevcairiel> swscale
[00:29:14 CEST] <gh0st__> thanks!
[00:33:42 CEST] <gh0st__> Also, vdd is a conference where all the guru of multimedia technologies gather to discuss the vector of the development of new technologies in multimedia?
[00:34:22 CEST] <kierank> videolan.org/videolan/events/vdd17/
[00:37:03 CEST] <Compn> gh0st__ : open source multimedia projects gather to discuss
[00:37:37 CEST] <atomnuker> still no schedule, wiki page for it was deleted 3 weeks ago :/
[00:37:48 CEST] <gh0st__> Wow, this is interesting.
[00:38:35 CEST] <kierank> atomnuker: it's august in frane
[00:38:42 CEST] <kierank> france
[00:39:50 CEST] <atomnuker> yeah, they should enjoy it
[00:40:09 CEST] <gh0st__> What do usually open source multimedia projects discuss?
[00:40:28 CEST] <atomnuker> codecs
[00:40:46 CEST] <atomnuker> though its mostly containers and streams outside of vdd
[00:41:37 CEST] <gh0st__> What about "ground-breaking" stuff?
[00:43:23 CEST] <atomnuker> those would be codecs
[00:45:23 CEST] <gh0st__> Woah, I'd like to hear where codecs strive to.
[00:48:36 CEST] <kierank> gh0st__: you should register
[00:49:39 CEST] <atomnuker> its 4 days after the deadline to get sponsored though :/
[00:53:54 CEST] <gh0st__> Kierank: heh, I really have consider to attend this kind of conference, since it's going to be really fun =)
[00:55:16 CEST] <atomnuker> I think you need a visa to visit the EU, right?
[00:55:40 CEST] <gh0st__> atomnuker: yes, you are right.
[00:56:03 CEST] <kierank> seems so
[00:57:03 CEST] <gh0st__> That's a sad thing, not sure if I will get when the conference starts.
[00:57:58 CEST] <gh0st__> Too much bureaucracy.
[00:59:57 CEST] <durandal_1707> vdd is for old folks waiting death
[01:02:39 CEST] <gh0st__> durandal_1707: new blood is always needed to drive this codec world somewhere, right?
[01:03:28 CEST] <BBB> nevcairiel: believe it or not, I had a design for a new sws (I called it avs :-p these were very old times) a long time ago
[01:03:34 CEST] <BBB> nevcairiel: I may still have it somewhere on my hd
[01:03:56 CEST] <BBB> nevcairiel: but in the end I decided I didnt care enough, after all I use gl for scaling to display, who needs a software scaler anyway
[01:04:29 CEST] <BBB> gh0st__: yes, were were all new blood at some point ;)
[01:04:38 CEST] <BBB> gh0st__: and I agree, you should try to join
[01:04:55 CEST] <durandal_1707> gh0st__: vdd is not relevant, multimedia is not relevant anymore
[01:05:08 CEST] <BBB> so doomsday, dudio
[01:05:13 CEST] <BBB> lighten up
[01:05:43 CEST] <gh0st__> durandal_1707: why so?
[01:06:20 CEST] <BBB> hes just trolling, ignore it
[01:06:21 CEST] <atomnuker> gh0st__: all development happens on the internet mostly nowadays
[01:06:30 CEST] <atomnuker> this is just for presenting
[01:07:13 CEST] <durandal_1707> why vdd must be in france?
[01:07:55 CEST] <atomnuker> 2015's venue was nice and they had nice breakfast and they served pizzas on the last day and there were pizzas leftover for everyone
[01:08:27 CEST] <gh0st__> durandal_1707: I am not qualified enough to answer this, but why not?
[01:09:09 CEST] <durandal_1707> gh0st__: multimedia is dead mostly because nothing big new comes around
[01:09:14 CEST] <kierank> durandal_1707: you're in eu, what's the issuse
[01:09:26 CEST] <kierank> durandal_1707: what big do you want
[01:09:37 CEST] <durandal_1707> vdd is vlc folks and some lost souls
[01:10:22 CEST] <durandal_1707> kierank: i dont like travel
[01:10:30 CEST] <atomnuker> take the train then
[01:10:38 CEST] <atomnuker> everyone likes train travel
[01:11:04 CEST] <atomnuker> if you can get a train to switzerland somewhere you could take a tgv to paris
[01:11:47 CEST] <durandal_1707> my mommy doesnt allow me to be outside after 22h
[01:12:40 CEST] <durandal_1707> so i prefer teleportation
[01:12:44 CEST] <atomnuker> you can go out at 0:00 and take a sleeper train
[01:12:50 CEST] <atomnuker> 0:00 > 22:00 so you win
[01:12:58 CEST] <durandal_1707> until then
[01:13:07 CEST] <gh0st__> durandal_1707: I think there are left some BIG ideas around multimedia, that's what I am interested in.
[01:13:09 CEST] <atomnuker> erm 22:00 < 0:00 so its before
[01:13:53 CEST] <atomnuker> gh0st__: sure, av1 has big ideas (and daala is still the future imo)
[01:14:04 CEST] <durandal_1707> gh0st__: yea like fractals in video coding
[01:14:47 CEST] <durandal_1707> i need to finish clearvideo decoder
[01:14:49 CEST] <TD-Linux> I'll be talking about the worst AV1 encoder ever (and no it's not libaom)
[01:14:56 CEST] <durandal_1707> and atrac9
[01:15:09 CEST] <atomnuker> if you can think of a forward and reverse 2d transforms to get into a fractal domain you can use fractals
[01:15:28 CEST] <atomnuker> (don't tell this to google)
[01:16:02 CEST] <gh0st__> durandal_1707: I am rookie in multimedia world, but I think there a lot of great ideas unexplored.
[01:16:14 CEST] <BBB> durandal_1707: if you need your mommys permission to go to stuff, then maybe you shouldnt attend indeed...
[01:16:28 CEST] <BBB> anyway
[01:16:35 CEST] <BBB> TD-Linux: wait, theres more than one AV1 encoder?
[01:16:41 CEST] <TD-Linux> on an entirely serious note: fractal compression is dead http://www.geoffdavis.net/papers/ieee.pdf
[01:17:59 CEST] <TD-Linux> BBB, there is one on my hard drive. my goal is to beat prores by VDD :^)
[01:18:11 CEST] <BBB> can you guys start merging experiments in libaom so I know whats in and out?
[01:18:21 CEST] <BBB> right now I cant write a serious encoder because everything is an experimental flag
[01:18:31 CEST] <TD-Linux> yes, said encoder only hits a git snapshot
[01:18:39 CEST] <BBB> thats ok
[01:18:52 CEST] <BBB> but I need to know what features to approximately target for the final version
[01:19:00 CEST] <BBB> but even features very likely to get in are experiments
[01:19:03 CEST] <BBB> and so are things already rejected
[01:19:10 CEST] <BBB> that list seriously needs some cleaning up (or documenting)
[01:19:17 CEST] <TD-Linux> the default configuration is your best bet right now, but yes it does
[01:19:18 CEST] <BBB> too many experiments"
[01:20:03 CEST] <BBB> and may I also recommend someone not a daily dev doing some sort of bitstream analysis to find problems like the duplicate delta q coding etc?
[01:20:10 CEST] <BBB> I really dont think thats very professional
[01:20:54 CEST] <atomnuker> the secondary delta-q coding is even more useless now
[01:21:00 CEST] <atomnuker> because 128x128 superblocks
[01:21:02 CEST] <TD-Linux> well at least that problem is known
[01:21:18 CEST] <BBB> o o 128x128 SBs? finally
[01:21:28 CEST] <BBB> thats nice, I was hoping you guys would add that
[01:21:32 CEST] <BBB> are there 128x128 transforms?
[01:21:36 CEST] <atomnuker> nope
[01:21:41 CEST] <BBB> probably for the better
[01:21:44 CEST] <TD-Linux> only 32x32 enabled right now
[01:21:48 CEST] <atomnuker> not even 64x64 yet
[01:21:52 CEST] <BBB> 64x64 would be nice
[01:21:56 CEST] <atomnuker> (and I really want 64x64)
[01:22:05 CEST] <TD-Linux> we would like 64x64, but they will likely have coefficients dropped (like daala does)
[01:22:14 CEST] <durandal_1707> no groundbreaking news
[01:22:56 CEST] <atomnuker> TD-Linux: the new coefficient coding schemes might make full 64x64 transforms work better
[01:23:19 CEST] <atomnuker> so there might not be a need to drop coeffs
[01:23:34 CEST] <BBB> why drop coeffs?
[01:23:46 CEST] <TD-Linux> well the reason to drop coeffs is mostly to drop a portion of the transform
[01:23:59 CEST] <BBB> I understand what it does
[01:24:01 CEST] <BBB> but why do that?
[01:24:05 CEST] <BBB> for hw?
[01:24:10 CEST] <TD-Linux> it makes software faster too.
[01:24:29 CEST] <gh0st__> durandal_1707: I'd love to speak about groundbreaking stuff
[01:24:30 CEST] <BBB> only in theory; in practice most coefficients beyond the first few are zero (quantized) anyway
[01:24:30 CEST] <TD-Linux> atomnuker, a different coding scheme probably doesn't too much. coding an EOB sooner isn't very expensive
[01:24:54 CEST] <BBB> what scenario are you worried about
[01:24:55 CEST] <durandal_1707> gh0st__: first invent some
[01:25:00 CEST] <TD-Linux> BBB, right, I guess on the decoder I guess you could pick between transform impls based on coeff values.
[01:25:10 CEST] <BBB> you worry about the 6000th coefficient being 1 after quantization?
[01:25:19 CEST] <BBB> right
[01:25:23 CEST] <BBB> the decoder really isnt an issue here
[01:25:31 CEST] <BBB> I think youre worried about lines of code in the fwd transform
[01:25:34 CEST] <BBB> which is a fair transform
[01:25:36 CEST] <atomnuker> TD-Linux: well if its optional (e.g. EOB) then it'll be great, lets encoders pick what they'd like to do in case they think its better
[01:25:50 CEST] <TD-Linux> BBB, conversely, if it's not going to happen, why support it? :)
[01:25:50 CEST] <BBB> but I thought you guys had transforms that were modeled after each other (i.e. the bigger calls the smaller)
[01:26:10 CEST] <BBB> TD-Linux: its _unlikely_ to happen; it may, though
[01:26:12 CEST] <atomnuker> yes, they're now an experiment
[01:26:15 CEST] <atomnuker> and they're awesome
[01:26:23 CEST] <BBB> and I love _love_ ___LOVE___ writing simd for these kind of things
[01:26:34 CEST] <BBB> takes forever, but thats where you get actual speed gains
[01:26:51 CEST] <BBB> (dont forget ffvp9 is 30% faster in practice, not in theory, and this is part of why)
[01:27:10 CEST] <atomnuker> transform simd is the best
[01:27:16 CEST] <BBB> Im willing to bet a bottle of wine that ffaom can be made faster then libaom also
[01:27:20 CEST] <durandal_1707> then do same to ffhevc
[01:27:23 CEST] <gh0st__> durandal_1707: What would one recommend to learn/study to better understand codecs? My guesses are: linear algebra, mathematics in general.
[01:27:37 CEST] <BBB> durandal_1707: why you just said its dead :-p
[01:27:48 CEST] <atomnuker> gh0st__: practice, and read a few code bases, math doesn't help you much at all
[01:27:48 CEST] <BBB> durandal_1707: Im not contributing to dead technology
[01:28:18 CEST] <TD-Linux> BBB, you'd be hard pressed to find someone to make that bet with :)
[01:28:25 CEST] <durandal_1707> gh0st__: math is abstraction of ideas
[01:29:09 CEST] <BBB> hm ok
[01:29:47 CEST] <BBB> has the bit coder been decided?
[01:29:54 CEST] <BBB> (the arithmetic coding)
[01:30:02 CEST] <TD-Linux> yes, it's the one in the tree
[01:30:09 CEST] <BBB> and that won change anymore?
[01:30:10 CEST] <durandal_1707> why is ffhevc dead? folks still use it for whatever reason
[01:30:23 CEST] <TD-Linux> BBB, nope
[01:30:53 CEST] <BBB> TD-Linux: is it rANS? or something else?
[01:31:00 CEST] <TD-Linux> BBB, it's daala's range coder
[01:31:22 CEST] <BBB> how does adaptivity work?
[01:31:36 CEST] <BBB> is it integrated like cabac or is it external? and if external, how often and based on what?
[01:31:41 CEST] <TD-Linux> it adapts per symbol as well as propagating probs per frame
[01:31:54 CEST] <BBB> fw update?
[01:32:00 CEST] <durandal_1707> why not take that coder and make faster than ffv1 codec at same compression ratio?
[01:32:13 CEST] <TD-Linux> no compressed header
[01:32:23 CEST] <BBB> right, thats fw
[01:32:30 CEST] <TD-Linux> yeah I forget which is which
[01:32:30 CEST] <BBB> bw is replaced by per-symbol update
[01:32:39 CEST] <BBB> and thats maintained between frames right?
[01:32:42 CEST] <TD-Linux> yes
[01:32:46 CEST] <BBB> good, good
[01:32:49 CEST] <BBB> ok, I can start with that
[01:32:51 CEST] <BBB> cool
[01:32:51 CEST] <TD-Linux> all tile CDFs are merged at the end of the frame
[01:32:56 CEST] <TD-Linux> for the bw update
[01:33:18 CEST] <BBB> average?
[01:34:23 CEST] <BBB> and so base block size is 128x128& thats easy also. and I guess from there on its just recursive partitioning except the partition choices are larger than in vp9
[01:35:11 CEST] <cone-927> ffmpeg 03Carl Eugen Hoyos 07master:d4fbe99dabe7: lavf/dump: Remove superfluous cast.
[01:35:13 CEST] <gh0st__> atomnuker: durandal_1707: Hm, I thought in writing any serious codec math is in first place(most likely linear algebra(transformations and etc.)) for analysis, design, etc.
[01:36:07 CEST] <durandal_1707> gh0st__: it is for deep understanding
[01:36:12 CEST] <TD-Linux> BBB, yes
[01:36:31 CEST] <TD-Linux> see aom_cdf_adapt_q15 for the per symbol
[01:36:50 CEST] <TD-Linux> we don't have a SIMD implementation for that but you should be able to make something nice
[01:37:52 CEST] <durandal_1707> on CPU it takes ages to encode video with those modern codecs
[01:38:57 CEST] <durandal_1707> gh0st__: start with lossless intra only and than upgrade with more stuff
[01:41:21 CEST] <BBB> TD-Linux: hehe, dont worry, I like figuring simd things out myself ;)
[01:42:54 CEST] <durandal_1707> modern codecs should be simdable a lot and also use all cores power
[01:50:48 CEST] <gh0st__> durandal_1707: I agree, because that's about where the progress seems to gravitate to: more cores, bigger SIMD registers.
[02:29:02 CEST] <cone-927> ffmpeg 03James Almer 07master:95a6de5674ab: avcodec/snowenc: fix setting motion_est option
[03:18:28 CEST] <atomnuker> kierank: its no wonder all of france goes on holiday to the riviera, have you seen tgv prices?
[03:18:41 CEST] <atomnuker> 150 euros for a return trip from paris to nice
[03:18:52 CEST] <atomnuker> 175 in total if you make one of the trips first class
[03:19:33 CEST] <atomnuker> this is obscene, eurostar trains aren't that cheap
[03:22:44 CEST] <atomnuker> eurostar for today and return in 5 days is 250 pounds
[03:23:50 CEST] <atomnuker> granted, the pound isn't very strong compared to the euro (barely 1.08 atm) but still
[03:25:17 CEST] <atomnuker> goes to show the value of state ownership
[04:32:24 CEST] <peloverde> Where is late arriving out of band extradata supposed to be forwarded to the codec with the codecpar API?
[04:33:17 CEST] <atomnuker> peloverde: btw feel free to push the aac 960 patch, you're still the maintainer of the code
[04:33:22 CEST] <atomnuker> just put me as an author too
[04:33:49 CEST] <atomnuker> I wrote some code, gave it to durandal_1707, he wrote some code and then gave it to you :)
[04:38:26 CEST] <peloverde> I pushed both patches with the author update
[04:39:40 CEST] <atomnuker> huh, I guess I didn't pay attention then
[04:42:45 CEST] <jamrial_> peloverde: as packet side data type "new extradata" i think
[04:48:14 CEST] <rcombs> ^ this
[04:51:01 CEST] <peloverde> jamrial_: That happens for subsequent extradata, but the first extradata gets written straight to codecpar (at least for FLV)
[04:52:15 CEST] <jamrial_> you said late arriving, which means long after the header is read, right? so for that you just append it as side data in the packet you send to the decoder
[04:53:17 CEST] <peloverde> That's not what this demuxer is doing, maybe that's what ti should be doing? In this case the extradata occurs during the find_stream_info window
[04:56:32 CEST] <peloverde> In this particular case the extradata occurs directly after the 1st frame
[05:04:03 CEST] <jamrial_> mmh, flvdec.c is probably doing things wrong. codecpar->extradata is supposed to be filled during read_header(), and anything that shows up in a packet must be propagated as side data
[05:05:47 CEST] <jamrial_> is this h264 in flv? h264dec seems to work fine if extradata is not set during init(). it will use any extradata sent as side data afterwards
[05:07:47 CEST] <peloverde> aac in flv
[05:08:10 CEST] <peloverde> some ticket about a regression
[05:08:22 CEST] <peloverde> gotta go, i'll finish this later
[05:11:33 CEST] <jamrial_> peloverde: apparently should also be good
[05:11:35 CEST] <jamrial_> flvdec needs to be updated to just send everything as side data if it can't be set during read_header()
[05:52:54 CEST] <stevenliu> Not only flvdec hls.c need also when DISCONTINUITY
[06:52:24 CEST] <jamrial_> peloverde: actually, the code that reads new extradata in aacdec is disabled for some reason, so it's never looking at it
[06:54:08 CEST] <jamrial_> after enabling it and making flvdec send every extradata as side data the file decodes (with some errors at the beginning, maybe a first frame before extradata is propagated)
[08:42:46 CEST] <nevcairiel> maybe some smart code would be useful that actually updates codecpar if during find_stream_info there is a new extradata message and extradata is otherwise empty
[11:05:26 CEST] <Compn> hmm
[11:05:29 CEST] <Compn> alibaba security team
[11:05:31 CEST] <Compn> thats neat
[11:05:41 CEST] <Compn> gotta secure incoming video
[11:06:12 CEST] <Compn> since they are fixing dos, i wonder if that means google video has a better way to abort DoS fuzzes
[11:06:44 CEST] <nevcairiel> if such a dos affects you, then your whole setup aint very good
[11:06:54 CEST] <Compn> right
[11:07:14 CEST] <nevcairiel> sandbox the thing and just kill it if it doesnt finish
[11:07:37 CEST] Action: Compn should buy some BABA stock
[11:07:50 CEST] <Compn> amazon needs to get video in its products page
[11:13:16 CEST] <Compn> still its nice that alibaba sends patches
[11:13:22 CEST] <Compn> :)
[11:59:32 CEST] <jkqxz> wm4: V4L2 hwcontext is made somewhat tricky by the userptr stuff. The ability to point to random places in host-virtual-memory is probably wanted (though I do wonder whether drivers will just copy it anyway), and doesn't fit in how it currently works.
[12:00:01 CEST] <jkqxz> If it was only V4L2_MEMORY_DMABUF (i.e. DRM fds) then it would be easy.
[12:00:34 CEST] <wm4> *shrug*
[12:05:26 CEST] <jkqxz> I think it's still possible with slightly more mapping than perhaps hoped. E.g. an encoder taking an mmap context as input has to make a userptr context and map to it rather than being able to use the mmap one directly.
[12:06:14 CEST] <jkqxz> But I'm not sure I want to argue for it.
[12:06:28 CEST] <jkqxz> Do we know if there is any other hardware this works on beyond the qualcomm things?
[12:06:51 CEST] <rcombs> people keep telling me it's the future, but I dunno who else is working on implementing it either
[12:08:44 CEST] <jkqxz> Maybe I can just buy one of the dragonboards.
[12:08:53 CEST] <wbs> jkqxz: samsung has got v4l2 m2m drivers for some of their exynos chips
[12:09:02 CEST] <wbs> but they've got tiled pixelformats and other crazy things
[12:09:20 CEST] <wbs> (the same patchset was proposed a few years ago, including adding libavutil pixformats for the samsung tiled format)
[12:10:36 CEST] <jkqxz> Tiling is fine in hwcontext land, because it hides that sort of thing unless you really want to map it. (Another argument for it...)
[12:20:00 CEST] <jkqxz> Anyone have an Odroid XU4? That seems to be the obvious way to get a Exynos.
[12:20:40 CEST] <jkqxz> The Qualcomm stuff isn't obviously sold in this country at all.
[12:22:34 CEST] <wbs> jkqxz: I've got one of the dragonboards, and I ordered it from arrow. it was a bit of a hassle back then (it wasn't really ready for shipping when I ordered it), but hopefully it goes smoother now
[12:28:56 CEST] <RiCON> BtbN: can you confirm that nppi.lib is missing from cuda sdk 9 RC?
[13:08:03 CEST] <BtbN> RiCON, it very much looks like it so far
[13:08:41 CEST] <RiCON> no mention of it being deprecated/obsolete in the release notes
[13:09:00 CEST] <BtbN> it's just renamed/split or something
[13:09:05 CEST] <BtbN> there's nppif and nppif now
[13:09:11 CEST] <BtbN> nppig
[16:30:18 CEST] <wm4> kierank: lol that MXF thing
[16:34:21 CEST] <kierank> wm4: it's argument you won't win
[16:35:16 CEST] <kierank> it's an argument I had years ago about ts, I was called names and then I went and did my own thing
[16:35:16 CEST] <rcombs> what, 6518?
[16:44:01 CEST] <thardin> oh yeah, mxf. I tried to suggest switching to libmxf for sanity
[16:45:34 CEST] <thardin> no dice
[16:46:03 CEST] <thardin> or that other library. bmx or whatever
[17:00:36 CEST] <JEEB> sounds like a sound alternative since those projects most likely care about those formata
[17:03:40 CEST] <cone-851> ffmpeg 03Nicolas George 07master:6bde475cf2f9: lavfi/f_streamselect: convert to framesync2.
[17:03:41 CEST] <cone-851> ffmpeg 03Nicolas George 07master:0ae8df4109da: lavfi/framesync2: add dualinput helper functions.
[17:03:42 CEST] <cone-851> ffmpeg 03Nicolas George 07master:19804024d5b2: lavfi/vf_overlay: move to framesync2.
[17:03:43 CEST] <cone-851> ffmpeg 03Nicolas George 07master:f8d7b5febba0: lavfi: add a preinit callback to filters.
[17:03:44 CEST] <cone-851> ffmpeg 03Nicolas George 07master:dfa3aaa22a2b: lavfi: search options on child objects.
[17:03:45 CEST] <cone-851> ffmpeg 03Nicolas George 07master:05a23b256584: lavfi/framesync2: add common options.
[17:03:45 CEST] <cone-851> ffmpeg 03Nicolas George 07master:878fd0545a93: lavfi/vf_overlay: use framesync2 options.
[17:03:47 CEST] <cone-851> ffmpeg 03Nicolas George 07master:c1d8d33a51e3: lavfi/vf_blend: convert to framesync2.
[17:03:48 CEST] <cone-851> ffmpeg 03Nicolas George 07master:a8ab52fae728: lavfi/vf_libvmaf: convert to framesync2.
[17:03:49 CEST] <cone-851> ffmpeg 03Nicolas George 07master:eacb3ec96103: lavfi/vf_lut3d: convert to framesync2.
[17:03:50 CEST] <cone-851> ffmpeg 03Nicolas George 07master:23000c3de594: lavfi/vf_paletteuse: convert to framesync2.
[17:03:51 CEST] <cone-851> ffmpeg 03Nicolas George 07master:3bd11df45986: lavfi/vf_psnr: convert to framesync2.
[17:03:52 CEST] <cone-851> ffmpeg 03Nicolas George 07master:ef2176473d3d: vf_ssim: convert to framesync2.
[17:03:53 CEST] <cone-851> ffmpeg 03Nicolas George 07master:607900c905c4: lavfi: remove dualinput.
[17:03:54 CEST] <cone-851> ffmpeg 03Nicolas George 07master:844bc0d89e1d: doc/filters: document framesync options.
[17:03:55 CEST] <cone-851> ffmpeg 03Nicolas George 07master:7302d5e32597: lavfi: bump minor version after change in options.
[17:04:07 CEST] <durandal_1707> no commrnts for my despill filter?
[17:05:28 CEST] <BtbN> I just wonder if it'd make sense to combine it with the other keying filters
[17:05:54 CEST] <BtbN> but I guess it can be useful on its own. Just seems slightly less efficient, as it means iterating all pixels again
[17:58:37 CEST] <tdjones> atomnuker: Have you had a chance to look at my patches? Are there any changes that need to be made in order to merge?
[19:06:30 CEST] <peloverde> nevcairiel: jamrial If the stream uses a codec that supports extract_extradata then find_stream_info side data is promoted to primary extradata if none is present. It seems like this behavior should be extended to non extract_extradata codecs.
[19:09:34 CEST] <jamrial> peloverde: yeah, tried that and it seems to work
[19:10:41 CEST] <jamrial> peloverde: something like https://pastebin.com/euRdmErk
[19:17:40 CEST] <peloverde> I think that approach means we will eat a non-find-stream-info late extradata
[19:18:36 CEST] <jamrial> what do you mean? that's inside find_stream_info
[19:18:59 CEST] <peloverde> yes, but the demuxer is still setting the first extradata straight to codecpar
[19:19:20 CEST] <peloverde> the demuxer should always create a side data for non header extradata was my understanding from last night
[19:19:40 CEST] <peloverde> then the side data extradata should be promoted, not the codecpar extradata
[19:23:17 CEST] <jamrial> flvdec seems to set AVFMTCTX_NOHEADER, which means no header is present and streams are added dinamically as probe packets are read. that i assume, would include the first extradata into codecpar
[19:25:07 CEST] <jamrial> the extradata doesn't show up until like the fifth packet it seems, at which point find_stream_info already copied stuff into st->internal->avctx from codecpar. new stuff added to codecpar after that point even by AVFMTCTX_NOHEADER demuxers is apparently ignored
[19:25:19 CEST] <peloverde> So what is supposed to happen for late first extradata past the end of find_stream_info? Is it a case of if you've mad it this far you probably are okay without it?
[19:26:04 CEST] <jamrial> if it's outside of the find_stream_info probe window then the stream will not be readable and it will ask you to increase probe size, i guess
[19:26:18 CEST] <jamrial> or just fail like it's doing right now
[19:27:11 CEST] <peloverde> There are some codecs that take optional extradata.
[19:27:38 CEST] <jamrial> yeah, aac is supposedly one of them
[19:27:59 CEST] <peloverde> If the decoder inits successfully with the default config, then you get new extradata later it kind of seems like it should be forwarded and not eaten
[19:28:02 CEST] <jamrial> but the code to read extradata in packet side data is disabled for some reason
[19:29:47 CEST] <peloverde> Is there any documentation of the expectations of when demuxers can and can't fill codecpar?
[19:30:13 CEST] <jamrial> avcodec.h, if at all
[19:30:42 CEST] <wm4> for some self-contained codecs you can decode with basically an empty codecpar
[19:30:43 CEST] <jamrial> but afaics, codecpar is filled in read_header() only, unless AVFMTCTX_NOHEADER is set
[19:31:15 CEST] <wm4> find_stream_info is more a separate feature that enables ffprobe and some bad software to know redundant codec parameters before decoding
[19:31:45 CEST] <jamrial> within packets, if you need new extradata you use packet side data type "new extrada", and if you need to change stream parameters you use packet side data type "Data param change"
[19:31:59 CEST] <jamrial> but you don't modify codecpar
[19:32:08 CEST] <jamrial> since that will not be propagated to the decoder
[19:32:18 CEST] <peloverde> Right now I only care about AVFMTCTX_NOHEADER formats
[19:32:35 CEST] <jamrial> in that case, you should probably be able to change codecpar fields
[19:32:40 CEST] <jamrial> flvdec seems to do it after all
[19:32:57 CEST] <jamrial> but find_stream_info might not be handling things right
[19:33:47 CEST] <peloverde> jamrial: "you should probably be able to change codecpar fields" Up until what point? The end of the stream
[19:33:58 CEST] <peloverde> I feel like we're going around in circles here
[19:34:49 CEST] <nevcairiel> you cant change codecpar after it has been created and returned to the caller once
[19:35:06 CEST] <nevcairiel> there is a few exceptions to that, but lets stick with that =p
[19:35:17 CEST] <peloverde> nevcairiel: okay, that makes sense to me
[19:37:28 CEST] <jamrial> peloverde: that's why i said find_stream_info might not be handling things right. it copies the contents of codecpar to the internal avctx struct in AVStream once then never again, even for AVFMTCTX_NOHEADER formats that are supposed to dig deeper for new streams and stream info
[19:38:16 CEST] <nevcairiel> there is a flag things can set if they update the codecpar for whatever reason
[19:38:20 CEST] <nevcairiel> mpegts uses it
[19:38:31 CEST] <nevcairiel> but most things s hould just create the stream only when they know the info
[19:42:48 CEST] <jamrial> nevcairiel: need_context_update?
[19:46:27 CEST] <peloverde> hah, it works
[19:49:04 CEST] <jamrial> what does?
[19:49:18 CEST] <peloverde> Setting need_context_update
[19:51:11 CEST] <jamrial> nice. pastebin?
[19:52:08 CEST] <peloverde> https://pastebin.com/yJz2FyPw
[19:53:44 CEST] <jamrial> this would also affect h264 streams. do we have any such sample?
[19:55:16 CEST] <peloverde> It seems like it should. The use of IDR frames make things a little weirder.
[19:55:34 CEST] <peloverde> You probably could create a synthetic stream by moving the extradata after the first frame.
[19:56:26 CEST] <jamrial> mmh, the file is reported as mono with this approach
[19:56:49 CEST] <peloverde> It is mono
[19:57:00 CEST] <peloverde> Or does it use PS?
[19:58:04 CEST] <peloverde> you're right, it has stereo
[20:27:24 CEST] <peloverde> it looks like AV_CODEC_CAP_CHANNEL_CONF uses codec_info_nb_frames which doesn't get reset when the context update occurs
[20:50:26 CEST] <peloverde> jamrial: I sent patches for both issues to the list
[21:18:38 CEST] <cone-548> ffmpeg 03Michael Niedermayer 07master:429f3266c14a: avformat/mxfenc: Check that the video codec in D-10 is MPEG-2
[21:18:38 CEST] <cone-548> ffmpeg 03Michael Niedermayer 07master:6def8b8d924a: avcodec/h264idct_template: Fix integer overflow in ff_h264_idct8_add()
[21:18:38 CEST] <cone-548> ffmpeg 03Michael Niedermayer 07master:2a83866c9f95: avcodec/hevc_ps: Fix undefined shift in pcm code
[21:18:38 CEST] <cone-548> ffmpeg 03Michael Niedermayer 07master:732f97645615: avcodec/snowdec: Fix integer overflow in decode_subband_slice_buffered()
[00:00:00 CEST] --- Wed Aug 30 2017
1
0
[01:05:18 CEST] <guides> I got a question regarding ffmpeg and streaming to youtube, currently i'm able to stream a .png and a .mp3 file, but after the .mp3 file is done playing it's done streaming (obviously). Is there a parameter i'm missing to get it to loop forever? i janked together this combination of parameters to get this working, but having trouble finding a way to contiously loop the song without it stopping the stream. command/console output - https:
[03:23:21 CEST] <nicolas17> I want to stabilize and denoise a video
[03:23:26 CEST] <nicolas17> should I first denoise and then stabilize?
[03:23:55 CEST] <nicolas17> and if so, should I use the denoise filter during both vidstabdetect and vidstabtransform steps?
[03:29:46 CEST] <Cracki_> yes, first denoise
[03:29:56 CEST] <Cracki_> noise is relative to the chip, not the video
[03:30:45 CEST] <Cracki_> not sure how ffmpeg's vidstab works... it might be robust to noise
[03:35:17 CEST] <stimple> oh ty, didn't know we had stabilization
[03:35:59 CEST] <nicolas17> I have a script using MLT's videostab2
[03:36:11 CEST] <nicolas17> I'm glad to see ffmpeg supports videostab now
[03:44:34 CEST] <nicolas17> I'm running my old script with melt now
[03:44:40 CEST] <nicolas17> videostab is slow as hell on 1080p
[03:53:42 CEST] <Cracki_> adobe premiere's stabilization isn't terribly fast either
[03:54:16 CEST] <nicolas17> oh I know, this is *inherently* slow
[03:54:24 CEST] <Cracki_> there are papers for decent algorithms that can run quite fast
[03:54:46 CEST] <Cracki_> some are smarter about crunching numbers.
[03:54:51 CEST] <Cracki_> some use the GPU
[03:55:37 CEST] <Cracki_> I've seen realtime digital deshaking in handheld video cameras 20 years ago
[03:56:01 CEST] <Cracki_> i.e. it deshook what it saw, even if the cam was stationary
[03:56:07 CEST] <atomnuker> vf_deshake can use opencl
[03:56:35 CEST] <nicolas17> I have integrated intel GPU on a laptop, I don't think OpenCL will make miracles
[03:58:16 CEST] <Cracki_> don't discount it
[03:58:32 CEST] <Cracki_> especially integrated GPUs have the advantage of direct access to main memory
[03:59:14 CEST] <Cracki_> and compared to the CPU part, they easily have 10x the crunch for single precision
[03:59:41 CEST] <nicolas17> model name : Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz
[03:59:43 CEST] <nicolas17> OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
[04:00:45 CEST] <Cracki_> wikipedia says 332.8 gflops for the intel hd 4000
[04:01:19 CEST] <Cracki_> anyway, depending on algorithm, deshaking could be quite fast.
[04:01:56 CEST] <Cracki_> I'd always go with pyramid schemes and optical flow-like computation
[04:02:27 CEST] <wutsnek> hey peeps i have a question
[04:02:46 CEST] <Cracki_> snek wut :P
[04:03:10 CEST] <wutsnek> im using ffmpeg with an audio stream but ends up crashing after 20~ seconds
[04:03:15 CEST] <wutsnek> [tls @ 0x242f9c0] Error in the pull function. [matroska,webm @ 0x242d340] Read error
[04:03:20 CEST] <wutsnek> with this error
[04:04:28 CEST] <Cracki_> update ffmpeg?
[04:06:03 CEST] <nicolas17> oh, while I wasn't looking MLT finished running the videostab analysis
[04:06:24 CEST] <nicolas17> 7642 1080p frames
[04:21:09 CEST] <Cracki_> watching a tea pot boil
[04:29:34 CEST] <wutsnek> it should be the latest versionhm why is the latest version hosted by ubuntu 2.8.11
[04:29:50 CEST] <nicolas17> what version of ubuntu?
[04:29:50 CEST] <wutsnek> oops ignore the first part
[04:30:19 CEST] <wutsnek> 16.03
[04:30:22 CEST] <wutsnek> 4
[04:30:22 CEST] <wutsnek> *
[04:31:05 CEST] <nicolas17> then you're going to get a version that was somewhat latest back in April 2016
[04:32:05 CEST] <nicolas17> Cracki_:
[04:32:08 CEST] <nicolas17> oops
[04:32:14 CEST] <nicolas17> so what denoiser do you recommend?
[04:32:37 CEST] <Cracki_> whatever looks good :P
[04:32:49 CEST] <Cracki_> depends on the kind of "noise"
[04:33:06 CEST] <furq> try them all out on some samples i guess
[04:33:12 CEST] <nicolas17> iPhone camera on somewhat low light; I don't mind waiting for processing, since I'm going to spend so much CPU time on videostab anyway
[04:33:15 CEST] <furq> hqdn3d is a good general-purpose one which is quite fast
[04:33:17 CEST] <Cracki_> if the video is compressed to smudge, nothing can fix that
[04:33:20 CEST] <furq> nlmeans is also good but slow
[04:33:27 CEST] <furq> unless you use the opencl one in vapoursynth
[04:33:58 CEST] <furq> but yeah ffmpeg has tons of them to test out
[04:33:59 CEST] <Cracki_> be aware that the heavier the denoise, the more likely it is that the video is warped by the denoising
[04:34:40 CEST] <furq> yeah you can sharpen it afterwards but obviously that's fraught with danger
[04:35:00 CEST] <nicolas17> furq: apparently I need unsharp after videostab anyway
[04:37:55 CEST] <furq> it's still generally better to denoise as little as you can
[04:41:10 CEST] <nicolas17> furq: http://nicolas17.s3.amazonaws.com/noise-crop-640x480.mp4
[04:41:28 CEST] <nicolas17> I guess some "light" denoising will be enough
[04:42:12 CEST] <furq> yeah that's not that bad
[04:42:30 CEST] <furq> hqdn3d should do a perfectly good job with that
[04:57:23 CEST] <Cracki> that calls for a temporal denoise
[04:57:44 CEST] <Cracki> not high-frequency enough for spatial denoise to make sense
[05:03:30 CEST] <furq> right
[05:10:13 CEST] <Cracki> never worked with hqdn3d, sounds like the right tool though :P
[05:11:58 CEST] <nicolas17> [AVFilterGraph @ 0x557d8d435460] No such filter: 'vidstabdetect'
[05:12:00 CEST] Action: nicolas17 cries
[05:12:57 CEST] <Cracki> now you'll learn how the sausage is made
[05:13:34 CEST] <nicolas17> Cracki: I wrote my own transcoder with libavcodec/libavformat APIs, I already know too much about the sausage
[05:13:40 CEST] <Cracki> :D
[05:16:44 CEST] <nicolas17> the problem is vidstab is not packaged in debian
[05:16:48 CEST] <nicolas17> where do I get that?
[05:16:59 CEST] <nicolas17> https://github.com/georgmartius/vid.stab is it this one?
[05:18:36 CEST] <furq> nicolas17: https://www.johnvansickle.com/ffmpeg/
[05:18:40 CEST] <furq> there are static builds with vidstab there
[05:41:57 CEST] <nicolas17> built vidstab, now building ffmpeg
[05:46:25 CEST] <mozzarella> guys help
[05:47:22 CEST] <mozzarella> I've got a gigantic (file size) video that is just the raw stream from my cctv camera, how do I shrink it down without losing quality
[05:49:01 CEST] <stimple> you don't
[05:49:20 CEST] <stimple> well you can use huffyuv
[05:50:12 CEST] <c3r1c3-Win> mozzarella: You could try x264 using CRF instead of bitrate as the compressor's main metric.
[05:50:26 CEST] <nicolas17> stimple: even that will technically lose quality if the source is RGB :P
[05:50:42 CEST] <stimple> ok yes
[05:50:58 CEST] <furq> huffyuv does rgg
[05:51:00 CEST] <furq> rgb
[05:51:04 CEST] <c3r1c3-Win> But any form of anything approaching lossless will take up a ton of space, so if you scrafice just a touch of quality you can get the files to much smaller.
[05:51:21 CEST] <c3r1c3-Win> *to a MUCH smaller size.
[05:51:28 CEST] <redrabbit> i beleive he is not looking for lossless
[05:51:30 CEST] <furq> if it's a raw stream from cctv then it's probably already mjpeg or h264 or something
[05:51:47 CEST] <furq> i doubt a cctv camera is putting out raw yuv
[05:51:50 CEST] <redrabbit> he wants little perceived quality difference
[05:51:59 CEST] <mozzarella> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2046 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 60 tbc (default)
[05:52:05 CEST] <furq> right
[05:52:10 CEST] <Cracki> 20 Mbit/s?
[05:52:11 CEST] <furq> also that's not particularly big
[05:52:12 CEST] <Cracki> that's not bad
[05:52:16 CEST] <furq> that's 2mbps
[05:52:17 CEST] <Cracki> 2.0*
[05:52:26 CEST] <Cracki> how "big" is that anyway
[05:52:37 CEST] <nicolas17> 2mbps, I don't think you can go much lower than that without noticeably losing quality... unless there's very very little movement ^^
[05:52:39 CEST] <Cracki> you could drop framerate, set higher keyframe intervals, ...
[05:52:40 CEST] <redrabbit> its going to be hard to compress further without botching it
[05:52:50 CEST] <furq> there will probably be very little movement and it's just a garbage hardware encoder
[05:52:56 CEST] <furq> but there's also a good chance it's noisy as well
[05:52:58 CEST] <mozzarella> 9.7 GB for a 10.5 hours video
[05:52:58 CEST] <furq> hell
[05:53:03 CEST] <Cracki> if it's a security camera pointed at a motionless scene, you can compress it some more
[05:53:08 CEST] <furq> yeah that's not gigantic at all
[05:53:35 CEST] <Cracki> so thats 8 TB/year
[05:53:48 CEST] <Cracki> if you mean to retend that long
[05:53:52 CEST] <nicolas17> I ran my old videostab script and it gave me 1GB for 4 minutes
[05:54:01 CEST] <nicolas17> turns out it was doing huffyuv, I forgot about that :P
[05:54:03 CEST] <mozzarella> I've get videos that are similar in length and they are ~1.5 GB, not sure how I did it
[05:54:16 CEST] <mozzarella> got*
[05:54:21 CEST] <Cracki> play with keyframe interval
[05:54:27 CEST] <nicolas17> [00:50] <c3r1c3-Win> mozzarella: You could try x264 using CRF instead of bitrate as the compressor's main metric.
[05:54:30 CEST] <nicolas17> that's the best place to start
[05:54:32 CEST] <furq> yes, that
[05:54:36 CEST] <Cracki> if nothing moves (see denoising), compression can work on the real content
[05:54:40 CEST] <furq> just encode with x264 defaults and see what happens
[05:54:50 CEST] <furq> -i in.mp4 out.mp4
[05:54:50 CEST] <Cracki> yeah crf, i second that
[05:55:00 CEST] <mozzarella> furq: that would work?
[05:55:03 CEST] <furq> shrug
[05:55:05 CEST] <furq> it depends on the source
[05:55:05 CEST] <Cracki> defaults are pointless. default bitrate is 200 kbit/s
[05:55:08 CEST] <furq> no it isn't
[05:55:14 CEST] <furq> the x264 default is -crf 23
[05:55:14 CEST] <Cracki> oh right, x264 not ffmpeg
[05:55:18 CEST] <furq> with ffmpeg
[05:55:38 CEST] <furq> the global default is 200kbps but codecs can override that individually
[05:55:49 CEST] <furq> the x264 defaults are pretty sensible
[05:55:58 CEST] <furq> preset medium, crf 23
[05:59:43 CEST] <mozzarella> how long is it going to take?
[06:00:57 CEST] <mozzarella> why do I keep getting "Past duration 0.something too large"
[06:02:01 CEST] <nicolas17> the status bar should show 'fps'
[06:02:08 CEST] <nicolas17> that's how many frames it's encoding per second
[06:02:17 CEST] <mozzarella> there's no status bar
[06:02:33 CEST] <nicolas17> I get a line like "frame= 300 fps= 56 q=-0.0 Lsize= 84886kB time=00:00:10.01 bitrate=69462.4kbits/s speed=1.88x" that updates every second
[06:02:52 CEST] <dystopia_> yeah thats in the command window
[06:03:03 CEST] <dystopia_> it would be nice if it was in the status bar though
[06:03:55 CEST] <mozzarella> there's no ETA
[06:03:59 CEST] <mozzarella> or %
[06:04:09 CEST] <nicolas17> you can calculate it from "speed"
[06:04:17 CEST] <dystopia_> you can do the eta maths yourself
[06:04:19 CEST] <dystopia_> yeah
[06:04:21 CEST] <nicolas17> if it says 1x it means a 10-hour video will take 10 hours to encode
[06:04:29 CEST] <mozzarella> oh jesus
[06:04:31 CEST] <Cracki> ?
[06:04:34 CEST] <nicolas17> so what does it say?
[06:04:36 CEST] <Cracki> 1x means 1x speed
[06:04:41 CEST] <mozzarella> 3.11x
[06:04:42 CEST] <Cracki> post the line?
[06:04:52 CEST] <dystopia_> then devide duration by 3.1x
[06:04:57 CEST] <Cracki> so 3 hours
[06:05:06 CEST] <nicolas17> you should encode like
[06:05:06 CEST] <mozzarella> still seems excessive to me
[06:05:07 CEST] <Cracki> 3x isn't so bad. what resolution?
[06:05:08 CEST] <nicolas17> a few minutes of video
[06:05:13 CEST] <nicolas17> to see what the quality is like
[06:05:14 CEST] <furq> lol 69mbps
[06:05:23 CEST] <furq> is the source noisy or blocky by any chance
[06:05:27 CEST] <Cracki> if medium is too slow for you, go try fast/faster/veryfast
[06:05:36 CEST] <nicolas17> furq: my 69mbps is huffyuv :P
[06:05:42 CEST] <furq> oh right
[06:05:42 CEST] <Cracki> you can go higher with the crf too, but check the results
[06:05:43 CEST] <furq> duh
[06:05:48 CEST] <furq> well yeah
[06:05:54 CEST] <furq> mozzarella: make sure it's actually coming in lower than 2mbit
[06:05:56 CEST] <dystopia_> 3.1x is fast heh
[06:05:57 CEST] <furq> otherwise you're wasting your time
[06:05:58 CEST] <Cracki> ah, 69 Mbit/s would have been 4k footage :P
[06:06:08 CEST] <Cracki> (for typical 264 bitrates)
[06:06:13 CEST] <nicolas17> what am I supposed to see with vidstabdetect=show=1?
[06:06:22 CEST] <furq> nah you'll get that with something like noisesrc
[06:06:23 CEST] <mozzarella> frame=21167 fps= 93 q=-1.0 Lsize= 20443kB time=00:11:46.38 bitrate= 237.1kbits/s dup=10 drop=7 speed=3.11x
[06:06:25 CEST] <mozzarella> video:17648kB audio:2411kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.913213%
[06:06:30 CEST] <Cracki> much better
[06:06:31 CEST] <furq> yeah there you go
[06:06:44 CEST] <furq> check it actually still looks good obv
[06:07:01 CEST] <furq> i wouldn't use any preset above faster if you actually want it to compress well
[06:07:12 CEST] <Cracki> ^
[06:07:21 CEST] <mozzarella> I didn't change a thing, that's the output I got initially
[06:07:39 CEST] <furq> right, that's -preset medium
[06:07:44 CEST] <furq> (the default)
[06:07:49 CEST] <Cracki> yes initially it spends bits on a keyframe, and maybe the video moves a bit still.
[06:08:06 CEST] <nicolas17> ohhhh
[06:08:07 CEST] <Cracki> as soon as the video quiets down, bitrate goes down too.
[06:08:14 CEST] <nicolas17> I have to produce a video file with vidstabdetect
[06:08:17 CEST] <Cracki> it'll spend bits on keyframes regularly, I hope
[06:08:18 CEST] <nicolas17> that's where the debugging info is
[06:08:18 CEST] <furq> fwiw if it's a security camera you can try messing with mpdecimate
[06:08:27 CEST] <furq> that'll drop sequential identical frames
[06:08:30 CEST] <furq> !filter mpdecimate
[06:08:30 CEST] <nfobot> furq: http://ffmpeg.org/ffmpeg-filters.html#mpdecimate
[06:08:35 CEST] <Cracki> nice
[06:08:51 CEST] <furq> not sure if the detection is slower than encoding those frames
[06:08:56 CEST] <furq> but it'll definitely make the video smaller
[06:09:22 CEST] <Cracki> mpdecimate drops the whole frame. h264 would compress the differences only in any case.
[06:09:42 CEST] <furq> right, but you'll get fewer IDR frames
[06:09:51 CEST] <Cracki> true
[06:09:57 CEST] <furq> possibly much fewer
[06:10:19 CEST] <Cracki> idr = intra/key?
[06:10:26 CEST] <furq> intra decoder refresh
[06:10:28 CEST] <furq> (yes)
[06:10:29 CEST] <Cracki> ic
[06:10:46 CEST] <furq> or instant decoder refresh, rather
[06:10:58 CEST] <Cracki> subtle differences in meaning, perhaps
[06:11:11 CEST] <furq> that's what you'd think of as a keyframe
[06:11:13 CEST] <Cracki> "An IDR frame is a special kind of I frame used in MPEG-4 AVC encoding. Frames following an IDR frame may not refer back to frames preceding the IDR frame. IDR frames can be used to create AVC streams which are more easily edited "
[06:11:25 CEST] <mozzarella> you guys make me realize I know close to nothing about video encoding
[06:11:41 CEST] <Cracki> I can just google quicker than the average bear
[06:11:48 CEST] <Cracki> s/google/duckduckgo/
[06:12:25 CEST] <Cracki> btw, alternative video platforms: vimeo (traditional), bitchute and dtube.video (p2p tech)
[06:12:25 CEST] <furq> idle in here for long enough and you too will be able to convincingly hold a conversation about video
[06:12:45 CEST] <Cracki> if you zig, you gotta zag too
[06:12:57 CEST] <dystopia_> lol
[06:13:06 CEST] <Cracki> I hear the BBQ transform is the new hype
[06:13:08 CEST] <dystopia_> i love this channel :O
[06:13:34 CEST] <Cracki> the successor to yolo, yolo2, is even better for object recognition
[06:13:58 CEST] <Cracki> ^ not joking
[06:14:16 CEST] <mozzarella> for some reason -preset faster is even slower than medium
[06:14:19 CEST] <nicolas17> what's that anime-oriented scaler?
[06:14:42 CEST] <nicolas17> I don't remember the name
[06:14:51 CEST] <dystopia_> there is -tune animation
[06:14:55 CEST] <dystopia_> do you mean scaler?
[06:15:01 CEST] <nicolas17> ah waifu2x
[06:15:08 CEST] <nicolas17> dystopia_: while we're talking of silly names
[06:16:13 CEST] <stimple> waifu2x is fast enough to do video?
[06:17:12 CEST] <nicolas17> stimple: sure it can do video, not sure at what fps (or spf) :D
[06:18:26 CEST] <stimple> these neural net scalers are pretty awesome
[06:18:33 CEST] <Cracki> waifu2x is sensitive to noise...
[06:18:57 CEST] <Cracki> be aware that neural net scalers introduce hallucinations depending on what they're trained on
[06:19:03 CEST] <stimple> yes
[06:19:15 CEST] <Cracki> the added information is not in the picture, but in the preconceptions it was trained on
[06:19:17 CEST] Action: nicolas17 plays with vidstab parameters
[06:19:24 CEST] <dystopia_> i thought rule 101 of video encoding was never upscale :O
[06:19:40 CEST] <furq> nnedi is pretty good
[06:19:45 CEST] <furq> mostly for deinterlacing though
[06:19:57 CEST] <Cracki> rule 34
[06:20:05 CEST] <furq> obviously it is good at deinterlacing by being good at 2x upscaling, but why would you ever do the latter
[06:20:16 CEST] <furq> unless you're making 4k blurays ofc
[06:20:17 CEST] <Cracki> upscaling old shitty footage
[06:20:46 CEST] <Cracki> anime are "easy" to upscale because lots of uniform-colored polygons
[06:20:52 CEST] <Cracki> *areas
[06:21:06 CEST] <Cracki> it only has to preserve edges well, not so much texture
[06:21:39 CEST] <Cracki> https://raw.githubusercontent.com/nagadomi/waifu2x/master/images/slide.png
[06:22:06 CEST] <dystopia_> :O
[06:22:10 CEST] <Cracki> ya
[06:22:11 CEST] <dystopia_> miku is my waifu
[06:22:15 CEST] <dystopia_> you can't have her!
[06:22:36 CEST] <Cracki> don't wanna. it's not a boy
[06:22:40 CEST] <dystopia_> the scaling looks good though
[06:22:42 CEST] <dystopia_> hehe
[06:22:48 CEST] <Cracki> it does indeed.
[06:23:07 CEST] <Cracki> and I'm sure it works fine for several iterations
[06:30:30 CEST] <stimple> neural nets aren't going to get us -- yet
[06:38:08 CEST] <c3r1c3-Win> Luka > all.
[06:48:48 CEST] <dystopia_> luka luka nightfever
[06:50:02 CEST] <c3r1c3-Win> So if Miku catches LukuLuka Nightfever, what does it turn into?
[06:50:11 CEST] <c3r1c3-Win> MikuMiku Head cold.
[06:55:11 CEST] <dystopia_> i think we might be weebs c3r1c3-Win
[06:55:21 CEST] <c3r1c3-Win> LOL
[06:55:45 CEST] <sgo11> hi, mp4 file will pick a frame from the file as the preview image (thumbnail). What is the logic? How can I let it to pick the frame that I want? thanks a lot.
[06:55:56 CEST] <furq> that depends on your file manager
[06:56:52 CEST] <sgo11> furq, I tried four different file managers and apps in two platforms (linux and android). All pick the same image. that is weird. I want to change that image. Is that possible? thanks.
[06:56:57 CEST] <mozzarella> alright guys
[06:57:08 CEST] <c3r1c3-Win> Correct me if I'm wrong, but I do seem to remember that your can set a thumbnail for MP4 files... but even if you can, it does depend on your file manager.
[06:57:17 CEST] <mozzarella> how can I put a limit of 25% CPU usage, when encoding
[06:57:21 CEST] <nicolas17> ugh
[06:57:33 CEST] <mozzarella> I just don't want my fan to spin like crazy, I don't care how long it takes
[06:57:46 CEST] <nicolas17> mozzarella: do you have multiple cores?
[06:57:47 CEST] <c3r1c3-Win> I'm not saying FFMPEG supports (or doesn't support) such, but I remember reading in the file spec something to that effect.
[06:57:52 CEST] <mozzarella> nicolas17: I do
[06:58:03 CEST] <nicolas17> maybe ffmpeg is automatically using multiple threads to speed things up
[06:58:08 CEST] <mozzarella> it is
[06:58:13 CEST] <mozzarella> it's using my 4 cores
[06:58:18 CEST] <dystopia_> you could slow it down with -re possibly
[06:58:20 CEST] <mozzarella> so almost 400%
[06:58:26 CEST] <dystopia_> if it's encoding faster than realtime as it is
[06:58:35 CEST] <c3r1c3-Win> You should be able to tell ffmpeg to use fewer threads/cores.
[06:58:37 CEST] <mozzarella> what's -re?
[06:58:40 CEST] <nicolas17> so "-threads 1" will limit it
[06:58:47 CEST] <dystopia_> encodes out put at input framerate
[06:59:09 CEST] <dystopia_> so if a 25fps video was encoidng at 100fps or 4x, it would be limited to 25%
[06:59:16 CEST] <nicolas17> urgh, vidstab's tripod mode was giving me great results
[06:59:23 CEST] <nicolas17> but it gets very confused when brightness changes
[06:59:24 CEST] <sgo11> For example, my pcmanfm-qt file manager in linux and ES File Manager App in android both are using the same thumbnail. I am satisfied if I can change the thumbnail of these two file managers. any suggestions? thanks.
[06:59:25 CEST] <dystopia_> but if your encoding slower than output framerate, nothing will happen
[06:59:34 CEST] <nicolas17> camera automatically changed the exposure when the projector turned on
[06:59:49 CEST] <nicolas17> sgo11: aren't they using the first frame?
[07:00:05 CEST] <sgo11> nicolas17, :) they are not. if they do, I will not ask here.
[07:00:29 CEST] <mozzarella> still using 4 threads, lol
[07:00:37 CEST] <mozzarella> wth
[07:00:42 CEST] <nicolas17> mozzarella: with -threads 1?
[07:00:57 CEST] <mozzarella> nicolas17: yeah
[07:01:09 CEST] <mozzarella> do I need to put it in front of the file name or what?
[07:01:19 CEST] <c3r1c3-Win> sgo11: https://superuser.com/questions/597945/set-mp4-thumbnail
[07:01:53 CEST] <nicolas17> mozzarella: -filter_threads 1?
[07:02:30 CEST] <mozzarella> still not working
[07:02:39 CEST] <sgo11> c3r1c3-Win, I tried that. That won't work because the file managers I tried are not reading the cover tag. They pick a frame image.
[07:03:01 CEST] <dystopia_> try the -re flag mozzarella it might help
[07:03:15 CEST] <c3r1c3-Win> sgo11: If that's the case you really have no control over it.
[07:03:27 CEST] <dystopia_> ffmpeg -re -i whatever....
[07:03:33 CEST] <nicolas17> maybe they are hardcoded to take the nth frame
[07:03:45 CEST] <sgo11> c3r1c3-Win, All the apps I tried in android are not reading the cover tag. And All the apps are using the same frame image. that's why I want to know the logic and what the frame is.
[07:04:14 CEST] <dystopia_> it's probably 1st i frame
[07:04:40 CEST] <sgo11> nicolas17, if they are hardcoded, I am wondering what the logic is. Because all apps are using the same frame image as thumbnail. There must be a logic.
[07:04:49 CEST] <mozzarella> alright, still using 150% CPU, though&
[07:05:01 CEST] <c3r1c3-Win> Most of the time I see it's the 4-second frame (or 3rd i-frame) that's selected... or something like that.
[07:05:11 CEST] <dystopia_> i wish my cpu could use 150%
[07:05:18 CEST] <dystopia_> i would have 6hz
[07:05:21 CEST] <c3r1c3-Win> sgo11: Best thing is to look at the source code. ;-)
[07:05:23 CEST] <dystopia_> 6ghz
[07:05:32 CEST] <nicolas17> dystopia_: multicore :P
[07:05:38 CEST] <dystopia_> hehe
[07:05:51 CEST] <sgo11> ok... let me see.
[07:16:40 CEST] <mozzarella> guys
[07:16:54 CEST] <mozzarella> can I pause/stop it and resume it in a few hours?
[07:19:43 CEST] <nicolas17> on Linux, Ctrl-Z :P
[07:19:49 CEST] <nicolas17> and the 'fg' command to resume
[07:20:03 CEST] <mozzarella> other than that
[07:20:48 CEST] <dystopia_> on windows use the pause key on the keyboard
[07:20:58 CEST] <dystopia_> and return key to resume
[07:21:57 CEST] <nicolas17> there is a *lot* of intermediate state in memory and there is no way to dump it to disk
[07:26:41 CEST] <nicolas17> is vidstabtransform's interpolation parameter for pixel interpolation or camera path interpolation?
[07:28:15 CEST] <Cracki> on windows, just select in the terminal. it'll fill up the output buffer and block the process.
[07:40:32 CEST] <nicolas17> is there any filter to compensate brightness changes across time?
[07:49:42 CEST] <Cracki> something that does auto gain/brightness/exposure? mebbeh... should be likely to exist
[07:50:22 CEST] <Cracki> eq filter, says ddg
[07:50:27 CEST] <nicolas17> I filmed a presentation, at one point I made the camera focus and adjust brightness for the projector image, which darkened the whole image
[07:50:53 CEST] <nicolas17> when the image gets darkened a bit like that, vidstab gets absolutely confused and starts shaking the image around
[07:51:23 CEST] <nicolas17> Cracki: eq seems to be to adjust the brightness by <expression>
[07:51:29 CEST] <Cracki> ya, my mistake
[07:51:46 CEST] <Cracki> if nothing else works, drop into python. pyav is getting soem development efforts
[07:52:51 CEST] <Cracki> this maybe? https://video.stackexchange.com/questions/14603/what-is-the-ffmpeg-filter-e…
[07:53:24 CEST] <Cracki> so pp=al
[07:53:35 CEST] <Cracki> but that might need some thresholds
[07:53:54 CEST] <Cracki> looks like it works on max/min only, not on some average brightness and range
[07:54:29 CEST] <Cracki> what you'd need is an expression containing average brightness
[07:54:53 CEST] <furq> !filter histeq
[07:54:53 CEST] <nfobot> furq: http://ffmpeg.org/ffmpeg-filters.html#histeq
[07:55:55 CEST] <Cracki> be aware histogram equalization can be nonlinear
[07:59:17 CEST] <Cracki> ok I can't figure out what the hell that filter does. the colors are really weird
[07:59:43 CEST] <nicolas17> Cracki: http://nicolas17.s3.amazonaws.com/vidstab-detect.mp4
[07:59:58 CEST] <Cracki> nice viz
[08:00:21 CEST] <Cracki> if you have a video editing program, maybe look in there
[08:00:46 CEST] <Cracki> i remember adobe premiere having a shitty autoexposure filter. maybe they rewrote or replaced that with something good.
[08:01:39 CEST] <Cracki> if you can't find an autoexposure filter in ffmpeg, someone should maybe set that up as a GSoC task, or hit me up with handholding for filter programming
[08:02:25 CEST] <nicolas17> sec, I'll show you what happens when I actually try to run vidstabtransform
[08:02:28 CEST] <Cracki> the math is trivial to formulate for opencl, and the only issue would be working in a linear color space
[08:02:55 CEST] <nicolas17> Cracki: http://nicolas17.s3.amazonaws.com/vidstab.mp4
[08:02:56 CEST] <Cracki> haha the vidstab gets confused by brightness changes, that's bad
[08:03:10 CEST] <Cracki> that is bad
[08:03:21 CEST] <Cracki> ok for the vidstabdetect, add a laplacian or sobel
[08:03:34 CEST] <Cracki> this will remove absolute brightness and only give it edges/texture to work on
[08:04:28 CEST] <Cracki> guys throw money at me, I'm good with computer vision, all that shit is easy to have, I just don't have any experience writing ffmpeg filters
[08:07:33 CEST] <Cracki> right now I don't have the urge, but I was considering parallelizing the qtrle encoder too
[08:12:57 CEST] <nicolas17> Cracki: I think pp=al is busted by the ceiling lights
[08:13:05 CEST] <nicolas17> which stay at max brightness even as the whole image gets darker
[08:13:09 CEST] <Cracki> yep, max/min, what I thought
[08:13:39 CEST] <Cracki> if you anticipate more video work, see about doing it through a python step
[08:14:37 CEST] <nicolas17> I'll try histeq
[08:14:53 CEST] <Cracki> some step to get linear f32 or u16 from ffmpeg into python, then do stuff on that, then send it back. pyav uses the libraries directly, doesn't mess around with subprocesses like other wrappers
[08:15:33 CEST] <nicolas17> I think that almost worked :O
[08:15:42 CEST] <nicolas17> it looks ugly
[08:15:49 CEST] <nicolas17> but it doesn't matter since it's only used for vidstabdetect
[08:16:01 CEST] <nicolas17> now let's see the stabilized image
[08:17:04 CEST] <nicolas17> there's some small high-frequency shaking hm
[08:21:28 CEST] <Cracki> add smoothing
[08:21:33 CEST] <Cracki> to the vidstab tracking
[08:21:38 CEST] <Cracki> it should have options for that
[08:22:09 CEST] <nicolas17> I'm using tripod mode, it's mutually exclusive with smoothing
[08:22:11 CEST] <Cracki> ideally it should do subpixel-precise tracking (possible due to patch matching, not point matching), but no idea if it does
[08:22:15 CEST] <Cracki> hm
[09:01:28 CEST] <tadau> hi, i had an early dropout and can't play the resulting mp4 - any advice?
[09:02:28 CEST] <tadau> err msg was sth like 'conversion failed'?
[09:16:24 CEST] <Cracki> tadau, if that mp4 has no moov atom (process crashed), it can be hard/impossible to recover
[09:16:50 CEST] <Cracki> what exactly do you mean
[09:32:08 CEST] <tadau> Cracki: i encoded sth by: 'ffmpeg -i IN -c:v libx264 OUT.mp4' but unfortunately it stoped before time. When I try to play that OUT.mp4 I see an endless list of 'seek failed' errors.
[09:32:39 CEST] <tadau> and before you ask - IN was a stream, so no chance to re-run that line
[09:33:42 CEST] <tadau> what is this moov atom anyway - and why is it only calculated / made up in the end?
[09:35:02 CEST] <Cracki> media containers contain tree structure
[09:35:15 CEST] <Cracki> actual audio/video bitstreams, metadata, jump tables to keyframes, ...
[09:35:38 CEST] <Cracki> the moov atom contains information about the streams, their codecs, durations, width height sample rate etc
[09:36:01 CEST] <Cracki> for mp4s, the moov atom is usually written at the end, because you don't really know how large it'll be at the beginning
[09:36:03 CEST] <tadau> but would'nt it be safer to keep these tables in small chunks all over the file?
[09:36:09 CEST] <Cracki> if you do this a lot, look into segmented/fragmented mp4
[09:36:18 CEST] <Cracki> that does exactly this
[09:36:41 CEST] <tadau> segmented/fragmented as an option to libx264?
[09:36:42 CEST] <Cracki> other formats seem to be smarter about this. try this with mkv maybe
[09:36:46 CEST] <Cracki> as an option to ffmpeg
[09:36:53 CEST] <Cracki> it's a container option, not a codec option
[09:37:01 CEST] <tadau> ok, will see the manual for that, tx
[09:37:39 CEST] <tadau> and now for my broken file - what can be done, what could i try to recover or restore?
[09:37:48 CEST] <Cracki> uh, what codecs were used?
[09:38:29 CEST] <tadau> libx264 and libmp4lame
[09:38:33 CEST] <tadau> libx264 and libmp3lame
[09:38:41 CEST] <Cracki> you can try recreating the circumstances of the recording, and mess around with the moov atom, transplant it. it won't be perfect, but it *might*, if the bitstreams are interleaved exactly the same, give you access
[09:38:57 CEST] <Cracki> possibly the bitstream packets/frames are contiguous in the mdat atom
[09:39:07 CEST] <Cracki> if so, you could identify them, their length, and extract
[09:39:16 CEST] <Cracki> this is the forensics approach
[09:39:38 CEST] <tadau> wut? create a new file with the same length and cut of the end to paste it to the broken one??
[09:40:00 CEST] <Cracki> I've never had to do this for a multistream file, only for qtrle without audio (then the mdat contains the single qtrle video stream)
[09:40:05 CEST] <Cracki> not quite
[09:40:31 CEST] <Cracki> you'll have to maintain the proper tree structure, but maybe copying the moov atom contents is good enough
[09:40:34 CEST] <Cracki> no guarantees though
[09:40:47 CEST] <Cracki> especially for variable bitrate codecs, this is likely to fail
[09:41:04 CEST] <Cracki> data is interleaved in the mdat atom. the interleaving is recorded outside, in the moov atom
[09:41:34 CEST] <Cracki> some bitstream "frame" formats are unframed, so you can't reliably detect where they start and end
[09:41:46 CEST] <Cracki> with knowledge of the codecs, you can eyeball it
[09:42:06 CEST] <Cracki> the best assumption is that your file is junk
[09:42:14 CEST] <tadau> so mp4 is keeping track of all those stuff in memory only? and only writes it down at the end? is that what you're telling me?
[09:42:22 CEST] <Cracki> as long as it's still writing, yes
[09:42:39 CEST] <tadau> wow - that *§$%§*"*
[09:42:40 CEST] <Cracki> and it's not mp4, it's the application that does the muxing
[09:42:44 CEST] <tadau> :(
[09:42:54 CEST] <Cracki> that's why fragmented mp4 muxing option
[09:43:07 CEST] <Cracki> fragmented/segmented, can't remember the term
[09:43:14 CEST] <tadau> so you mean i would face the same probs with any other codec?
[09:43:22 CEST] <Cracki> yes
[09:43:25 CEST] <Cracki> the codecs are not at fault
[09:43:43 CEST] <Cracki> it's a problem all container formats face.
[09:43:56 CEST] <Cracki> some muxers periodically update a header...
[09:44:05 CEST] <Cracki> even avi and mkv files can break.
[09:44:16 CEST] <Cracki> the question is how recently did they write enough metadata
[09:44:45 CEST] <tadau> Basic stream segmenter <- that one?
[09:44:54 CEST] <Cracki> avi files are so old, most of the metadata is fixed length and iirc the interleaving is selfdelimited or something
[09:44:58 CEST] <Cracki> no idea
[09:45:13 CEST] <Cracki> lemme search
[09:45:34 CEST] <Cracki> -movflags
[09:45:37 CEST] <Cracki> that's the basic entry
[09:45:42 CEST] <Cracki> https://ffmpeg.org/ffmpeg-formats.html#Options-8
[09:45:47 CEST] <Cracki> frag_keyframe perhaps
[09:45:48 CEST] <tadau> The segmenter muxer outputs streams to a number of separate files of nearly fixed duration. Output filename pattern can be set in a fashion similar to image2.
[09:45:57 CEST] <tadau> oh, tx
[09:46:08 CEST] <Cracki> no need for separate files
[09:46:25 CEST] <Cracki> -frag_duration maybe
[09:46:29 CEST] <Cracki> depends on what you want
[09:46:44 CEST] <tadau> yeah, didn't get it - thought it might create only virtual files inside a container
[09:46:54 CEST] <Cracki> this will create one mp4/mov but it contains fragments (with moov atoms) at fixed intervals
[09:47:02 CEST] <Cracki> it does.
[09:47:10 CEST] <tadau> that sounds about right :)
[09:47:31 CEST] <Cracki> ts are mpeg transport streams, they are a different beast
[09:48:23 CEST] <Cracki> I'm not even sure if transport streams even contains an index. they don't interleave at all because the basic packet size is so small that it doesn't make sense
[09:48:32 CEST] <Cracki> (meaning: a transport stream will never break)
[09:48:49 CEST] <Cracki> so if you want to record, record to a transport stream or to a fragmented mov/mp4
[09:49:36 CEST] <tadau> but just out of curiousity and for any lazy folks that might be following us ;-) - could i've just said 'OUT.mkv' instead of 'OUT.mp4' and ffmpeg would have automagically saved me from this calamity?
[09:51:05 CEST] <Cracki> not sure
[09:52:06 CEST] <Cracki> mov and mkv are program formats. they're not meant to be faulttolerant.
[09:52:34 CEST] <Cracki> "program"/"transport" is an MPEG-world distinction
[09:53:02 CEST] <Cracki> program is the content and the content only. transport contains program + metadata for fault tolerance and other stuff, but doesn't contain "conveniences" such as seek tables.
[09:53:28 CEST] <Cracki> "program" is logically what's presented to the viewer, i.e. all streams, their meanings, ...
[09:54:14 CEST] <Cracki> HAH! just tried with frag_duration. it works as expected.
[09:54:23 CEST] <Cracki> recorded ~14 secs at 5s intervals, playback shows me 10 secs
[09:54:35 CEST] <Cracki> (because I killed the process. proper termination gives 14 secs)
[09:54:39 CEST] <tadau> Cracki: ty very much :-)
[11:23:30 CEST] <Plop2> hi all
[11:24:15 CEST] <Plop2> is someone has a pointer to a documentation or even an exmaple to explin how to encode H264 stream form a series of images and send it through a network stream ?
[11:24:45 CEST] <Plop2> All that i've tried does not work for now...
[14:04:51 CEST] <dragmore88> hi! anyone know how i can extract audio channel 1 and 2 (FL, FR) from a prores stream and output it as a stereo track through amerge ? Cant seem to get the syntax to work..
[14:16:07 CEST] <vlt> dragmore88: What have you tried so far?
[14:38:11 CEST] <dragmore88> vlt: -vn -filter_complex "[0:7][0:8]amerge=inputs=2[aout]" -map "[aout]" -c:a pcm_s24le
[14:39:08 CEST] <dragmore88> vlt: not happy with the quality, should prolly use the 6 first tracks, and make a downmix of those
[14:44:54 CEST] <dragmore88> Another question from me; can ffmpeg onthe fly igmp join a 7 SPTS multicast group and repackage it as mp4 and HTTP it out ?
[14:46:03 CEST] <dragmore88> ismv
[14:46:58 CEST] <BtbN> "http it out"?
[14:47:06 CEST] <BtbN> mp4 is not streamable
[14:47:23 CEST] <BtbN> and running an http server to serve stuff is up to you
[14:47:39 CEST] <bencoh> ismv is a bit better though
[14:49:34 CEST] <dragmore88> the target is for Unified Streaming platform
[14:50:12 CEST] <dragmore88> we have harmonic electra transcoders today, but they can only output mulitple profiles via multicast.. unified streaming expects ismv mp4 as input
[14:50:30 CEST] <dragmore88> unified streaming would be the origin server
[14:51:14 CEST] <dragmore88> so if i could use ffmpeg inbetween and take it from multicast SPTS to unicast ismv
[14:52:25 CEST] <Nacht> We're getting ISMV streams from Electra Harmonics on our Unified. So it should be possible ?
[14:52:27 CEST] <DHE> ffmpeg can join multicast. not sure about ismv output specifically. isn't that microsoft smoothstreaming?
[14:52:38 CEST] <Nacht> Afaik the people who send it aren't using FFMPEG in between
[15:03:42 CEST] <dragmore88> Nacht, what exact product are u using and version ? (that can produce ISMV compliant streams over http ?
[15:05:10 CEST] <dragmore88> http://docs.unified-streaming.com/documentation/package/content_description…
[15:06:54 CEST] <dragmore88> http://docs.unified-streaming.com/faqs/factsheet.html#supported-ingest
[15:07:28 CEST] <dragmore88> it only says fragmented MP4
[15:07:36 CEST] <dragmore88> as inout
[15:07:38 CEST] <dragmore88> input*
[15:08:01 CEST] <dragmore88> haha.. ffmpeg is mentioned in the supported encoders ;)
[15:08:04 CEST] <Nacht> Let's see, they are/were using Electra VS with Firmware 05.00.01, we're running 1.7.19 of Unified Origin
[15:08:29 CEST] <Nacht> Yeah Unified even has a Live Encoder sample on their support pages using FFMPEG
[15:08:36 CEST] <dragmore88> url ?
[15:08:54 CEST] <Nacht> http://docs.unified-streaming.com/installation/evaluation.html#live-demo
[15:28:09 CEST] <dragmore88> nacht, thx
[15:49:27 CEST] <nicolas17> tadau: btw, if ffmpeg crashes or similar, you get your problem of an unusable .mp4, but if you abort it properly (pressing q or Ctrl-C) it will write the moov atom
[16:27:49 CEST] <pavel> Hello! When i try to use h264_vaapi encoder with quality > 2, I see error: "Failed to end picture encode issue: 18 (invalid parameter).". What I doing wrong?
[16:28:43 CEST] <pavel> Documentation says that quality may be in range 0..8
[16:33:35 CEST] <jkqxz> Documentation says that quality may be in some driver-determined range. Probably your driver only supported 0-2.
[16:35:02 CEST] <pavel> Hmm, thanks
[16:35:45 CEST] <jkqxz> (If you use a more recent version it checks the range and will give you a better error message.)
[16:53:33 CEST] <mcJack> Hi, I try to create a multichannel ogg file from 28 wav files. It worked in several instances, but the same command triggers an assert in some cases, here is the paste: https://pastebin.com/cvz6TWk0
[16:53:59 CEST] <mcJack> This is the assert: Assertion outlink->channel_layout == out_layout || !outlink->channel_layout failed at libavfilter/af_aresample.c:174
[16:54:14 CEST] <mcJack> Has anybody an idea, how that can be resolved?
[16:57:11 CEST] <Nacht> mcJack: What do you use that needs to have 28 different channels ? Just curious
[16:57:48 CEST] <mcJack> it's a dynamic music library, the stereo stems are mixed on the fly
[16:58:38 CEST] <mcJack> before whe had the stems stored individually, but having one multi channel file saves a lot of CPU on the client's side
[16:59:49 CEST] <Nacht> I see. Thanks for shedding some light on that :)
[17:00:02 CEST] <mcJack> my pleasure :-)
[17:01:01 CEST] <c_14> mcJack: try updating your ffmpeg
[17:01:04 CEST] <c_14> the one you have is pretty old
[17:01:10 CEST] <c_14> http://johnvansickle.com/ffmpeg/
[17:01:21 CEST] <c_14> try a static build
[17:02:40 CEST] <mcJack> I see, it's the one Ubuntu-16.04 selects& I'll build it manually and see, if that helps& thanks so far
[17:10:34 CEST] <mcJack> c_14: I tried the static builds, 3.3, unfortunately the error stays the same: https://pastebin.com/5mxmPUBn
[17:10:58 CEST] <mcJack> trying nightly build next
[17:13:08 CEST] <mcJack> and again, just the linenumber changes, that shows me at least I am not running the same thing each time ;-)
[17:16:03 CEST] <c_14> hmm
[17:16:05 CEST] <c_14> worth a shot
[17:16:17 CEST] <mcJack> sure, thanks :-)
[17:21:34 CEST] <mcJack> Here an example when it works: https://pastebin.com/MKW6cg8W
[17:26:27 CEST] <c_14> Does vorbis have a maximum number of channels?
[17:27:17 CEST] <c_14> hmm, up to 255
[17:32:27 CEST] <c_14> You can try setting -och 56 -osr 48k ?
[17:32:44 CEST] <c_14> Because the assertion is something with aresample
[17:33:42 CEST] <c_14> (so I'm just trying to override some of the things it would otherwise autodetect)
[17:33:53 CEST] <c_14> You can check in ffmpeg-resampler(1)
[17:34:47 CEST] <mcJack> cheers, I'll try that& had experimented with ac, but that didn't do anything
[17:36:23 CEST] <c_14> maybe also set -ocl 56c
[17:36:40 CEST] <c_14> possibly with a capital C instead of the lowercase one
[17:36:51 CEST] <c_14> (describen in ffmpeg-utils(1) in the Channel Layout section)
[17:44:16 CEST] <mcJack> didn't change anything. -ocl doesn't get through the parser, I might use it wrong
[17:45:40 CEST] <mcJack> ah, sorry, 56c is "Error setting option ocl", but 56C renders: [SWR @ 0x4cbc520] Unable to parse option value "56C" as channel layout
[17:51:26 CEST] <c_14> *sigh*
[17:51:30 CEST] <c_14> that's a bug
[17:51:33 CEST] <c_14> I might fix it
[17:51:50 CEST] <c_14> But it won't help you immediately
[17:52:11 CEST] <c_14> try just -ocl 56
[17:52:19 CEST] <c_14> If I read the code correctly, that should work
[17:53:15 CEST] <mcJack> jepp, that parses correectly, but it still asserts :-/
[17:53:40 CEST] <mcJack> do you have an idea, what the root cause could be?
[17:54:27 CEST] <c_14> I'm just grasping at straws
[17:55:03 CEST] <mcJack> I see& if you have an idea, I am happy to test anything you throw at me ;-)
[18:03:35 CEST] <krvl> Hi all
[18:06:24 CEST] <krvl> I have a problem with mpeg-dash streaming: the player stuck when it reaches the last fragment (I'm testing atm with dash.js library). Do I need to reload the manifest?
[18:13:31 CEST] <azarus> Does anyone know how to enable x11grab on gentoo?
[18:14:59 CEST] <kepstin> azarus: you'll need the xcb option enabled to get xcbgrab
[18:15:11 CEST] <kepstin> (which is probably what you're looking for)
[18:15:46 CEST] <azarus> kepstin: Yup, found it. x11grab seems deprecated.
[18:16:22 CEST] <azarus> Thanks!
[18:37:35 CEST] <azarus> What are some fast-to-encode video codecs?
[18:38:03 CEST] <durandal_1707> utvideo and others
[18:41:58 CEST] <mcJack> c_14: I can pass the assert, if I could set the output layout to 0? is that possible? And could that help me?
[18:45:24 CEST] <c_14> you can try
[18:45:56 CEST] <mcJack> how can I set that from the command line? ocl 0 doesn't work
[18:50:38 CEST] <c_14> 0c maybe?
[18:51:10 CEST] <c_14> ah, nvmd
[18:51:16 CEST] <c_14> If it gets 0 it throws an error
[18:51:53 CEST] <mcJack> Too bad& I was just wondering, why it is excluded from that assert& but probably because it was checked before...
[18:55:22 CEST] <mcJack> Ok, I'll be back tomorrow& thanks so far!
[18:58:11 CEST] <kbaegis> *sigh* Anyone know why aac (native) to aac (native) transcoding would fail from mkv -> mp4?
[18:58:22 CEST] <kbaegis> works with the -an arg
[18:59:17 CEST] <BtbN> can't just codec copy?
[19:00:45 CEST] <kbaegis> https://pastebin.com/5FviNifW
[19:01:20 CEST] <c_14> add -c copy
[19:01:44 CEST] <c_14> I don't see why you'd need to reencode that
[19:01:51 CEST] <kbaegis> Ahh, gotcha.
[19:02:04 CEST] <kbaegis> Well, probably because I didn't know ffmpeg didn't handle that for me :)
[19:06:56 CEST] <kbaegis> Umm
[19:07:01 CEST] <kbaegis> What's the underlying issue though?
[19:07:13 CEST] <kbaegis> What if I did want to xcode?
[19:07:54 CEST] <kbaegis> Still seeing Too many packets buffered for output stream 0:1.
[19:08:00 CEST] <kbaegis> (which is the audio)
[19:09:48 CEST] <kbaegis> c_14? anyone?
[19:10:20 CEST] <c_14> I have no clue
[19:10:40 CEST] <c_14> ffmpeg usually also outputs a more helpful error
[19:10:42 CEST] <c_14> but there is none
[19:10:43 CEST] <kbaegis> How do I run a -vvv or debug in ffmpeg?
[19:10:48 CEST] <c_14> -loglevel debug
[19:10:54 CEST] <kbaegis> Awesome, ty
[19:11:12 CEST] <kbaegis> Yeah, I can't make an avi with it (not that I'd want to), but I can strip the audio channel out into a separate mp3
[19:11:14 CEST] <kbaegis> Weird
[19:17:13 CEST] <blaenk> is there a way to mix/combine two audio tracks in an mp4 into a single one?
[19:33:56 CEST] <blaenk> got it, using amerge
[19:34:22 CEST] <kepstin> hmm, depends what you're trying to do, you might want amix instead
[19:34:49 CEST] <kepstin> if you have two stereo tracks, and you want them mixed together into a single stereo track, use amix.
[19:35:37 CEST] <blaenk> why?
[19:36:22 CEST] <c_14> amerge with 2 stereo files will give you one 4.0 file
[19:36:29 CEST] <c_14> amix with 2 stereo files will give you one stereo file
[19:36:59 CEST] <c_14> (by mixing the left channel from one file with the left from the other file and the rights etc)
[19:38:03 CEST] <blaenk> trying to make sense of that. the two audio tracks are indeed stereo, and the result of using amerge seems to show a single stereo track
[19:38:53 CEST] <blaenk> here's the mediainfo of the amerge result https://gist.github.com/anonymous/6c86c60231c37f4a6994ba4a135b76bf
[19:39:28 CEST] <c_14> what was the command you used to create the file?
[19:39:42 CEST] <blaenk> I'm also using -filter_complex, maybe that's doing it
[19:40:08 CEST] <blaenk> sec
[19:40:12 CEST] <blaenk> ffmpeg -i in.mp4 -filter_complex "[0:a]amerge=inputs=2[a]" -map 0:v -map "[a]" -c:v copy -c:a libmp3lame -ac 2 out.mp4
[19:40:35 CEST] <c_14> >-ac 2
[19:40:41 CEST] <c_14> you're downmixing the result
[19:40:44 CEST] <blaenk> ah of course
[19:40:57 CEST] <blaenk> so it's creating the 4.0 like you said, then downmixing
[19:41:06 CEST] <blaenk> different from using amix to create a 2.0 to begin with?
[19:41:28 CEST] <c_14> In this case probably not
[19:41:31 CEST] <c_14> In a more complex case maybe
[19:41:45 CEST] <blaenk> I'll try to form the equivalent amix command
[19:44:49 CEST] <igracia> hey! posted a question in the forum here http://ffmpeg.gusari.org/viewtopic.php?f=11&t=3434&p=11061#p11061
[19:45:20 CEST] <igracia> it's related to offsetting videos in a mosaic built with hstack and vstack
[19:46:21 CEST] <igracia> is there a way to make hstack show a black frame for the duration of the time specified in PTS-STARTPTS+{offset}?
[19:46:35 CEST] <igracia> or this can only be achieved via overlay?
[19:47:14 CEST] <c_14> just concat the inputs you want to delay with a color=black,trim=d=<duration>
[19:48:19 CEST] <blaenk> ffmpeg -i input.mp4 -filter_complex "[0:a]amix=inputs=2[a]" -map 0:v -map "[a]" -c:v copy -c:a libmp3lame -ac 2 "mixed.mp4"
[19:48:23 CEST] <blaenk> that look ok?
[19:48:35 CEST] <igracia> hum, is that faster than using overlay? if I have 16 videos (4x4 matrix) I will need 15 concats
[19:48:36 CEST] <blaenk> is it ok to leave the -ac 2 in there or is it having an unintended effect
[19:49:48 CEST] <kbaegis> Here's an updated paste with the loglevel turned up: https://pastebin.com/8m0SxZrJ
[19:50:54 CEST] <c_14> blaenk: you can leave it, but you don't need it
[19:51:26 CEST] <blaenk> sweet. thanks c_14
[19:51:39 CEST] <kbaegis> Seeing a lot of "cur_dts is invalid"
[19:52:22 CEST] <c_14> there's probably something funky with the input stream that the encoder dislikes
[19:53:44 CEST] <kbaegis> c_14: Since I can split audio away from the file successfully as well as video, is there a way to remerge the two streams?
[19:54:53 CEST] <c_14> yeah
[19:54:59 CEST] <c_14> just list them individually as inputs
[19:57:38 CEST] <kbaegis> I'll have to see if I have syncing issues, but maybe that will be the way to go
[20:28:38 CEST] <dorvan> hi all
[20:29:25 CEST] <durandal_170> hi
[20:32:36 CEST] <dorvan> on a net camera: stream 2560x1440, 30fps, 8192k, high, as encoding parameters, create an mp4 with a 1mbyte/s (8mbit/s) so 60mbyte/minute video, parameters are not correlated in the netcam interface, how i can find the lossless settings reducing bitrate?
[20:33:08 CEST] <nicolas17> dorvan: *lossless* settings will make the file larger than that
[20:34:12 CEST] <dorvan> nicolasl7 those are the losslessy settings... i have to compress... and reduce the bandwidth.
[20:35:43 CEST] <nicolas17> then you'll lose quality
[20:35:44 CEST] <nicolas17> you can probably tweak it so the quality loss is not noticeable, but you'll lose quality :P
[20:35:51 CEST] <nicolas17> just nitpicking on "lossless" terminology
[20:37:21 CEST] <dunpeal> Hi. I have an MP4 ("m4b") file, with chapter marks. Is there a straightforward way to cut 5 minutes off the beginning of this file, while preserving the correct chapter indices?
[20:40:57 CEST] <dorvan> nicolas17: obviously, looking to selectable params what i have prefer to change to reduce as possible, without a visible significant lossy?
[20:42:33 CEST] <klaxa> if you can pass crf values, increase it so far you still "like" it
[20:42:45 CEST] <klaxa> higher crf -> more quality loss, less bitrate
[20:47:47 CEST] <nicolas17> dorvan: "lossless" has a specific meaning in video encoding, meaning literally lossless, same pixels in and out, that means very very high bitrate
[20:49:03 CEST] <dorvan> nicolas17: i know.. i've explained what i want to say in the latest phrase. are you locked on "lossless" term?
[20:49:54 CEST] <nicolas17> what klaxa said, use crf :)
[20:57:07 CEST] <dorvan> it's a ffmpeg instance inside a network camera, i can set ONLY that settings...
[21:00:00 CEST] <dorvan> so... restart :-D on a net camera ( <--- net cam! ): i have a stream of 2560x1440, 30fps, 8192k, high, as encoding parameters ( i can play with bitrate and profile firstly) this settings creates an mp4 with a 1mbyte/s (8mbit/s) so 60mbyte/minute video, parameters are not correlated in the netcam interface, how i can find the lossless as possible settings reducing bitrate?
[21:01:55 CEST] <klaxa> repeating it doesn't make it any less wrong?
[21:02:31 CEST] <klaxa> what is the setting you can influence exactly?
[21:03:23 CEST] <nicolas17> reduce bitrate
[21:03:40 CEST] <dorvan> maintaining quality as possible,
[21:04:02 CEST] <dorvan> obviously all solutions are lossy
[21:04:04 CEST] <nicolas17> if it starts looking bad, you may get improvements by changing the preset to a slower one, but it seems like you can't change preset and probably the camera doesn't have the CPU for it anyway
[21:04:44 CEST] <klaxa> well just decrease the bitrate then? constant bitrate encoding is pretty bad though
[21:04:52 CEST] <klaxa> it's not something where you can throw math at it
[21:04:55 CEST] <klaxa> quality is subjective
[21:05:59 CEST] <dorvan> seem looking to cam gui and manuale, setting are not directly correlated, and this it's not really possible...
[21:08:02 CEST] <dorvan> klaxa: yes quality it's subjective but loking to the stream output you have to see the "same" so i refer to not visible differencies about quality
[21:08:10 CEST] <dorvan> looking*
[21:08:37 CEST] <nicolas17> if all you can tweak is the bitrate, there isn't much you can do
[21:08:58 CEST] <nicolas17> obviously you could use lower resolution (width x height) or lower framerate :P
[21:09:16 CEST] <klaxa> what do you want us to tell you here? "use magical parameter --pixie-dust and all your problems will be resolved"?
[21:09:26 CEST] <nicolas17> what file size are you expecting to get?
[21:10:00 CEST] <klaxa> for quality comparison you encode multiple samples and compare them by eye
[21:10:27 CEST] <nicolas17> klaxa: oh but the camera settings don't have a way to set --pixie-dust! ;)
[21:10:31 CEST] <klaxa> if you want to compare pixel by pixel, do that, but with lossy encoding there will always be differences in every frame if you change the bitrate
[21:10:57 CEST] <dorvan> klaxa: opposite... playing with usable settings to get the best as possible with less delay and smallest file without downscaling or reduce framerate.
[21:11:23 CEST] <nicolas17> dorvan: but the only settings you can change are image size, framerate, bitrate, and profile?
[21:11:39 CEST] <dorvan> klaxa: ok with nude eyes you compare 4MP image with other?
[21:11:52 CEST] <klaxa> with what else
[21:11:53 CEST] <dorvan> at 30fps? .....
[21:12:04 CEST] <klaxa> do you have other visual organs? i don't :P
[21:12:38 CEST] <klaxa> if you really want to you can compare them with ssim and/or psnr
[21:12:58 CEST] <nicolas17> why get more quality if you won't *see* the difference?
[21:13:15 CEST] <dorvan> oh fuck*** probably you check video sources at fps read the bytes directly and comparing they... :-)
[21:13:21 CEST] <nicolas17> is it in case some day you need to zoom in on the video to see a detail? in that case, do the comparison zoomed in now
[21:14:28 CEST] <dorvan> nicolas17: i have to reduce delay mantaining a 4MP image at 30fps and video smooth, i have only those parameters to play with...
[21:15:35 CEST] <nicolas17> if I understood correctly, the only settings you can change are image size, framerate, bitrate, and profile
[21:15:47 CEST] <dorvan> firstly changeable params -> bitrate, and profile
[21:16:01 CEST] <dorvan> then... image size, framerate,
[21:16:08 CEST] <dorvan> as last option
[21:16:24 CEST] <nicolas17> you don't want to change image size (downscale) or frame rate, profile is already "high", so all you have left is reducing the bitrate
[21:16:56 CEST] <klaxa> in fact, bitrate is the only factor affecting filesize
[21:17:31 CEST] <nicolas17> klaxa: if he had access to 'preset' he could make it slower while reducing bitrate, to *maybe* keep the same quality
[21:17:50 CEST] <klaxa> bitrate would still be the only factor affecting filesize
[21:17:54 CEST] <nicolas17> yep
[21:18:06 CEST] <nicolas17> dorvan: what file size are you expecting to get?
[21:18:48 CEST] <dorvan> nicolas17: i think 20% less then now
[21:19:22 CEST] <nicolas17> so 48MB/s?
[21:19:23 CEST] <nicolas17> er
[21:19:29 CEST] <nicolas17> so 48MB/hour?
[21:19:30 CEST] <dorvan> profile can help me to reduce delay plus with bitrate reduction?
[21:19:34 CEST] <nicolas17> I keep mixing things up
[21:19:35 CEST] <nicolas17> /minute!
[21:19:48 CEST] <dorvan> i hope more... it's for minute...
[21:20:08 CEST] <dorvan> because seems too large for the quality acquired by cam sensor...
[21:20:13 CEST] <nicolas17> you're getting 60MB/minute now, 20% less is 48MB/minute
[21:20:33 CEST] <dorvan> i yes, something like this i hope...
[21:20:57 CEST] <dorvan> i have 1mbit/s steps in the selector..
[21:21:12 CEST] <nicolas17> 48MB/minute is about 6711k bitrate
[21:22:12 CEST] <dorvan> i have 6mbit/s so 46mbyte/m
[21:22:19 CEST] <dorvan> or less...
[21:35:07 CEST] <dorvan> nicolas17: I'm trying with baseline profile and 6mbit/s bandwidth
[21:44:11 CEST] <acos> Good afternoon
[21:45:51 CEST] <acos> I am having some issues with trying to merge videos. But before that how can I fix dts errors and choppy playback?
[21:59:54 CEST] <durandal_170> acos: what container?
[22:00:34 CEST] <acos> Avi h264
[22:01:08 CEST] <acos> It says dts non contiguous.
[22:01:36 CEST] <acos> And keeps spamming the console. The file sticks on playback during some parts.
[22:03:44 CEST] <acos> durandal_170: it also converted the file to 1920x1088 :(
[22:04:52 CEST] <durandal_170> avi is crap
[22:05:23 CEST] <acos> And frame rate is 28.662420
[22:05:43 CEST] <acos> The video editor I am using is limited. Wasn't sure what format to export too
[22:27:34 CEST] <durandal_170> acos: what else it can export?
[22:28:10 CEST] <acos> Wmv..... some you have to pay for to unlock in the software.
[22:28:24 CEST] <acos> I Wil have more info tonight busy now
[22:29:27 CEST] <durandal_170> wmv is asf and it may be better but dunno what it supporrts
[22:30:09 CEST] <JEEB> in theory you can stick almost whatever you want into ASF, but officially it's just WMV and WMA derivatives
[22:30:59 CEST] <klaxa> in theory, it seems, people hack just about everything into avi too :P
[22:33:31 CEST] <thebombzen> RIFF stuffs
[23:52:13 CEST] <DHE> acos: officially AVI does not support bframes. when transcoding set that to 0
[23:55:29 CEST] <acos> Hmmmm. Not sure. What format should I even be using ?
[00:00:00 CEST] --- Wed Aug 30 2017
1
0
[03:40:41 CEST] <rcombs> wow this samsamsam reply
[03:41:08 CEST] <rcombs> >Anyway we are talking about safety but parser for mp4 atoms missing checking and there is quite easy to make segfault of the libavformat when try to prepared mp4 file.
[03:41:08 CEST] <rcombs> >I understand that you want to have maximum safety with new code but I hope you know that ffmpeg at all is not safety.
[14:10:22 CEST] <cone-396> ffmpeg 03Jun Zhao 07master:385cafb07ac1: lavc/vaapi_encode_h265: Enable VBR mode
[14:10:23 CEST] <cone-396> ffmpeg 03Jun Zhao 07master:e4a6eb70f471: lavc/vaapi_encode: Change the slice/parameter buffers to dynamic alloc.
[14:10:24 CEST] <cone-396> ffmpeg 03Mark Thompson 07master:b264810ef7a3: hevc: Add names for reserved NAL unit types
[15:23:46 CEST] <JEEB> ah, `{"threads", "set the number of threads", OFFSET(thread_count), AV_OPT_TYPE_INT, {.i64 = 1 }, 0, INT_MAX, V|A|E|D, "threads"}`
[15:29:03 CEST] <rcombs> I'm not entirely sure why that's set to 1
[15:29:18 CEST] <rcombs> ffmpeg.c (or is it ffmpeg_opt.c) sets it to 0, except when probing
[15:29:20 CEST] <gh0st__> I had the same problem /w thread_count
[15:37:58 CEST] <JEEB> yea, it sets to zero => nonzero return => "auto"
[15:39:06 CEST] <BBB> back when the default was chosen, I believe someone (I cant remember who) complained that making the default zero (auto) would mean that the behaviour changed
[15:39:14 CEST] <BBB> a trollwar followed
[15:39:21 CEST] <BBB> and the end result was the default being 1, not 0
[15:40:46 CEST] <JEEB> I think you still have to poke around with threads for libvpx
[15:40:51 CEST] <JEEB> since for it zero == one
[15:42:59 CEST] <ubitux> i thought <whatever> == one with libvpx
[15:45:44 CEST] <JEEB> vp9 encoder lately'ish enabled threading
[15:45:50 CEST] <JEEB> as in, within N months
[16:10:25 CEST] <kierank> eugh
[16:10:26 CEST] <kierank> av_log_set_level(AV_LOG_DEBUG);
[16:13:32 CEST] <kierank> avfilter_graph_alloc_filter
[16:13:36 CEST] <kierank> just silently dies
[16:13:36 CEST] <kierank> lovely
[16:13:43 CEST] <JEEB> o_O
[16:53:35 CEST] <durandal_170> kierank: really?
[16:53:58 CEST] <kierank> if filter is not compiled in yes
[17:10:58 CEST] <JEEB> ah
[17:11:16 CEST] <JEEB> still probably not supposed to happen :)
[17:17:55 CEST] <durandal_170> JEEB: you working on that?
[17:24:11 CEST] <wm4> does it return an error code?
[17:24:18 CEST] <wm4> (which of course will be completely useless)
[17:24:59 CEST] <nevcairiel> its not like log messages are particularly helpful for api users =p
[17:26:02 CEST] <kierank> wm4: the av_get_filter does
[17:27:54 CEST] <BBB> ubitux: libvpx has tile threading (enc and dec, afaik)
[17:28:22 CEST] <BBB> ubitux: ffvp9 single-threaded is almost as fast as libvpx with 2 tile threads, but still
[17:28:25 CEST] <BBB> its something
[17:32:08 CEST] <JEEB> durandal_170: nope, got onto train and going home :p
[17:36:46 CEST] <rcombs> wm4: inb4 error code -1
[17:39:08 CEST] <BBB> error code -1 still beats randomly palced abort()s
[18:06:39 CEST] <RiCON> BtbN: http://sprunge.us/cCiW
[18:08:36 CEST] <atomnuker> iive: why do you have to mess with pic at all in your code?
[18:09:18 CEST] <atomnuker> none of the asm I've written has had to deal with that
[18:12:14 CEST] <iive> because I have a "table" lookup. so addr+reg,
[18:15:46 CEST] <iive> when using pic, you can have only [rpi+const] no second register in there.
[18:16:01 CEST] <iive> rip
[18:16:50 CEST] <atomnuker> const_int32_offsets?
[18:17:05 CEST] <atomnuker> what does $-const_int32_offsets mean?
[18:17:08 CEST] <iive> masks
[18:17:36 CEST] <iive> $ is the current address, it just calculates the offset from the start of the define.
[18:18:25 CEST] <atomnuker> so you pick const_float_0_5 or const_float_1 or const_float_sign_mask on runtime?
[18:18:41 CEST] <iive> what do you mean by pick?
[18:19:06 CEST] <atomnuker> load one without a jump into a register
[18:19:22 CEST] <iive> ??
[18:19:58 CEST] <iive> you mean, like `addps m0, [const_blabla]` ?
[18:20:16 CEST] <atomnuker> e.g. in c code memcpy(out, stack_start + selection*sizeof(const_float_0_5), sizeof(const_float_0_5))
[18:20:41 CEST] <iive> that's even more confusing.
[18:20:57 CEST] <atomnuker> what are you looking up and in which table?
[18:21:16 CEST] <iive> oh
[18:21:37 CEST] <iive> the sign mask is also used as padding mask
[18:22:14 CEST] <iive> to filter out the extra padding of the input data and pad the tmpX[N+1]=0.0
[18:22:31 CEST] <iive> [N] actually too.
[18:23:30 CEST] <atomnuker> so what do you look up?
[18:24:39 CEST] <iive> the mask
[18:25:41 CEST] <atomnuker> but its 0x80000000 everywhere
[18:26:42 CEST] <iive> it's unaligned access and it reads into the follow up zeroes
[18:27:17 CEST] <iive> aka, padding=0, (aligned access) would load the whole sign mask.
[18:27:55 CEST] <iive> padding=(mmsize-1), would load only one 0x80000000 and the rest is zero.
[18:28:15 CEST] <atomnuker> there's vmaskmov for this, isn't there
[18:28:26 CEST] <iive> no
[18:28:40 CEST] <iive> it needs the mask beforehand
[18:31:50 CEST] <atomnuker> movaps m2, [const_float_sign_mask]
[18:32:16 CEST] <atomnuker> where do you do the lookup into const_float_sign_mask?
[18:32:43 CEST] <iive> and maskmov is around 3000 cycles on Ryzen.
[18:34:11 CEST] <iive> movups m2, [pic_base_const_align_abs_edge + r4 - mmsize]
[18:39:09 CEST] <atomnuker> if you know that the padding is never going to be larger than mmsize couldn't you just pcmpeqd
[18:39:54 CEST] <atomnuker> rather PCMPGTW
[18:40:24 CEST] <atomnuker> where you have 0, 1, 2, 3 in the second register and the padding splatw'd across the first register
[18:41:08 CEST] <atomnuker> so as padding increases so would the resulting parts of the register be filled with 0
[18:41:20 CEST] <atomnuker> so then you just AND them to look right
[18:43:01 CEST] <iive> it's a lot more instructions
[18:43:20 CEST] <iive> and it goes over integer domain and back
[18:44:28 CEST] <iive> get the padding from gprs into m0
[18:44:35 CEST] <iive> broadcast it
[18:44:43 CEST] <iive> load offsets
[18:44:51 CEST] <iive> compare
[18:45:01 CEST] <iive> and with sign
[18:47:45 CEST] <iive> then move result from int to float domain, and hope you get just 1 cycle penalty
[18:50:32 CEST] <atomnuker> integer domain and back penalty is missing from anything newer than 2011 and its a lot less messy than touching pic yourself
[18:50:47 CEST] <atomnuker> besides you do this once at init
[19:14:25 CEST] <iive> what is the problem with pic?
[19:27:09 CEST] <iive> atomnuker: what is your problem with pic?
[20:00:39 CEST] <iive> atomnuker:
[20:13:38 CEST] <durandal_170> atomnuker is speechless
[20:13:41 CEST] <atomnuker> iive: I don't like it because its messy and can be avoided
[20:15:16 CEST] <iive> well, if you have something that is faster and works the same, then I'm on to it
[20:15:34 CEST] <iive> if you want to make the code bigger and slower, for no real reason or benefit
[20:15:41 CEST] <iive> then NO
[20:44:43 CEST] <atomnuker> if I have something that's slower and bigger when put into your code I'll rewrite the entire search then
[20:51:21 CEST] <iive> good luck with that.
[21:54:29 CEST] <kierank> wm4: oh wow that email
[21:56:19 CEST] <BtbN> how do you even mess up a reply that bad?
[21:56:57 CEST] <wm4> well there is a user-agent
[21:57:35 CEST] <wm4> "GWP-Draft"
[21:57:39 CEST] <wm4> whatever that is
[21:58:14 CEST] <BtbN> Google gives nothing useful for that
[22:00:12 CEST] <kierank> lol
[22:33:23 CEST] <philipl> wm4: "...so I wrote my own mail client." Now you have two problems.
[22:36:05 CEST] <philipl> https://generatewp.com/allow-multiple-recipients-wordpress-mail/
[22:36:07 CEST] <philipl> I bet that's it.
[22:36:11 CEST] <philipl> and that's terrifying.
[22:39:22 CEST] <wm4> what the hell
[22:42:56 CEST] <JEEB> lol
[22:45:40 CEST] <Mavrik> ... how?
[22:45:56 CEST] <Mavrik> "Let me use my WordPress as a mail client?" O.o
[22:51:29 CEST] <atomnuker> if the chromium folks want to save space they can just clean up the code of libvpx
[22:51:45 CEST] <atomnuker> abstraction over abstraction over abstraction to do a dct
[22:52:10 CEST] <atomnuker> additional 2d dcts on top of that which are only used for rdo
[22:53:01 CEST] <nevcairiel> for odd reasons they get set strict size constraints for their thrid-party plugins, no matter what they do
[22:54:28 CEST] <atomnuker> libvpx is third party too
[22:54:31 CEST] <Mavrik> Probably some silly thing like lack of space on Chromecast or Home devices.
[22:55:09 CEST] <nevcairiel> atomnuker: its still a single library though, and they probably expect entire ffmpeg to be the same size as vpx =p
[23:00:56 CEST] <kierank> at the same time it's very difficult to remove junk from ffmpeg
[23:01:12 CEST] <jamrial_> they are already removing two thirds of the stuff in libavutil in a custom way, leaving only md5, crc and the avcodec relevant modules
[23:02:48 CEST] <atomnuker> kierank: its very easy to remove certain things
[23:03:05 CEST] <atomnuker> yet for some like lavr its very hard (thanks nevcairiel)
[23:03:13 CEST] Action: kierank uses lavr
[23:03:19 CEST] <atomnuker> and you
[23:03:47 CEST] <kierank> hmmm seems --disable-ffserver is the culprit
[23:04:03 CEST] <kierank> if you add that then junk like ffm muxer and asf goes away
[23:04:24 CEST] <jamrial_> ffm sure, but asf how?
[23:04:55 CEST] <kierank> oh lets do this fairly and use a new ffmpeg
[23:05:01 CEST] <jamrial_> isn't that wmv?
[23:05:07 CEST] <nevcairiel> it is
[23:05:22 CEST] <nevcairiel> but who knows what ffm all pulls in
[23:07:09 CEST] <kierank> --disable everything pulls in:
[23:07:10 CEST] <kierank> asf mov mpegts rm rtsp
[23:07:30 CEST] <kierank> cuda cuvid nvenc
[23:07:41 CEST] <kierank> most of it goes away with --disable-ffserver
[23:07:49 CEST] <kierank> except that cuda stuff which I explicitly remove
[23:08:01 CEST] <BtbN> why does that not fall under disable everything?
[23:08:02 CEST] <jamrial_> ffserver_select="ffm_muxer rtp_protocol rtsp_demuxer"
[23:08:06 CEST] <jamrial_> rtp probably pulls the asf stuff
[23:08:41 CEST] <jamrial_> BtbN: disable-everything doesn't disable ffmpeg/ffplay/ffprobe/ffserver
[23:08:48 CEST] <jamrial_> that's done by disable-programs
[23:09:03 CEST] <BtbN> cuda/nvenc I mean
[23:09:13 CEST] <BtbN> I see no reason why it should be enabled in a disable-everything build
[23:09:37 CEST] <kierank> why can't --disable-everything disable programs
[23:10:22 CEST] <nevcairiel> because thats what --disable-all does, i guess
[23:10:27 CEST] <nevcairiel> (confusing, i know)
[23:10:45 CEST] <kierank> yeah just seen that
[23:10:46 CEST] <kierank> news to me
[23:10:51 CEST] <nevcairiel> speaking of odd build things, configure on windows enables x11
[23:10:58 CEST] <nevcairiel> which apparently has no system dependencies whatsoever
[23:11:11 CEST] <JEEB> hah
[23:11:12 CEST] <nevcairiel> doesnt cause any issues either
[23:11:15 CEST] <nevcairiel> but its just there
[23:11:20 CEST] <jamrial_> really? it doesn't for me
[23:11:22 CEST] <kierank> note --disable-all still does
[23:11:22 CEST] <kierank> cuda cuvid nvenc
[23:11:44 CEST] <kierank> cuda_deps_any="dlopen LoadLibrary"
[23:11:50 CEST] <kierank> everyone has those so I guess it works
[23:11:55 CEST] <nevcairiel> jamrial_: xlib to be precise
[23:12:20 CEST] <nevcairiel> https://pastebin.com/wuT8uzJZ shrug
[23:13:41 CEST] <jamrial_> kierank: not really, but it doesn't hurt for those that don't since it just fails if you try to use it
[23:14:13 CEST] <kierank> but it means shipping bloat
[23:14:13 CEST] <jamrial_> nevcairiel: oh lol, i see CONFIG_XLIB=yes in my config.mak
[23:15:45 CEST] <jamrial_> nevcairiel: https://pastebin.com/Ptx0HR2P maybe
[23:17:48 CEST] <nevcairiel> yeah guess its just never disabled
[23:17:57 CEST] <jamrial_> grep -r CONFIG_XLIB * --> no results
[23:18:19 CEST] <nevcairiel> is it used as a dep for other things?
[23:18:22 CEST] <nevcairiel> or just old?
[23:18:30 CEST] <jamrial_> within configure, for those headers
[23:19:15 CEST] <nevcairiel> seems never used anywhere
[23:19:24 CEST] <jamrial_> xv_outdev_deps="X11_extensions_Xvlib_h XvGetPortAttribute"
[23:19:39 CEST] <nevcairiel> that sounds like a dumb way to do it
[23:19:47 CEST] <jamrial_> probably
[23:19:48 CEST] <nevcairiel> why not just depend on xlib
[23:21:59 CEST] <BtbN> hm, so disable-everything does disable all the encoders/decoders
[23:22:07 CEST] <BtbN> Don't understand how cuvid and nvenc survive that
[23:22:52 CEST] <nevcairiel> it disables everything in COMPONENT_LIST, which doesnt include the libraries themself, only actuel encoders/decoders
[23:23:12 CEST] <BtbN> But that should mean no actual code is left?
[23:23:14 CEST] <kierank> https://www.irccloud.com/pastebin/Ng6t7Czt/
[23:23:20 CEST] <kierank> cuda stuff is in avutil
[23:23:26 CEST] <nevcairiel> the avutil hwcontext stuff remains, indeed
[23:23:52 CEST] <nevcairiel> could extend disable-everything to in clude those, especially the autodetected stuff
[23:28:04 CEST] <wm4> funny, all this bullshit about not having autodetection by default (which severely confuses users), and it gets it wrong anyway
[23:28:31 CEST] <wm4> you'd almost think autodetection everything by default is ok, and --disable-everything should just disable everything
[23:28:52 CEST] <wm4> instead of using autodetection only "sometimes" and --disable-everything not actually disabling everything
[23:29:14 CEST] <nevcairiel> i would like an option like --disable-external-shit
[23:29:36 CEST] <nevcairiel> i dont want unexpected external deps on anything
[23:29:46 CEST] <nevcairiel> but i dont want to have to deal with enabling all internal components again manually
[23:30:23 CEST] <nevcairiel> these days I have to ldd binaries before i can be sure i can ship them
[23:31:20 CEST] <nevcairiel> speaking of, i should probably make a new build and finally get off my ass and implement hw decoding on linux now that all the hwcontext stuff does all the hard work for me
[23:33:04 CEST] <jamrial_> is this about $dayjob stuff?
[23:33:29 CEST] <nevcairiel> yea
[23:36:04 CEST] Action: kierank wants --disable-every-bloody-thing
[23:37:45 CEST] <atomnuker> nevcairiel: why are you not using lswr?
[23:38:39 CEST] Action: kierank wonders whether to troll atomnuker with that site
[23:39:23 CEST] Action: kierank uses avr because it had public patch review
[23:46:15 CEST] <nevcairiel> I dont particularly remember why I used lavr when I did, but spending time to change it is time i'm not getting back :)
[23:46:50 CEST] <atomnuker> kierank: last time you told me you liked its API better now you tell me another reason
[23:47:03 CEST] <kierank> not mutually exclusive
[23:47:17 CEST] <atomnuker> I don't believe any of you has a good reason
[23:47:22 CEST] <kierank> and during one of the many flamewars about this have gone on record about this
[23:47:25 CEST] <kierank> on various MLs
[23:49:45 CEST] <atomnuker> sure, I love reading outdated reasons which are irrelevant now on various topics
[23:50:00 CEST] <atomnuker> kinda like, I dunno, "ffmpeg never removes things"
[23:50:13 CEST] <kierank> ffmpeg pushes stuff without any public review
[23:50:16 CEST] <kierank> like swresample
[23:50:17 CEST] <kierank> hmmm
[23:51:06 CEST] <atomnuker> sure, like people experienced in dsp are particularly common, especially those who know about resapling
[23:51:37 CEST] <kierank> people should still have commented on the API
[23:51:50 CEST] <atomnuker> its a decent API, I don't mind it
[23:51:50 CEST] <kierank> at the time it was a copy paste of swscale...
[23:52:07 CEST] <kierank> then it was patched after complaints to use avframe
[23:53:34 CEST] <kierank> oh well north korea is firing missles
[23:53:39 CEST] <kierank> see you all in the afterlife
[23:54:02 CEST] <JEEB> kierank: my phone buzzed a lot during the last 30min :D
[23:54:11 CEST] <kierank> ohshit
[23:54:23 CEST] <JEEB> but it seems like it a) passed and b) broke down in three parts, is in the pacific ocean now
[23:54:57 CEST] <JEEB> j-alert sent a message like "passed this area, if you find anything weird please do not go close to it and inform officials"
[23:56:41 CEST] <gh0st__> kierank: "oh well north korea is firing missles", I hope to finish my assembly before that. =)
[00:00:00 CEST] --- Tue Aug 29 2017
1
0
[00:03:29 CEST] <DHE> that's been a feature request for a while..
[00:03:40 CEST] <DHE> what are you trying to accomplish exactly?
[00:05:25 CEST] <selsta> so here is my current code: https://github.com/selsta/hlsdl/blob/master/src/hls.c#L292
[00:05:25 CEST] <selsta> problem is, I cant get the sample rate and the frame size because the audio is encrypted
[00:06:40 CEST] <selsta> avformat_write_header() crashes because I dont have a sample rate
[00:12:29 CEST] <DHE> huh... I always thought that mpegts encrypted in (up to) 184 byte frames
[00:13:51 CEST] <JEEB> yea, the mpeg-ts layer is 188 byte packets
[00:13:58 CEST] <selsta> its sample-aes hls encryption, not mpeg-ts encryption
[00:14:16 CEST] <JEEB> and yea, you can just encrypt the payload in that case
[00:14:24 CEST] <DHE> yes, with a 4 byte header
[00:14:48 CEST] <DHE> ah, yes HLS does have another encryption mode. but ffmpeg only supports the full encryption option
[00:15:17 CEST] <selsta> my program is a decrypter for that other encryption mode
[00:15:27 CEST] <JEEB> anyways, not fully sure libavformat is the thing to use in this case since it's supposed to be dealing with unecrypted data after it goes through the demuxer. esp. if you want to keep the original mpeg-ts structure
[00:15:56 CEST] <DHE> sounds more like you want to implement an HLS->MPEGTS converter that does the on-the-fly decryption and just provides ffmpeg with an IOContext (?)
[00:16:20 CEST] <JEEB> (36
[00:16:51 CEST] <selsta> yess
[00:17:19 CEST] <selsta> the code already works for one stream that I have
[00:17:34 CEST] <selsta> but dosent work for another stream
[00:19:42 CEST] <selsta> Im just out of ideas how I should implement this properly
[00:21:14 CEST] <__jack__> HLS -> mpegts ? that's really easy, is not it ? you just need to parse the HLS playlist, curl (and decrypt) the files, and concat them (using cat for instance, so really a plain dummy concat)
[00:22:20 CEST] <selsta> sample-aes decryption is more complicated I need the mpeg-ts packets
[00:57:26 CEST] <gtxbb> hi
[00:57:55 CEST] <stimple> hullo, trying to cut a mp4 with -ss and -t but the vid seems to lack a keyframe anywhere near where i want to cut
[00:58:04 CEST] <stimple> hi gtxbb
[00:59:13 CEST] <stimple> what format should i encode to let me cut with -ss and not have garbage at the beginning?
[01:01:04 CEST] <gtxbb> wondering if i can ask for help lol
[01:01:19 CEST] <gtxbb> stimple, hey im a bit of a noob too
[01:01:32 CEST] <gtxbb> stimple, i was looking at -ss, you'll need to use -ts i tihnk
[01:01:45 CEST] <gtxbb> stimple, you need to specify a time offset
[01:02:33 CEST] <gtxbb> stimple, https://libav.org/avconv.html#Main-options
[01:03:10 CEST] <gtxbb> sorry wrong page lol.. must be a ffmpeg equivalent i guess
[01:03:11 CEST] <stimple> no ffmpeg option -ts
[01:03:37 CEST] <gtxbb> https://ffmpeg.org/ffmpeg.html#Main-options
[01:04:27 CEST] <gtxbb> i'm perusing tools...
[01:04:39 CEST] <gtxbb> hmm not sure if I can use unix:// << is this a control socket?
[01:05:14 CEST] <stimple> don't know
[01:05:32 CEST] <Nitori> -ss description already says why that happens. you basically have to reencode the video. with simple copy it doesn't work
[01:05:41 CEST] <stimple> ty
[01:06:04 CEST] Action: gtxbb https://ffmpeg.org/ffmpeg-protocols.html#unix
[01:06:09 CEST] <Nitori> so use -ss after the input (on the output)
[01:07:05 CEST] <gtxbb> what can i use a unix local socket?
[01:07:18 CEST] <gtxbb> is that a controller socket for command?
[01:07:31 CEST] <gtxbb> (i can do this with vlc, can i do this with ffmpeg?)
[01:08:06 CEST] <Nitori> what exactly?
[01:19:39 CEST] <gtxbb> cant seem to find a way to use it.. my ffmpeg build supports it, anyone?
[01:21:46 CEST] <DHE> it's a variant that's like TCP and local only and performs better when dealing with lots of data
[01:25:29 CEST] <stimple> what's a good output format for video editing? there used to be something called huffyuv but i think that might exceed my space
[01:25:39 CEST] <stimple> don't need perfect quality
[01:27:52 CEST] <gtxbb> DHE, i want to use it, i'm trying to use it..
[01:28:02 CEST] <gtxbb> (i need it)
[01:31:08 CEST] <gtxbb> echo help |nc -w 2 -U avconv.socket
[01:31:08 CEST] <gtxbb> nc: unix connect failed: Connection refused
[01:32:12 CEST] <stimple> i guess mjpeg
[01:32:30 CEST] <stimple> maybe not
[01:49:27 CEST] <DHE> huffyuv if you're using yuv colourspace. ffmpeg also provides its own variant of huffyuv and you can also try ffv1
[01:49:44 CEST] <stimple> ty!
[01:53:21 CEST] <furq> ffv1 will be much smaller than huffyuv but also a bit slower
[01:53:49 CEST] <furq> but if you need compatibility with premiere, final cut etc then ffv1 is tricky
[01:54:03 CEST] <furq> ut video is probably the best thing if you need NLE compatibility
[01:54:24 CEST] <dan2wik> Is there a way I can set which decoder to use?
[01:54:46 CEST] <furq> -c before -i
[01:54:59 CEST] <dan2wik> Oh, ok thanks
[02:07:02 CEST] <dan2wik> I have a camera that can output h264 video, I am using v4l2 to access it, could I specify "-c:v h264_mmal" to use the Pi's hardware decoder?
[02:07:19 CEST] <dan2wik> I'm still compiling ffmpeg so I'm unable to try it right now
[02:21:06 CEST] <furq> yeah that should work
[06:58:24 CEST] <basse_> hi anyone with experience capturing audio with ffmpeg and pulseaudio? I want to capture audio from a specific browser tab when I have multiple tabs open, by using -f pulse -i default, I capture all the sounds within the system, but I want to capture teh sounds of s single tab, any ideas?
[13:44:32 CEST] <mozzarella> guys help
[13:45:43 CEST] <meriipu> what happened to --enable-libnpp ? I have added these https://bpaste.net/show/f7125fe366da options, but recently I get a "libnpp not found"-error when building. It used to work as far as I remember. This is to get the scale_npp filter.
[13:49:28 CEST] <meriipu> I have an npp.h in /opt/cuda/include/ (as well as nppi.h and npps.h). I have libnppc.so, libnppi.so, and libnpps.so in lib64 (though no libnpp.so that I can find, I can not remember if I used to have one).
[13:50:48 CEST] <meriipu> the answer to https://stackoverflow.com/questions/41870137/ffmpeg-error-libnpp-not-found-… mentions something about a broken configuration script, but I do not quite understand the implications.
[13:51:37 CEST] <JEEB> "--enable-libnpp" is at least the correct parameter in the configure script
[13:52:10 CEST] <meriipu> (for what it is worth, it builds without --enable-libnpp all other things the same, but that does not make the filter available it seems).
[13:52:10 CEST] <JEEB> check where it fails in ffbuild/config.log with regards to libnpp
[13:53:03 CEST] <BtbN> The guy claiming configure to be broken is just talking nonsense.
[13:53:27 CEST] <JEEB> yea, just check what the configure script fails with
[13:53:36 CEST] <BtbN> The configure options name has no relation to the libraries it actually checks for.
[13:53:55 CEST] <JEEB> people often jump into conclusions
[13:54:05 CEST] <BtbN> If you are using the CUDA 9 RC SDK: They renamed one of the libraries there. Once it's released, I will update configure accordingly.
[13:54:23 CEST] <JEEB> kek, changing names :D
[13:54:54 CEST] <BtbN> They are intended to be bundled with the application, and not installed into the system
[13:54:59 CEST] <BtbN> as such, they are free to rename them
[13:55:19 CEST] <BtbN> And it also makes them kind of horrible to use in ffmpeg
[13:56:33 CEST] <meriipu> it seems to consider the ones it found incompatible https://bpaste.net/show/9f4b57d33b3a
[13:57:07 CEST] <BtbN> you're compiling 32bit, and CUDA is x86_64
[13:57:22 CEST] <meriipu> aaa
[13:59:14 CEST] <meriipu> yes I remember some install flag change earlier that enabled the 32bit version as well so that is likely it
[13:59:28 CEST] <meriipu> (that some other package I have wanted I think)
[13:59:42 CEST] <BtbN> It's 100% clearly what's happening. Not only likely.
[13:59:54 CEST] <BtbN> gcc is instructed to build in 32bit mode, and cuda is 64bit only
[14:00:31 CEST] <meriipu> that makes sense thanks
[14:13:21 CEST] <meriipu> seems to have been my (32+64bit) install of opencv wanting 32bit ffmpeg, causing 32bit ffmpeg to be built. Rebuilding only 64bit ffmpeg worked sucessfully. Thanks for the help
[15:13:51 CEST] <Fyr> guys, when remuxing video with simple copying of the streams, a mjpeg image is marked as Video #2.
[15:14:05 CEST] <Fyr> what is the option to mark it as attachment?
[15:19:10 CEST] <JEEB> Fyr: it's side data as far as I know in the stream
[15:19:17 CEST] <Fyr> yes
[15:19:28 CEST] <Fyr> how do I set it as an attachment?
[15:21:29 CEST] <JEEB> AV_DISPOSITION_ATTACHED_PIC
[15:21:32 CEST] <JEEB> seems to be the thing
[15:21:47 CEST] <JEEB> seems to be a flag in stream->disposition
[15:22:01 CEST] <Fyr> thanks, I'll try that.
[15:22:57 CEST] <Fyr> JEEB, there are many dispositions, however, there is none for image.
[15:23:10 CEST] <Fyr> default, karaoke, forced etc.
[15:24:13 CEST] <JEEB> you can see it if you git grep FFmpeg's code :P
[15:26:12 CEST] <JEEB> https://www.ffmpeg.org/doxygen/trunk/avformat_8h.html#aa8e9704bcc842236ad04…
[15:26:18 CEST] <JEEB> it's right there
[15:26:24 CEST] <JEEB> just not sure how many muxers take it in
[15:30:52 CEST] <Fyr> Unable to parse option value "attached_pic"
[15:31:08 CEST] <Fyr> it's in the source code, however, there is no option for this define.
[15:37:19 CEST] <JEEB> oh, you're using the cli?
[15:37:22 CEST] <JEEB> nfi then :D
[15:51:56 CEST] <Fyr> JEEB, do you happen to know how mux some stream into NULL?
[15:52:16 CEST] <Fyr> I'll try to copy everything except or selected streams.
[16:09:19 CEST] <rungcc_from_work> hi guys
[16:09:26 CEST] <rungcc_from_work> could someone help me with something?
[16:10:08 CEST] <rungcc_from_work> I'm trying to make ffmpeg create a 100% transparent 1920x1080 23.976fps video
[16:11:06 CEST] <rungcc_from_work> but I'm not being able to find the right command, I'm trying a lot of things here and looking at the help files, but I'm confused as a MF.
[16:19:19 CEST] <furq> rungcc_from_work: -f lavfi -i color=#00000000:s=1920x1080:r=24000/1001,format=yuva420p
[16:21:51 CEST] <rungcc_from_work> hi furq, unfortunately this also generate a black video instead of a transparent one
[16:22:03 CEST] <rungcc_from_work> at lease final cut identify it as black instead of transparent
[16:28:40 CEST] <charly> hello, there is a simple way to convert an AVFrame (with all data) into AVPacket ?
[16:30:10 CEST] <jsbilodeau> Hi all! What is the best way to add a klv stream (SMPTE 336M KLV Data Encoding Protocol Using Key-Length-Value) using libavformat in c++? I quickly read mxf.h mxf_enc.c and there is some mention about the klv. Would the best way to do this is to use AVIOContext and avio_w * () and get inspiration from mxf_enc.f?
[16:55:21 CEST] <Trel> I was looking at the encoding options for libx264 and more specifically at two pass encoding. I'm curious, since I'm not entirely familiar with the program yet, but how would the 2 pass encoding be separated out into two distinct steps?
[16:59:18 CEST] <furq> you run ffmpeg twice
[16:59:48 CEST] <furq> assuming you actually want 2-pass, which is unlikely
[17:02:56 CEST] <Trel> furq: I would want 2 pass, but I'm not sure how to do that as two commands. https://trac.ffmpeg.org/wiki/Encode/H.264#twopass I'm looking at the example there. I'm not sure what input would be on the second pass
[17:03:59 CEST] <furq> the same as it would be on the first pass
[17:04:10 CEST] <furq> the first pass writes a log file to the working directory
[17:04:14 CEST] <furq> the second pass will automatically read from that
[17:04:55 CEST] <furq> like it says, unless you're targeting a specific filesize then you shouldn't use 2pass with x264
[17:08:56 CEST] <Trel> I AM targeting a specific filesize.
[17:09:08 CEST] <Trel> Is it the -pass 1 and -pass 2 that make it read/write the log
[17:09:48 CEST] <c_14> yes
[17:09:49 CEST] <kepstin> with -pass 1 it writes the log, with -pass 2 it reads it, yes.
[17:10:15 CEST] <Trel> Cool, that's all I needed then ,thanks :) (I'm putting a video on the remaining space on a flash drive for family).
[17:10:23 CEST] <Trel> Hence why I'm targeting size
[17:38:40 CEST] <Fyr> guys, when remuxing, I set one of the streams as default, however, the output file has two streams set as default. how do I mark one of them as non-default?
[17:46:33 CEST] <Fyr> Google doesn't know the answer.
[17:51:48 CEST] <atomnuker> Fyr: -map "0:v"?
[17:52:33 CEST] <Fyr> what?
[17:53:17 CEST] <atomnuker> map the outputs you want manually
[17:53:48 CEST] <Fyr> -i file -map 0:0 -map 0:3 -map 0:1 -map 0:11 -map 0:5 -c copy -metadata:s:v:0 language=English -metadata:s:a:0 language=English -disposition:a:0 default -metadata:s:a:1 language=Russian -metadata:s:s:0 language=English -disposition:s:0 default -metadata:s:s:1 language=Russian
[17:54:31 CEST] <atomnuker> oh, I didn't read
[17:54:51 CEST] <atomnuker> which streams are default?
[17:55:00 CEST] <Fyr> both audio
[17:57:33 CEST] <Fyr> atomnuker, how is it going with AAC?
[17:58:10 CEST] <atomnuker> nowhere, I'm doing the opus encoder now
[17:58:24 CEST] <atomnuker> I'm pretty sure s:v:0 is incorrect
[17:58:39 CEST] <atomnuker> 0th stream's video's subtitle stream?
[17:58:57 CEST] <Fyr> the problem is with audio streams.
[17:59:36 CEST] <atomnuker> disposition is copied afaik
[18:00:03 CEST] <atomnuker> so you need to 0 the russian streams's disposition if the input file has it as the default
[18:00:04 CEST] <Fyr> then how to remove disposition?
[18:00:18 CEST] <atomnuker> -disposition:a:1 0
[18:00:25 CEST] <Fyr> thanks
[00:00:00 CEST] --- Tue Aug 29 2017
1
0
[00:25:22 CEST] <thebombzen> wm4: if I want to use vo_vulkan rn as a test, which development branch should I use (I mean instead of master)
[00:26:51 CEST] <wm4> thebombzen: haasn's repo, vulkan branch
[01:03:02 CEST] <cone-278> ffmpeg 03Martin Vignali 07master:435dd2ee4e08: configure: add avx2 enabled log
[01:57:04 CEST] <graphitemaster> wm4, your sdl example in mpv-examples wrongly assumes fbo 0 is the default framebuffer (this won't work on android for instance where the default fbo is something else entierly)
[01:57:17 CEST] <graphitemaster> you have to actually get the currently bound fbo instead and pass that handle into mpv_opengl_cb_draw
[01:58:14 CEST] <graphitemaster> the iOS example is correct since it gets the framebuffer binding
[03:10:57 CEST] <cone-278> ffmpeg 03James Almer 07master:257f0d09f7b4: avcoec/snowenc: silence some deprecation warnings
[03:38:56 CEST] <iive> graphitemaster: you need to run `perf` as root
[03:39:10 CEST] <iive> and `perf top` is what you might want to try first.
[03:40:03 CEST] <graphitemaster> iive, I did
[03:45:06 CEST] <iive> as kernel options, I think you need CONFIG_PROFILING and OPROFILE
[03:45:54 CEST] <iive> is config_audio about SElinux?
[03:46:04 CEST] <iive> config_audit
[03:46:55 CEST] <iive> gtg, bbl
[06:29:09 CEST] <hanna> graphitemaster: glslang also doesn't install itself properly and doesn't come with a pkgconfig file, at least not here - but that might be a packaging problem (it's not available in the official repos, apparently not for most other major distros as well - so I installed a third party package)
[08:54:19 CEST] <cone-973> ffmpeg 03Paul B Mahol 07master:99b6e68441ce: avfilter/af_amix: do not request samples if inlink reached EOF
[15:55:34 CEST] <BtbN> I somehow doubt that cmd length issue
[15:55:39 CEST] <BtbN> that would have blown up way earlier
[16:34:43 CEST] <rcombs> >PATCH v15 >still has a format-string vuln
[16:35:00 CEST] <JEEB> did anyone bring it up? :D
[16:35:03 CEST] <rcombs> I did, just now
[16:35:05 CEST] <JEEB> ah
[16:35:08 CEST] <JEEB> cool
[16:35:24 CEST] <rcombs> I've responded to this guy's DASH patches so many times pointing out these things
[16:35:34 CEST] <JEEB> \o/
[16:35:36 CEST] <rcombs> and every time he comes back with another one that has a slightly different format-string vuln
[16:35:44 CEST] <rcombs> I don't understand how this happens
[16:35:55 CEST] <JEEB> lol
[16:37:52 CEST] <rcombs> what part of "don't pass file-derived data to snprintf()" doesn't he understand
[16:37:59 CEST] <rcombs> is it the language barrier
[16:38:20 CEST] <JEEB> possibly
[16:38:59 CEST] <rcombs> but yeah unfamiliarity with that very basic principle makes me inclined to recommend multiple passes over this with a fine-toothed comb before it lands
[16:39:15 CEST] <rcombs> (I've looked over it a few times and found some things, but I'd appreciate additional sets of eyes)
[16:40:27 CEST] <JEEB> I'll try to take a look at it some time soon, although I've tried to keep away from the XML side of DASH which is what that mostly touches :D
[16:40:51 CEST] <rcombs> he's also switched from using av_asprintf() to snprintf()+av_malloc()+snprintf() now
[16:41:01 CEST] <rcombs> which is weird, because that's literally what av_asprintf() is
[16:41:12 CEST] <JEEB> yea...
[16:48:26 CEST] <ubitux> av_asprintf is not in libav
[16:49:03 CEST] <ubitux> that might be related
[16:49:09 CEST] <JEEB> I don't think that patch was posted on libav?
[16:50:09 CEST] <JEEB> yea, don't see it on libav-devel
[16:50:30 CEST] <ubitux> dunno, i added it in 2011 in ffmpeg
[17:21:58 CEST] <cone-809> ffmpeg 03Paul B Mahol 07master:2ce43274e392: avfilter/vf_zoompan: switch to activate
[17:21:58 CEST] <cone-809> ffmpeg 03Paul B Mahol 07master:bf39f7eadc68: avfilter/vf_zoompan: parse zoom,x and y expression during initialization
[17:32:27 CEST] <ubitux> v2 fixed: [...] "use API from snprintf to av_asprintf"
[17:32:40 CEST] <ubitux> he probably rolled back because he has troubles with git
[17:33:10 CEST] <ubitux> or maybe that's simply an old patch
[17:36:07 CEST] <jamrial> ubitux: btw, got the major bump working, so we can either apply it at any point after 3.4 is released (michael and marton balint wanted that release before the bump), or once we resume with the merges
[17:43:27 CEST] <ubitux> i won't work on the merge soon
[17:44:45 CEST] <jamrial> alright. i'll send the patchset this week then
[17:49:42 CEST] <jamrial> you got no news from the dashenc guy either?
[17:58:12 CEST] <j-b> BBB: pong
[18:10:57 CEST] <BBB> j-b: nevermind, already figured things out on #videolan
[18:12:03 CEST] <cone-809> ffmpeg 03Marton Balint 07master:76a8b5e7adbb: avdevice/decklink_dec: fix signed and unsigned comparison warning
[18:12:05 CEST] <cone-809> ffmpeg 03pkviet 07master:84ee6512ed70: avdevice/decklink_enc: enable 16 output channel
[18:12:05 CEST] <cone-809> ffmpeg 03Maksym Veremeyenko 07master:2634927fe30e: lavd: implement NewTek NDI input/output device support
[18:30:13 CEST] <durandal_1707> why is there no native decoder for speex codec?
[18:31:50 CEST] <jamrial> same reason there's none for celt i guess, no real interest/use
[18:35:14 CEST] <RiCON> the celt one could be harvested from opus, probably
[19:29:47 CEST] <atomnuker> nah, incompatible
[19:37:00 CEST] <cone-809> ffmpeg 03Michael Niedermayer 07master:7ec414892ddc: avformat/hls: Fix DoS due to infinite loop
[19:37:01 CEST] <cone-809> ffmpeg 03Yi and *®() 07master:7f9ec5593e04: avformat/asfdec: Fix DoS due to lack of eof check
[19:37:02 CEST] <cone-809> ffmpeg 03Yi and *®() 07master:7e80b63ecd25: avformat/cinedec: Fix DoS due to lack of eof check
[19:37:03 CEST] <cone-809> ffmpeg 03Yi and *®() 07master:124eb202e706: avformat/rmdec: Fix DoS due to lack of eof check
[19:37:04 CEST] <cone-809> ffmpeg 03Yi and *®() 07master:96f24d1bee7f: avformat/rl2: Fix DoS due to lack of eof check
[19:37:05 CEST] <cone-809> ffmpeg 03Michael Niedermayer 07master:4f05e2e2dc1a: avformat/mvdec: Fix DoS due to lack of eof check
[19:40:49 CEST] <kierank> oh lord
[19:40:52 CEST] <kierank> that patchset
[19:43:18 CEST] <jamrial> the author name and email is wtf
[19:44:21 CEST] <jamrial> michaelni: should the error in those be AVERROR_EOF?
[19:44:46 CEST] <jamrial> shouldn't
[20:01:22 CEST] <michaelni> jamrial, some of the patches have 2 authors, which is hard to write cleanly in git
[20:02:49 CEST] <michaelni> about the error codes, a file truncated in the middle of the header is invalid and it is EOF. I can change it t EOF and post a patchset if that is preferred
[20:03:32 CEST] <jamrial> ah. if it's in the middle of the header then no, it's fine as is
[20:04:27 CEST] <jamrial> and IMO, it would have been better to choose one name/email for the author field, then mention the other in the commit message
[20:29:35 CEST] <michaelni> durandal_1707, 2ce43274e39295e3965c51dcfaf802628a5929f9 causes Assertion !(filter->filter->flags & (1 << 16) && filter->filter->activate) failed at libavfilter/avfilter.c:1472
[20:30:13 CEST] <michaelni> ./ffmpeg -f lavfi -i testsrc -vf zoompan -vframes 5 -y a.avi
[20:31:08 CEST] <durandal_1707> michaelni: just remove flag from zoompan for now
[20:53:00 CEST] <cone-809> ffmpeg 03Michael Niedermayer 07master:eefb68c9c335: avcodec/sbrdsp_fixed: Fix undefined overflows in autocorrelate()
[20:53:01 CEST] <cone-809> ffmpeg 03Michael Niedermayer 07master:0181b202cc42: avcodec/aacpsdsp_template: Fix undefined integer overflow in ps_add_squares_c()
[20:53:02 CEST] <cone-809> ffmpeg 03Michael Niedermayer 07master:aa26258faa97: avfilter/vf_zoompan: remove AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
[21:09:39 CEST] <cone-809> ffmpeg 03Timo Rothenpieler 07master:ef0c6d9b01de: libavutil/opencl: fix potential null dereference
[00:00:00 CEST] --- Mon Aug 28 2017
1
0
[00:44:32 CEST] <FishPencil> Does librtmp provide any additional features in FFmpeg than just including gmp?
[02:21:17 CEST] <wiak> is there a way to get ffmpeg not to quit when there is no rtmp input stream? so it just simply stays open until there is stream again?
[02:22:21 CEST] <c3r1c3-Win> wiak: My way around that was to write a script that would cycle back to the beginning and start ffmpeg anew whenever it quit.
[02:26:00 CEST] <wiak> c3r1c3-Win okey something like my ninjaservice ;P https://github.com/nwgat/ninjaservice/blob/master/ninjaservice.py
[02:47:30 CEST] <c3r1c3-Win> wiak: I wrote a bash script, but if python works for you, go for it.
[05:53:36 CEST] <thebombzen> does ffmpeg not work with the new zimg?
[05:54:10 CEST] <thebombzen> oh nvm, I'm being dumb
[09:36:12 CEST] <martian_> hllo everybody ...I am new to open source and beginner in C and C++ .can someone guide me how can contribute to ffmpeg
[10:14:13 CEST] <thebombzen> martian_: http://ffmpeg.org/contributing
[10:14:53 CEST] <thebombzen> rip, nvm that's a 404
[10:14:56 CEST] <thebombzen> martian_: https://ffmpeg.org/developer.html
[10:17:05 CEST] <martian_> thebombzen:Thank you
[18:22:32 CEST] <Pandela> I think there might be a problem with libspeex in FFmpeg
[18:22:54 CEST] <Pandela> I can encode a file just fine, but when I use libspeex as a decoder it says No codec could be found with name 'libspeex'
[18:22:59 CEST] <Pandela> https://pastebin.com/raw/nZ27Sua4
[18:23:25 CEST] <BtbN> your ffmpeg is built without libspeex then
[18:24:17 CEST] <Pandela> BtbN: DEA.L. Speex (decoders: libspeex ) (encoders: libspeex )
[18:24:46 CEST] <BtbN> The output disagrees though
[18:25:16 CEST] <BtbN> Are you sure ffplay is as well?
[18:26:32 CEST] <Pandela> https://pastebin.com/raw/mFaZ9tmq
[18:26:36 CEST] <Pandela> it looks like it might be ffplay
[18:28:41 CEST] <BtbN> Yeah, there is no enable-speex in there.
[18:29:00 CEST] <BtbN> Can always use ffmpeg itself to play. There is some alsa/pulse output device.
[18:29:27 CEST] <Pandela> true, I could try that
[18:29:39 CEST] <Pandela> https://pastebin.com/raw/TFvduhMJ yeah it seems to only be ffplay
[18:32:59 CEST] <Pandela> https://pastebin.com/raw/WSuGL6RV I wonder if there is any additional flags I can use on the config. Just a curiousity
[18:34:14 CEST] <BtbN> How do you even end up with ffplay and ffmpeg from different builds?
[18:34:41 CEST] <BtbN> And... why do you even use speex?
[18:36:28 CEST] <Pandela> BtbN: what do you mean different builds? :0
[18:36:46 CEST] <Pandela> And I'm experimenting with databending on different codecs lol
[18:37:07 CEST] <BtbN> that ffmpeg and ffplay binary are clearly not from the same configure call.
[18:37:31 CEST] <Pandela> Oh, I see it now.
[18:38:03 CEST] <Pandela> thats weird
[18:43:42 CEST] <Pandela> I'll have to look into that
[18:44:27 CEST] <Pandela> In the meantime this works: ffmpeg -i input.mp3 -f nut -acodec libspeex -ac 1 - | ffmpeg -f nut -acodec libspeex -ac 1 -i - -f nut -ac 1 - | ffplay -f nut -ac 1 -i -
[18:45:24 CEST] <BtbN> you can just do -f alsa default
[18:45:35 CEST] <BtbN> and ffmpeg will output to the default alsa device
[18:46:16 CEST] <Pandela> ye
[18:46:20 CEST] <Pandela> but I wanted to actually decode the data in a pipe so I can replace bytes while its in the pipe
[23:40:07 CEST] <selsta> can I use libavformat to get packets from an MPEG-TS stream? something like av_read_frame()?
[23:42:02 CEST] <selsta> av_read_frame() returns byte sequences that I cant find in the original file
[23:46:42 CEST] <BtbN> of course you can't. It was demuxed.
[23:51:08 CEST] <selsta> makes sense
[23:52:34 CEST] <selsta> any other way to get the original video and audio stream packets?
[23:53:30 CEST] <JEEB> lavg doesn't work on that level, it is supposed to abstract the underlying container from you and giving you the packets for streams that you can then feed to a decoder etc
[23:53:45 CEST] <JEEB> if you mean the mpeg-ts packets as-is that is
[23:54:02 CEST] <selsta> yes
[23:55:46 CEST] <selsta> or maybe it would work if there is a way to tell avformat_find_stream_info() to only read the headers
[00:00:00 CEST] --- Mon Aug 28 2017
1
0
[11:32:39 CEST] <cone-766> ffmpeg 03Paul B Mahol 07master:9d6aab6fa160: avfilter/af_surround: make volume configurable for front center and lfe channel
[11:43:39 CEST] <cone-766> ffmpeg 03Carl Eugen Hoyos 07master:9d494c5e553f: lavf/rawenc: Add little- and big-endian G.726 muxers.
[12:00:28 CEST] <cone-766> ffmpeg 03Carl Eugen Hoyos 07master:1c56becb9b04: lavc/utils: Calculate frame duration for little-endian G.726.
[12:50:35 CEST] <cone-766> ffmpeg 03Carl Eugen Hoyos 07master:094d4d8691ab: lavc/sinewin_tablegen: Fix compilation with --enable-hardcoded-tables.
[15:19:59 CEST] <cone-766> ffmpeg 03Paul B Mahol 07master:473e18fdbabb: doc/filters: improve pseudocolor example
[16:59:13 CEST] <BBB> j-b: ping
[18:10:55 CEST] <durandal_1707> Compn: why not announce that mplayer is officially dead
[18:12:20 CEST] <JEEB> it's a hobby project, it will never die
[18:12:27 CEST] <JEEB> as long as it's someone's hobby
[18:13:03 CEST] <Compn> it still works
[18:13:29 CEST] <Compn> and this way it never gets more bloated, unlike vlc :)
[18:13:31 CEST] <durandal_1707> it doesnt it stinks
[18:13:40 CEST] <Compn> what problems you having now ? :D
[18:14:21 CEST] <durandal_1707> Compn: problems is people still use mplayer crap
[18:14:57 CEST] <Compn> hmm yes
[18:15:01 CEST] <Compn> i dont want new users using it
[21:26:24 CEST] <cone-247> ffmpeg 03Paul B Mahol 07master:15e9c4afdc8e: avfilter/af_amix: switch to activate
[21:26:24 CEST] <cone-247> ffmpeg 03Paul B Mahol 07master:7f5c655833c5: avfilter/af_amix: simplify const entries for duration in amix_options[]
[22:08:11 CEST] <graphitemaster> How exactly do things like mpv/mplayer handle software only decoding of videos so well with the libavcodec, yet when I try and do all the same things (avoid software scaling/filter, multi thread processing of frames, etc) performance is absymal. I don't understand how one uses libavcodec well enough to get good performance out of it. We can only really use the software side of it since we're manipulating the raw YCbCr stuff,
[22:08:11 CEST] <graphitemaster> and using that as a texture in a 3D scene, plus the hwaccel stuff is very much a complete utter mess of conflated choices about OS/hardware
[22:10:55 CEST] <graphitemaster> I can launch four instance of mpv with --hwdec=no playing 4k h.264 videos and my CPU utilization is like 20%, yet I do the same thing with my code I'm hitting 400% cpu usage and it's literally all spent in avcodec_decode_video2
[22:28:25 CEST] <JEEB> graphitemaster: did you happen to do something stupid like disabling yasm?
[22:28:57 CEST] <JEEB> graphitemaster: unless you're doing something really dumb you shouldn't be much slower than `ffmpeg -i stuff -f null -`
[22:29:43 CEST] <graphitemaster> JEEB, we build ffmpeg from source on Linux (for which we use the default configure flags), on Windows we use Zerano's builds (which presumably are optimized)
[22:29:49 CEST] <graphitemaster> both are slow
[22:30:11 CEST] <graphitemaster> yasm is installed on my development rig, so I would assume ffmpeg configure would use it
[22:30:16 CEST] <JEEB> it should
[22:30:56 CEST] <JEEB> test with the ffmpeg command line app, and compare speeds. I have written some really dumb code and I'm seeing similar performance
[22:33:42 CEST] <graphitemaster> yeah, the command line is running faster :(
[22:37:05 CEST] <graphitemaster> am I just using avcodec wrong, I search for suitable decoders for all streams with avcodec_find_decoder, copy the codec context, and call avcodec_open2, setup some temporary scratch storage space for frames for each stream and on a separate thread I consume frames with avcodec_read_frame, shoving them into a buffer, which is then processed +- some syncronization code and switches on the frame types and does what needs to be
[22:37:05 CEST] <graphitemaster> done
[22:38:09 CEST] <graphitemaster> and all the time is spent in avcodec_decode_video2 (well a good 80 to 90% is for 4k video)
[22:39:06 CEST] <graphitemaster> I do sit in a while loop for when the packet size is > 0, doign decode_video2, subtracting off that length since that's a thing *shrug*
[22:39:14 CEST] <graphitemaster> and yeah if the length < 0 I just break from that loop
[22:39:20 CEST] <graphitemaster> so no weird contention there
[22:39:38 CEST] <JEEB> I recommend you take a look at the decoding examples and utilize the new API with reference counting enabled
[22:40:07 CEST] <graphitemaster> this would be the _third_ time I've had to rewrite our code because yall apis keep changing and deprecating :P
[22:40:08 CEST] <JEEB> but in general if you are doing just decoding, it shouldn't be much slower than ffmpeg.c
[22:40:18 CEST] <wm4> graphitemaster: what frame scratch space?
[22:40:26 CEST] <JEEB> the push/pull thing is not exactly new
[22:40:47 CEST] <wm4> also copying codec contexts hints you're using another deprecated APIs
[22:40:51 CEST] <graphitemaster> wm4, space for the second argument to avcodec_decode_video2, the AVFrame
[22:41:22 CEST] <JEEB> anyways, the only reason I commented is because mpv et al utilize the push/pull APIs and refcounted AVFrames
[22:41:31 CEST] <wm4> also did you set threads
[22:41:36 CEST] <graphitemaster> set threads?
[22:41:47 CEST] <JEEB> isn't that enabled by default for many decoders that support threading?
[22:41:51 CEST] <wm4> AVCodecContext.thread_count or something
[22:42:02 CEST] <wm4> JEEB: not in the API, AFAIK
[22:42:04 CEST] <JEEB> oh
[22:42:17 CEST] <graphitemaster> the meat of my video packet handling code: https://pastebin.com/raw/ih4dqeYQ
[22:42:17 CEST] <JEEB> then I'm even more impressed my code was as fast as it was
[22:42:50 CEST] <wm4> you call swscale...
[22:42:56 CEST] <wm4> speed -> ruined
[22:42:59 CEST] <graphitemaster> only if video_resampling
[22:43:03 CEST] <graphitemaster> which I have disabled by default
[22:43:20 CEST] <graphitemaster> that is only used when the video is not already in ycbcr format
[22:43:25 CEST] <wm4> then maybe your funny cMediaVideoPacket stuff
[22:43:53 CEST] <graphitemaster> going to try and set the thread_count thing
[22:43:56 CEST] <graphitemaster> if I can find that field lol
[22:43:59 CEST] <wm4> do you use AVPacket correctly?
[22:45:44 CEST] <graphitemaster> I hope I do
[22:45:56 CEST] <graphitemaster> the actual decode thread stuff https://pastebin.com/raw/kpM9Bbpb
[22:47:53 CEST] <wm4> why the fuck is there a sleep call
[22:48:17 CEST] <graphitemaster> I've commented those out, does not affect performance in any way shape or form
[22:48:29 CEST] <graphitemaster> prolly because those functions don't even do anything if the sleep is < 100ms so
[22:48:35 CEST] <graphitemaster> don't know who put those in there
[22:49:29 CEST] <wm4> let me guess, it's game code
[22:56:52 CEST] <graphitemaster> wm4, nope actually
[22:56:56 CEST] <graphitemaster> engine code though :P
[22:57:24 CEST] <BBB> and the profile?
[22:57:37 CEST] <BBB> like, youre saying its slow and all time is spent in avcodec_decode_video2
[22:57:43 CEST] <BBB> wheres the profile?
[22:58:22 CEST] <graphitemaster> we use sampler profiler called Remotery, sadly I can't get you much out of that other than a screenshot of it's output in a webbrowser
[22:58:35 CEST] <BBB> go for it
[23:00:35 CEST] <graphitemaster> http://i.imgur.com/cTWGSAJ.png
[23:01:11 CEST] <BBB> I mean a profile, like % runtime spent in each function
[23:01:14 CEST] <graphitemaster> that decode, if you look at the code is a scoped profile region around the call
[23:01:51 CEST] <BBB> like http://blog.fellstat.com/wp-content/uploads/2013/04/InstrumentsScreenSnapz0…
[23:02:21 CEST] <graphitemaster> those values are in microseconds per frame
[23:02:32 CEST] <graphitemaster> so it's taking 17.394 milliseconds in that call
[23:02:47 CEST] <BBB> you have 5 ms in a Create function
[23:02:56 CEST] <BBB> are you calling mallocs and creating objects in there?
[23:03:14 CEST] <graphitemaster> yes :|
[23:03:19 CEST] <BBB> anyway, a profile needs more granularity than this
[23:03:19 CEST] <graphitemaster> cutting off that 5ms would help a lot
[23:03:33 CEST] <BBB> I cant say whether the time spent in Handle() is spent in avcodec_decode_video2() or not
[23:03:40 CEST] <BBB> a good profiler tells you that
[23:03:45 CEST] <graphitemaster> the "[DECODE]" is all avcodec
[23:03:51 CEST] <graphitemaster> ProfileCPU( "cMediaVideoPacket::Handle [Decode]" )
[23:03:51 CEST] <graphitemaster> {
[23:03:51 CEST] <graphitemaster> nLength = avcodec_decode_video2( pVideoCodecContext,
[23:03:51 CEST] <graphitemaster> (AVFrame *)pMedia->m_pScratchVideoFrame,
[23:03:51 CEST] <graphitemaster> &nFrameFinished,
[23:03:53 CEST] <graphitemaster> pPacket );
[23:03:54 CEST] <graphitemaster> }
[23:04:05 CEST] <graphitemaster> that ProfileCPU region counts that call and that call only
[23:04:16 CEST] <graphitemaster> it's a C++ object that goes out of scope at the }
[23:04:28 CEST] <graphitemaster> so the ctor/dtor times that region of code
[23:05:05 CEST] <BBB> ok
[23:05:06 CEST] <BBB> so
[23:05:08 CEST] <graphitemaster> 17349 microseconds are spent on avcodec_decode_video2, 5350 miroseconds in that create, for a total of 22704 microseconds (or 22 milliseconds for that frame in total)
[23:05:25 CEST] <BBB> I think you need to learn about profiling a little bit more, sorry
[23:05:40 CEST] <BBB> I dont know how this ProfileCPU thing works
[23:05:54 CEST] <BBB> but a good profiler tells me total runtime, time spent in _all_ (not some, annotated) functions
[23:05:56 CEST] <BBB> etc.
[23:06:02 CEST] <BBB> without that, I cant tell you why its slow
[23:06:08 CEST] <graphitemaster> yeah, this doesn't go that deep :|
[23:06:13 CEST] <graphitemaster> it can only time stuff I annotate
[23:06:14 CEST] <BBB> it could be the locking, the Create, the Write
[23:06:22 CEST] <BBB> on a mac, use isntruments
[23:06:25 CEST] <BBB> instruments*
[23:06:30 CEST] <graphitemaster> I would have to actually dig in deeper with gprof
[23:06:41 CEST] <graphitemaster> or valgrind's cachegrind *shudder*
[23:06:42 CEST] <BBB> on linux, use perf
[23:06:52 CEST] <BBB> perf should be ok, try perf
[23:06:59 CEST] <BBB> Ive used it, its good enough
[23:07:38 CEST] <graphitemaster> I'd have to recompile ffmpeg with debug/perf instrumentation first, and setup a test senario that launches directly into video decoding first just to reduce the noise and nonsense to get there
[23:07:42 CEST] <graphitemaster> but yeah I should.
[23:08:15 CEST] <BBB> how do you think we get ffmpeg so far? its not by annotating functions one-by-one ;)
[23:08:25 CEST] <BBB> its by using great tools that tells us exactly what to optimize etc.
[23:08:42 CEST] <BBB> (instead of us asking one-by-one should I optimize this? should I optimize that?)
[23:09:41 CEST] <graphitemaster> sadly, in my industry, the common ways of timing stuff (since everything is in the context of a frame) is to manually put these annotated blocks of shit around shit and depending on how much annotation you do, the more coarse it can get
[23:10:16 CEST] <BBB> Make SoftwareEngineering Great Again!
[23:10:52 CEST] <graphitemaster> it's not without it's own set of problems, but it works great for getting an overall picture of stuff, plus most instrumentation based profilers (like perf) ruin the performance of things that it takes hours to even get to the part we want to test that is slow (things like cachegrind for instance, run our stuff 400 to 2000x slower than native)
[23:11:16 CEST] <graphitemaster> you could probably simulate a cache or cpu in your head faster heh
[23:13:09 CEST] <wm4> perf doesn't need instrumentation
[23:16:37 CEST] <graphitemaster> thanks arch
[23:16:38 CEST] <graphitemaster> CONFIG_AUDIT is disabled in the Arch kernel packages so a custom kernel
[23:16:38 CEST] <graphitemaster> is required for most components of this package. However, some features
[23:16:39 CEST] <graphitemaster> like the utility methods in libaudit work without kernel support.
[23:16:49 CEST] <graphitemaster> perf is gimped as hell with Arch kernels apparently
[23:16:57 CEST] <graphitemaster> don't feel like building a kernel right now
[23:19:03 CEST] <BBB> is 22 ms the first frame?
[23:19:11 CEST] <BBB> or average over all frames?
[23:19:28 CEST] <wm4> anyway, as long as you set the thread count, and your AVPacket data is aligned and padded with 0s, all should be fine
[23:19:40 CEST] <BBB> set thread count to 0
[23:19:43 CEST] <BBB> so it auto-detects threading
[23:19:57 CEST] <BBB> is that not the default yet?
[23:20:04 CEST] <wm4> no idea
[23:20:13 CEST] <wm4> I think it's not
[23:20:30 CEST] <wm4> and do it _before_ opening the codec
[23:21:00 CEST] <graphitemaster> maybe I should just use mpv's libmpv. it seems to have an opengl api that gives me a GLuint handle and supports hwacceleration too
[23:21:05 CEST] <graphitemaster> and scrap all this garbage
[23:21:25 CEST] <graphitemaster> wm4, have an example of how to use libmpv ?
[23:21:44 CEST] <wm4> graphitemaster: there's a mpv-examples repo
[23:26:12 CEST] <graphitemaster> wm4, OpenGL ES support too GLES3 similar to desktop GL 3.x core profile (supports PBOs and what not, very little changes of code needed)
[23:26:23 CEST] <graphitemaster> if not I'll add it myself if need be
[23:26:39 CEST] <graphitemaster> if this turns out to be way better for performance that is ;-)
[23:27:16 CEST] <wm4> not sure what you're asking... it supports OpenGL desktop 2.1 and ES 2.0
[23:28:22 CEST] <graphitemaster> yeah but will it work with a higher context, i.e some functionality is deprecated and if you use it with my non compatible context, it'll fail
[23:28:44 CEST] <graphitemaster> since we don't create compatability context for performance reasons, only core profile contexts
[23:31:11 CEST] <wm4> mpv CLI normally creates a GL 4.3 core context
[23:31:21 CEST] <wm4> there shouldn't be any compatibility crap in use
[23:31:39 CEST] <wm4> btw. we're also working on Vulkan support, and our worst problem is finding a GLSL compiler
[23:35:27 CEST] <graphitemaster> glsl-lang is fine
[23:35:40 CEST] <graphitemaster> most people just be integrating that into the thing
[23:35:49 CEST] <graphitemaster> or offline compiling the shaders and plopping their bytecode into stuff
[23:37:13 CEST] <wm4> you mean the khronos lib? it has global mutable state, a C++ only API (and a broken and unmaintained C one), and apparently leaks memory
[23:37:24 CEST] <wm4> we need a lib
[23:37:31 CEST] <wm4> because we compile shaders on the fly
[23:58:11 CEST] <J_Darnley> graphitemaster: perf should work okay on Arch for your user space code, it does for me using their kernel.
[23:58:36 CEST] <graphitemaster> wm4, that is an unsolved problem right now
[23:58:49 CEST] <graphitemaster> wm4, apparently LunarG has such a compiler but won't make it open source
[23:59:09 CEST] <J_Darnley> I know nothing of the nernel but I assume CONFIG_AUDIT lets you profile kernel code.
[23:59:40 CEST] <graphitemaster> J_Darnley, I tried it, i get some perf data but when I go to annotate it it says no samples :|
[23:59:45 CEST] <graphitemaster> so I assume that I do need that?
[00:00:00 CEST] --- Sun Aug 27 2017
1
0
[01:43:49 CEST] <wiak> for some reason my relay rtmp ffmpeg stream has audio out of sync
[01:44:10 CEST] <wiak> https://gist.githubusercontent.com/nwgat/82d069feb75be7d0e4ec7de71cd8c263/r…
[01:44:18 CEST] <wiak> there is the cli
[01:44:57 CEST] <wiak> am using obs studio 20 as souce
[01:55:28 CEST] <furq> you should probably use a real rtmp server as a relay
[01:55:52 CEST] <furq> i've not really used ffmpeg's -listen stuff but based on how few people seem to use it, i expect it's not very good
[01:56:19 CEST] <furq> you can exec ffmpeg to do the reencoding from nginx-rtmp
[02:05:39 CEST] <leeaandrob> hello
[02:16:33 CEST] <ThugAim> herro
[02:17:20 CEST] <leeaandrob> :)
[03:12:37 CEST] <noop__> Hi everyone! is there any C code available that demonstrates how to convert AV_PIX_FMT_YUV420P to AV_PIX_FMT_RGB24?
[03:13:15 CEST] <noop__> I have written some code, but it writes junk to the last two columns of every frame
[03:13:45 CEST] <DHE> libswscale I think... or you can use libavfilter and have it do the heavy lifting
[03:16:33 CEST] <JCount_> Can anyone provide some advice on how to report a build related regression? In this case, configuring with --enable-hardcoded-tables causes the build to fail with a linker error: 'ld: symbol(s) not found for architecture x86_64'.
[03:18:28 CEST] <noop__> thanks! I'm already using libswscale (sws_getContext, then av_read_frame, avcoded_send_packet, avcodec_receive_frame and then then sws_scale)
[03:22:57 CEST] <JCount_> The relevant patch is http://ffmpeg.org/pipermail/ffmpeg-devel/2017-August/215104.html or commit dbc9a8f21f92d0613142ea23bb836356fc41de38 in master.
[05:36:24 CEST] <wiak> furq seem to work better hehe, that nginx-rtmp, tried it before but it seems i had to push the stream to get it to work ;P
[05:36:42 CEST] <wiak> furq https://www.smashcast.tv/nwgat
[05:36:43 CEST] <wiak> )
[18:40:34 CEST] <blerrp> regarding mp3 id3 metadata: do you know if proper comment tag (id3 frame COMM) is supported? doing `ffmpeg -metadata 'comment=foobar'` seems to write a TXXX frame with description=comment, and this is not readable as a comment by many/most common mp3 players
[18:41:36 CEST] <ChocolateArmpits> Can ffmpeg potentially stall if input timestamp is lower than the previous timestamp ?
[18:43:02 CEST] <azarus> How can I enable the x11grab device?
[18:43:13 CEST] <JEEB> ChocolateArmpits: the only thing that could put things to sleep() is the -re mode which in general you shouldn't be using
[18:43:31 CEST] <JEEB> otherwise, no. it shouldn't stall but more likely throw an error if the timestamps go backwards
[18:47:42 CEST] <ChocolateArmpits> What about timestamps that go excessively forward, would -re cause blank frames to be rendered to account for the output time?
[18:48:31 CEST] <JEEB> no, -re would just wait until that timestamp, which is why you shouldn't trust -re at all
[18:49:01 CEST] <JEEB> because if you get a timestamp funkiness in there, it will do weird-ass things
[18:59:47 CEST] <zarac> azarus: got it working ok (x11grab)?
[19:08:30 CEST] <zarac> azarus: I went through the same thing yesterday. I made a little script that helps starting the recording. https://gist.github.com/zarac/42e76ac8c78ebeb7a69ed410fa3070c0
[19:09:37 CEST] <zarac> azarus: It's quite simple to use.. and the code kinda explains it. It has a nifty feature that helps you resizing the window (using wmctrl).
[19:11:37 CEST] <zarac> There is however a issue with the last part of the audio getting cut off... but perhaps you dont' have this issue.. it seems to be a bug using pulse (maybe you can use alsa instead).
[19:15:37 CEST] <zarac> (btw, a ffmpeg bug, not in that ffrecord... just to be clear) : )
[19:53:46 CEST] <Pandela> Morning peoples
[19:54:04 CEST] <Pandela> Does anyone know a way to compile FFmpeg in windows 7 with ladspa support?
[19:54:55 CEST] <durandal_1707> Pandela: just get header installed in right spot
[19:55:40 CEST] <durandal_1707> btw which ladspa plugin you want to use?
[19:56:22 CEST] <Pandela> durandal_1707: Stuff like cmt, swh and other libraries
[19:57:30 CEST] <durandal_1707> Pandela: if you use mingw64 msys2 project it should be easy to compile ffmpeg
[19:58:31 CEST] <Pandela> Thanks!
[19:58:32 CEST] <Pandela> durandal_1707: Do you have any clues how I would go about the Ladspa header in windows? I have only compiled FFmpeg in linux personally
[19:59:14 CEST] <durandal_1707> with mingw64 just install header with pacmam
[19:59:25 CEST] <durandal_1707> *pacman
[20:06:39 CEST] <Pandela> Back, internet died lol
[20:07:07 CEST] <Pandela> durandal_1707: But yeah let me try that out, thanks for the tip c:
[00:00:00 CEST] --- Sun Aug 27 2017
1
0
[00:00:30 CEST] <iive> actually it might be interesting idea if the encoders could output these frames
[00:00:52 CEST] <iive> this way you can watch the encoding quality in real time
[00:21:42 CEST] <kierank> BBB: it's what nicolas wants...
[00:38:25 CEST] <jamrial> oh lol, libav also postponed coded_frame
[01:37:51 CEST] <BBB> michaelni: AVERROR_EOF
[01:38:58 CEST] <nevcairiel> all these patches look stupid, wouldn't it just loop for a bit and then quit? we don't have eof checks after every single read ever
[01:39:37 CEST] <BBB> I didnt check
[01:39:41 CEST] <BBB> I also didnt fully review
[01:43:09 CEST] <kierank> interesting that they have managed to fuzz containers
[01:43:13 CEST] <kierank> but yes patches look stupid
[01:43:18 CEST] <kierank> surely every read needs checking
[01:58:32 CEST] <michaelni> BBB, the function seems to use AVERROR_EOF for various conditions
[02:00:40 CEST] <michaelni> nevcairiel, yes its a denial of service. It would block for a long time and eventually finish. In an attack the attacker would use this to bring down some tool or service
[02:01:16 CEST] <michaelni> that is all but one, one is a real endless loop IIRC
[02:14:54 CEST] <BBB> can you define "long"?
[02:21:53 CEST] <michaelni> BBB, its different for each case according to the reports a 410 byte file caused more than 1 hour (24 cpu core xeon 2.4ghz with 96gb ), another caused more than 30min, one was 4 one was 1 and one was 5 minutes
[02:23:14 CEST] <michaelni> IIUC these are fuzzed files not hand crafted to achive the worst case
[02:27:24 CEST] <peloverde> Is there currently a propagation window for fate samples before pushing?
[02:28:04 CEST] <michaelni> some fate clients need up to 24h to sync the samples
[02:28:52 CEST] <michaelni> i think most fate clients need no delay
[02:47:38 CEST] <cone-165> ffmpeg 03Paul B Mahol 07master:dbc9a8f21f92: avcodec/aac: Add floating point 960/120 MDCT window
[02:47:38 CEST] <cone-165> ffmpeg 03Alex Converse 07master:cb96e9bea418: fate: add test vector aac-al04sf_48
[04:39:43 CEST] <cone-165> ffmpeg 03James Almer 07master:e51073fe00d2: checkasm/vf_blend: rename addition128 and difference128 to grainmerge and grainextract
[05:41:52 CEST] <cone-165> ffmpeg 03Muhammad Faiz 07master:ae1ce0db91b8: avfilter/af_firequalizer: add min_phase option
[05:41:52 CEST] <cone-165> ffmpeg 03Muhammad Faiz 07master:e0e991f8a131: avfilter/af_firequalizer: reindent after previous commit
[09:11:10 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:4b96fd2b1ec6: avfilter/af_agate: switch to activate
[10:36:22 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:1e7ce6d92513: avfilter/af_amix: check ff_insert_inpad() for failure
[10:36:22 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:13f9639e3e2a: avfilter/af_headphone: check ff_insert_inpad() for failure
[10:36:24 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:db5604ac26f0: avfilter/af_join: check ff_insert_inpad() for failure
[10:36:24 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:f39136b0a76e: avfilter/af_merge: check ff_insert_inpad() for failure
[10:36:25 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:9bd1bf382e18: avfilter/f_interleave: check ff_insert_inpad() for failure
[10:36:26 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:99dd47a64752: avfilter/vf_extractplanes: check ff_insert_outpad() for failure
[10:36:28 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:730734d4f3e0: avfilter/af_channelsplit: check ff_insert_outpad() for failure
[10:36:28 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:01b986cf1819: avfilter/f_select: check ff_insert_outpad() for failure
[10:36:30 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:1a58da434ad0: avfilter/avf_concat: check ff_insert_pad() for failure
[10:36:30 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:dfea94ce994a: avfilter/vf_fieldmatch: check ff_insert_inpad() for failure
[10:36:32 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:0b940c95b217: avfilter/vf_decimate: check ff_insert_inpad() for failure
[10:36:33 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:5e706a2afb09: avfilter/split: check ff_insert_outpad() for failure
[10:36:33 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:48ddd8ddec35: avfilter/src_movie: check ff_insert_outpad() for failure
[12:40:50 CEST] <cone-952> ffmpeg 03Muhammad Faiz 07master:3ddd10290afb: avfilter/af_firequalizer: fix minval on cepstrum calculation
[14:35:50 CEST] <cone-952> ffmpeg 03Paul B Mahol 07master:71907f250939: doc/filters: add pseudocolor example
[14:59:50 CEST] <cone-952> ffmpeg 03Derek Buitenhuis 07master:9e02f35f6a1b: mjpeg: Add support for ICC side data
[14:59:51 CEST] <cone-952> ffmpeg 03Derek Buitenhuis 07master:add7b3bc3fb7: utils: Do not expand a macro with 'defined' in it
[16:02:54 CEST] <J_Darnley> Is GetBitsContext public API?
[16:05:34 CEST] <J_Darnley> No, it would be called AV.. if it were.
[16:06:06 CEST] <J_Darnley> av_dirac_parse_sequence_header it public though. :)
[16:12:33 CEST] <J_Darnley> Oh dammit! Why can't I use that with a struct on the stack?
[16:42:29 CEST] <BBB> J_Darnley: you can
[16:44:48 CEST] <jya> what's the deal when submitting a patch, you post it on the mailing list and then you wait?
[16:49:13 CEST] <J_Darnley> BBB: Huh? It takes a struct** and says it will allocate and then I need to call av_free
[16:49:21 CEST] <J_Darnley> jya: Yeah, basically
[16:50:04 CEST] <BBB> jya: you can poke people (this is similar to how you assign a reviewer on patch trackers)
[16:50:10 CEST] <BBB> jya: poking works like this:
[16:50:22 CEST] <BBB> J_Darnley: poke! can you review my patch bla: blurb?
[16:50:43 CEST] <BBB> jya: ingenious, right?
[16:50:49 CEST] <jya> indeed :)
[16:51:02 CEST] <jya> I'm not sure why is the best person to review that though, its the mp4 muxer
[16:52:33 CEST] <BBB> ah, yes
[16:52:41 CEST] <BBB> thats where email based review is better than patch review trackers
[16:52:48 CEST] <BBB> :-p
[16:53:03 CEST] <BBB> not sure who could review it ;)
[16:53:10 CEST] <BBB> you could poke usual victims
[16:54:36 CEST] <jya> BBB: sounds like a job for you then :)
[16:55:13 CEST] <jya> it's damn simple patch, replace writing 0 for whenever the sampling rate is > 65536, and instead write the closest divisor
[16:55:40 CEST] <jya> only does the job properly is the sampling rate is even though, but it won't matter either way
[16:56:42 CEST] <BBB> sample rate?
[16:56:48 CEST] <BBB> is that a subtitle thing?
[16:56:50 CEST] <BBB> :-p
[16:56:54 CEST] <jya> audio
[16:56:59 CEST] <BBB> I know, just kidding ;)
[16:57:09 CEST] <jya> ah, never know these days :)
[16:57:24 CEST] <jya> BBB: I saw the multi-threading stuff for slices while looking at patches
[16:57:26 CEST] <jya> that's rather exciting
[16:57:33 CEST] <BBB> yes, its quite nice
[16:57:47 CEST] <jya> BTW, we plan to make vp9 the default for our webRTC implementation
[16:57:50 CEST] <BBB> if we want to use it for rtc, we still need error resilience
[16:58:04 CEST] <BBB> but that shouldnt be super-hard
[16:58:17 CEST] <jya> actually, about that. libvpx error resilience is disabled by default, I even think the option was removed from the code
[16:58:38 CEST] <jya> so I'm not sure it matters that much to have it in ffvp9
[16:58:59 CEST] <jya> BBB: will you be at demuxed in October?
[17:11:40 CEST] <BBB> jya: yes
[17:12:00 CEST] <BBB> jya: hm& but then every time a frame is missed, you cant reconstruct
[17:12:01 CEST] <BBB> that would suck
[17:12:04 CEST] <jya> great I'll get to meet you there
[17:12:26 CEST] <jya> how do they do without it with libvpx?
[17:13:31 CEST] <BBB> they probably have a backchannel API to signal the encoder to send a new keyframe or to occlude that frame as a reference
[17:13:40 CEST] <BBB> hard to say for sure
[17:13:58 CEST] <BBB> the decoder obviously doesnt know any of this
[17:14:11 CEST] <BBB> this is between the rtp layer and the sender (encoder)
[17:14:16 CEST] <BBB> the decoder just does what it does normally
[17:14:23 CEST] <BBB> it happens to work, basically
[17:18:42 CEST] <wm4> jkqxz: this v4l2 stuff looks pretty batshit
[17:20:07 CEST] <cone-952> ffmpeg 03James Almer 07master:2c800eb7375c: avcodec: make the avcodec_get_chroma_sub_sample deprecation effective
[17:21:49 CEST] <jkqxz> Yeah, but apparently it works. I've been failing to find time to look at it again - need at least a few hours to go through it properly. (Maybe tomorrow...)
[17:22:13 CEST] <BBB> j-b: who do I poke about ticket prices?
[17:23:02 CEST] <jya> BBB: that the peer request a keyframe is something else entirely
[17:23:11 CEST] <jya> that is done
[17:23:19 CEST] <BBB> right
[17:23:29 CEST] <BBB> but if you hav that, error resilience in the decoder isnt so important
[17:23:41 CEST] <BBB> different methods to do the same (sorta) thing
[17:23:54 CEST] <jya> but from the decoder point of view, there's nothing in place for error-resilience, it's not compiled in
[17:24:22 CEST] <jya> I implemented a change to use ffvp9 instead of libvpx
[17:24:29 CEST] <jya> issues occurred when the resolution changed
[17:24:56 CEST] <jya> libvpx handled it just fine. with ffvp9 you end up with a crappy image
[17:25:01 CEST] <BBB> really?
[17:25:06 CEST] <BBB> we have fate tests for that
[17:25:17 CEST] <BBB> is this the svc-thing? or is this with a new kf?
[17:25:19 CEST] <jya> like the new (typically lower resolution) image in the top left corner of an otherwise green image
[17:25:32 CEST] <BBB> uh&
[17:25:33 CEST] <BBB> hm...
[17:25:59 CEST] <jya> mind you, it may be something I haven't done, such as not reconfiguring the decoder for a new res
[17:26:07 CEST] <BBB> you dont have to reconfigure it
[17:26:10 CEST] <jya> I just keep calling input with the data as it comes in
[17:26:13 CEST] <BBB> you just have to read out the per-frame sizes :-p
[17:26:19 CEST] <BBB> (AVFrame->width/height)
[17:26:29 CEST] <jya> what comes out has the same resolution has the previous frame, but padded with green
[17:26:42 CEST] <BBB> really&
[17:26:47 CEST] <BBB> how interesting
[17:26:49 CEST] <jya> i do that already (read the AVFrame dimensions)
[17:26:58 CEST] <jya> I have some doubts suddenly, let me check again
[17:27:05 CEST] <BBB> please do
[17:27:09 CEST] <BBB> thatd be a major bug ;)
[17:27:12 CEST] <durandal_170> have sample?
[17:27:40 CEST] <BBB> in fact, Im pretty sure it works because I have some scalable samples and they rescale fine in my analyzer (which uses AVFrame->width/height)
[17:27:51 CEST] <BBB> but happy to be proven wrong :-p
[17:27:53 CEST] <jya> BBB: yes, that's what it does: https://dxr.mozilla.org/mozilla-central/source/dom/media/platforms/ffmpeg/F…
[17:28:04 CEST] <jya> it reads the YUV planes from the AVFrame as well as the dimensions
[17:29:40 CEST] <BBB> how strange
[17:30:10 CEST] <jya> I'll try to reproduce it as part of a webRTC session
[17:30:25 CEST] <jya> it's not easy when you're on a gigabit fiber at home
[17:30:42 CEST] <jya> but this summer, I was traveling, on a mobile phone as modem.. was happening a lot
[17:30:52 CEST] Action: kierank has gigabit fibre at work and these adaptive streaming things still are awful
[17:31:09 CEST] <jya> the same code with just using libvpx as decoder, and the frames resized perfectly
[17:31:11 CEST] <kierank> though i guess it's blame tcp which webrtc don't use
[17:32:23 CEST] <jya> kierank: with what Youtube for example?
[17:32:31 CEST] <jya> they do a pretty good job these days with MSE
[17:32:31 CEST] <BBB> lemme test
[17:32:35 CEST] <kierank> all of the streaming services on a smart tv
[17:32:38 CEST] <kierank> amazon, netflix etc
[17:32:41 CEST] <kierank> iplayer
[17:32:47 CEST] <kierank> they just decide to randomly drop to 480p
[17:32:59 CEST] <jya> amazon, netflix on a web browser desktop should be perfect really
[17:33:27 CEST] <jya> for a smart TV, they typically use HLS, and unlike with MSE/DASH the job is on the client to do the adaptation
[17:33:33 CEST] <jya> it's always a bit slower.
[17:34:01 CEST] <jya> which isn't helped with the fact that HLS doesn't require a new segment to start with a keyframe, so typically when it change resolution, for a few seconds it's crap
[17:35:23 CEST] <wm4> jkqxz: sent a quick review
[17:36:03 CEST] <wm4> jvlol wut
[17:36:07 CEST] <wm4> oops
[17:36:10 CEST] <wm4> jya: wat
[17:36:22 CEST] <wm4> what's the point of adaptive stuff if you can't actually adapt
[17:36:43 CEST] <wm4> which pretty much requires that decoding can be restarted from an arbitrary fragment
[17:38:25 CEST] <BBB> jya: just tested with vp90-2-05-resize.ivf
[17:38:51 CEST] <BBB> jya: and I get (AVFrame->width/height): 352x288 -> 282x173 -> 352x288
[17:39:17 CEST] <jya> BBB: ok, I'll do further test and see what's going on then
[17:39:20 CEST] <BBB> ty
[17:39:33 CEST] <jya> but is the input set with the right resolution though?
[17:42:22 CEST] <jya> during a webrtc session you don't know that, so here the input has no resolution set in the input
[17:43:30 CEST] Action: jya gotta go
[17:45:35 CEST] <BBB> jya: input is unset, the decoder overwrites whatever the input sets
[18:48:40 CEST] <cone-952> ffmpeg 03James Almer 07master:8a0954dd51ca: avcodec: add missing FF_API_DEBUG_MV wrappers
[19:18:27 CEST] <jamrial> BBB: can you check the getchroma comment from michael?
[19:18:40 CEST] <jamrial> as i said there was a reason why it wasn't deprecated :/
[19:19:08 CEST] <BBB> he means int a, b; avcodec_get_chroma_subsample(user_input, &a, &b); printf(%d, %d\n, a, b); is fine with old AI
[19:19:10 CEST] <BBB> API
[19:19:17 CEST] <BBB> but in new API you need a condition
[19:19:51 CEST] <jamrial> epatchwelcome. i never wanted to deal with this :p
[19:19:57 CEST] <BBB> desc = av_get_pix_fmt_desc(user_input); if (!desc) HELP!!!!; printf(%d, %d\n, desc->comp[1].h_ss, v_ss);
[19:20:03 CEST] <BBB> what do you mean?
[19:20:07 CEST] <BBB> youre not changing any callers
[19:20:09 CEST] <BBB> its totally fine
[19:20:16 CEST] <BBB> maintainers should change their callers
[19:20:37 CEST] <jamrial> alright
[19:21:18 CEST] <BBB> I see 17 users in libavcodec
[19:21:21 CEST] <BBB> nothing outside that
[19:21:23 CEST] <BBB> so not that bad
[19:21:53 CEST] <BBB> in most cases weve already decided at that point what the pixfmt is, so it really doesnt matter
[19:24:51 CEST] <michaelni> BBB, its no problem to change it, but dont you think that API changes that everyone has to update their code to should be discussed?
[19:25:32 CEST] <BBB> I have no opinion on that
[19:26:25 CEST] <nevcairiel> not sure you can call avcodec_get_chroma_sub_sample inherently safe if it contains an abort() =p
[19:27:00 CEST] <BBB> maybe its safe because valgrind doesnt complain about it?
[19:27:23 CEST] <nevcairiel> both of thsoe cases deal with invalid pixfmts, in this case your app just quits, in the other you can write a check
[19:27:28 CEST] <nevcairiel> i would say the other is safer
[19:27:39 CEST] <BBB> again, I have no opinion on that
[19:27:49 CEST] <BBB> but having two public APIs to do the same thing is ridiculous
[19:27:53 CEST] <jamrial> guess i should have waited for more opinions before pushing
[19:27:56 CEST] <BBB> subsampling is in desc, so use the desc API
[19:27:58 CEST] <BBB> jamrial: no, its fine
[19:28:04 CEST] <BBB> this has been in libav for ages
[19:28:08 CEST] <BBB> at some point we have to move on
[19:28:09 CEST] <michaelni> nevcairiel, if the code is misused one aborts() the other does something unexpected and random hard to debug
[19:28:36 CEST] <michaelni> "<BBB> but having two public APIs to do the same thing is ridiculous" <-- i strongly agree
[19:28:59 CEST] <BBB> hows coded_frame out of AVCodecContext going btw?
[19:29:05 CEST] <BBB> speaking of interesting things
[19:29:10 CEST] <nevcairiel> michaelni: but to be safe I have to validate the pixfmt myself before, basically by calling the same API anyway, so in my eyes the new API is therefor better
[19:29:22 CEST] <jamrial> BBB: i know, but seeing the deprecation was made uneffective for a reason (regardless of it being good/bad/right/wrong), i should have waited for a comment from the person that did that
[19:30:01 CEST] <BBB> how many prores encoders and decoders do we have again?
[19:30:05 CEST] <BBB> alright, still the same :-p
[19:30:10 CEST] <jamrial> heh
[19:30:23 CEST] <jamrial> both are waiting for tests(tm) to see which is better i guess :p
[19:30:39 CEST] <jamrial> the whole "one is lgpl" doesn't apply anymore after all
[19:31:48 CEST] <jamrial> alright, got the major bump working with a minimal amount of ~2 years old APIs postponed (because removing them is a pain atm)
[19:31:55 CEST] <michaelni> nevcairiel, if you just write some code lazily (which is what most people probably do) the old simply aborts when its wrong (easy to spot and fix) the new does someting random which can be annoying to debug
[19:32:20 CEST] <nevcairiel> its not our job to fix lazy developers code
[19:32:30 CEST] <nevcairiel> also null-pointer deref also just crashes on 99% of all systems
[19:32:35 CEST] <jamrial> will send a patchset to the ml, to see if anyone wants to look at said apis and properly remove them. otherwise we can go ahead as is
[19:34:32 CEST] <nevcairiel> we report errors through return values, not by abort()'ing all over
[19:37:52 CEST] <BBB> how about we create an abort callback that users can implement to longjmp back to their caller code, but otherwise can be used internally to abort? <libjpeg>
[19:38:05 CEST] <nevcairiel> go away with longjmps =p
[19:38:10 CEST] <BBB> muhahahahahaha
[19:38:47 CEST] <BBB> (and for the record: that was not serious, its godawful design)
[19:39:29 CEST] <nevcairiel> i've worked with code that uses this, following the logic flow is awful
[19:45:09 CEST] <michaelni> nevcairiel, when practically no caller checks the return, its not that great as a way to handle errors
[19:47:16 CEST] <nevcairiel> again, thats not our problem. we have a clear way to communicate errors for all sorts of APIs, singular exceptions that abort instead are not good
[19:49:02 CEST] <nevcairiel> or should we start abort()ing everywhere instead of using return values, just in case someone didnt check it?
[19:50:02 CEST] <BBB> longjmp!!!
[19:50:03 CEST] <BBB> guys
[19:50:48 CEST] <nevcairiel> i even entirely hate the concept that release-mode builds can include abort()'s in them in general
[19:51:10 CEST] <BBB> this problem is solved already, why do you think all cameras use jpeg when much better compression alternatives exist (e.g. HEIF)? it has nothing to do with compatibility; its longjmp!!!
[19:51:56 CEST] <BBB> longjmp is the singularity around which everything else revolves. everything changes, but (lib)jpeg remains, and the only lib implementing longjmp error management is&? libjpeg! learn guys, its not correlation, its causation!
[19:52:09 CEST] <BBB> :-p
[19:52:17 CEST] <JEEB> :D
[19:52:29 CEST] <BBB> maybe I shouldve added webp there for even more nuts
[19:52:47 CEST] <BBB> </gone>
[19:52:47 CEST] <drv> I think libpng uses longjmp() error handling too :)
[19:52:51 CEST] <JEEB> but yea, trying to propagate abort() based error flagging just because people don't check results
[19:53:06 CEST] <JEEB> users can always come up with ways of ignoring errors
[19:54:22 CEST] <wm4> libpng also uses longjmp
[19:55:41 CEST] <BBB> and what image format was able to overthrow gif? png! longjmp! guys! EUREKA!
[19:55:54 CEST] <BBB> (maybe Im taking this too far :-D )
[19:56:24 CEST] <BtbN> I'd argue h264 has overthrown gifs on the web by now.
[20:02:04 CEST] <BBB> animated gifs maybe
[20:02:07 CEST] <BBB> logos still use png
[20:02:51 CEST] Action: ubitux is still using gif everywhere he can
[20:03:24 CEST] <ubitux> if github allows to use some looping webm, maybe i'll switch
[20:03:33 CEST] <ubitux> (in their markdown thing)
[20:03:44 CEST] <RiCON> i don't think you can
[20:04:03 CEST] <ubitux> then long live to gif
[20:04:39 CEST] <BtbN> imgur is trying to "standardize" gifv
[20:04:53 CEST] <BtbN> (renamed mp4 without audio, looping by default)
[20:05:28 CEST] <wm4> dumb
[20:05:51 CEST] <wm4> fole extensions officially don't mean anything on http anyway
[20:05:53 CEST] <wm4> *file
[20:06:09 CEST] <BtbN> Pretty sure they also made up a new mime type for it
[20:07:57 CEST] <nevcairiel> definitely, and mime-type means something on http
[20:09:51 CEST] <RiCON> BtbN: isn't the mimetype just text/html?
[20:10:30 CEST] <BtbN> for images and videos? No
[20:10:35 CEST] <RiCON> for gifvs
[20:10:40 CEST] <BtbN> Doubt it
[20:10:51 CEST] <RiCON> it's a simple html with a <video>mp4 with fallback to gif
[20:11:15 CEST] <RiCON> at least in browsers and curl
[20:11:51 CEST] <RiCON> even if you go directly to ID.mp4 it 301s to the ID.gifv
[20:12:46 CEST] <BBB> you have to admit that renaming .mov to .mp4 did great things
[20:13:00 CEST] <BBB> didnt work for .ogg .ogm .oga etc. though
[20:13:04 CEST] <BBB> .ogv
[20:13:20 CEST] <wm4> RiCON: they might use http content negotiation if it works in curl
[20:13:24 CEST] <jamrial> there's even .ogx
[20:13:31 CEST] <RiCON> .ogg and .ogv are sorta used
[20:13:42 CEST] <RiCON> for vorbis and theora+vorbis
[20:13:43 CEST] <wm4> BBB: mp4 pretty much sucks
[20:13:46 CEST] <jamrial> i have never seen a single file using it, unlike .ogv
[20:13:51 CEST] <wm4> I've decided that mkv is the better format
[20:14:39 CEST] <jamrial> RiCON: afaik .ogv is 1 video + 1 audio. can be theora, vp8, vorbis, flac, etc
[20:15:12 CEST] <wm4> isn't ogm avi-in-ogg or something
[20:15:21 CEST] <wm4> ogm timestamps are still broken with libavformat
[20:15:21 CEST] <jamrial> .ogx is supposed to have a skeleton stream (weird data stream to work around limitations of the format), and can have several streams of any kind, including subtitles
[20:15:24 CEST] <nevcairiel> ogm is its own sort of nightmare
[20:15:29 CEST] <wm4> (got broken somewhere in recent years)
[20:15:30 CEST] <jamrial> wm4: ogm is a non xiph hack
[20:16:11 CEST] <wm4> the most shocking thing is that xiph apparently defends ogg
[20:19:27 CEST] <RiCON> wm4: appparently curl/mpv work with the .mp4 directly
[20:19:55 CEST] <nevcairiel> they use all sort of shitty server-side magic these days to serve different things to different clients
[20:21:29 CEST] <RiCON> and the download only gives the huge gif, lol
[20:21:36 CEST] <RiCON> download link*
[20:21:53 CEST] <wm4> odd
[21:01:33 CEST] <Compn> gifv is stupid name
[21:01:45 CEST] <Compn> those sites that serve different items piss me off
[21:27:46 CEST] <TD-Linux> BBB, the .opus rename did work well though
[21:27:57 CEST] <BBB> cool
[23:17:06 CEST] <atomnuker> BBB: what happened to the loopfilter avx2 asm?
[23:22:05 CEST] <BBB> gh0st__: ^^
[23:26:21 CEST] <gh0st__> atomnuker: no worries, I am going to do it.
[23:37:16 CEST] <wm4> lol web tech
[23:59:26 CEST] <cone-260> ffmpeg 03Michael Niedermayer 07master:7c10068da10a: avcodec/dvbsubdec: Check for duplicate regions in dvbsub_parse_page_segment()
[23:59:26 CEST] <cone-260> ffmpeg 03pkviet 07master:e0436ddaa496: ffmpeg options: Enable trailing ? for map_channel
[00:00:00 CEST] --- Sat Aug 26 2017
1
0
[00:07:02 CEST] <voip_> hello guys, i forgot what the normal range for q parameter ?
[00:08:14 CEST] <voip_> quantizer
[00:09:39 CEST] <kepstin> squarecircle: unless you've specifically asked ffmpeg to use a hw decoder, it won't be using one. You have to specify the device to use, so you can say which card to run on.
[00:09:46 CEST] <kepstin> voip_: depends on the codec.
[00:10:00 CEST] <voip_> actually acceptable value for CPU load h264
[00:11:32 CEST] <kepstin> are you using the x264 encoder? If so, use the '-qp' option (not -q) for constant quantizer mode, and probably something around 20 or so, lower for higher quality.
[00:11:50 CEST] <squarecircle> kepstin: I'm not sure about that
[00:12:34 CEST] <kepstin> squarecircle: well, I'm sure about it ;)
[00:12:47 CEST] <squarecircle> kepstin: oh well, if I think, about it, yeah, a 1080p file creates 100% load on one cpu, a 4k 100% on four cpus
[00:12:51 CEST] <voip_> kepstin, i encoding 9 streams and have q=32.0 in stats, but speed=0.992x
[00:13:11 CEST] <squarecircle> how do I can tell ffmpeg to use the hardware?
[00:13:32 CEST] <kepstin> voip_: the qp setting on x264 has rather minimal effect on how fast the encoder runs... look at the -preset option to adjust that.
[00:14:16 CEST] <kepstin> squarecircle: Neither of the machines you mentioned support hardware decoding...
[00:14:49 CEST] <kepstin> squarecircle: how to set it up depends on what type of hardware decoder you have and what OS.
[00:16:41 CEST] <voip_> kepstin, so quantizer stats doesnt related with CPU loading ? I was tink q shows how mmuch my CPU loaded
[00:16:59 CEST] <kepstin> voip_: nope, it's related to the visual quality of the encoded video
[00:17:14 CEST] <kepstin> (when using x264, it's a very loose relation, the numbers don't mean much)
[00:18:05 CEST] <kepstin> voip_: to make x264 run faster, use the -preset option to select a faster preset. The default is 'medium', so try 'fast', 'faster', 'veryfast', etc.
[00:20:00 CEST] <voip_> thank you, kepstin
[00:22:02 CEST] <squarecircle> kepstin: well I would put in some nvidia 8800GT that are moalding here
[00:22:42 CEST] <squarecircle> kepstin: iirc I can put in three cards
[00:23:25 CEST] <kepstin> squarecircle: 8800GT should be able to do 1080p h264 8bit decoding, but it doesn't have a hardware encoder.
[00:24:34 CEST] <kepstin> assuming you're using nvidia's drivers (do they even still support the 8800gt? Might need the legacy version), you can probably use the cuvid decoder as described here: https://trac.ffmpeg.org/wiki/HWAccelIntro#CUDACUVIDNvDecode
[00:24:47 CEST] <DHE> IIRC gtx680 or so was the first with the NVENC encoder chip on it
[00:25:32 CEST] <squarecircle> so hardware acceleration in ffmpeg does not uses the openCL or Cuda, but relies on available decoders?
[00:25:45 CEST] <squarecircle> so the best would be to buy a hardware decoder?
[00:25:53 CEST] <DHE> opencl is limited to like 2 filters in ffmpeg, and some limited lookahead in x264
[00:26:13 CEST] <kepstin> squarecircle: all of the "hardware accellerated" decoding in ffmpeg is actually using decoder hardware, yes
[00:26:19 CEST] <DHE> nvenc should be on any gtx card that's less than 4 years old now, except maybe the really low end ones
[00:26:36 CEST] <kepstin> squarecircle: the geforce 8800gt has a dedicated part of the die with a decoder on it (but no encoder)
[00:26:47 CEST] <kepstin> later cards add and encoder too, on some models
[00:26:52 CEST] <squarecircle> kepstin: I don't need any encodet
[00:27:13 CEST] <squarecircle> at the moment, I need only more decoding power
[00:27:14 CEST] <squarecircle> :)
[00:27:17 CEST] <DHE> yeah VDPAU and other APIs exist for video decoding (VDPAU is playback-oriented)
[00:27:31 CEST] <kepstin> huh, the decoder on the 8800gt should work on nouveau via the vdpau api, assuming you have the appropriate firmware
[00:27:45 CEST] <squarecircle> kepstin: hm
[00:27:50 CEST] <squarecircle> thats an idea
[00:28:02 CEST] <squarecircle> I'll try next week
[00:28:13 CEST] <furq> wow, an 8800GT
[00:28:19 CEST] <kepstin> or you can use it with the nvidia driver and the cuda/cuvid api
[00:28:22 CEST] <furq> i think i have one of those in a box somewhere with no heatsink on it
[00:28:30 CEST] <kepstin> either way, it uses the same decoder hardware, just different apis
[00:28:31 CEST] <furq> that'll doubtless come in handy some day
[00:28:49 CEST] <squarecircle> furq: well, thats whats moalding around in the local space here
[00:29:12 CEST] <squarecircle> furq: there are also some Radeon HD6250 and stuff
[00:29:45 CEST] <kepstin> no idea on the speed of the decoder on that card, all they had to support was realtime playback of ~1080p content
[00:29:51 CEST] <squarecircle> hm
[00:29:53 CEST] <squarecircle> ok
[00:34:03 CEST] <kepstin> apparently there was a significant bump to the decoder performance in the geforce 600/700 series (kepler) gpus, which corresponds to when they added an encoder and let people do full hardware transcoding
[00:34:23 CEST] <kepstin> so stuff older than that is probably not worth it unless you're using a contemporary cpu as well
[00:39:31 CEST] <squarecircle> well its junk thats lying around and I don't spend money on it
[00:40:21 CEST] <kepstin> worst case with a modern cpu is that it slows down the decoding :)
[00:41:07 CEST] <squarecircle> Intel(R) Xeon(R) CPU E5640 @ 2.67GHz
[00:41:21 CEST] <squarecircle> two times on my test bench
[00:42:48 CEST] <squarecircle> so 8C16T
[00:43:20 CEST] <squarecircle> is there a way to enhance the decoding by telling ffmpeg to uses as many cores as possible?
[00:44:31 CEST] <squarecircle> Load average: 111.05 103.14 78.41
[00:44:37 CEST] <squarecircle> at the moment ^^
[00:48:46 CEST] <squarecircle> its obviously not a good idea to start 100 processes in parallel
[00:49:01 CEST] <squarecircle> efficiency goes down
[00:51:18 CEST] <DHE> you can specify -threads 2 (or whatever) before the -i parameter and it applies to the decoder
[00:51:23 CEST] <DHE> but that assumes the decoder supports it
[00:55:58 CEST] <squarecircle> hm
[00:56:35 CEST] <CoreX> you learn something new everyday
[00:57:01 CEST] <squarecircle> DHE: I'll try it
[00:57:25 CEST] <squarecircle> thank you kepstin DHE
[01:12:20 CEST] <LiedFrice> Afternoon :)
[01:13:24 CEST] <LiedFrice> I was curious, can ffplay display a subtitle stream from a pipe like so?
[01:14:39 CEST] <LiedFrice> Everything seems to be encoding right, I just do not see subtitles in the FFplay window: https://pastebin.com/raw/gnCM0GFM
[01:43:09 CEST] <LiedFrice> Any thoughts are much appreciated, could really help with some presentations
[01:51:13 CEST] <LiedFrice> Just an obvervation, vlc player can read the subtitle stream from a pipe and display it, but FFplay does not display anything with the same command
[01:51:17 CEST] <LiedFrice> ffmpeg -f v4l2 -i /dev/video0 -sub_charenc ISO8859-1 -i MLP1.srt -vcodec huffyuv -scodec text -f matroska - | vlc -
[02:36:00 CEST] <LiedFrice> rip
[02:51:24 CEST] <LiedFrice> Also noted, mplayer can display a subtitle stream in a named pipe while FFplay still isn't displaying any subtitles
[02:51:26 CEST] <LiedFrice> ffmpeg -f v4l2 -i /dev/video0 -sub_charenc ISO8859-1 -i MLP1.srt -vcodec huffyuv -scodec subrip -f matroska pipe:1 > itsafifo | mplayer itsafifo -vo x11
[03:44:12 CEST] <alexpigment> Hey guys, I saw this patch for FFMPEG to make it large address aware: https://ffmpeg.org/pipermail/ffmpeg-devel/2014-September/163207.html
[03:44:26 CEST] <alexpigment> I'm a little green on patching, but what file specifically is being patched here?
[03:49:13 CEST] <furq> configure
[03:50:25 CEST] <alexpigment> Oh right. Sorry, I'm used to the Windows world where things have file extensions
[03:50:31 CEST] <alexpigment> There's actually a file called configure
[03:50:39 CEST] <alexpigment> Thanks for helping me realize the obvious
[04:55:52 CEST] <dan2wik> I'm having a little trouble with cpu usage on an audio stream.
[04:56:05 CEST] <dan2wik> 1 sec, I'll paste the command line
[04:57:35 CEST] <dan2wik> https://pastebin.com/raw/vuuXs3vM
[04:58:10 CEST] <dan2wik> It is currently using the same amount of cpu as the video encoding I am doing which is rather unacceptable.
[07:30:06 CEST] <zarac> hey folks ; )
[07:34:37 CEST] <durandal_1707> hey
[07:35:36 CEST] <kerio> what's the simplest way of shoving jpeg in a video container with absolute timestamps?
[07:36:18 CEST] <zarac> ; )
[07:36:43 CEST] <zarac> was gonna type a bunch.. about tracker being down and about another bug.
[07:37:01 CEST] <zarac> it solved itself... ; ) (tracker is a bit slow)
[07:39:24 CEST] <zarac> registered and bumped ; )
[08:17:54 CEST] <ussher_> im trying to merge 2 .mp3 files, but the lenght of the output is always determined by the length of the shortest song. How to make the longest song be the length? https://pastebin.com/Rw8r6XYB
[08:45:15 CEST] <teratorn> ussher_: run the shorter one through an apad filter filter before amerge?
[08:45:30 CEST] <teratorn> ussher_: perhaps..
[08:46:53 CEST] <ussher_> thanks teratorn, i've rethunk it. currently looking at looping over the short track to make it longer than the longest track so the shortest track is always the one I want.
[08:47:19 CEST] <ussher_> I'll look into the apad filter next time i get stuck with this current thought line.
[08:47:23 CEST] <ussher_> appreciated.
[08:47:28 CEST] <teratorn> cool good luck
[11:22:22 CEST] <pihpah> How can I extract mov_text subtitles? What are those exactly?
[11:35:35 CEST] <JEEB> they're mov/3gpp/mp4 timed text
[11:35:52 CEST] <JEEB> they're in a container specific format so I'm not sure if they have a standardized format outside of the container
[11:36:11 CEST] <JEEB> you can extract them as srt or ass, for example
[11:44:26 CEST] <pihpah> JEEB: tried with ffmpeg -i {} -map 0:s:0 test.srt did not work out.
[20:23:53 CEST] <flok420> what can be the problem that if avformat_open_input returns -1 (ffmplay and mplayer also fail) on an rtsp stream?
[20:34:07 CEST] <dan3wik> I'm having issues with my audio encoder. I am using 1 ffmpeg instance for video and 1 for audio. The video one sits around 30%, the audio one starts at 15% but ends up around 60% after 2 minutes
[20:34:43 CEST] <dan3wik> Command line for audio is "ffmpeg -f alsa -ar 44100 -ac 1 -i hw:%d -f mpegts -codec:a libtwolame -b:a 32k -muxdelay 0.02 http://%s:%s/%s/1/1"
[21:36:27 CEST] <user_12> How do I convert/copy a WMV to an MP4 (with both auto and video)? It seems like this is overly complicated, everything I try (i.e., ffmpeg -i in.wmv -c:all copy out.mp4) never work, or the audio or video is missing
[21:36:47 CEST] <user_12> every forum I goto has some other way or other flags to do it
[21:36:56 CEST] <user_12> whats the best way, I dont care about speed/compression
[21:37:08 CEST] <c_14> ffmpeg -i in.wmv out.mp4
[21:37:14 CEST] <c_14> eeh
[21:37:18 CEST] <c_14> ffmpeg -i in.wmv -map 0 out.mp4
[21:38:11 CEST] <user_12> that throws out on-monotonous DTS in output stream 0:0; previous: 685207, current: 678032; changing to 685208. This may result in incorrect timestamps in the output file. which makes the audio choippy
[21:38:54 CEST] <user_12> both of those do
[21:39:05 CEST] <furq> user_12: you can't copy wmv streams into mp4, they don't support any of the same codecs
[21:39:15 CEST] <furq> if you want to reencode it then do what c_14 said
[21:39:25 CEST] <furq> if you have a broken wmv container or something and you want to remux, use mkv
[21:39:57 CEST] <user_12> I did try to re-encode it, it doesn't sound right, its choppy
[21:40:10 CEST] <user_12> mkv?
[21:40:39 CEST] <user_12> How do I go from WVM to Mp4 then>?
[21:40:50 CEST] <user_12> WMV to MP4 rather
[21:40:57 CEST] <furq> you reencode it
[21:41:04 CEST] <user_12> and how do I do that?
[21:41:12 CEST] <furq> you do what c_14 said
[21:41:19 CEST] <user_12> he posted two things, what one
[21:41:23 CEST] <furq> the second one
[21:41:51 CEST] <user_12> and I just said when I 're-encode it' it throws tons of DTS outpit stream errors, which makes the audio choppy
[00:00:00 CEST] --- Sat Aug 26 2017
1
0
[11:08:29 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07master:c42a1388a6d1: avformat/rtpdec_h264: Fix heap-buffer-overflow
[11:08:29 CEST] <cone-155> ffmpeg 03Dale Curtis 07master:37e8edc9f515: avformat/mov: Fix trampling of ctts during seeks when sidx support is enabled.
[12:01:59 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07master:2b44dcbc44e9: avcodec/hevc_ps: Check delta_pocs in ff_hevc_decode_short_term_rps()
[12:02:00 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07master:837cb4325b71: ffprobe: Fix null pointer dereference with color primaries
[12:02:01 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07master:351e28f9a799: ffprobe: Fix NULL pointer handling in color parameter printing
[12:51:38 CEST] <cone-155> ffmpeg 03Carl Eugen Hoyos 07master:cb1a3eecac2d: lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion.
[13:00:43 CEST] <cone-155> ffmpeg 03Carl Eugen Hoyos 07master:f61e2dcfc399: lavf/g726: Demuxer for raw G.726 streams, both left- and right-justified.
[14:12:25 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:8dc06a1cb151: avcodec/takdec: Fix multiple runtime error: signed integer overflow: 637072 * 4096 cannot be represented in type 'int'
[14:12:26 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:e3d4321739af: avcodec/pafvideo: Fix assertion failure
[14:12:27 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:e9c8fdbbcbb4: avcodec/mpeg4videodec: Fix runtime error: signed integer overflow: 53098 * 40448 cannot be represented in type 'int'
[14:12:28 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:bcdd5463f35d: avcodec/ac3dec_fixed: Fix multiple runtime error: signed integer overflow: -39271008 * 59 cannot be represented in type 'int'
[14:12:29 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:f4dae487906a: avcodec/indeo4: Check remaining data in Pic hdr extension parsing code
[14:12:30 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:5dc0393d9663: avcodec/flicvideo: Fix runtime error: signed integer overflow: 4864 * 459296 cannot be represented in type 'int'
[14:12:31 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:e3a75af7080c: avcodec/ra144: Fix runtime error: signed integer overflow: -2200 * 1033073 cannot be represented in type 'int'
[14:12:32 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:f0f9fa218460: avcodec/tiff: Fix leak of geotags[].val
[14:12:33 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:295b24643ecf: avcodec/aacdec_fixed: Fix runtime error: left shift of negative value -1297616
[14:12:34 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:d182bb21add5: avcodec/snowdec: Fix runtime error: left shift of negative value -1
[14:12:35 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:0dfda74afc8d: avcodec/wavpack: Fix runtime error: signed integer overflow: 1886191616 + 277872640 cannot be represented in type 'int'
[14:12:36 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:bc8fe5c4bdb4: avcodec/jpeg2000dwt: Fix runtime error: left shift of negative value -123
[14:12:37 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:0ac41463891c: avcodec/sbrdsp_fixed: Return an error from sbr_hf_apply_noise() if operations are impossible
[14:12:38 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:fd0da0eef007: avcodec/aacsbr_fixed: Check shift in sbr_hf_assemble()
[14:12:39 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:296b444a5caf: avcodec/mpeg4videodec: Fix integer overflow in num_sprite_warping_points=2 case
[14:12:40 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:7bca492cfcc7: avcodec/mpeg4videodec: Check sprite delta upshift against overflowing.
[14:12:41 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:c2562f5a8e0c: avcodec/hevc_refs: Check nb_refs in add_candidate_ref()
[14:12:42 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:c8733c73763f: avcodec/hevcdec: Check nb_sps
[14:12:43 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:92c5ff0763b8: avcodec/jpeg2000: Fixes integer overflow in ff_jpeg2000_ceildivpow2()
[14:12:44 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:eb38f232b4ed: avcodec/shorten: Sanity check maxnlpc
[14:12:45 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:c436af15596a: avcodec/jpeg2000dec: Check nonzerobits more completely
[14:12:46 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:1ce850f96da2: avcodec/hevcdec: Fix signed integer overflow in decode_lt_rps()
[14:12:47 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:ba23d53710ec: avcodec/hevcpred_template: Fix left shift of negative value
[14:12:48 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:0aa14c7f67b2: avcodec/jpeg2000dsp: Reorder operations in ict_int() to avoid 2 integer overflows
[14:12:49 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:5aa7d228cbad: avcodec/takdec: Fixes: integer overflow in AV_SAMPLE_FMT_U8P output
[14:12:50 CEST] <cone-155> ffmpeg 03Anton Mitrofanov 07release/2.8:365ab04b16ec: avcodec/h264_cabac: Fix CABAC+8x8dct in 4:4:4
[14:12:51 CEST] <cone-155> ffmpeg 03Anton Mitrofanov 07release/2.8:a85f8fd4a625: avcodec/h264_mb: Fix 8x8dct in lossless for new versions of x264
[14:12:52 CEST] <cone-155> ffmpeg 03Anton Mitrofanov 07release/2.8:ea73c4813d83: avcodec/h264: Fix mix of lossless and lossy MBs decoding
[14:12:53 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:cbc4f40d1372: avcodec/aacdec_fixed: Check s for being too small
[14:12:54 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:4afd24805954: avcodec/wavpack: Fix undefined integer negation
[14:12:55 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:b66e30ca7658: avcodec/mpeg4videodec: Fix overflow in virtual_ref computation
[14:12:56 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:5c818b62867d: avcodec/hevc_filter: Fix invalid shift
[14:12:57 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:be92b2702448: avcodec/tiff: Update pointer only when the result is used
[14:12:58 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:7fadd9625f71: avcodec/takdec: Fix integer overflow
[14:12:59 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:fe74c2364ee3: avcodec/wavpack: Fix integer overflow
[14:13:00 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:7ee48d9de118: avcodec/mpeg4videodec: Fix GMC with videos of dimension 1
[14:13:01 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:bd33b15fe6a6: avcodec/wavpack: Fix integer overflow in wv_unpack_stereo()
[14:13:02 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:bbcb59b94826: avcodec/apedec: Fix integer overflow
[14:13:03 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:a6e90e5998ab: avcodec/jpeg2000dwt: Fix integer overflow in dwt_decode97_int()
[14:13:04 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:f6954a1482f3: avcodec/vb: Check vertical GMC component before multiply
[14:13:05 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:a5e969dd28c2: avcodec/hevc_ps: Fix integer overflow with beta/tc offsets
[14:13:06 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:610bd595228b: avcodec/wavpack: Fix invalid shift
[14:13:07 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:82ba7646c249: avcodec/sbrdsp_fixed: Fix integer overflow in sbr_hf_apply_noise()
[14:13:08 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:080d6de9dfc1: avcodec/aacps (fixed point): Fix multiple signed integer overflows
[14:13:09 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:a84ed3d01137: avcodec/mjpegdec: Clip DC also on the negative side.
[14:13:10 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:1b1abf077d64: avcodec/aacdec_template (fixed point): Check gain in decode_cce() to avoid undefined shifts later
[14:13:11 CEST] <cone-155> ffmpeg 03Brice Waegeneire 07release/2.8:061be75481ed: doc/filters: typo in frei0r
[14:13:12 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:56e2ec0e9fea: avcodec/aacdec_fixed: fix: left shift of negative value -1
[14:13:13 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:91442fdc1c6e: avcodec/aacps: Fix multiple integer overflow in map_val_34_to_20()
[14:13:14 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:490b6599bbf4: avformat/oggparsecelt: Do not re-allocate os->private
[14:13:15 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:58ce199abac4: avcodec/hevc_ps: fix integer overflow in log2_parallel_merge_level_minus2
[14:13:16 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:b566ab49ca84: avformat/rtmppkt: Convert ff_amf_tag_size() to bytestream2
[14:13:17 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:8f9cbb3b7e84: avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2
[14:13:18 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:406d9fdd1357: avcodec/takdec: Fix integer overflow in decode_subframe()
[14:13:19 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:95bbbbd14e44: avcodec/diracdec: Fix integer overflow in divide3()
[14:13:20 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:9d0eb81cb85c: avcodec/dirac_dwt: Fix multiple integer overflows in COMPOSE_DD97iH0()
[14:13:21 CEST] <cone-155> ffmpeg 03Steven Siloti 07release/2.8:f0f45d840453: avformat/utils: fix memory leak in avformat_free_context
[14:13:22 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:f236601e29b9: avcodec/h264_slice: Fix overflow in slice offset
[14:13:23 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:5f44aa14ddb2: avcodec/aacdec_fixed: fix invalid shift in predict()
[14:13:24 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:30a2c1a1b83f: avcodec/dirac_dwt: Fixes integer overflows in COMPOSE_DAUB97*
[14:13:25 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:96cf249751bb: avcodec/mpeg4videodec: Clear mcsel before decoding an image
[14:13:26 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:b463a0347636: avcodec/diracdec: Check perspective_exp and zrs_exp.
[14:13:27 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:7829a712bb5a: avcodec/snowdec: Fix off by 1 error
[14:13:28 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:0b37ae2ae475: avcodec/fic: Fixes signed integer overflow
[14:13:29 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:079849f40c52: avcodec/me_cmp: Fix crashes on ARM due to misalignment
[14:13:30 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:cab75cde0170: avcodec/aacdec_template: Fix running cleanup in decode_ics_info()
[14:13:31 CEST] <cone-155> ffmpeg 03Vitaly Buka 07release/2.8:05fc22f9f69e: avformat/mov: Fix signed integer overflows with total_size
[14:13:32 CEST] <cone-155> ffmpeg 03Vitaly Buka 07release/2.8:eaf231544f2f: avformat/aviobuf: Fix signed integer overflow in avio_seek()
[14:13:33 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:ae37bbef4368: avcodec/hevc_ps: Check delta_pocs in ff_hevc_decode_short_term_rps()
[14:13:34 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:c1a9f5675b95: ffprobe: Fix null pointer dereference with color primaries
[14:13:35 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:49839ae0139c: ffprobe: Fix NULL pointer handling in color parameter printing
[14:42:41 CEST] <cone-155> ffmpeg 03Michael Niedermayer 07release/2.8:bc57c799704a: Update for FFmpeg 2.8.13
[14:47:35 CEST] <cone-155> ffmpeg 03Paul B Mahol 07master:f8d0689d3ff5: avfilter/vf_blend: rename addition128 and difference128 to grainmerge and grainextract
[15:41:59 CEST] <J_Darnley> I hate this rate control crap in vc2enc. A circular dependency. You need to know how large the coded frame will be before you can code it.
[15:43:27 CEST] <J_Darnley> All because a coded plane-slice uses single byte to show the size of itself.
[15:44:03 CEST] <J_Darnley> So you need to scale scale the true size by some factor so that it is <= 255
[15:45:21 CEST] <J_Darnley> To know that factor you need to know how large the largest plane-slice will be.
[15:56:01 CEST] <J_Darnley> I'm going to excise that slice byte counter
[15:56:38 CEST] <BtbN> So you are essentially forced to do a full two-pass run?
[15:57:44 CEST] <J_Darnley> Something like that, I think.
[15:58:36 CEST] <J_Darnley> Fortunately The first pass only appears to count the bits
[16:00:26 CEST] <J_Darnley> Also this links with the sliced multithreading it has: several independant PutBits are used and initialized to start at the right place in the output.
[16:02:13 CEST] <kierank> J_Darnley: bear in mind in our use case each row needs to be the same size
[16:02:16 CEST] <J_Darnley> Ah it is better after excising that count
[16:03:05 CEST] <J_Darnley> kierank: at present it all appears to encode into the same size
[16:03:10 CEST] <kierank> ok
[16:06:48 CEST] <bove> I am writing a demuxer for SGO Mistika files. They mostly decode as rawvideo, but it supports some pixel formats I can't decode correctly. Should I be a) writing custom pixel formats, b) patching rawdec or c) writing a new decoder?
[16:08:06 CEST] <bove> A few of them are stored as 3x10bits in a 32b DWORD. Can rawdec handle that?
[16:08:55 CEST] <J_Darnley> We akready have some like that, v210 spring to mind.
[16:08:59 CEST] <J_Darnley> *already
[16:09:11 CEST] <bove> I'll have a look at that
[16:09:33 CEST] <wm4> yeah, probably new raw decoder
[16:09:50 CEST] <wm4> we try to avoid adding obscure raw codecs as pixfmts these days
[16:10:15 CEST] <wm4> (thinhs like AV_PIX_FMT_BGR4_BYTE...)
[16:10:18 CEST] <wm4> *things
[16:10:44 CEST] <wm4> for 3x10 bits, it might actually be reasonable to add it as pixfmt
[16:10:48 CEST] <wm4> as long as it's byte aligned
[16:14:37 CEST] <bove> Yes. But I can't really understand the .comp part of the pixels format. Is it possible to define 3x10 plus padding in there?
[16:17:29 CEST] <wm4> yes
[16:17:49 CEST] <wm4> AV_PIX_FMT_AYUV64LE should be relatively similar
[16:17:56 CEST] <wm4> just that it uses 8 bits per component
[16:18:18 CEST] <wm4> the disadvantage with adding a new pixfmt is that you need to add support to libswscale....
[16:18:31 CEST] <wm4> a dedicated raw decoder might be simpler
[16:21:49 CEST] <bove> If I do a custom decoder, I would just swap the bytes to match one of the existing pix_fmts, right?
[16:22:07 CEST] <bove> I think the DPX decoder does the exact same thing
[16:22:20 CEST] <wm4> yes
[16:22:44 CEST] <wm4> considering that absolutely nobody hacks libswscale, that might be the easier route
[16:22:53 CEST] <wm4> *nobody _likes_ to hack libswscale
[16:24:17 CEST] <bove> Could I manipulate the data in the format's read_packet(), or is it better to do an encoder?
[16:25:05 CEST] <wm4> I think you could do that
[16:25:14 CEST] <wm4> maybe it's even preferable for something overly obscure
[16:25:33 CEST] <wm4> but if the container can use multiple codecs, a separate decoder would be better
[16:26:41 CEST] <bove> Ok. Thanks so far
[16:34:22 CEST] <BBB> J_Darnley: does the second pass only affect the bitstream writing? or does it require a full new r/d loop?
[16:34:30 CEST] <BBB> J_Darnley: or in other words, how big is the overhead?
[16:34:34 CEST] <BBB> should be small
[16:35:10 CEST] <J_Darnley> I don't know.
[17:16:13 CEST] <wm4> kierank: nicolas george is offensive as usual, but to make an argument that does not aim to piss off everyone: we still could have --disable-libavformat or such, and libffmpeg would not contain the libavformat API
[17:17:13 CEST] <kierank> true
[18:43:09 CEST] <durandal_1707> see, that happens when you do not remove ffserver
[19:01:48 CEST] <BBB> whos maintainer of ffserver again?
[19:03:05 CEST] <wm4> BBB: reynaldo
[19:11:13 CEST] <jamrial> ffserver hasn't been fixed after the whole vote-to-postpone-its-removal stuff last november, so it's going to be removed with the upcoming bump
[19:11:41 CEST] <atomnuker> when is the next bump?
[19:12:23 CEST] <jamrial> as soon as i get the help i requested on the ml, or once the merges resume and reach that point in the queue
[19:13:30 CEST] <atomnuker> requested help?
[19:13:40 CEST] <atomnuker> what do merges have to do with anything?
[19:14:01 CEST] <jamrial> libav bumped major versions some months ago. the commit in question is in the merge queue
[19:14:21 CEST] <jamrial> we can wait until that's merged, or we can bump at this point
[19:15:43 CEST] <iive> there is somebody offerring a job to developer to maintain and fix ffserver
[19:15:51 CEST] <iive> it's mail with "no subject"
[19:16:12 CEST] <wm4> oh is that another reason to postpone removal of this POS
[19:17:17 CEST] <jamrial> if someone magically fixes all ffservers problems in record time, then it can stay. but if not, it's going to be removed
[19:17:36 CEST] <jamrial> it's been like nine months since the whole postponing vote stuff and nobody touched it any further
[19:17:43 CEST] <jamrial> so i doubt it's going to be fixed
[19:18:07 CEST] <iive> well, if nobody takes the offer, then ffserver is doomed.
[19:19:18 CEST] <wm4> according to jamrial we're probably past this point
[19:20:37 CEST] <iive> oh, so he is not project leader. Sorry I haven't got the memo. ~~
[19:20:45 CEST] <iive> not/now
[19:21:19 CEST] <wm4> who is our project leader
[19:21:30 CEST] <jamrial> i'm saying what the vote decided
[19:21:47 CEST] <jamrial> if it was up to me, ffserver would have been removed in november
[19:22:25 CEST] <jamrial> after the vote it was decided that if ffserver couldn't be fixed before the next bump, it would be removed
[19:23:22 CEST] <iive> I thought it was fixed, that's why it remained.
[19:23:36 CEST] <jamrial> no, it wasn't
[19:24:26 CEST] <wm4> so let's hold another vote, where we decide to postpone ffserver removal again
[19:24:34 CEST] <iive> i do remember people complaining that the inital plan was to fix the bugs and then remove it, but after the bugfixing people wanted to keep it.
[19:24:37 CEST] <jamrial> I'd rather not
[19:24:48 CEST] <iive> but maybe it's about different bugs
[19:40:10 CEST] <kierank> 6:21 PM <wm4> who is our project leader
[19:40:16 CEST] <kierank> he who shalt not be named
[19:46:15 CEST] <wm4> if you mean HIM, he refuses that he is
[19:54:15 CEST] <kierank> it's a fiat leader
[19:54:17 CEST] <kierank> that's the problem
[20:08:53 CEST] <BBB> VOLDEMORT
[20:08:56 CEST] <BBB> so uh
[20:09:03 CEST] <BBB> is voldermort attending VDD? :-p
[20:09:08 CEST] <BBB> or how does this thing work
[20:09:31 CEST] <BBB> is this like the shadow government, you have the minions feuding in public and the real power people staying behind the shades?
[20:21:24 CEST] <BBB> [and there was silence]
[20:22:40 CEST] <Compn> where are you reading this from bbb ?
[20:22:48 CEST] <Compn> oh lol
[20:22:53 CEST] <BBB> :-p
[20:23:05 CEST] <Compn> kierank : you could nominate a leader and call a vote if you wanted
[20:23:48 CEST] Action: Compn ducks
[20:39:08 CEST] <cone-155> ffmpeg 03Paul B Mahol 07master:f0f48884b023: avfilter/af_sidechaincompress: switch to activate
[20:39:38 CEST] <Compn> kierank : i mean you could nominate yourself if youwanted
[20:52:04 CEST] <durandal_1707> im potter and you are voldemort
[20:52:24 CEST] <jamrial> michaelni, durandal_1707: do you think you could remove coded_frame usage from vf_mcdeint and vf_uspp? they are apparently the only modules left using it
[20:52:58 CEST] <durandal_1707> just remove it
[20:53:23 CEST] <durandal_1707> nobody uses those voldermort filters
[20:57:35 CEST] <BBB> I think we just created a new meme :-p
[21:04:29 CEST] <wm4> I wonder if there's even a single user of those 2 filters
[21:04:56 CEST] <wm4> or of they are just the forgotten dead pets of the original authors
[21:08:35 CEST] <wbs> wm4: http://martin.st/temp/0001-Properly-specify-dllexport-for-data-symbols-shar… - proper use of dllexport doesn't seem to be insanely hard to do - this is only tested with msvc and in libav only, but should be a good base, in case you want to try to pursue this
[21:09:32 CEST] <wm4> wbs: interesting
[21:14:16 CEST] <BBB> wbs: oh wow thats pretty cool
[21:15:13 CEST] <wbs> for ffmpeg, there seems to be a few av_export in libavutil as well so it has to be expanded to av_export_avutil, and perhaps the av_export_avcodec definition should be somewhere in libavcodec/*.h, but you get the idea
[21:15:28 CEST] <michaelni> jamrial, i think these filters depend on the coded_frame API. Its possible to replace coded_frame with a different API of course but removing it without replacement would not work with the same efficiency
[21:15:37 CEST] <wbs> (this was my 15 minute idea of derailing your fight by providing a different solution) :P
[21:16:22 CEST] <jamrial> michaelni: so we just keep postponing the removal of coded_frame, then?
[21:16:41 CEST] <wm4> jamrial: lol
[21:16:47 CEST] <wm4> wbs: I thought it would be much more complex... anyway, would have to check whether it works with mingw as intended
[21:16:52 CEST] <jamrial> i'm surprised it could be removed from every other decoder and filter but not these two...
[21:17:07 CEST] <wm4> because they're filters ported from mplayer
[21:17:17 CEST] <wm4> all you need to know
[21:17:22 CEST] <michaelni> jamrial, these 2 actually acess the image
[21:18:04 CEST] <michaelni> wm4, i dont think your mplayer reference is relevant or helpfull
[21:19:02 CEST] <wm4> michaelni: I don't think your insistance to keep these filters combined with a refusal to fix them is helpful
[21:19:58 CEST] <michaelni> wm4, please dont invent things about me
[21:19:59 CEST] <wbs> wm4: yeah - I think it should work for mingw if you change the defined(_MSC_VER) into a defined(_WIN32), but the map of functions to export works a bit differently so something might come up, anyway, I'll leave the rest to you
[21:20:23 CEST] <wm4> michaelni: I'm not inventing, but observing
[21:20:37 CEST] <RiCON> wbs: as long as it doesn't break 'shared ffmpeg with static libs' even more than it is now
[21:20:43 CEST] <jamrial> don't start a flame war for two filters, please
[21:21:01 CEST] <wm4> yeah, let's choose a less optimal solution because of two filters instead
[21:21:19 CEST] <RiCON> wbs: if some 3rd party lib uses dllimport, the .def only lists that lib's symbols, not ffmpeg's
[21:21:47 CEST] <wbs> RiCON: with mingw?
[21:21:50 CEST] <RiCON> yeah
[21:22:01 CEST] <RiCON> specifically with "shared ffmpeg + static external libs"
[21:22:10 CEST] <RiCON> static with static and shared with shared has no issues
[21:22:36 CEST] <wbs> oh, then this will make the .def contain those dllexports from the external libs + dllexports for all the av_export data
[21:23:01 CEST] <wbs> RiCON: if you want to fix that, hook up the script that we use for msvc to produce a def file prior to invoking the linker
[21:23:46 CEST] <durandal_1707> isnt coded frame just to mark keyframes?
[21:23:58 CEST] <wbs> actually, if you proceed with this dllexport patch with mingw in any normal case as well, you'll probably need to hook up that def script anyway
[21:24:23 CEST] <michaelni> durandal_1707, the 2 filters access the actual pixels
[21:24:45 CEST] <BBB> durandal_1707: it gives access to any portion of the compressed image (in decompressed form)
[21:24:51 CEST] <BBB> durandal_1707: flags, pixels, etc.
[21:25:17 CEST] <BBB> durandal_1707: think of it as the AVFrame if you decoded the compressed image again
[21:25:48 CEST] <michaelni> jamrial, one could add a flag to the used encoder and return the internal bitmap in the avpacket if its set or maybe encode + decode to the the frame, later would be slower
[21:26:09 CEST] <michaelni> then one could use that instead of coded_frame and remove it i think
[21:27:16 CEST] <michaelni> maybe iam missing some magic simpler solution ...
[21:28:09 CEST] <wm4> or we could just remove these obscure/rarely used filters that cause so much trouble
[21:28:36 CEST] <BBB> just expose coded_frame in some internal form (codec-specific property, some internal api only for those encoders)
[21:28:54 CEST] <BBB> I dont think anyone cares about coded_frame except for it being in AVCodecContext
[21:28:55 CEST] <jamrial> we don't even know yet if dropping coded_frame as is will work even without considering those two filters
[21:29:04 CEST] <BBB> if its anywhere else thats not AVCodecContext, I think nobody cares
[21:29:26 CEST] <BBB> OneBigStruct { everything; // FIXME }; is not a good design ;)
[21:29:44 CEST] <BBB> (remember dsputil? :D)
[21:30:04 CEST] <BBB> o o o and mpegvideoenc!!!! woohoo \o\ /o/ \o/
[21:30:13 CEST] <BBB> (which was used in h264dec)
[21:30:13 CEST] <jamrial> that one still exists, though :p
[21:30:41 CEST] <BBB> michaelni: I think people are trying to make ffmpeg more maintainable, codec_frame is fine, just not in AVCodecContext
[21:31:04 CEST] <BBB> michaelni: so just expose it as a codec-private option and I think youre fine
[21:31:20 CEST] <BBB> (or as you said, side-data in a AVPacket)
[21:31:32 CEST] <BBB> just not AVCodecContext
[21:31:45 CEST] <michaelni> it should be something that doesnt require memcpy but is properly ref counted
[21:32:10 CEST] <BBB> side-data refcounting sounds like a good idea
[21:40:15 CEST] <iive> is codec_frame about keeping the quantizers of macroblocks?
[21:43:41 CEST] <iive> no, it isn't
[23:23:42 CEST] <jamrial> alright, libavcodec compiles after a bump and fate passes. we only need to fix or postpone at most four deprecated apis/functionality older than two years
[23:35:16 CEST] <nevcairiel> Why do filters even have access to AVCodecContext in the first place, that seems wrong on do many levels
[23:36:30 CEST] <jamrial> that's what BBB was saying. coded_frame doesn't need to be in avcodeccontext
[23:37:17 CEST] <BBB> struct OneBigThing { everything; /* FIXME */ }; <- ffmpeg
[23:38:07 CEST] <nevcairiel> How do they get to that context even? Do they make their own?
[23:38:52 CEST] <nevcairiel> Would definitely be nice to get rid of coded_frame, at least from that public struct
[23:41:29 CEST] <jamrial> nevcairiel: the two filters above do that, yes. alloc, open2, encode2, then look at coded_frame
[23:42:10 CEST] <nevcairiel> Is the content of that different then the frame they input?
[23:42:30 CEST] <nevcairiel> Seems a bit silly considering they originally had the frame :p
[23:44:53 CEST] <nevcairiel> But side_data is recounted so (optionally) attaching it there might work
[23:45:38 CEST] <nevcairiel> Or wait, maybe sidedata wasn't refcounted
[23:45:43 CEST] <nevcairiel> I forget
[23:58:46 CEST] <iive> they don't want the input frame, they want the frame that is the result of encoded and then decoded frame.
[23:59:48 CEST] <iive> decoding is part of the encoder, as they need the reference frames.
[00:00:00 CEST] --- Fri Aug 25 2017
1
0
[00:07:00 CEST] <furq> otherwise there's only one audio stream
[00:09:40 CEST] <c7j8d9> oh i see furq so can I -map 0:1 -map 0:a to copy one stream out of multiple?
[00:09:59 CEST] <furq> 0:a:0
[00:10:03 CEST] <furq> or whichever stream it is
[00:10:27 CEST] <furq> https://www.ffmpeg.org/ffmpeg.html#Advanced-options
[00:11:08 CEST] <c7j8d9> perfect! thanks furq
[00:36:28 CEST] <Cracki> kepstin, who's dealing with 4K content and still operating under 32 bit?
[00:37:05 CEST] <kepstin> people who accidentally download 32bit builds of ffmpeg rather than 64bit ones, mostly.
[00:37:24 CEST] <Cracki> I demand 16 bit builds
[00:38:10 CEST] <Cracki> I need my ancient cnc machine with parallel port to cut movie frames into papyrus
[00:44:28 CEST] <grublet> Cracki: i thought i was the only one
[00:44:47 CEST] <Cracki> <3 I love audible pulse frequencies
[00:48:36 CEST] <FishPencil> Is there a way to set the --install-name-dir for the output libs to @loader_path?
[01:57:33 CEST] <leif> Can anyone tell me when I should use the AVFMT_* macros vs the AVFMT_FLAGS_* macros?
[01:58:34 CEST] <leif> I ask because it looks like AVFMT_* works for the AVFormatContext's 'flags' field, but the AVFMT_FLAGS_* macros appeaer right next to it.
[02:01:39 CEST] <commanderkeen> i wrote some code to take an input, demux, decode the video, run it through filter graph, encode it, then mux it to a file. it works other than i think my timestamps are messed up. ffmpeg - says the new video duration is 121:21:12.47 and the original is 0:0:14.08. any suggestions debugging the time issues?
[02:02:18 CEST] <commanderkeen> im getting the frame-rate from the original stream
[02:02:37 CEST] <commanderkeen> and time base
[02:05:04 CEST] <ankitbehera2670> hi
[02:05:22 CEST] <ankitbehera2670> I am a beginner in ffmpeg
[02:05:34 CEST] <ankitbehera2670> I want to use ffmpeg with c
[02:05:38 CEST] <leif> Ah, okay, it looks like AVFMT_* is for the AV(Input/Output) contexts.
[02:06:18 CEST] <ankitbehera2670> to write programs
[02:06:43 CEST] <commanderkeen> ankitbehera2670: have you looked at the examples?
[02:06:56 CEST] <ankitbehera2670> which examples
[02:07:40 CEST] <commanderkeen> ankitbehera2670: https://www.ffmpeg.org/doxygen/3.0/examples.html
[02:09:00 CEST] <ankitbehera2670> ok, I saw those examples
[02:09:28 CEST] <ankitbehera2670> but I wanted to find out a way to use those old source codes
[02:09:34 CEST] <ankitbehera2670> in dranger.com
[02:09:57 CEST] <commanderkeen> what do you mean find out a way to use them?
[02:10:46 CEST] <ankitbehera2670> I heard that pixel formats have been prefixed with AV_, and the PIX_FMT_* defines were moves to libavutil/old_pix_fmts.h
[02:11:04 CEST] <ankitbehera2670> I don't know it is true or not
[02:54:09 CEST] <Diag> can ffmpeg delay audio
[02:54:22 CEST] <Diag> For whatever reason my audio channel is ~5seconds fast
[02:58:20 CEST] <klaxa> see -itsoffset maybe?
[02:59:33 CEST] <klaxa> or the apad filter
[03:08:56 CEST] <Diag> erm
[03:09:08 CEST] <Diag> ill have a look
[03:32:33 CEST] <durandal_1707> Diag: adelay filter
[03:33:07 CEST] <Diag> durandal_1707: how did you see my message
[03:34:29 CEST] <durandal_1707> Diag: im allseeing
[03:34:47 CEST] <Diag> deleting ffmpeg now thanks
[03:56:39 CEST] <alexpigment> what does avresample do?
[03:56:48 CEST] <alexpigment> do I need to build with it?
[03:57:17 CEST] <durandal_1707> no
[03:57:41 CEST] <alexpigment> short and simple answer :) thanks durandal
[03:58:30 CEST] <durandal_1707> its swresample like library for libav folks only
[04:12:12 CEST] <alexpigment> durandal_1707: that was what I gathered from reading about it - I just needed to confirm to be on the safe side
[04:12:15 CEST] <alexpigment> thanks again
[04:54:50 CEST] <cryptodechange> DBZ bluray test (will probably need to DL as the preview video is compressed)... https://drive.google.com/open?id=0B6rDPzFC8IitYm1CSG02Z3gta2M (original) | https://drive.google.com/open?id=0B6rDPzFC8IitTlRHNTd6ZDVBLW8 (denoise/sharpened)
[04:55:00 CEST] <cryptodechange> Not sure what to do with the 'frame shake', is it more noticeable in the denoised version?
[05:09:22 CEST] <dan2wik> Is there a way I can compile ffmpeg faster?
[05:09:48 CEST] <dan2wik> I'm compile on a Pi 0 because cross compiling doesn't seem to be working
[05:10:13 CEST] <dan2wik> I don't know how much time it takes to compile them, but I don't need ffplay or ffserver
[06:38:03 CEST] <lioz_tandil> Hi, I need help with commands of ffmpeg. I need record a streaming of camera ip to mp4 using h264, but i need generate files *.mp4 with fixed duration in seconds. How can i do?
[06:41:21 CEST] <lioz_tandil> Any kind soul? :)
[07:07:41 CEST] <dan4wik> How do i use the -listen argument?
[07:12:11 CEST] <dan4wik> Alternatively, how would I go about listening for a connection for input?
[07:13:29 CEST] <dan4wik> If ffmpeg accepts input from stdin, I could get that going too.
[12:44:18 CEST] <jya> is there a way to set ffmpeg (ffplay / ffprobe) to print the http headers being sent and received?
[13:10:48 CEST] <Nacht> jya: I see HTTP headers when I use '-v 56' with ffmpeg
[13:11:00 CEST] <jya> Nacht: thanks will try
[13:13:39 CEST] <JEEB> why would you use the numeric value :<
[13:13:53 CEST] <JEEB> -v debug is much more readable, for example
[13:14:12 CEST] <jya> easier to remember maybe ? :)
[13:14:19 CEST] <jya> less character to type
[13:14:46 CEST] <jya> just wondering why our code get a moved temporarily error when doing a range request, but it works fine with ffmpeg
[13:26:24 CEST] <jcelerier1> hi :)
[13:27:16 CEST] <jcelerier1> what could be the cause of an error -11 (resource temporarily unavailable) upon av_send_packet ? I'm just trying to read a .aiff file and it reads approximately the first thousand samples then fails with this
[13:29:43 CEST] <jya> jcelerier1: increase the verbosity, you will see what the server responds with. (assuming you read over http)
[13:31:03 CEST] <jcelerier1> no, it's a local file
[13:31:23 CEST] <jcelerier1> this is my decoding code: https://github.com/OSSIA/i-score/blob/master/base/plugins/iscore-plugin-med…
[13:35:08 CEST] <JEEB> umm
[13:35:32 CEST] <JEEB> jcelerier1: try printing out the `av_err2str(return_code)`
[13:36:11 CEST] <JEEB> I'm pretty sure you're actually getting EAGAIN
[13:37:20 CEST] <JEEB> or well, check it against AVERROR(EAGAIN)
[13:37:39 CEST] <jcelerier1> ah yes JEEB, that's it
[13:37:40 CEST] <JEEB> and see the documentation on the send/receive stuff :P
[13:38:10 CEST] <JEEB> it means that "I still have something stuck in my buffers so try the other side and then come back with that packet"
[13:39:09 CEST] <JEEB> https://www.ffmpeg.org/doxygen/trunk/group__lavc__encdec.html
[13:39:13 CEST] <jcelerier1> yep
[13:39:13 CEST] <JEEB> relevant documentation
[13:39:37 CEST] <jcelerier1> hmmm, so if I call avcodec_receive_frame(...) just afterwards I am greeted with "Invalid PCM packet, data has size 1 but at least a size of 4 was expected"
[13:40:29 CEST] <jcelerier1> maybe I should go the other way
[13:40:54 CEST] <jcelerier1> and try to read everything before calling av_send_packet ?
[15:59:08 CEST] <hamersaw> i'm looking to check the integrity of a few movies files that i suspect have been corrupted on a file transfer. i can manually execute the command in the terminal and it works fine, but when i try to script it the movie is sent to stdout (or written to the log file) what am i doing wrong?
[15:59:28 CEST] <hamersaw> ffmpeg -v error -i FILE -f null - 2> /tmp/log
[15:59:47 CEST] <hamersaw> obvioulsy FILE is the the video file and /tmp/log changes for each iteration
[16:03:41 CEST] <tezogmix> Any ideas on how to resolve an audio out of sync when converting a 50fps video to 25fps mp4? Normally, I've been able to do it fine without issue with: "ffmpeg -r 50 -i input.mp4 -preset veryfast -crf 15 -r 25 -c:a copy output.mp4" I checked the source to see if it was out of sync but it's not.
[16:06:37 CEST] <BtbN> Why are you overriding the input framerate?
[16:06:48 CEST] <BtbN> If it's not actually 50fps but something slightly different, that could easily cause your desync.
[16:08:34 CEST] <tezogmix> hey BtbN , it was for a specific device that couldn't handle framerates over 30fps... so i've been having success with changing them on sources that were 60fps (e.g. 60000/1001 to 30000/1001 or 60 to 30 or 50 to 25)
[16:08:53 CEST] <devinheitmueller> tezogmix: I agree with BtbN. Unless the input.mp4 is somehow broken, get rid of the first -r 50.
[16:09:30 CEST] <BtbN> If it's an input device, that -r won't override the framerate but set it.
[16:09:43 CEST] <BtbN> For a video file input, it will plain override the actual framerate. Get rid of it and try again.
[16:10:26 CEST] <tezogmix> ah ok devinheitmueller & BtbN , so for future reference that initial "-r" prior to input file doesn't need to be there?
[16:10:41 CEST] <BtbN> It's a very bad idea to have it there.
[16:11:11 CEST] <devinheitmueller> Correct. The order of arguments with ffmpeg is very important. Having a -r 50 before the -i input.mp4 means to treat input.mp4 as 50 FPS regardless of what the actual files framerate is.
[16:11:29 CEST] <tezogmix> ok i see, i was just following some random command lines i had seen over the months, it didn't seem to be a problem with the other conversions i've done (probably over 50 times now)
[16:11:47 CEST] <devinheitmueller> The second -r 25 in your command line is what you want, since that will mean to take whatever the source framerate in the file is and make it 25 fps.
[16:12:17 CEST] <tezogmix> ok, i did learn about halving or keeping the framerate changes in direct integers
[16:12:29 CEST] <devinheitmueller> If the input.mp4 *really* is 50 FPS, then it probably wont matter. But as soon as you provide an input file which is 29.97 or some other framerate you will have an avsync problem.
[16:13:04 CEST] <BtbN> and a way too slow or fast video
[16:13:04 CEST] <tezogmix> maybe it was a build issues, normally i update it before running but haven't updated ffmpeg in the last few weeks
[16:14:00 CEST] <tezogmix> any other info i can share of the input source that we could keep in mind (aside from removing the initial "-r 50") from mediainfo utility?
[16:14:45 CEST] <devinheitmueller> Unless the source is known to be broken, you should generally trust ffmpeg to properly figure out the properties of the input.
[16:20:18 CEST] <tezogmix> I just posted the mediainfo details here on pastebin (not sure if you all notice anything in particular to adjust into the command line conversion): https://pastebin.com/SwubLjKh
[16:20:49 CEST] <tezogmix> it was just a simple conversion meant only to lower the framerate and keep everything else as is.
[16:21:10 CEST] <devinheitmueller> Is that really 1080p/50 content? Or did it just get improperly encoded and its really 1080i/50?
[16:22:04 CEST] <tezogmix> no idea devinheitmueller , that's how it is... i don't know what the source creator intended.
[16:22:44 CEST] <tezogmix> source plays fine on vlc/mpc-hc
[16:32:45 CEST] <tezogmix> anyways, i downloaded the new ffmpeg build, got another source of same input file again and re-running this with your suggestions of removing that initial -r, thanks devinheitmueller & BtbN
[16:33:48 CEST] <tezogmix> have a good rest of your day/evening!
[17:10:49 CEST] <jcelerier1> how safe is it to have multiple resamples operating at the same time ?
[17:11:51 CEST] <klaxa> i don't see why it should be unsafe
[17:23:37 CEST] <alexpigment> hey guys
[17:24:12 CEST] <alexpigment> when using h264_qsv, if the system has an intel graphics card but it's not being used (no display attached), the qsv encoder will say that it's using partial acceleration and be really slow
[17:24:31 CEST] <alexpigment> is there a way to make this warning an actual error that prevents the encoding from occurring?
[17:24:51 CEST] <alexpigment> in my tests, "partial acceleration" is always significantly slower than x264
[17:30:10 CEST] <redrabbit> wondering if there is hardware encoders on my 6600k i could use
[17:30:20 CEST] <alexpigment> yes, there definitely is
[17:30:23 CEST] <alexpigment> you have quicksync
[17:30:26 CEST] <jkqxz> alexpigment: Why would the presence of a display make a difference? Does that actually mean "is running X and therefore some default device is found"?
[17:30:54 CEST] <alexpigment> jkqxz: i don't know. it's a dumb system to be honest
[17:30:57 CEST] <alexpigment> but it's how it works
[17:31:15 CEST] <redrabbit> atm i use ndivia hw encoders
[17:31:20 CEST] <alexpigment> like right now I can simulate this by having an nvidia card running the display but the intel GPU enabled
[17:31:31 CEST] <redrabbit> is there much of a difference between theses and intel
[17:31:44 CEST] <alexpigment> redrabbit: you can't generally use them both (with full acceleration) unless you have a display hooked up to both
[17:31:53 CEST] <alexpigment> redrabbit: nvenc is way better and faster
[17:32:07 CEST] <redrabbit> no need to bother then i have nvenc setup
[17:32:08 CEST] <jkqxz> alexpigment: You should be able to specify the device to avoid that problem.
[17:32:16 CEST] <alexpigment> jkqxz: this is not for me
[17:32:25 CEST] <alexpigment> this is for an unknowable set of systems and hardware configs
[17:34:40 CEST] <jkqxz> Right. Then using libmfx is quite a pain, yeah.
[17:36:28 CEST] <jkqxz> You could easily hack the source code to error out immediately in the case you described above. Message is at <http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/qsvenc.c#l768>, can probably just return an error there.
[17:41:12 CEST] <alexpigment> Thanks for the heads up
[17:41:27 CEST] <alexpigment> I'm already doing a check to see if a test encode succeeds or fails, then enabling the option accordingly
[17:41:33 CEST] <alexpigment> Because it's a warning, it technically succeeds
[17:41:53 CEST] <alexpigment> I was just hoping there was an option you could put in the ffmpeg command line that effectly just treats warnings as fatal
[17:42:00 CEST] <alexpigment> It sounds like there isn't though...
[18:38:05 CEST] <Camusensei> Hello guys. I am struggling with .MTS files, I cannot get the audio out, what do you need? A dump of a ffprobe file.MTS?
[18:39:15 CEST] <c_14> it'd be a start
[18:41:02 CEST] <Camusensei> with output?
[18:41:32 CEST] <c_14> the console output yeah (it usually lists errors etc)
[18:41:38 CEST] <c_14> and it'll include the codecs in the file etc
[18:43:07 CEST] <Camusensei> http://sprunge.us/YAIf
[18:44:03 CEST] <c_14> Are you sure the input has audio?
[18:45:03 CEST] <c_14> And apparently that's not MTS, it's a tele-typewriter file
[18:45:53 CEST] <Camusensei> yeah, it contains a bunch of files and I' sure they have audio in them
[18:46:17 CEST] <c_14> "it contains a bunch of files"
[18:46:24 CEST] <c_14> Is it supposed to be a playlist?
[18:46:37 CEST] <Camusensei> yes
[18:46:56 CEST] <Camusensei> file 'file1.MTS' and so on
[18:47:03 CEST] <c_14> The only playlists ffmpeg supports are hls and concat
[18:47:07 CEST] <c_14> aah, add -f concat before -i
[18:47:19 CEST] <Camusensei> http://sprunge.us/OQRA is an example
[18:47:28 CEST] <Camusensei> oooh
[18:47:30 CEST] <Camusensei> I see
[18:49:37 CEST] <Camusensei> Yes, it works now, thank you very much!!!!
[18:53:07 CEST] <c_14> np
[19:22:07 CEST] <alexpigment> jkqxz: I edited the source code, but it doesn't error out, unfortunately
[19:22:31 CEST] <alexpigment> It gives an error, sure, but it still goes through the process of creating the file
[19:23:25 CEST] <alexpigment> Does anyone else know how to make ffmpeg fail when an error is encountered?
[19:24:00 CEST] <alexpigment> The error in particular is: "[h264_qsv @ 0021fce0] Encoder will work with partial HW acceleration"
[19:26:07 CEST] <furq> maybe -xerror
[19:26:12 CEST] <furq> i forget if that bails out on any warning though
[19:26:26 CEST] <kepstin> that's not an error, yeah, it's just a warning.
[19:26:38 CEST] <alexpigment> I tried xerror
[19:26:51 CEST] <alexpigment> kepstin: well, I changed qsvenc.c to make it a warning
[19:26:52 CEST] <kepstin> would need special handling added to the qsv encoder to abort when a software fallback is used
[19:26:59 CEST] <alexpigment> er
[19:27:00 CEST] <alexpigment> rather,
[19:27:07 CEST] <alexpigment> i changed it from a warning to an error
[19:27:31 CEST] <alexpigment> this qsv encoder implementation is just a mess
[19:29:32 CEST] <alexpigment> At any rate, here's the area in the code that I changed: https://pastebin.com/1pEyEbAF
[19:29:54 CEST] <alexpigment> I just changed AV_LOG_WARNING to AV_LOG_ERROR
[19:30:02 CEST] <alexpigment> that obviously just changes the color from yellow to red
[19:30:11 CEST] <alexpigment> is there any way to make it fail if it gets that
[19:30:23 CEST] <kepstin> alexpigment: you need the encoder function in the qsvenc.c file to return an error code to libavcodec
[19:32:08 CEST] <alexpigment> do you think removing lines 3 and 4 would do the trick?
[19:32:16 CEST] <alexpigment> i don't really care if the error is accurate. i just need it to be fatal
[19:33:27 CEST] <kepstin> just add a "return AVERROR(EINVAL);" after your log message print
[19:33:55 CEST] <kepstin> or whatever other error code you feel like
[19:34:11 CEST] <alexpigment> so the next line after the semicolon?
[19:34:27 CEST] <alexpigment> (i'm not a programmer - sorry for the dumb question)
[19:34:30 CEST] <kepstin> between lines 3 and 4 in your paste, yeah
[19:34:34 CEST] <alexpigment> cool
[19:34:41 CEST] <alexpigment> i'll try it
[19:34:43 CEST] <alexpigment> thank you very much
[20:02:32 CEST] <alexpigment> kepstin: you just saved me hours of headache. thank you very much again
[21:06:42 CEST] <thebombzen> if I'm trying to do a bit of editing on 44.1 kHz audio (specifically afade), should I use aresample=48k before or after the other effects?
[21:07:58 CEST] <furq> huh
[21:08:04 CEST] <ChocolateArmpits> thebombzen, there's nothing about that filter that would require 48kHz audio. Do you expect 48kHz output or something ?
[21:08:23 CEST] <thebombzen> yea, if I want to do anything with it like encode it to Opus
[21:08:26 CEST] <furq> yeah you don't need to do that and if you want to do that for some other reason then i would assume it makes no difference
[21:09:10 CEST] <thebombzen> the reason I'd ask is if I want to encode it to Opus, it'll have to be 48 kHz anyway. I was wondering if there might be a reason to resample it beforehand
[21:10:21 CEST] <furq> i mean i guess it might make the fade slightly higher quality
[21:10:26 CEST] <furq> it won't be audible though
[21:10:57 CEST] <ChocolateArmpits> the effect processing result won't be distorted
[21:11:08 CEST] <ChocolateArmpits> but yeah, don't expect to hear anything
[21:11:20 CEST] <furq> i wouldn't bother
[21:11:51 CEST] <furq> especially not if you're not definitely going to encode this to opus
[21:11:56 CEST] <furq> and do nothing else with it
[21:13:15 CEST] <TD-Linux> thebombzen, there is no difference unless the intermediate filters are poor quality
[21:13:43 CEST] <thebombzen> alright thanks
[21:13:58 CEST] <furq> especially if you don't actually know if you're going to have to resample it to 48k
[21:14:09 CEST] <thebombzen> well I do actually know that
[21:14:20 CEST] <furq> you sounded very speculative when you mentioned opus
[21:14:29 CEST] <thebombzen> that was just a hypothetical example
[21:14:35 CEST] <thebombzen> I'm combing it with other mostly 48 kHz audio in an NLE
[21:14:46 CEST] <furq> if you're definitely resampling to 48k then it couldn't hurt to do it first
[21:14:56 CEST] <thebombzen> and I'm going to export it and UL it to YouTube later
[21:15:06 CEST] <thebombzen> which will resample it to 48 kHz for Opus
[21:15:37 CEST] <ChocolateArmpits> and libvorbis and aac
[21:15:58 CEST] <ChocolateArmpits> multiple formats there
[21:16:58 CEST] <furq> vorbis and aac will be 48k if the source is
[22:13:56 CEST] <leif> Does FFMPEG compile with pthreads by default in os x? (The build I'm using didn't have the --enable-pthreads flag: https://gist.github.com/LeifAndersen/074d6e4b3246daa2658374a8eac2b8b6 )
[22:14:32 CEST] <BtbN> I'd guess pthreads are autodetect
[22:17:08 CEST] <leif> BtbN: okay, thanks.
[23:20:37 CEST] <squarecircle> ohai
[23:21:08 CEST] <squarecircle> is there a way to see if my ffmpeg instance is using the graphics card for accelerated decoding?
[23:22:07 CEST] <squarecircle> if I start multiple instances, and I have multiple graphic cards, do they access one card or does they are distributed on the cards?
[23:23:59 CEST] <squarecircle> at the moment, I am calling ffmpeg on a server without real graphics card, only contains a MGA G200EV
[23:24:15 CEST] <squarecircle> the vm I'm testing the code only uses the virtualized grpahics adapter
[00:00:00 CEST] --- Fri Aug 25 2017
1
0
[00:52:23 CEST] <BBB> lots of ffmpeg devs in that demuxed conference speaker schedule :-o
[00:53:01 CEST] <JEEB> yup
[00:53:07 CEST] <JEEB> some promising talks
[01:33:08 CEST] <Compn> the talks are very informative :)
[01:33:16 CEST] <Compn> fun audience participation sometimes :)
[02:27:21 CEST] <tdjones> What is the preferred way for me to send additional patches based off previous commits already sent to the mailing list? I don't want to spam the ML with patches that don't change for each time there is additional commits in the series, but I'd like to provide as much time as possible for comment before the end of GSoC.
[02:28:08 CEST] <atomnuker> tdjones: reply to the original patch emails you send with a v2
[02:28:21 CEST] <atomnuker> you can supply git send-email with their message ids
[02:28:31 CEST] <atomnuker> though you'll need to send them one at a time
[02:29:27 CEST] <tdjones> You want me to resend them all with v2, even if there are just 2 separate additional patches included?
[02:29:51 CEST] <tdjones> If I'm understanding you correctly
[02:30:31 CEST] <atomnuker> tdjones: no, just the ones you want to replace
[02:31:33 CEST] <tdjones> I'm not replacing any, they are additional patch files based as if the previous commits were HEAD but have no other relation
[02:31:36 CEST] <atomnuker> (you can also just reply to them with new attached .patch files)
[02:31:42 CEST] <atomnuker> oh
[02:32:15 CEST] <atomnuker> just send them directly (if you want you can specify the original root email's message id so they appear under the same thread)
[02:32:31 CEST] <tdjones> Alright, just wanted to check. Thanks
[02:37:28 CEST] <tdjones> atomnuker: If you or any of the GSoC admins here have the time to verify that my gsoc submission post is acceptable, I'd greatly appreciate it. https://tjones879.github.io/blog/gsoc-2017/
[02:37:54 CEST] <tdjones> Just some time before the final deadline
[03:18:19 CEST] <cone-349> ffmpeg 03Vitaly Buka 07master:8c2bb10ddfef: avcodec/utils: Fix signed integer overflow in rc_initial_buffer_occupancy initialization
[03:18:19 CEST] <cone-349> ffmpeg 03Vitaly Buka 07master:4a404cb5b90b: avformat/mov: Fix signed integer overflows with total_size
[03:18:19 CEST] <cone-349> ffmpeg 03Vitaly Buka 07master:eca2a49716ae: avformat/aviobuf: Fix signed integer overflow in avio_seek()
[11:08:03 CEST] <zetax> hi, where can I get more info about this? I wanna look into if I could help "Currently its in development and only implements the CELT part of the codec. Its quality is usually worse and at best is equal to the libopus encoder." https://ffmpeg.org/ffmpeg-codecs.html#opus
[11:08:44 CEST] <kierank> ask atomnuker
[11:09:21 CEST] <zetax> atomnuker: see question about .opus above
[11:18:52 CEST] <wm4> man I hate libavformat's probing so fucking much
[11:19:13 CEST] <wm4> now it's an excuse for hardware decoders not to parse and export certain bitstream data, like colorimetry data
[11:19:30 CEST] <nevcairiel> how is that related
[11:19:32 CEST] <wm4> because libavformat does that anyway by calling back into libavcodec! trollol
[11:19:47 CEST] <wm4> nevcairiel: they rely on the libavformat data
[11:20:07 CEST] <nevcairiel> so tell them they're full of shit and avcodec decoders should be standalone =p
[11:20:28 CEST] <wm4> just what is mentally wrong with these hardware decoder people that they can write entire decoders with hardware support, but fail at things this simple, like a bit of parsing
[11:20:54 CEST] <nevcairiel> how is that any decent design, hey we rely on someone else giving us these information, if they don't, well, tough!
[11:21:39 CEST] <nevcairiel> (also, thats why i like actual hwaccels, they just work with all sorts of crazy metadata)
[11:22:17 CEST] <wm4> yeah
[13:28:24 CEST] <wm4> if (fctx->next_decoding > (avctx->thread_count-1-(avctx->codec_id == AV_CODEC_ID_FFV1)))
[13:28:26 CEST] <wm4> just what
[13:28:40 CEST] <BBB> hahahahaha
[13:28:46 CEST] <BBB> Ive posted that a few times also
[13:28:57 CEST] <BBB> theres a few of them in different places, also
[13:28:59 CEST] <BBB> anyway
[13:29:04 CEST] <BBB> good luck fixing the unfixbal
[13:29:07 CEST] <BBB> unfixable
[13:29:44 CEST] <BBB> wm4: about your patch for mingw, I personally dont really like getter functions, but if the public API already uses that then it makes sense to reproduce that in the private API, so I wouldnt loudly object to it (I still dont like it)
[13:31:06 CEST] <wm4> alternative solutions: remove all avpriv variables (unfixable), make libs buildable as single DLL/so (seems more realistic)
[13:31:37 CEST] <BBB> we could also use dllexport/import correctly
[13:31:52 CEST] <BBB> (although highly unlikely anyone actually wants to do the work required for that)
[13:32:22 CEST] <wm4> that seems very hard
[13:32:25 CEST] <BBB> it is
[13:32:27 CEST] <wbs> would it work just the way we do it for msvc right now though?
[13:32:30 CEST] <BBB> but Ive seen some libs do it correctly
[13:32:35 CEST] <wm4> wbs: only for MSVC
[13:32:37 CEST] <BBB> so its not impossible
[13:32:45 CEST] <wm4> wbs: mingw doesn't support it this way
[13:32:52 CEST] <wbs> wm4: ah, bummer
[13:32:58 CEST] <nevcairiel> its not that hard, the effort is just exaggerated because we have 10 individual libs, instead of just one
[13:32:59 CEST] <wm4> BBB: it's extremely hard for us, though
[13:33:04 CEST] <BBB> I suppose
[13:33:20 CEST] <BBB> Im not telling you to do it :-p Im saying your patch is probably fine
[13:33:28 CEST] <wm4> unless maybe you define 10 av_export and av_import symbols, for each lib
[13:34:02 CEST] <nevcairiel> yeah you need one av_export per library, so av_export_avcodec etc
[13:34:05 CEST] <wm4> err, no av_import symbols, just av_export would have to switch between dllimport/export depending on context
[13:34:09 CEST] <wm4> yes
[13:34:30 CEST] <wm4> within libavcodec, av_export_avcodec would map to dllexport
[13:34:36 CEST] <wm4> and outside to dllimport
[13:34:56 CEST] <nevcairiel> thats how you're supposed to do it, just that this is typically with one library, not ten
[13:35:04 CEST] <wm4> or maybe a special export header
[13:35:21 CEST] <BBB> its not that much code honestly
[13:35:24 CEST] <BBB> its just super-tedious
[13:35:25 CEST] <iive> it's possible to remove all avpriv, by duplicating them in each library and not sharing/showing them.
[13:35:34 CEST] <wm4> libavcodec/exports.h, which contains "#undef av_export #define av_exprt ..." and then hope for the best
[13:35:37 CEST] <BBB> nobody likes doing tedious work
[13:35:39 CEST] <iive> since they are all constants
[13:37:19 CEST] <wm4> can we have the following policy: if someone wants to add new avpriv variables, he has to go through a klingon pain stick ritual involving all other ffmpeg developers
[14:57:50 CEST] <wm4> when can we get rid of the J bullshit pixfmts? got another bug due to them
[00:00:00 CEST] --- Thu Aug 24 2017
1
0
[00:12:42 CEST] <Fenrirthviti> Is there an option for a custom vbv buffer size for NVENC?
[00:14:55 CEST] <bigpresh> I'm trying to get ffmpeg to receive an RTSP feed from a camera and send it to ffserver; I'm using `ffmpeg -i rtsp://... http://127.0.0.1:8090/feed1.ffm`, and getting "Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height"
[00:15:12 CEST] <bigpresh> Is there a way to say "just use the bitrates etc of the RTSP stream"?
[00:16:19 CEST] <alexpigment> Fenrirthviti: I've used -bufsize and -maxrate with nvenc in the past
[00:16:50 CEST] <alexpigment> It's possible it ignored the parameters (it's been a while since I tested), but it didn't throw any errors and I believe it actually honored them
[00:17:13 CEST] <Fenrirthviti> I have a few users who claim that streaming to an nginx-rtmp server with a vbv buffer of over 7k causes disconnects
[00:17:21 CEST] <Fenrirthviti> I'm 99.9% sure they're full of shit, but, whatever.
[00:17:32 CEST] <Fenrirthviti> I regularly stream to mine at 35-40k with no custom buffers set :\
[00:18:13 CEST] <alexpigment> Yeah, I'm not sure what would cause that. But either way, it's worth trying and confirming (or calling bullshit)
[00:21:10 CEST] <bigpresh> (I've tried '-codec copy' which I would hope would copy all details of the codecs for each stream, but that may well be a misunderstanding of how it would work)
[00:29:20 CEST] <kepstin> bigpresh: "-codec copy" tells ffmpeg to literally just copy the already encoded data from the input to the output, rather than decoding it, filtering, then re-encoding.
[00:30:21 CEST] <kepstin> bigpresh: that said, you're unlikely to get help with ffserver here, very few people use it and it's basically unmaintained :/
[00:32:29 CEST] <bigpresh> Oh, really? Arse.
[00:33:30 CEST] <bigpresh> Any recommendations on something similar that's actively maintained? Basically, I want to grab video & audio from a couple of IP cameras to a central box that can then re-stream them, as that box has much better network link than the cameras do
[00:33:42 CEST] <bigpresh> (and the poor little things don't handle multiple viewers of their streams well :) )
[00:34:52 CEST] <klaxa> you could *try* my mkv server
[00:35:10 CEST] <klaxa> https://github.com/klaxa/mkvserver_mk2
[00:35:42 CEST] <klaxa> or nginx-rtmp or hls with a webserver
[00:36:39 CEST] <bigpresh> Interesting, thanks - I shall look in to those
[00:37:08 CEST] <bigpresh> I started setting up ZoneMinder, figured that would be good - then realised I need audio :)
[00:41:49 CEST] <bigpresh> I shall have a look at all of those optoins; nginx-rtmp stands out as maybe the easiest, and I'm already running nginx :)
[00:42:29 CEST] <klaxa> hls should be similarily easy
[06:18:19 CEST] <dafna_> Hi, if I set my own get_buffer2 when decoding a video
[06:18:32 CEST] <dafna_> and I also use multithreaded,
[06:19:10 CEST] <dafna_> that is thread_count in the avcodeccontext is > 1
[06:19:26 CEST] <dafna_> the n I need to handle my program with locks ?
[08:00:20 CEST] <crux0> Anyone know if ffmpeg has support for FastTracker files? I've downloaded a whole bunch of chiptune mods, and many of them are still in fasttracker format. I'm trying to play them using mpv, but ffmpeg doesn't seem to natively support .ft
[10:30:40 CEST] <thebombzen> uh, I just had FFmpeg default to aac for a webm encode
[10:30:42 CEST] <thebombzen> is this a bug?
[10:32:22 CEST] <JEEB> thebombzen: sounds like either your FFmpeg is old enough or you're not picking the webm mode correctly in matroskaenc
[10:32:31 CEST] <JEEB> see around line 1288 in matroskaenc.c
[10:32:33 CEST] <thebombzen> I built it recently
[10:32:50 CEST] <thebombzen> also this is ffmpeg.c, so I shouldn't have to use this
[10:32:54 CEST] <JEEB> if (mkv->mode == MODE_WEBM && !(par->codec_id == ....)
[10:33:11 CEST] <JEEB> there's a definite avcodec check there for the thing you're trying to push in there
[10:34:08 CEST] <thebombzen> hm, I can't reproduce
[10:34:17 CEST] <thebombzen> ah, gg, I had -c copy and no -c:a
[10:34:28 CEST] <thebombzen> closed: resolved. resolution: user is a dumb
[10:53:45 CEST] <fbeaufort> Hello everyone! I'd like to convert "properly" a mp4 file to flac file.
[10:53:45 CEST] <fbeaufort> The audio flac file I get can be read in Google Chrome but not in Firefox.
[10:53:45 CEST] <fbeaufort> Firefox folks tell me it's because the "SampleDescriptionBox" reads 0 for the samplerate and it must be a valid value.
[10:53:45 CEST] <fbeaufort> Would you happen to know how I can set the SampleDescriptionBox samplerate value from ffmpeg CLI?
[10:53:45 CEST] <fbeaufort> For info, here's the command I used:
[10:53:46 CEST] <fbeaufort> ffmpeg -i bear-1280x720.mp4 -map 0:0 -acodec flac -strict -2 -ar 192000 bear-flac-192kHz.mp4
[11:19:26 CEST] <fbeaufort> Note that when I don't change SampleDescriptionBox, audio file can be decoded in Firefox.
[11:20:52 CEST] <fbeaufort> FYI jya
[11:21:46 CEST] <fbeaufort> jya FYI
[11:22:18 CEST] <jya> fbeaufort: what do you mean by "when I don't change SampleDescriptionBox" ?
[11:22:42 CEST] <fbeaufort> when I don't set the "-ar" option in ffmpeg
[11:23:16 CEST] <fbeaufort> See more at https://github.com/GoogleChrome/samples/pull/538#issuecomment-324270570
[11:23:21 CEST] <jya> it's very weird that -ar would actually set the rate in the AudioSampleDescriptionBox to 0
[11:23:26 CEST] <jya> rather counter intuitive
[11:25:42 CEST] <fbeaufort> Would you happen to know where the code for this live in ffmpeg?
[11:26:27 CEST] <fbeaufort> QQ: How did you create your flac-in-mp4 files at https://github.com/mozilla/gecko-dev/tree/master/dom/media/mediasource/test…
[11:27:34 CEST] <jya> fbeaufort: I asked BBC :)
[11:28:00 CEST] <jya> that was before ffmpeg had supports
[11:28:32 CEST] <jya> let me give you the link for the flac support in ffmpeg, afaik we submitted that
[11:34:20 CEST] <jya> fbeaufort: this was the commit adding flac in mp4 support https://github.com/FFmpeg/FFmpeg/commit/7dc4200c3828195ef33c8a6572891ecda50…
[11:37:44 CEST] <jya> fbeaufort: at a glance, looks like it's because the track duration is 0, so it returns an average bitrate of 0
[11:38:01 CEST] <jya> https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.c#L559
[11:38:26 CEST] <jya> oops sorry, that's bitrate
[11:45:44 CEST] <jya> fbeaufort: did you create a ffmpeg bug already?
[11:45:52 CEST] <fbeaufort> Not yet.
[11:46:11 CEST] <fbeaufort> I'd like to understand what is going on ;)
[11:46:14 CEST] <jya> i think i see why it does so
[11:46:19 CEST] <jya> it always write 0
[11:46:56 CEST] <jya> this stupid pdf reader on my mac, is unable to perform a search on the ISO 14496-12 document
[11:49:25 CEST] <jya> https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.c#L1032
[11:49:33 CEST] <jya> if the rate is greater than 65536, it writes 0
[11:50:47 CEST] <jya> that can't be it, it's a 16 bits int, but in the spec it's 32 bits
[11:53:03 CEST] <dafna> after allocating and opening a avcodeccontext with avcodec_open2, then when decoding finishes, is it valid to call just avcodec_flush_buffers( p_context ); and avcodec_free_context(&p_context); without calling avcodec_close ?
[11:53:28 CEST] <dafna> I ask this because this is what I see in the implementation in VLC
[11:54:32 CEST] <jya> fbeaufort: where do I get the bear-1280x720.mp4 file?
[11:54:56 CEST] <jya> found it
[11:55:02 CEST] <fbeaufort> :)
[11:55:20 CEST] <fbeaufort> also at https://storage.googleapis.com/media-session/bear-1280x720.mp4
[11:56:47 CEST] <jya> not the most uplifting video
[11:58:46 CEST] <jya> fbeaufort: I can play the file created via build.57/bin/ffmpeg -i bear-1280x720.mp4 -map 0:0 -acodec flac -strict -2 -ar 192000 bear-flac-192kHz.mp4
[11:58:52 CEST] <jya> in firefox that is
[11:59:08 CEST] <jya> using ffmpeg from the 3.3 branch
[11:59:27 CEST] <jya> ffmpeg version n3.3.3-1-ge51e07c34e
[12:00:07 CEST] <fbeaufort> I used static release 3.3.3 from https://www.johnvansickle.com/ffmpeg/
[12:00:17 CEST] <fbeaufort> I'll try with most recent build and let you know
[12:00:31 CEST] <fbeaufort> Does that matter that I've tried with Firefox on macOS?
[12:01:13 CEST] <jya> no
[12:03:18 CEST] <jya> that command line doesn't generate a fragmented mp4, maybe it's the fragmentation side of thing that mess things up
[12:05:34 CEST] <jya> the file you generated has Lavf57.75.100 has version
[12:05:50 CEST] <jya> 3.3 branch is Lavf57.71.100
[12:09:15 CEST] <fbeaufort> fragmented or not is the same result for me.
[12:09:54 CEST] <fbeaufort> I can reproduce with latest builds from https://www.johnvansickle.com/ffmpeg/
[12:11:04 CEST] <jya> fbeaufort: pfffft, my bad, I actually made a change to the code which caused it to work
[12:11:12 CEST] <fbeaufort> :D
[12:11:26 CEST] <jya> I can't match what they are writing in the spec.
[12:11:40 CEST] <jya> seems to me that it works because they write a 16 bits int followed by a 0
[12:12:54 CEST] <fbeaufort> Let me try to confirm your thoughts by creating files with different rates
[12:14:41 CEST] <jya> oh, I'm certain that if you set a rate of 48kHz it will wor
[12:14:42 CEST] <jya> k
[12:14:53 CEST] <jya> because my change was doing just that
[12:15:07 CEST] <jya> I replaced the 0 there https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.c#L1033 with 48000
[12:15:12 CEST] <jya> and it played just fine
[12:17:25 CEST] <fbeaufort> You're right. It works fine!
[12:17:32 CEST] <dafna> ?
[12:18:22 CEST] <jya> fbeaufort: the definition of the AudioSampleEntry is defined in 12.2.3.2
[12:18:37 CEST] <jya> https://irccloud.mozilla.com/pastebin/jZR7Uu75/
[12:20:30 CEST] <fbeaufort> So here we are. There is indeed a bug ;)
[12:23:05 CEST] <jya> i can't find the definition of the format ffmpeg write
[12:23:10 CEST] <jya> I must be overlooking something
[12:23:52 CEST] <fbeaufort> Is that as simple as using `avio_wb32` when writing sample rate?
[12:24:52 CEST] <jya> no... because the value written is a 16.16 fixed point
[12:25:16 CEST] <fbeaufort> oops noted
[12:38:11 CEST] <jya> i don't undestand how that code ever worked, and if they are just using a different set of spec than I have
[12:42:20 CEST] <fbeaufort> It looks like this code hasn't been touched for 6 years.
[12:42:25 CEST] <fbeaufort> https://github.com/FFmpeg/FFmpeg/blame/5f4e555dc7caea343838e9f6f218525bb802…
[12:42:29 CEST] <fbeaufort> This may explain why
[12:45:23 CEST] <jya> maybe it was different in the quicktime spec
[12:46:45 CEST] <jya> very lucky that anything works today though... so long as rate > 0 it's fine for us. even if the value is buggy. and after that, we actually read the rates in the specialised box that follows. mp3, opus, aac, flac, all have their codec data that will include the actual sampling rate
[12:48:35 CEST] <jya> but having said that, even if we wrote a 16.16 value
[12:48:40 CEST] <jya> you can fit 192kHz in there
[12:50:07 CEST] <jya> you need to use a SamplingRateBox
[12:50:14 CEST] <jya> and ffmpeg has no support for that
[12:50:21 CEST] <jya> so no 192khZ in mp4 for you
[12:50:33 CEST] <fbeaufort> ;(
[12:53:27 CEST] <jya> creating a 192kHz output from a 48kHz file was a bit silly anyway :)
[12:53:54 CEST] <jya> if you wanted to capture a whale singing I could understand, but here's it's a poor bear locked in a cage
[12:54:46 CEST] <fbeaufort> I named this bear "poupi". Please.
[12:56:03 CEST] <fbeaufort> Should we still file a bug or at least make the ffmpeg team aware of this?
[12:58:08 CEST] <jya> you can create a bug that the SamplingRateBox (as per ISO 14496-2 12.2.3.2) is to be used if the value is greater than INT16_MAX
[12:59:14 CEST] <jya> they have provision for that inthe SoundDescription V2, but i can't find this anywhere in the spec
[12:59:20 CEST] <jya> must be a QT thing
[13:00:14 CEST] <jya> and if they properly create a SamplingRateBox, need to file a bug in Firefox that our mp4 demuxer doesn't support it :)
[13:01:46 CEST] <jya> ah indeed, you must enable the MOV mode
[13:31:03 CEST] <fbeaufort> I'm having an error on https://trac.ffmpeg.org account registration.
[13:31:03 CEST] <fbeaufort> http://i.imgur.com/EJyCD9e.png
[13:31:12 CEST] <fbeaufort> Do you mind filing it if that works for you?
[14:45:44 CEST] <stimple> greetings, earthlings
[14:47:07 CEST] <stimple> is it correct that when ffmpeg converts .srt to ass, it chooses which line to display the new text on?
[14:47:36 CEST] <klaxa> what do you mean with line?
[14:47:48 CEST] <stimple> this is line 1
[14:47:50 CEST] <stimple> this is line 2
[14:47:59 CEST] <stimple> i want subs to scroll up
[14:48:23 CEST] <stimple> like they do on youtube
[14:48:28 CEST] <stimple> or a terminal
[14:48:29 CEST] <stimple> or irc
[14:48:55 CEST] <klaxa> that's not really the default for ass subs
[14:49:23 CEST] <stimple> yes
[14:53:43 CEST] <stimple> it's possible the libass format doesn't support this behavior
[14:53:57 CEST] <stimple> trying to find the spec
[15:27:42 CEST] <stimple> i don't see a way to do it with ass format
[15:40:23 CEST] <stimple> i don't find any options to pass to ffmpeg for how to convert .srt to .ass
[15:41:03 CEST] <fbeaufort> jya Let me know if you've filed it already. It looks like it works now.
[15:48:36 CEST] <jya> fbeaufort: I haven't yet.... I need to lodge a bug on our side to have our new mp4 demuxer properly parse "SoundDescription"
[15:48:58 CEST] <jya> I had amended stagefright to support it, but we're about to disable that demuxer
[15:49:16 CEST] <jya> and we also need to add support for the SamplingRateBox
[15:53:28 CEST] <fbeaufort> Here is ffmpeg ticket: https://trac.ffmpeg.org/ticket/6609#ticket
[15:54:27 CEST] <fbeaufort> Do you have some doc/video about Firefox Media Stack?
[15:54:27 CEST] <fbeaufort> I've already watched your Paris Video Tech talk and enjoyed it.
[16:01:17 CEST] <jya> :)
[16:23:33 CEST] <jya> fbeaufort: I've added details to the bug.
[16:24:12 CEST] <fbeaufort> Yeah! Thanks.
[16:32:31 CEST] <jya> fbeaufort: incidentally, even if FF doesn't support yet SamplingRateBox , it should work because per spec samplingrate is to be written with a value of 1<<16 which is greater than 0
[17:02:31 CEST] <stimple> ok i was misled into coming here, sorry - cheers
[17:09:53 CEST] <charly> hello
[17:09:57 CEST] <charly> I'm using avio/avformat/acodec to decode an mpegts stream and it works very well
[17:10:09 CEST] <charly> but i don't know how to detects when the input mpegts stream change (codec, framerate ...)
[17:10:16 CEST] <charly> there is a way to do it ?
[17:12:28 CEST] <DHE> charly: there's not direct notification system. basically you have to watch the decoder's AVCodecContext values to see if they change while running
[17:12:43 CEST] <DHE> also mpegts is a strange one because it uses the AVProgram type to specify which streams are members of the (active) feed. you'll have to watch the AVProgram for changes and then reconsider all listed streams
[17:15:45 CEST] <charly> DHE, thank you, i will try this
[17:27:41 CEST] <Kadigan> Hello. I just wanted to know if there's a foolproof way of determining whether the video is interlaced, progressive or progressive-segmented-frame?
[17:27:55 CEST] <Kadigan> (programmatically using ffmpeg, I should add)
[17:28:11 CEST] <Kadigan> (or possibly ffprobe, at that)
[17:35:45 CEST] <JEEB> Kadigan: you can get the coding mode values at most
[17:36:03 CEST] <Kadigan> Please elaborate, I'm not sure I understand.
[17:37:34 CEST] <JEEB> there usually is a coding mode value in a video stream. what the actual content is is completely separate. additionally in some formats there are per-picture flags you can receive after decoding
[17:38:24 CEST] <JEEB> what the actual content type is cannot be understood without looking at the decoded pictures
[17:40:34 CEST] Action: Kadigan sighs
[17:41:00 CEST] <Kadigan> I typically notice there's something wrong when I see a whole bunch of drop=X.
[17:41:31 CEST] <Kadigan> I was hoping there was a way I could detect this <before> I start the decode proper, in order to select the flags (ie. use deinterlacing or just recombine)
[17:44:05 CEST] <Kadigan> CANON support doesn't immediately know either, so I guess I'll have to wait for their action. Also, I'm running build N-86436-g4f9e958b04, and it <still> doesn't properly recognize the MXF files that come off of Canon XC10 -- I'm getting long lists of "[NULL @ 0x7ff99a0a7600] Truncating likely oversized PPS (9469 > 4096)".
[17:44:25 CEST] <Kadigan> Or am I doing something wrong there?
[17:44:31 CEST] <Diag> exucse that please
[17:44:52 CEST] <Kadigan> Diag: that's an, um, interesting handle.
[17:45:10 CEST] <Diag> Theres someone who goes by the name MrProcom in another channel
[17:45:16 CEST] <Diag> and once someone made the name MrProlapse
[17:45:18 CEST] <Diag> and grouped it
[17:45:30 CEST] <Diag> It has since been ungrouped
[17:46:12 CEST] <Kadigan> Well, the channel's PG13 and a prolapse is a legit medical condition that can happen due to a number of events... so...
[17:46:27 CEST] <Diag> I can just imagine though
[17:46:32 CEST] <Diag> ~this channel is publically logged~
[17:47:32 CEST] <Diag> wew
[17:47:35 CEST] <Diag> i grouped it for them
[17:55:01 CEST] <Diag> jesus christ i thought i left this channel
[18:37:16 CEST] <tableflopper> Hello - question on merging in subtitle tracks into a video stream. Can I specify the subtitle file as a URL? e.g. ffmpeg -i myvid.avi -i http://host/mysubtitle.srt
[18:38:57 CEST] <tableflopper> The ultimate goal is to stream in the subtitles incrementally, since they would be dynamically generated. Possibly using a pipe for the subtitle file?
[18:40:28 CEST] <Diag> tableflopper: i dont know the answer to this specifically, but could you not just have a script that just wgets that link then executes ffmped
[18:59:53 CEST] <tableflopper> Thanks Diag that could technically work. Would prefer a memory constant approach like streaming it into ffmpeg as needed as these files will be pretty big
[19:00:31 CEST] <Diag> ah
[19:45:54 CEST] <ney> Need help in streaming with ffmpeg, someone out there?
[19:52:10 CEST] <ney> Someone available now?
[19:54:12 CEST] <BtbN> All crystal ball operators and seers are gone. Forever.
[19:56:22 CEST] <ney> Whoa, bad news man! heheh. I'm having a more trivial problem.
[19:57:22 CEST] <ney> I'm streaming from ffmpeg to a NGinx server. The image is black and white and stripped. Any tip where is the misconfiguration?
[20:00:19 CEST] <samgoody> Hi. Quick question: I compiled ffmpeg and put it into /usr/bin/local/ffmpeg.
[20:01:02 CEST] <samgoody> Whereas the apt-installed version (which must have come with the default install of the OS) is at /usr/bin/ffmpeg
[20:02:24 CEST] <samgoody> And /usr/bin/ffmpeg trumps /usr/bin/ffmpeg when I do $ ffmpeg
[20:03:05 CEST] <ney> Hey Sam, you tried to uninstall the previous version first?
[20:03:25 CEST] <samgoody> No. I wanted to know if there is ome reason not to
[20:03:53 CEST] <BtbN> usr/bin/local is highly unusual
[20:04:02 CEST] <BtbN> do you mean local/bin?
[20:04:12 CEST] <samgoody> I had understood that /usr/local/ are for self compiled programs
[20:04:20 CEST] <BtbN> It is
[20:04:24 CEST] <BtbN> but you said /usr/bin/local
[20:05:12 CEST] <samgoody> hmm, you are right. That is illogical.
[20:05:59 CEST] <furq> you can probably set your $PATH such that /usr/local/bin comes before /usr/bin
[20:06:15 CEST] <furq> debian doesn't usually put anything in /usr/local/bin so presumably anything in there should take precedence anyway
[20:06:20 CEST] <samgoody> So, for starters I shouldput my compiled version into /usr/local/bin/
[20:06:24 CEST] <furq> yes
[20:06:40 CEST] <samgoody> And thats what I suspected, but didnt want to mess with the path without asking first
[20:08:08 CEST] <kepstin> I'm kind of surprised that debian doesn't already have /usr/local/bin earlier in the path?
[20:08:40 CEST] <kepstin> note that if you're using a bash shell where you ran 'ffmpeg' before installing the new one, you might need to run 'hash -r' to reset its cached path lookup
[20:08:59 CEST] <samgoody> $ echo $PATH
[20:08:59 CEST] <samgoody> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
[20:09:25 CEST] <samgoody> So, now it should be first. But it isnt
[20:09:49 CEST] <samgoody> $ ffmpeg // shows ffmpeg version 2.8.11-0ubuntu0.16.04.1
[20:10:41 CEST] <kepstin> samgoody: ok, so do you still get the wrong one after running 'hash -r' in that shell or opening up a new terminal?
[20:10:58 CEST] <kepstin> if so, then what does the output of 'ls -l /usr/local/bin/ffmpeg' look like?
[20:13:47 CEST] <samgoody> After logging out and in, it now has the correct version, thank you
[20:14:26 CEST] <ney> Hi guys, I'm streaming from ffmpeg to a NGinx server. The image is black and white and stripped. Any tip where is the misconfiguration?
[20:16:00 CEST] <ianbytchek> Greetings! Can anyone point in the right direction with translating `ffmpeg -i "src.jpg" -vf "palettegen=max_colors=45" -y "palette.png"` into c code? I did go throuh ffmpeg_filter.c and ffmpeg_opt.c and have a working code, but it produces an empty image&
[20:16:15 CEST] <ianbytchek> Is there a knowhow or some guidance on this?
[20:19:44 CEST] <ney> I'll have to go now, I'm almost there. Thanks!
[20:24:35 CEST] <durandal_1707> ianbytchek: did you check for EOF?
[20:27:44 CEST] <ney> To furq and devinheitmueller: Thanks for the support man, I'm able to make a C++ program to stream using ffmpeg to NGinx server without problem (at least, until now). Next step is to embed on my RPi B+ and see what happens!
[20:31:28 CEST] <ianbytchek> durandal_1707: yes, if i try the full conversion, it works, the problem is with using a palettegen on it's own. i think i might be overcomplicating things, not sure where to start looking though.
[20:32:52 CEST] <ianbytchek> durandal_1707: ffmpeg uses lots of custom structs for simple filtergraph, will palettegen work if used with buffer and buffersink filters? is output or anything else would need to be setup differently?
[20:33:00 CEST] <durandal_1707> ianbytchek: palettegen consumes by default all stream and you need to tell him when its received all frames
[20:33:45 CEST] <durandal_1707> ianbytchek: it should work with buffer filters too
[20:34:27 CEST] <durandal_1707> just need to signal eof with special item i cant remmember exactly what
[20:36:29 CEST] <ianbytchek> durandal_1707: that's good to hear. i use avfilter_graph_parse_ptr with simple `palettegen=max_colors=64` desciption. i want to know how ffmpeg knows that the output png must be 16x16, what pix format, etc. does it get this info from filter at some point?
[20:37:58 CEST] <durandal_1707> ianbytchek: its 16x16 because paletteuse needs it that way
[20:38:45 CEST] <durandal_1707> and paletteuse gets info from previous filter
[20:40:28 CEST] <ianbytchek> durandal_1707: i understand that. but how does ffmpeg know that? i do avformat_alloc_output_context2, avcodec_alloc_context3, avformat_new_stream, avcodec_open2, avcodec_parameters_from_context, avio_open, then set up frames and filter graph. all manually. but perhaps i should call something else from palettegen to do the autosetup of the output?
[20:41:26 CEST] <durandal_1707> no, buffersink is setup already what it will receive
[20:43:33 CEST] <ianbytchek> durandal_1707: it just ticked a box in the head, you did tell something about eof, it was something very specific. i must be confusing this with something else. can you tell more about that? what should i invoke specifically?
[20:44:11 CEST] <ianbytchek> durandal_1707: * the last time we talked about it, it fixed something back then but i ended up using a different configuration and didn't need it.
[20:44:18 CEST] <durandal_1707> look at comments of headers for clues
[20:44:27 CEST] <ianbytchek> durandal_1707: cool.
[20:47:18 CEST] <durandal_1707> ianbytchek: you sent NULL as avframe to buffersrc to mark eof
[21:00:07 CEST] <ianbytchek> durandal_1707: hmm. is this with avcodec_send_frame(codecContext, NULL)?
[21:00:40 CEST] <durandal_1707> ianbytchek: no, you send to buffersrc
[21:19:54 CEST] <ianbytchek> durandal_1707: k. testing, but now working. just to be sure, this is av_buffersrc_add_frame. i see this is used in configure_filtergraph in ffmpeg itself.
[21:20:29 CEST] <durandal_1707> yes
[21:21:44 CEST] <durandal_1707> you also need to setup filtergraph with palettegen as only filter, with also sink and src filters
[21:38:36 CEST] <ianbytchek> durandal_1707: yes, that's what i have. i must be going wrong somewhere else. gonna figure it out. thanks for you help again! ffmpeg is a beast, can get my head around it.
[21:51:17 CEST] <SolarAquarion> 2 errors detected in the compilation of "/tmp/tmpxft_0000575e_00000000-7_vf_scale_cuda.cpp1.ii".
[21:51:19 CEST] <SolarAquarion> make: *** [ffbuild/common.mak:95: libavfilter/vf_scale_cuda.ptx] Error 2
[22:43:19 CEST] <alexpigment> drawing a blank here, is there a way to tell if a binary is 32-bit or 64-bit?
[22:43:35 CEST] <alexpigment> or do I have to look for something in the configuration flags
[23:02:17 CEST] <microchip_> alexpigment: on Linux? file /path/to/file
[23:02:26 CEST] <alexpigment> Windows
[23:02:29 CEST] <alexpigment> but no worries
[23:02:51 CEST] <alexpigment> I figured out the issue isn't 32-bit/64-bit related
[23:02:52 CEST] <alexpigment> thanks though
[23:38:02 CEST] <kepstin> there are people who run into 32bit issues on windows; it's kind of surprising how much memory x264 can use on HD+ content ;)
[23:55:52 CEST] <furq> alexpigment: for future reference, there's a windows port of file which will tell you
[23:56:00 CEST] <furq> and also you can check in task manager if it's running
[23:56:18 CEST] <furq> any 32-bit processes will have *32 next to the process name
[23:56:55 CEST] <c7j8d9> is there a way to convert the audio of a movie and add it as a new stream keeping the original too.
[23:56:58 CEST] <c7j8d9> ?
[23:58:25 CEST] <furq> c7j8d9: -map 0:v -map 0:a -map 0:a -c:a:0 aac -c:a:1 copy
[23:59:46 CEST] <c7j8d9> thanks furq. why the second -map 0:a?
[00:00:00 CEST] --- Thu Aug 24 2017
1
0
[00:43:47 CEST] <unholy_me> I am experiencing error of form : "./ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory"
[00:44:03 CEST] <unholy_me> any suggestions?
[01:00:14 CEST] <RiCON> unholy_me_: yeah, go to #ffmpeg, this is the wrong channel
[01:01:02 CEST] <unholy_me_> ok
[04:14:11 CEST] <stevenliu> BtbN: What happen? HLS supports fragmented mp4 ?
[04:23:10 CEST] <cone-655> ffmpeg 03Steven Liu 07master:20a6b198b484: avformat/hlsenc: move free fmp4_init_filename after hls_window operation
[05:06:42 CEST] <cone-655> ffmpeg 03James Zern 07master:d8269519e4a3: vp9: set color range to MPEG for intraonly profile 0
[10:50:52 CEST] <BtbN> stevenliu, since quite a while, yes?
[11:03:54 CEST] <stevenliu> I saw you leave a hls fmp4 message here when i login in irc today morning Peking Time :)
[11:05:01 CEST] <stevenliu> HLS supports fragmented mp4 i just saw this line
[11:08:25 CEST] <wm4> stevenliu: what is your dash patch doing anyway?
[11:09:19 CEST] <stevenliu> fix bugs
[11:09:37 CEST] <stevenliu> do you and samsamsam has contact me , we fix bugs together :(
[11:10:16 CEST] <stevenliu> test all case from : http://dashif.org/reference/players/javascript/v2.5.0/samples/dash-if-refer…
[11:11:11 CEST] <wm4> I know a while ago there were reviews by others and new versions of the patches were posted all the time
[11:11:13 CEST] <stevenliu> I cannot sure if i can commit a base version but have lots of bug for the cases, and holding maintaining the dashdec.c with samsamsam
[11:11:36 CEST] <BtbN> How was the xml parser problem solved now?
[11:12:23 CEST] <stevenliu> xml parser Nicolas maybe need time to support
[11:13:02 CEST] <wm4> I wouldn't wait for that
[11:13:06 CEST] <stevenliu> samsamsam has contact me , we fix bugs together :(
[11:13:13 CEST] <wm4> (although he'll probably raise a fuzz anyway)
[11:14:16 CEST] <stevenliu> Can i send a dashdec.c but have bugs, and let's fix all the bugs together?
[11:15:35 CEST] <wm4> what kind of bugs are there?
[11:16:57 CEST] <stevenliu> many of the kind of bugs are livestream with about timeline, timeshift, and avaliablestart[end] process
[11:18:43 CEST] <stevenliu> the youtube bugs which from mailist reported by Ricardo Constantino has been fixed local
[11:19:41 CEST] <stevenliu> but test users report about the lists of the live streams on http://dashif.org/reference/players/javascript/v2.5.0/samples/dash-if-refer…, have compatibility issue
[11:21:37 CEST] <stevenliu> wm4: are you developing dash demuxer now?
[11:21:51 CEST] <wm4> stevenliu: no
[11:22:21 CEST] <stevenliu> don't worry, let me send a new version patch next week
[12:43:02 CEST] <wm4> wbs: any comments on "[PATCH] all: avoid data imports across DLL boundaries"?
[12:45:47 CEST] <wbs> wm4: not really, it looks pretty clean and straightforward to me
[12:46:16 CEST] <durandal_1707> carl is on drugs when posting bitstream writer patch
[16:35:40 CEST] <kierank> durandal_1707: why does he want to do that
[16:36:23 CEST] <durandal_1707> kierank: dunno
[17:52:59 CEST] <cone-690> ffmpeg 03Paul B Mahol 07master:e1be40bbb578: avfilter/vf_pseudocolor: add high bitdepth support
[19:22:14 CEST] <nevcairiel> anyone happen to know a simple/small image scaling library with both x86 SIMD and ARM/Neon optimizations? Just need RGB resize, nothing fancy
[19:23:30 CEST] <cone-690> ffmpeg 03Michael Niedermayer 07master:a2e444d5bb2e: avcodec/pngdec: Fix () placement
[19:23:34 CEST] <BtbN> zimg?
[19:23:41 CEST] <nevcairiel> no neon
[19:24:09 CEST] <BtbN> swscale?
[19:24:17 CEST] <nevcairiel> not small and nice =p
[19:24:20 CEST] <rcombs> clearly NIH it
[19:24:39 CEST] <rcombs> also, protip: don't use FreeImage for scaling
[19:24:58 CEST] <nevcairiel> zimg would probably be nice if someone would contribute neon code :D
[19:25:09 CEST] <rcombs> I found out the other day that it does scaling via floating-point in C, for some reason
[19:26:50 CEST] <rcombs> (this is especially dumb when you realize that the armv7 compiler in the android NDK uses -mfloat-abi=soft by default rather than softfp, despite armv7 android always having an FPU available [afaik])
[19:27:13 CEST] <nevcairiel> great fun
[19:27:20 CEST] <rcombs> tfw complaints of scales taking 15 seconds
[19:27:59 CEST] <JEEB> :D
[19:30:23 CEST] <BtbN> AMD accepted my RMA.
[19:30:31 CEST] <BtbN> And my intermediary 1500X has the same bug
[19:31:05 CEST] <atomnuker> nevcairiel: are you displaying the image somewhere? use shaders then
[19:31:13 CEST] <BtbN> And according to its sensor, it's running at 11°C.
[19:31:49 CEST] <nevcairiel> atomnuker: needs to be general purpose, not re-designing the entire rendering thing just to get faster image scaling on arm devices =p
[19:32:20 CEST] <nevcairiel> BtbN: ryzen cpus have this weird offset temperature, if you switched from a high-end to a mid-range, it may have the offset wrong
[19:32:47 CEST] <BtbN> Adding 20°C does not add up though
[19:32:55 CEST] <BtbN> When I put it under stress, it settles in at 33°C
[19:33:33 CEST] <atomnuker> BtbN: are you using the latest kernel?
[19:34:17 CEST] <BtbN> This is Windows
[19:36:55 CEST] <BtbN> Linux has no driver to even read those sensors
[19:57:37 CEST] <J_Darnley> BtbN: Congrats on the duplicate bug. :-)
[20:08:47 CEST] <BtbN> bug is probably a bad name for it
[20:08:54 CEST] <BtbN> it's just a faulty chip
[21:17:36 CEST] <cone-690> ffmpeg 03Michael Niedermayer 07master:6f03ffb47d51: avcodec/aacdec_template: Fix running cleanup in decode_ics_info()
[22:34:58 CEST] <cone-690> ffmpeg 03Ravindra 07master:f3913dcc0685: libavdevice/decklink: configurablity to set max queue size
[00:00:00 CEST] --- Wed Aug 23 2017
1
0
[00:00:03 CEST] <JEEB> same as contrast changes and other color changes that GPU vendors have been doing with your 8bit YCbCr until now
[00:00:49 CEST] <c7j8d9> sadly there is not much true 4k hdr content in the first place
[00:01:01 CEST] <_benj> hello guys!
[00:01:26 CEST] <_benj> just a quick question, is ffmpeg used at enterprise level for DASH and or HLS streaming?
[00:01:36 CEST] <JEEB> yes, but that doesn't mean that you should rape actual content to get that good feeling of having your HDR LED (in hardware or software) light up
[00:02:15 CEST] <c7j8d9> hehe...it is pretty selfish
[00:02:45 CEST] <_benj> I'm considering proposing to my company doing an in-house streaming solution and I'm looking into ffmpeg for that... is it possible? has it been done?
[00:02:48 CEST] <JEEB> _benj: most definitely. facebook, google among others base their solutions on FFmpeg etc
[00:03:00 CEST] <_benj> oh really? didn't knew that!
[00:03:04 CEST] <JEEB> usually solutions are multi-faceted and FFmpeg handles decoding/encoding etc
[00:03:24 CEST] <JEEB> while content delivery is generally separated to just keep a separation of concerns
[00:03:26 CEST] <_benj> yeah, I'm thinking a CDN in front of ffmpeg
[00:04:51 CEST] <_benj> any good source to start my testing? I found some commands at the webm wiki but not too much for HLS
[00:25:34 CEST] <DHE> testing what? ffmpeg as a streamer? CDN backending?
[00:32:57 CEST] <_benj_> sorry, help with making the .m3u8 file
[00:34:07 CEST] <DHE> ah... so I do a fair bit of HLS. Usually I have some process generate the master playlist on startup and launch ffmpeg to generate its normal child playlists
[00:36:45 CEST] <_benj_> good to hear that you do HLS :-) so, a script or something that generates the master.m3u8 and then various ffmpeg for the childs, right?
[00:36:59 CEST] <DHE> not various. one.
[00:37:24 CEST] <DHE> various instances can work for pre-rendered video, but for live you really do need one ffmpeg to handle all of it
[00:37:45 CEST] <_benj_> ok, got it
[00:38:03 CEST] <_benj_> what about the hosting and cdn? any recommendations?
[00:38:14 CEST] <squarecircle> ohai
[00:38:17 CEST] <_benj_> I'm thinking something like nginx and AWS for CDN
[00:39:02 CEST] <DHE> nginx is just software. you have to run it somewhere. your own AWS instances is an option.
[00:39:11 CEST] <squarecircle> is there a way to distinguish between an video or an audio file?
[00:39:18 CEST] <DHE> are you doing live or pre-rendered?
[00:40:13 CEST] <squarecircle> DHE: who you are asking?
[00:40:21 CEST] <DHE> squarecircle: I am asking benj
[00:40:23 CEST] <_benj_> live
[00:40:33 CEST] <DHE> okay, amazon S3 is probably a bad fit then..
[00:40:50 CEST] <_benj_> @DHE: this is what I have on mind, in-home server for live video encoding and probably nginx to host the m3u8 and .ts files
[00:41:08 CEST] <_benj_> I'm not thinking S3 but CloudFront for CDN
[00:41:13 CEST] <DHE> I'm not very familiar with all amazon offers. do they have a full out HTTP[s] proxy CDN?
[00:41:38 CEST] <_benj_> supposedly they do
[00:42:02 CEST] <DHE> interesting...
[00:42:25 CEST] <_benj_> what I'm wondering tho is if the general setup is kind of what is standard
[00:42:43 CEST] <DHE> for testing the biggest thing I'd check is what kind of traffic pattern you see. does cloudfront fetch once, or does each edge system fetch its own copy? your ffmpeg system needs to be able to endure that.
[00:43:14 CEST] <DHE> you said "in-home" so I'm imagining a cable modem serving the video. which would be bad
[00:43:29 CEST] <_benj_> in-location server hosting .m3u8 and .ts -> CDN
[00:43:43 CEST] <_benj_> no, I meant in location... home is for the dumb testing
[00:43:54 CEST] <_benj_> fiber 1g connection
[00:44:02 CEST] <_benj_> I think tha the CDN fetches one
[00:44:02 CEST] <DHE> right, but the CDN is itself many many systems, each with their own needs. subtleties in how that works might be a concern
[00:44:19 CEST] <DHE> well, a 1gig connection is better than I was imagining
[00:44:40 CEST] <_benj_> so, you'd worry more about the CDN than the actual ffmpeg?
[00:45:14 CEST] <DHE> it's two steps. you can test ffmpeg by yourself with a factory-default apache installation to serve it. then you test the CDN
[00:47:39 CEST] <_benj_> ok, maybe a stretch but, would you mind sharing a sample command for a simple /dev/video to .m3u8 stream? :-D
[00:48:02 CEST] <DHE> before I begin, tell me what the input resolution is and what output formats you want
[00:48:12 CEST] <DHE> by formats I typically mean bitrate and resolution
[00:49:00 CEST] <_benj_> right now I'm using a cheap logitech camera for video source... production might be 1080p60 but that's later
[00:49:09 CEST] <_benj_> so 720p15 is what I have
[00:52:25 CEST] <_benj_> of just even 640x480 @ 15fps
[00:54:15 CEST] <DHE> Going with an input of 720p, this is what I came up with on the spot: https://pastebin.ca/raw/3857625
[00:54:46 CEST] <DHE> I'm assuming 4:3 aspect ratios and a medium amount of action, for example. Numbers may need fudging.
[00:55:04 CEST] <squarecircle> invalid post id
[00:55:05 CEST] <squarecircle> ;)
[00:56:30 CEST] <DHE> uhh.. that's funky...
[00:56:54 CEST] <DHE> https://pastebin.ca/3857625 The non-raw version then... I usually try to link to the raw version to keep the noise, ads etc to a minimum
[00:59:36 CEST] <squarecircle> I may actually need this somewhen in the future ^^
[01:00:10 CEST] <squarecircle> DHE: try the download raw
[01:00:23 CEST] <squarecircle> DHE: its failing for some reason
[01:01:22 CEST] <_benj_> sweet!
[01:01:45 CEST] <squarecircle> if someone has some time spare: I like to use ffprobe to probe for file types
[01:02:14 CEST] <_benj_> DHE: so, aac over mp3?
[01:02:17 CEST] <DHE> _benj_: always always try it for yourself. I've made a lot of assumptions when I wrote that
[01:02:36 CEST] <DHE> _benj_: in the earliest versions of the HLS spec, only H264 and AAC codecs were allowed. That's changed though. Again, assumptions made
[01:03:02 CEST] <_benj_> DHE: oh don't worry, I'm not moving this anywhere to production yet! there's a lot of testing but that is such a great start!
[01:03:16 CEST] <_benj_> I'm really appreciate it! seriously, thanks!
[01:03:18 CEST] <unholy_me_> Hi! I have come across a weird error : ./ffmpeg: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory. The problem is I cannot locate the file libavdevice.so on my pc anywhere/
[01:03:43 CEST] <DHE> unholy_me_: it should either be included with ffmpeg, or one of its immediate dependencies.
[01:06:03 CEST] <squarecircle> its drivin me nuts, that I get a video stream from mp3 or opus files
[01:06:48 CEST] <_benj_> DHE: one more thing... you said that you started a process that generated the master.m3u8, for that do you just make a bash script or something? or just write it manually?
[01:09:57 CEST] <DHE> I use perl because that's my MO. For any half-decent amount of text processing, I use perl.
[01:10:39 CEST] <DHE> the perl does everything for me. decides the resolutions based on the input device and some secret sauce parameters we use locally
[01:11:16 CEST] <_benj_> neat
[01:18:26 CEST] <squarecircle> any idea?
[01:20:43 CEST] <furq> squarecircle: it's probably album art
[01:20:51 CEST] <furq> ffmpeg just treats that as a video stream
[01:21:07 CEST] <furq> on account of album art specs for audio files being a colossal clusterfuck
[01:25:03 CEST] <squarecircle> furq: thats exactly my opinion
[01:25:32 CEST] <squarecircle> I can find out, when I'm decoding the stream, that I only get one frame
[01:25:42 CEST] <squarecircle> then I can throw the analysis away
[01:25:56 CEST] <furq> well for mp3 it's definitely album art because that container can't contain video streams
[01:26:14 CEST] <furq> ogg can, though, so you'll probably need a better check
[01:26:31 CEST] <squarecircle> but it looks nasty: 50 files found, 49 files were video files, one was a audio file, because fuck you
[01:26:45 CEST] <furq> you can probably check the video codec?
[01:26:49 CEST] <furq> it'll be png or jpg for album art
[01:27:04 CEST] <squarecircle> furq: ogg contains video for sure, Big Buck Bunny is downloadable as .ogg file
[01:27:49 CEST] <furq> it's probably unlikely you'll have .mka that contains an actual mjpeg stream, so checking the codec is probably fine
[01:28:11 CEST] <furq> i don't think any other audio container format will have anything to do with mjpeg
[01:28:28 CEST] <furq> not that it's something you'd ever see anyway
[01:29:18 CEST] <squarecircle> furq: http://paste.ubuntu.com/25365859/
[01:29:24 CEST] <squarecircle> actuallt its worse
[01:29:59 CEST] <furq> ffmpeg will report jpg album art as mjpeg
[01:30:05 CEST] <squarecircle> this is the ffprobe output on a mp3
[01:30:17 CEST] <furq> they use the same decoder
[01:30:25 CEST] <squarecircle> oh great
[01:30:38 CEST] <squarecircle> whose behind I can set on fire for this glorious idea?
[01:30:41 CEST] <furq> like i said, mp3 and ogg can't contain mjpeg anyway
[01:31:13 CEST] <squarecircle> furq: if I put an mjpeg stream into an ogg container?
[01:31:18 CEST] <furq> you can't
[01:31:40 CEST] <furq> you can with m4a and mka
[01:32:08 CEST] <squarecircle> but I can put theora in it
[01:32:12 CEST] <furq> you sure can
[01:32:14 CEST] <furq> that's not mjpeg though
[01:32:21 CEST] <squarecircle> why no mjpeg?
[01:32:28 CEST] <furq> it's not part of the spec
[01:32:33 CEST] <squarecircle> ah ok
[01:33:01 CEST] <klaxa> as far as i researched mjpeg doesn't even have an official spec
[01:33:16 CEST] <furq> the ogg spec
[01:33:32 CEST] <squarecircle> so the clue is: if I have an mjpeg stream, I can check if its not m4a or mka I can throw it away?
[01:33:44 CEST] <furq> it could be png as well
[01:33:48 CEST] <squarecircle> how about mp3-container?
[01:33:56 CEST] <furq> mp3 doesn't support video at all
[01:34:02 CEST] <squarecircle> I can read png as Videos?
[01:34:13 CEST] <furq> iirc mp3 is just the raw audio data with an id3 tag stuck to the end
[01:34:19 CEST] <furq> it's not a real container
[01:34:20 CEST] <squarecircle> furq: I pasted you the ffprobe on an mp3 file
[01:34:31 CEST] <squarecircle> oh no
[01:34:40 CEST] <squarecircle> the image is in the id3?
[01:34:43 CEST] <furq> yeah
[01:34:53 CEST] <furq> ffmpeg will still detect it as a video stream though
[01:34:54 CEST] <squarecircle> and its interpreted as video stream?
[01:34:59 CEST] <squarecircle> ouch
[01:35:18 CEST] <furq> if you have mjpeg or png in an mp3 or ogg, it's 100% album art
[01:35:28 CEST] <furq> or flac, or ape, or basically anything other than m4a or mka
[01:36:01 CEST] <furq> tbh i would just assume it was album art for m4a
[01:36:06 CEST] <furq> nobody uses mjpeg
[01:36:23 CEST] <squarecircle> ok, let me rephrase my question please: How do I differ video files from audio or pictures?
[01:36:31 CEST] <furq> that is the way
[01:36:41 CEST] <furq> i mean you could check the frame count but that takes longer
[01:37:07 CEST] <furq> i would just assume it's album art if the video stream is mjpeg or png
[01:37:10 CEST] <squarecircle> furq: as I write a small analysis tool, I will most surely get som mjpeg
[01:37:15 CEST] <furq> oh right
[01:37:27 CEST] <furq> i guess you probably want to check the frame count then
[01:37:30 CEST] <furq> either that or use mutagen
[01:37:48 CEST] <squarecircle> furq: I may get some fucked up streams from centuries ago, or crappy sources
[01:37:53 CEST] <squarecircle> mutage?
[01:37:56 CEST] <squarecircle> *mutagen?
[01:37:58 CEST] <furq> a python audio metadata lib
[01:38:05 CEST] <furq> assuming you're writing this tool in python which you're probably not
[01:38:50 CEST] <squarecircle> actually, I'm writing it in Python ^^ What else?
[01:39:01 CEST] <furq> well yeah that might be easier
[01:39:04 CEST] <squarecircle> (ok, DHE likes Perl, Clooney Nespresso)
[01:39:15 CEST] <furq> i've never really looked into the album art stuff, but mutagen is generally very good with audio metadata
[01:39:20 CEST] <furq> i know it has some basic handling of it
[01:41:33 CEST] <squarecircle> I need some simple test ^^
[01:42:35 CEST] <squarecircle> this whole multimedia stuff is getting me depressed ^^
[01:44:09 CEST] <klaxa> really? just thinking about webstuff makes me depressed, at least multimedia stuff usually is about efficiency
[01:45:01 CEST] <squarecircle> klaxa: webstuff is horrible too, you're right
[01:45:18 CEST] <squarecircle> klaxa: but the efficiency thing I don't understand
[01:46:03 CEST] <squarecircle> I may try libmagic
[01:46:08 CEST] <squarecircle> furq: ^
[01:49:59 CEST] <furq> that won't give you anything useful afaik
[01:50:26 CEST] <squarecircle> you think so?
[02:02:32 CEST] <squarecircle> furq: thanks for helpin
[02:02:37 CEST] <squarecircle> I gotta sleep
[02:18:36 CEST] <SpLiC3> What would a good output method for restreaming a a single live tv mpegts input to a port/socket that could be used by a webserver to start stop on remote client request?
[02:19:44 CEST] <SpLiC3> i recall seeing use of %d and similar
[02:42:49 CEST] <DHE> <squarecircle> (ok, DHE likes Perl, Clooney Nespresso) # you go with what works and what you're familiar with. for me that's perl when I'm parsing ffprobe -show_xxxx output
[02:54:28 CEST] <furq> it's all about awk baby
[04:12:21 CEST] <DHE> furq: meh, to each their own.
[07:08:38 CEST] <basse_> Hi, anyone knows where I could get a compile version of ffmpeg with --enable-libpulse?
[07:31:14 CEST] <tdr> basse_, ./configure --help and look for the switch name
[07:31:27 CEST] <tdr> or you wanting a binary?
[07:32:49 CEST] <basse_> I was thinking of the binary
[07:33:33 CEST] <basse_> I installed a static version, is that something that I can change? or I need to build ffmpeg with that flag?
[07:35:16 CEST] <tdr> you can't flip it once its build, youd need to built it that way or find one already linked
[07:39:32 CEST] <basse_> right, thanks tdr, I will look around, otherwise will attempt to compile it
[10:11:22 CEST] <victorb> hey guys, is loudnorm rediciously slow only on my machine ?
[10:11:49 CEST] <durandal_1707> buy faster machine
[10:12:29 CEST] <victorb> :( im running i3 and im getting like 3x speed
[10:12:49 CEST] <victorb> the other filters are dramatically faster
[10:13:38 CEST] <durandal_1707> loudnorm cannot benefit from multiple threads
[10:15:27 CEST] <victorb> so the filter is just slow and there is nothing that can be done ?
[10:16:18 CEST] <Basse_> I was able to compile sources with --enable-libpulse, and have the ffmpeg command working, I am now using the following: ffmpeg -f pulse -i default f flv rtmp://host:1935:live/mystream
[10:17:47 CEST] <Basse_> Anyone knows how can I pick a specific audio from pulse? I mean I might have more than one application generating audio in the same server, for each application I am generating an ffmpeg command, I'm wondering how I could tell ffmpeg which audio belongs to each one
[10:18:10 CEST] <Basse_> something like this
[10:18:43 CEST] <Basse_> application1 -> audio1, application2 -> audio2, application3 -> audio3
[10:19:08 CEST] <Basse_> ffmpeg1: ffmpeg -f pulse -i default:0
[10:19:16 CEST] <Basse_> ffmpeg2: ffmpeg -f pulse -i default:1
[10:19:22 CEST] <Basse_> ffmpeg3: ffmpeg -f pulse -i default:2
[15:27:48 CEST] <user01> hi i have some wav files that apparently have tagging on them . . . how do I transfer over these tags during a batch conversion to flac?
[16:00:35 CEST] <Guest91577> Heya
[16:02:14 CEST] <user01> -map_metadata 0:g:0 seems to work . . . i need all that though?
[16:03:17 CEST] <Guest91577> I have an mp3 that appears to be slightly wonky. Transcoding it via libmp3lame gives a warning about Incomplete frame / Error while decoding stream #0:0: Invalid data found when processing input, and the resulting file seems to confuse a number of different tools - eg it contains 1:53:00 of audio data, yet exiftool reports its duration as 1:05:00, and some players cut off at that point
[16:03:25 CEST] <Guest91577> What can I try to diagnose it further?
[16:50:20 CEST] <c7j8d9> Is it possible to "reverse engineer" a 4K Blu-ray that used a bilinear upscale?
[16:52:45 CEST] <JEEB> I think there's functionality for that in the zimg image library, and there originally was a filter called debilinear for avisynth
[16:53:23 CEST] <JEEB> the animation side of things has been using "upscaling reversers" when it's obvious how a thing has been upscaled for quite a while now
[16:55:22 CEST] <JEEB> outside of Japan it started with http://forum.doom9.org/showthread.php?t=158696 , which was meant to fix a very specific type of upscaling that left a very specific type of artifact
[16:56:22 CEST] <JEEB> afterwards debilinear and such were made and multiple scaling filters got support for "inverse scaling"
[16:58:39 CEST] <c7j8d9> So in theory some you can debilinear a 4k movie and see that its actually a 1080p upscale and not 2k upscale or 4k mastered?
[16:59:23 CEST] <JEEB> there's also a thing that was meant to try and calculate the "original resolution" that came with the debilinear package (you feed raw RGB if I recall correctly)
[16:59:45 CEST] <JEEB> but you should first have doubts that it is an upscale, and generally upscales can be seen pretty darn well :P
[17:00:01 CEST] <JEEB> and if they can't they're often made in a more fancy way that you might not be able to reverse necessarily
[17:03:36 CEST] <c7j8d9> sorry to be off ffmpeg topic but I am trying to get a second opinion of a guy claiming studios upscale 1080p bilinearly to produce 4K discs cheaply, as in Suicide Squad and Guardians 2. Though they claim to have used 2K mastered sources. When "reversed engineered" it shows a 1080p master
[17:06:57 CEST] <iive> isn't 4k a 3840x2160 ?
[17:07:08 CEST] <iive> that would mean that 2k is 1920x1080
[17:07:32 CEST] <JEEB> 4K and 2K are movie aspect ratios so they'd be somewhat wider, but marketing departments have taken over :P
[17:07:40 CEST] <alexpigment> iive: yeah, it's a misnomer for the consumer industry
[17:07:45 CEST] <JEEB> UHD or 2160p would be the correct way to note the 16:9 ones
[17:08:00 CEST] <alexpigment> i try to fly the "UHD" flag, but just have to give into 4k sometimes :(
[17:08:31 CEST] <alexpigment> this would have all been nice had we just agreed to say "2160p"
[17:13:51 CEST] <steved1> Hi @all, I have a mp4 with multiple audiotracks and I would like to copy them to a new mp4 and add a mixdown track of all original audio tracks. Is it possible to do this in one command? I only manage to do it in two with ffmpeg using the amix filter.
[17:14:04 CEST] <c7j8d9> 2K is 1440p also called QHD
[17:16:50 CEST] <alexpigment> 2k is not 1440p
[17:17:06 CEST] <alexpigment> 2k is 2048x[whatever] in the movie industry
[17:17:21 CEST] <alexpigment> but sometimes (rarely) 2k refers to 1920x1080
[17:18:47 CEST] <alexpigment> 1440p is a strictly computer-based resolution, and those are usually designated by weird names like QHD and WQHD
[17:19:30 CEST] <iive> QHD is 2560x1440 it is a quad of 1280x720
[17:19:52 CEST] <dystopia_> 2048 is only an extra 128 pixel boost
[17:20:00 CEST] <furq> https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Vector_Video_Stan…
[17:20:03 CEST] <furq> this should clear everything up
[17:20:03 CEST] <alexpigment> right. just saying 1440p is not a video or movie standard
[17:20:10 CEST] <dystopia_> tbh i've never heard the term 2k
[17:20:21 CEST] <furq> 2K is a cinema resolution
[17:20:26 CEST] <alexpigment> dystopia_ it's uncommon outside of the movie industry
[17:20:29 CEST] <furq> usually 2048*1080 but obviously it depends on AR
[17:20:35 CEST] <alexpigment> a "2k master" is where you'll usually hear it
[17:21:08 CEST] <furq> 4K should be 4096*2160 but the UHD marketing people thought 4K was more catchy
[17:21:33 CEST] <alexpigment> yeah, i want to say it's because theaters started advertising "Cinema 4K" before showing the films
[17:21:44 CEST] <alexpigment> that's my guess, anyway
[17:21:57 CEST] <furq> just adding U to a product name is confusing
[17:21:59 CEST] <furq> ask nintendo
[17:22:04 CEST] <alexpigment> haha
[17:22:15 CEST] <alexpigment> to be fair, they should have called it the Wii HD :)
[17:22:30 CEST] <furq> they should have called it the It's Not A Wii It Has A Touch Screen For Inventory Management
[17:22:41 CEST] <furq> or the INAWIHATSFIM
[17:23:32 CEST] <alexpigment> i will say that other than the completely useless-to-me touchscreen thing, it was a good system - despite all the malignment that it got in the press
[17:23:55 CEST] <alexpigment> trying to compare it to the sales of the Wii, almost every console will be a dud in that respect
[17:24:17 CEST] <furq> nintendo generally didn't do a great job with it, and the controller seemed a bit uncomfortable
[17:24:24 CEST] <furq> but really it all comes down to whether it has good games
[17:24:44 CEST] <alexpigment> it had good games. not a huge library, but a very good one
[17:24:49 CEST] <furq> i still think the DS is a completely stupid form factor and the touch screen is largely a gimmick
[17:24:57 CEST] <furq> but i still owned one because there were games i wanted to play on it
[17:25:03 CEST] <furq> and that's done incredibly well
[17:25:53 CEST] <alexpigment> yeah, i've never owned any nintendo handhelds, but the 3DS sold like crazy from all accounts
[17:26:27 CEST] <furq> i've never owned any nintendo non-handhelds
[17:27:32 CEST] <furq> and yeah the 3D thing on the 3DS is definitely a gimmick that nobody likes, but that's done almost as well as the original DS
[17:27:59 CEST] <alexpigment> they have a 2DS
[17:28:06 CEST] <alexpigment> which is cheaper and effectively just omits that feature
[17:28:08 CEST] <furq> yeah that shows how much of a gimmick the 3D is
[17:28:12 CEST] <c7j8d9> How quickly the convo went off the rails
[17:28:42 CEST] <klaxa> only nintendo handheld i have is a gbc
[17:28:55 CEST] <furq> i had a fat gameboy and a fat DS
[17:31:05 CEST] <redrabbit> had gbc gba
[17:31:10 CEST] <redrabbit> sold them
[17:31:13 CEST] <redrabbit> eyeballs killer
[17:35:21 CEST] <furq> the gba sp was all right
[17:36:33 CEST] <klaxa> backlight was a good idea
[17:43:24 CEST] <dystopia_> the sp is very hard to play now with adult hands
[17:43:52 CEST] <dystopia_> people mod the original model, by taking the back lit screens from the sp/101's and putting them in the original shell :)
[17:43:58 CEST] <dystopia_> makes them easier to play
[18:10:30 CEST] <kerio> alexpigment: the new 2ds xl is cute :3
[18:10:58 CEST] <alexpigment> i think i saw a screenshot of it. it sounds more up my alley (if i were a handheld console buyer)
[18:11:17 CEST] <kerio> the new 3ds xl does feel more "premium" tho
[18:11:39 CEST] <kerio> alexpigment: buy one tho
[18:11:46 CEST] <kerio> it's got kirby in a mech
[18:11:51 CEST] <alexpigment> haha
[18:11:52 CEST] <alexpigment> well
[18:11:54 CEST] <alexpigment> that's it
[18:11:59 CEST] <alexpigment> kirby in a mech? sold.
[18:12:18 CEST] <kerio> incredibly solid gameplay too
[18:12:26 CEST] <kerio> with a fiendishly hard boss rush bonus game
[18:13:19 CEST] <kerio> also you can pirate the shit out of the game library
[18:13:27 CEST] <kerio> because nintendo has potato security
[18:14:17 CEST] <furq> yeah the original 2ds was insane
[18:14:24 CEST] <furq> i'm glad they came to their senses with the new one
[18:15:10 CEST] <kerio> furq do you have a 3ds
[18:18:07 CEST] <furq> no
[19:44:31 CEST] <Guest43016> hi, someone know if pcie riser array like used in mining can be used to decode with 6 gpus? i want try but i dont know about performance issues
[19:47:44 CEST] <BtbN> The hell are you doing that you need 6 graphicscards to decode stuff?
[19:47:54 CEST] <BtbN> Probably cheaper to just buy a better CPU
[19:48:15 CEST] <BtbN> Unless you stuff like a bunch of 1050s in there or something
[19:50:56 CEST] <Guest43016> LOL
[19:51:14 CEST] <Guest43016> it is for a iptv tv service
[19:51:18 CEST] <redrabbit> decode what
[19:51:22 CEST] <redrabbit> you mean transoding
[19:51:27 CEST] <redrabbit> neat dawg
[19:51:35 CEST] <redrabbit> i do that with my 1060
[19:51:45 CEST] <redrabbit> they include 2x encoders
[19:51:55 CEST] <redrabbit> you can do hevc / avc
[19:52:01 CEST] <Guest43016> decoding, resize and encoding, yes transcoding
[19:52:12 CEST] <redrabbit> quality is decent but in now way its on par with x264/x265
[19:52:28 CEST] <redrabbit> its good for watching tv on the go
[19:52:35 CEST] <Guest43016> the idea is to use up to 6 nvidia quadro cards to transcode about 120 channels
[19:52:36 CEST] <redrabbit> if bitrate is not an issue
[19:52:40 CEST] <redrabbit> HEVC works better
[19:52:50 CEST] <redrabbit> if you really want to use theses hardware encoders
[19:53:14 CEST] <redrabbit> 120, lol
[19:53:16 CEST] <redrabbit> i don't know about that
[19:53:17 CEST] <Guest43016> yes, i want to switch to hevc, right now were using h264_nvenc
[19:53:29 CEST] <redrabbit> i can transcode 2X streams from my 1060
[19:53:30 CEST] <redrabbit> not more
[19:53:32 CEST] <Guest43016> yes, and 120 is to start
[19:53:46 CEST] <redrabbit> well you use hevc_nvenc then
[19:53:57 CEST] <redrabbit> i use dvbviewer for my setup atm
[19:53:59 CEST] <Guest43016> that is because a final user limitation, quadro cards can run unlimited streams in parallel
[19:54:03 CEST] <redrabbit> but its only for 2 clients
[19:54:29 CEST] <redrabbit> cool stuff didnt knew that
[19:54:35 CEST] <redrabbit> do you get the flux via sattelite?
[19:54:39 CEST] <redrabbit> satellite*
[19:54:47 CEST] <Guest43016> were a startup, we want to change the cable tv industry forever
[19:54:57 CEST] <Guest43016> sat, terrestrian, cable
[19:54:59 CEST] <Guest43016> everything
[19:55:04 CEST] <redrabbit> you know there is IPTV services allover the web right?
[19:55:05 CEST] <redrabbit> :p
[19:55:10 CEST] <redrabbit> neat
[19:55:13 CEST] <atomnuker> do you call yourself "the spacex of the cable tv industry"?
[19:55:23 CEST] <Guest43016> lol
[19:55:27 CEST] <Guest43016> watcha.live
[19:55:30 CEST] <redrabbit> what's new VS the exisiting stuff?
[19:55:49 CEST] <Guest43016> now are in beta, only 45k users
[19:55:51 CEST] <redrabbit> (spain ?)
[19:55:55 CEST] <Guest43016> for now
[19:56:11 CEST] <Guest43016> we go to add all latin america air tv
[19:56:29 CEST] <redrabbit> i have like 7000 channels from my motorized dish
[19:56:38 CEST] <redrabbit> you guys must have a baller dish setup
[19:56:39 CEST] <Guest43016> were looking for partners in usa
[19:56:45 CEST] <redrabbit> huge dish multi lnb ?
[19:57:02 CEST] <redrabbit> partners to cap stuff?
[19:57:03 CEST] <Guest43016> 4 dishes 3 meters each
[19:57:10 CEST] <redrabbit> hehe
[19:57:21 CEST] <Guest43016> yes, and bussines too
[19:57:37 CEST] <Guest43016> microsoft is partner of us right now
[19:57:51 CEST] <redrabbit> how do you deal with drm?
[19:57:55 CEST] <Guest43016> debian rulez
[19:58:08 CEST] <redrabbit> i mean for the content, legally
[19:58:33 CEST] <redrabbit> sounds like a headache
[19:58:34 CEST] <redrabbit> lol
[19:58:38 CEST] <Guest43016> were working on that
[19:58:58 CEST] <Guest43016> yes, but it is only pushing
[19:59:13 CEST] <Guest43016> and get the same lawers they have
[19:59:22 CEST] <redrabbit> you can free even more cpu if you decode with the gpu
[19:59:23 CEST] <redrabbit> -c:v h264_cuvid
[19:59:24 CEST] <Guest43016> crazy thinks from here
[19:59:49 CEST] <Guest43016> yes, we now are using only gpu
[20:00:36 CEST] <redrabbit> i guess its a pay-for service right
[20:00:44 CEST] <Guest43016> but, i want to do something arround mining ideas to video stream
[20:01:02 CEST] <Guest43016> right now is free, but yea.
[20:01:25 CEST] <Guest43016> something like netflix or spotify.
[20:01:42 CEST] <Guest43016> depends if ads pay well
[20:01:43 CEST] <redrabbit> i have no facebook to try though
[20:01:56 CEST] <Guest43016> bienvenido(a)watcha.live
[20:01:57 CEST] <Guest43016> demodemo
[20:02:04 CEST] <Guest43016> use that
[20:02:45 CEST] <redrabbit> thanks, the account got locked though :p
[20:03:12 CEST] <Guest43016> lol
[20:03:12 CEST] <redrabbit> "To continue, please approve this login on a phone or computer you've used before."
[20:03:28 CEST] <Guest43016> just wait a second...
[20:03:42 CEST] <redrabbit> in france there is a something called "molotov" that does legal IPTv as well
[20:03:47 CEST] <redrabbit> but the service was bad
[20:03:49 CEST] <redrabbit> when i tried
[20:04:13 CEST] <redrabbit> i have my own iptv with dvbviewer but im avid when it comes to try new stuff
[20:04:20 CEST] <Guest43016> try again now
[20:04:25 CEST] <redrabbit> it works now !
[20:04:25 CEST] <redrabbit> :)
[20:04:46 CEST] <Guest43016> we use our system
[20:05:06 CEST] <redrabbit> channel change is fast
[20:05:08 CEST] <redrabbit> that's good
[20:05:14 CEST] <redrabbit> quality however
[20:05:17 CEST] <Guest43016> based in ffmpeg, it all dynamic
[20:05:23 CEST] <redrabbit> what is the avg bitrate?
[20:05:28 CEST] <redrabbit> for 1080p
[20:05:34 CEST] <Guest43016> 2mbps cbr
[20:05:43 CEST] <redrabbit> on fixed images its ok
[20:05:47 CEST] <redrabbit> but with movement meh
[20:05:52 CEST] <Guest43016> in tv shows whit led background is ugly
[20:06:02 CEST] <Guest43016> but in general is great
[20:06:04 CEST] <redrabbit> 2m is barely enough for 720p
[20:06:13 CEST] <redrabbit> 1080p need 3.6
[20:06:22 CEST] <redrabbit> especially with the HW decoders
[20:06:24 CEST] <furq> that's an awfully specific number
[20:06:37 CEST] <redrabbit> well its the max out of the nvidia decoders
[20:06:50 CEST] <Guest43016> yes, were to upgrate to 4mbps for 1080
[20:06:52 CEST] <furq> huh
[20:07:18 CEST] <redrabbit> hevc works better with the hw encoders as well
[20:07:27 CEST] <redrabbit> it looks more like x264
[20:07:28 CEST] <Guest43016> 4,2,1,0.5,0.25 and only audio at 32kbps for latin america extreme slow netwoks
[20:07:59 CEST] <Guest43016> yes it is
[20:08:08 CEST] <redrabbit> im a bit picky because it play on a 32" though
[20:08:14 CEST] <redrabbit> so defaults jumps to the eye
[20:08:21 CEST] <redrabbit> defects
[20:08:37 CEST] <Guest43016> the idea is enable hevc to internal transport to save bandwidth
[20:08:40 CEST] <redrabbit> in a smaller screen it looks better
[20:08:58 CEST] <Guest43016> yes, the app for android is very used
[20:09:03 CEST] <Guest43016> all small screens
[20:09:27 CEST] <Guest43016> is like true hd for small screens :p
[20:09:34 CEST] <redrabbit> on a small screen im happy with 1M AVC
[20:09:45 CEST] <redrabbit> like sub 5"
[20:10:18 CEST] <Guest43016> yes, 2M is heaven lol
[20:39:37 CEST] <SpeakerToMeat> Do you guys know of a tool (other than qctool which I'm not sure does this) that can check a video file end to end to find if there's errors somewhere in between? a damaged frame/segment, etc?
[21:19:22 CEST] <DHE> ffprobe in -show_frames mode will decode the whole video/audio. you'll have to throw away the main output and look for warning/errors from the decoders during that time.
[21:19:49 CEST] <c_14> couldn't you also use ffmpeg -f null ?
[21:25:55 CEST] <SpeakerToMeat> DHE: Sounds good, thanks
[21:26:30 CEST] <SpeakerToMeat> Question, has the prores encoder/s diverged much from ffmbc over time?
[21:40:32 CEST] <JEEB> nothing can be taken in from ffmbc
[21:40:48 CEST] <JEEB> because FFmpeg prefers internal things to all be LGPL, while ffmbc specifically does GPL only
[21:41:07 CEST] <JEEB> so effectively nothing can be ported back into FFmpeg
[21:41:31 CEST] <JEEB> unless ffmbc rebased on top of newer FFmpeg and that's the prores encoder you're talking about
[21:41:42 CEST] <JEEB> in which case the upstream for it is FFmpeg
[21:42:01 CEST] <JEEB> (doesn't change the fact that none of the possible changes done by ffmbc can be taken back in, but yunno)
[21:50:50 CEST] <SpeakerToMeat> Nod
[22:05:45 CEST] <paveldimow> Hi, I would like to cut and concatenate two different videos (actually it's the same recording but from different cameras). I tend to use ms precision with ffmpeg -ss but it looks that it's not possible that ffmpeg has ms precision but rather it must seek the first I frame
[22:05:52 CEST] <paveldimow> Am I right?
[22:06:07 CEST] <Mavrik> Yes, unless you reencode
[22:07:14 CEST] <paveldimow> I do reencode
[22:10:36 CEST] <paveldimow> but still I am not sure it's precise I use ffmpeg -i test.mp4 -ss 00:00:31.341 -t 10 test1.mp4
[22:11:07 CEST] <durandal_1707> paveldimow: for concat with reencoding use filters
[22:11:24 CEST] <durandal_1707> trim and concat filter
[22:12:23 CEST] <paveldimow> durandal_1707: I use filter complex, but I will try trim and concat. Thank you!
[22:19:31 CEST] <jrun> 10% into playing back wavfile mpv quits. it doesn't do it on mp3 files. i've tried with both -ao alsa and -ao pulse (default). any idea?
[22:19:50 CEST] <jrun> and so does ffplay actually, forgot to mention.
[22:23:22 CEST] <sh4rm4^bnc> with every wav file ? or just with one, or some with special characteristics ? (like 8 bit mono)
[22:25:26 CEST] <thebombzen> jrun: does it provide an error message?
[22:26:07 CEST] <thebombzen> can you pastebin the full uncut output if you use "ffmpeg -i input.wav -f null -"
[22:28:57 CEST] <kepstin> jrun: it might be that your wav file has the length header set wrong, you could try 'ffplay -ignore_length 1 file.wav' and see if it plays the whole length
[22:29:41 CEST] <kepstin> if it doesn't, then, i guess the wav file is just shorter than you thought it was?
[22:34:27 CEST] <jrun> kepstin: nope, that didn't fix it. logs in a bit
[22:36:58 CEST] <jrun> https://gist.github.com/e7c8aa21d4531254a0e350f91a2ac51c
[22:41:01 CEST] <jrun> https://gist.github.com/ca33a67b15be0826ef4c13e7d41db84c
[22:41:03 CEST] <jrun> https://gist.github.com/a952a7a6b3b61e24c57d14d974c38778
[22:41:06 CEST] <jrun> logs from mpv
[22:44:26 CEST] <kepstin> so the ffmpeg logs look fine, ~27.7MB of audio data which is 5.3 minutes, which matches up with the expected file length
[22:44:42 CEST] <kepstin> are you seeking in the players? might be that they just have busted seek code :/
[22:45:14 CEST] <jrun> kepstin: i am indeed seeking
[22:45:27 CEST] <jrun> one of the mpv logs shows that
[22:46:25 CEST] <jrun> i get the same problem with the same file(s) playing on android (i.e. seeking doesn't work on some of them). these are recorded by android as well.
[22:46:35 CEST] <kepstin> you could try just saving in a format that has a seek index like, say, flac
[22:46:42 CEST] <kepstin> might help the players
[22:46:55 CEST] <kepstin> I assume that if you just play through straight from start to finish it works fine?
[22:47:31 CEST] <jrun> it does on android. haven't tested with mpv.
[22:49:03 CEST] <jrun> kepstin: works in flac indeed.
[22:50:17 CEST] <SpeakerToMeat> I'm trying to specify a pixel format for the input file, doing "-pix_fmt xyz12le" before -i but ffmpeg is arguing "Option pixel_format not found.", any tips?
[22:51:52 CEST] <jrun> kepstin: thanks; passed your comments to people at #mpv. will file a bug report after my exam.
[22:57:50 CEST] <klaxa> SpeakerToMeat: that's no pixel format ffmpeg supports
[22:58:14 CEST] <furq> sure it is
[22:58:18 CEST] <klaxa> it is?
[22:58:21 CEST] <furq> yeah
[22:58:34 CEST] <furq> http://vpaste.net/vjkFg
[22:59:01 CEST] <furq> SpeakerToMeat: -pixel_format is only recognised by certain demuxers iirc
[22:59:03 CEST] <klaxa> how am i so quick with my wrong assumptions... sorry :(
[22:59:06 CEST] <furq> what's the input format
[22:59:37 CEST] <furq> it probably works for other formats but i've only ever had to use it with rawvideo
[22:59:39 CEST] <SpeakerToMeat> furq: Hmm ok, I'm using libopenjpeg
[22:59:52 CEST] <furq> if this is j2k then that should be autodetected
[22:59:58 CEST] <SpeakerToMeat> it works with jpeg2000, not libopenjpeg so you're right.
[23:00:26 CEST] <furq> did you try without specifying it
[23:00:47 CEST] <furq> usually if it's flagged in the container then there's no need for the option
[23:01:29 CEST] <SpeakerToMeat> it'¿s j2k but libopenjpeg detects ir as rgb48le IF I'm reading my -vf graph debug output right, I have no pix fmt mention before, but let me double check
[23:01:37 CEST] <furq> ah
[23:02:06 CEST] <kepstin> SpeakerToMeat: very few filters support that pixel format, so it might just be that it got converted to rgb in the filter chain
[23:02:06 CEST] <furq> if you're doing filtering then a lot of filters don't support xyz iirc
[23:02:10 CEST] <furq> right
[23:02:27 CEST] <SpeakerToMeat> Yes, libopenjpeg is reading it: rgb48le(12 bpc, progressive) wrongfully
[23:02:59 CEST] <SpeakerToMeat> Hmmmm there used to be a form of manual matrix conversion online for this but I can't find it anymore, to apply it.
[23:03:28 CEST] <SpeakerToMeat> kepstin: Now my only filter is a crop, I can try to drop the filter and crop on a second pass (not ideal), but still libopenjpeg is reading the format wrong
[23:04:07 CEST] <furq> yeah i would assume crop would work regardless
[23:04:20 CEST] <SpeakerToMeat> And the input shows the wrong pix format so.
[23:04:50 CEST] <furq> sounds like openjpeg is being dumb then
[23:04:55 CEST] <SpeakerToMeat> yes
[23:05:14 CEST] <furq> does the builtin j2k decoder work
[23:07:48 CEST] <SpeakerToMeat> The built in j2k decoder recognizes xyz12le correctly, has trouble with many frames that openjpeg works correctly with though
[23:14:20 CEST] <SpeakerToMeat> Hmm it seems colorchannelmixer might work, maybe
[23:15:01 CEST] <kepstin> I wonder if you could do something silly like "-vf scale=src_format=xyz12le:dst_format=xyz12le" to just rewrite what the pixel format is tagged as
[23:15:20 CEST] <kepstin> assuming it's actually xyv12le video that just has the format mistagged
[23:15:42 CEST] <leif> Is there any information on how to set up AVFormatContext for avdevice_list_devices?
[23:15:53 CEST] <leif> (I'm trying to get ffmpeg to give me a list of input devices.)
[23:16:39 CEST] <leif> But I keep getting back an error.
[23:16:54 CEST] <SpeakerToMeat> kepstin: That's interesting
[23:17:57 CEST] <SpeakerToMeat> kepstin: I think my other option is to keep considering it "rgb" and use colorchannelmixer, I wonder, in the filter manual for colorchannelmixer if the parameter name is not specified the parameters order is the same as listed in the manual? so rr:rg:rb:ra:gr... etc etc?
[23:17:59 CEST] <leif> Specifically ENOSYS
[23:29:53 CEST] <DHE> leif: that means "function not implemented". I believe it means there are none available
[23:30:21 CEST] <DHE> did you call the register_all function?
[23:38:45 CEST] <leif> Yes I did.
[23:39:01 CEST] <leif> DHE:
[23:39:18 CEST] <leif> Although I didn't set an input format, maybe that's the problem...
[23:42:38 CEST] <leif> Hmmm...ya, maybe I have to initialize the context's iformat list...trying that now...
[23:51:13 CEST] <leif> DHE: hmm...nope, that didn't work. FWIW, here is what I'm currently trying: https://gist.github.com/LeifAndersen/a2886ad538b76264f9bf2fd3e4df91be
[00:00:00 CEST] --- Wed Aug 23 2017
1
0
[00:02:40 CEST] <FishPencil> Might be an x265 issue, but I get https://paste.debian.net/plainh/eb39ffa1 when trying to build FFmpeg with x265
[00:07:00 CEST] <Compn> what ver ffmpeg , FishPencil ?
[00:07:17 CEST] <Compn> looks like x265 problem
[00:07:21 CEST] <Compn> try make clean and rebuild
[00:07:34 CEST] <Compn> also this channel is for developing, try #ffmpeg for questions...
[00:18:45 CEST] <FishPencil> Compn: latest ffmpeg head, and latest x265 head. both were built fresh, and will do
[10:40:46 CEST] <mateo`> rcombs: do you have a branch somewhere i can use to test/review the heif support ?
[11:36:16 CEST] <paveldimow> q
[12:12:59 CEST] <jkqxz> ZhongLi: Yeah, sorry about that collision. The range one could be applied anyway, but given that it now checks properly against VAConfigAttribEncQualityRange I'm not sure how useful it is (the older drivers only have a 0-2 range, anyway).
[17:09:52 CEST] <cone-957> ffmpeg 03Carl Eugen Hoyos 07master:898ea658c8a4: lavc/g726: Add a little-endian G.726 encoder.
[19:12:42 CEST] <wm4> fate is not failing with master, right?
[19:15:54 CEST] <jamrial> wm4: it is on netbsd
[19:16:14 CEST] <jamrial> other targets are fine
[19:16:58 CEST] <jamrial> bah, clang since version 5 is miscompiling mjpeg, but that's been a thing for a while
[19:17:15 CEST] <jamrial> i don't think anyone reported that to llvm yet
[19:19:34 CEST] <wm4> seems like this was an unclean build tree (as in stale .o or .d files)
[19:39:54 CEST] <jya> to the h264 experts. What do you think of this code https://github.com/video-dev/hls.js/blob/master/src/demux/tsdemuxer.js#L495… ; it assumes that every non-IDR slice with a type of I slice or SI I slice is a keyframe
[19:40:26 CEST] <nevcairiel> that depends how you define keyframe
[19:41:40 CEST] <jya> one I can start decoding from I guess
[19:41:48 CEST] <jya> or feed to a decoder and I get a frame out
[19:42:20 CEST] <BtbN> Usually called IDR frame I guess
[19:42:49 CEST] <jya> yes, IDR. But in various streams encountere, there's no IDR NAL of any kind
[19:43:13 CEST] <nevcairiel> any I frame is not a clean recovery point
[19:43:51 CEST] <jya> like http://212.143.237.109:1935/ws40-v01-video/mp4:36651.mp4/playlist.m3u8 , it starts with an IDR, and nothing after that. Just SEI recovery points regularly spaced
[19:44:08 CEST] <jya> and indeed, you can start decoding from those just fine
[19:45:10 CEST] <BtbN> The linked code is for NDR frames.
[19:45:13 CEST] <BtbN> I have no idea what that even is.
[19:45:18 CEST] <jya> oh, and while on SEI recovery point, H264 spec (D.1.7 Recovery point SEI message syntax) are there particular values indicating you can't really recover from there ?
[19:45:26 CEST] <jya> non-IDR
[19:45:32 CEST] <jya> (I assume)
[19:46:00 CEST] <wm4> <jya> one I can start decoding from I guess
[19:46:00 CEST] <wm4> <jya> or feed to a decoder and I get a frame out
[19:46:04 CEST] <wm4> these are different things too
[19:48:26 CEST] <nevcairiel> the rules when you can start h264 decoding and when you get a clean frame out are not that easy
[19:48:40 CEST] <jya> wm4: in 99% of the streams I've seen, they are one and the same
[19:48:54 CEST] <nevcairiel> SEI recovery points for example mean you have to feed it a bunch of frames until you get a clean result - the SEI tells you how many.
[19:49:09 CEST] <BtbN> If the extradata is stored externally, I think I and IDR are similar, if not the same
[19:49:22 CEST] <nevcairiel> thats not true
[19:49:29 CEST] <nevcairiel> reference frames can span over I frames
[19:49:31 CEST] <nevcairiel> IDR is a clean reset
[19:49:35 CEST] <jya> BtbN: as it would be with avc1
[19:50:00 CEST] <nevcairiel> ie. a P frame right after an I frame could still reference frames from before this I frame
[19:50:57 CEST] <jya> the issue for my purpose, is that when demuxing data, I get a start time and a duration. you want those times to match as much as possible
[19:51:56 CEST] <jya> nevcairiel: alright, then i change my definition of a keyframe, to a frame where the ffmpeg demuxer would have keyframe flag set to 1 :)
[19:52:52 CEST] <wm4> that would be "one I can start decoding from", or often "something random"
[19:53:45 CEST] Action: wm4 specifiably remembers ffmpeg's mkv demuxer breaking seeking in some correct webm files to "fix seeking" in broken files
[19:58:01 CEST] <jya> i guess, I need some kind of method that can determine when the keyframe information found in the container is broken, and only override that info from there.
[19:58:38 CEST] <jya> maybe assuming that I always want recovery_frame_cnt = 0
[19:59:27 CEST] <jya> ah! https://www.ffmpeg.org/doxygen/3.1/structH264SEIRecoveryPoint.html#a8012e2f… " Frames having recovery point are key frames. "
[20:03:06 CEST] <JEEB> yea, SEI+I are flagged as "key frame" (random access point)
[20:21:00 CEST] <jya> JEEB: good point, maybe I should also look if there's a I-Frame that follows
[20:21:39 CEST] <jya> though, I'm sure there are streams out there with no such data, and it's expected to need a few frames before something valid comes out
[20:22:23 CEST] <JEEB> yea, many containers really lack a mechanism of noting intra refresh
[20:22:42 CEST] <JEEB> as in, "you can start everywhere as long as you are X pictures before the point you want to get to"
[20:22:52 CEST] <jya> my problems here is really for hls (mpeg-ts) streams converted into MP4
[20:27:22 CEST] <BtbN> yay, getting ma CPU replaced.
[20:28:47 CEST] <wm4> the real problem is the web and their funny protocols
[20:29:09 CEST] <BtbN> just stream in mp4 directly
[20:29:16 CEST] <BtbN> makes hls.js a whole lot less insane
[20:43:22 CEST] <jya> BtbN: for adaptative streaming, hls is super simple to implement as opposed to dash players
[20:43:37 CEST] <jya> as far as content providers are concerned
[20:43:50 CEST] <BtbN> HLS supports fragmented mp4
[20:44:01 CEST] <BtbN> Which removes most of the insanity hls.js is doing
[20:44:42 CEST] <jya> BtbN: mp4 hls streams are almost unheard of. First is super new, and everyone has been deeply involved with ts anyway
[20:44:50 CEST] <BtbN> YouTube uses them
[20:44:57 CEST] <jya> the crazy thing with HLS, is that segments aren't required to start with a keyframe
[20:45:09 CEST] <JEEB> DASH doesn't require that, either
[20:45:10 CEST] <JEEB> AFAIK
[20:45:20 CEST] <JEEB> the first sample doesn't have to be a RAP
[20:45:21 CEST] <jya> on mobile maybe, you can't stream HLS with youtube from desktop
[20:45:41 CEST] <BtbN> as long as you indicate in the key-segments in the playlist, I don't see an issue with that
[20:45:43 CEST] <jya> JEEB: it used to, though to ease compatibility with HLS, that was removed from the spec
[20:45:58 CEST] <BtbN> I think hls.js supports fmp4 in hls just fine. And I'd much rather use that insteas of remuxing ts in JavaScript
[20:46:39 CEST] <jya> and for quite a while, chrome was buggy and failed to correctly play any streams not starting with keyframe. so people started to tag every single frames as keyframe. that caused heaps of issues. Hence, why in FF, I had to stop relying on the mp4 sample tables to determine of a frame was a keyframe or not
[20:47:12 CEST] <JEEB> jya: ah right. I remember my friend herping a derp at google for that bug
[20:47:15 CEST] <jya> BtbN: but the fact is, even if hls.js does support it, there are almost no content using fmp4
[20:47:46 CEST] <BtbN> why would that matter? ffmpeg can produce it just fine
[20:48:02 CEST] <RiCON> nginx-vod-module too, a fork at least
[20:48:07 CEST] <jya> because people play what's available on line, and not produce their own content?
[20:48:24 CEST] <BtbN> If they play what's available online it's most likely an mp4 anyway
[20:48:34 CEST] <BtbN> Only ever seen HLS being used for livestreams
[20:51:28 CEST] <jya> BtbN: you'd be surprised.
[20:51:55 CEST] <jya> plenty of content provider only care about hls, and use stuff like HLS.js to play their content
[20:52:48 CEST] <jya> Dailymotion, TED, NYJ, etc
[20:53:01 CEST] <wbs> BtbN: for content to be played on iOS (within an app), apple mandates that it uses hls (so that it can play on lower bitrate connections etc)
[20:53:34 CEST] <wbs> so due to ios, "everybody" has to have hls, and once you have that, hls.js is a pretty neat way to not have to provide the same content in too many other formats
[20:53:38 CEST] <jya> BtbN: with mobile exploding, HLS is the best common denominator. Have HLS, and you can stream everywhere to any clients
[20:56:15 CEST] <BtbN> I'd still rather create HLS with fmp4.
[21:14:39 CEST] <wbs> BtbN: that's only supported on ios >= 10 (which otoh has got a pretty big marketshare), but not e.g. on android, so it's not at all the same common denominator
[21:22:10 CEST] <JEEB> doesn't exoplayer support it?
[21:22:20 CEST] <JEEB> which pretty much all mobile playback apps use on android
[21:29:49 CEST] <wbs> well that's probably doable, and with hls.js you could do that in a browser as well, but not just straight in a <video>
[21:30:07 CEST] <BtbN> you can, in Safari and MS Edge!
[23:20:51 CEST] <cone-343> ffmpeg 03Michael Niedermayer 07master:bc488ec28aec: avcodec/me_cmp: Fix crashes on ARM due to misalignment
[00:00:00 CEST] --- Tue Aug 22 2017
1
0
[04:59:21 CEST] <vans163> hello. is there a way to know what kind of YUV420 colorspace was used?
[04:59:43 CEST] <vans163> I see there is 3 predominant kinds, and on my decoder I am getting some blurry text, but decoding with VLC is fine
[04:59:51 CEST] <vans163> I am wondering if this can be the issue?
[06:22:10 CEST] <dan3wik> Anyone know of a low latency, low bandwidth video format or system that they could point me to?
[06:22:41 CEST] <dan3wik> It needs to be embeded in a website.
[06:23:10 CEST] <dan3wik> Right now we are using mpeg1video but I would prefer if we had something more up to date.
[06:25:51 CEST] <dan3wik> The hardware we are using can encode accelerated h264, but I heard that h264 needs full framesets before it can start to render them meaning it would add at least 2 seconds latency.
[06:34:46 CEST] <Wallboy> I have a video with a SAR of 4:3 and a DAR of 16:9. When playing it back in MPC it displays as 16:9. My video chain currently scales a video to a 16:9 aspect resolution while maintain the original aspect and adding black bars if needed like so: "[0:v]scale=640:360:force_original_aspect_ratio=decrease,setsar=sar=1/1,pad=640:360:(ow-iw)/2:(oh-ih)/2[out]"
[06:35:13 CEST] <Wallboy> However when the SAR and DAR differ like this, the encode "squishes" the video down to 4:3
[06:35:38 CEST] <Wallboy> i'm sure it's just a matter of putting setsar or setdar in the correct spot to fix the problem
[06:42:04 CEST] <kerio> dan3wik: h264 can be encoded with one frame of latency
[06:42:17 CEST] <kerio> by doing some Advanced Magic
[06:42:44 CEST] <dan3wik> The encoding isn't the issue, its the browser side I'm having issues with
[06:42:58 CEST] <dan3wik> There doesn't seem to be a low latency player available
[06:43:53 CEST] <kerio> yeah the best you can do is webrtc
[06:49:15 CEST] <dan3wik> kerio, what would the browser support be for something like that?
[06:49:26 CEST] <kerio> chrome and firefox
[06:49:42 CEST] <dan3wik> Ok, know of any it wont support?
[06:50:25 CEST] <dan3wik> And, what about moobile support?
[08:04:05 CEST] <robswain[m]> Webrtc with h264 will be supported in the next Safari release with iOS 11/macOS high sierra
[08:04:25 CEST] <robswain[m]> And webrtc is supported in chrome on android
[08:04:58 CEST] <robswain[m]> dan3wik: ^
[08:05:54 CEST] <dan3wik> ok
[08:06:15 CEST] <dan3wik> I'm looking into it right now, it seems relatively easy to implement.
[08:15:07 CEST] <Casper> Hi there, is there a way to rotate a video without reencoding? My guess is nope... but who knows...
[08:59:24 CEST] <Cracki> your guess is right, generally.
[08:59:48 CEST] <Cracki> some container formats (mov, mp4?) allow setting transform matrices, so you can rotate this way
[09:00:05 CEST] <Cracki> it's like rotating a jpeg image by setting metadata.
[09:00:23 CEST] <Casper> and supported by all players? or select few?
[09:00:37 CEST] <Cracki> some players disregard such information, as I'm sure you've seen when taking photos and looking at them
[09:01:41 CEST] <Casper> and I guess windows media player will ignore it...
[09:01:42 CEST] <Cracki> I have no idea whether this is mandatory behavior, and for which container formats, or if whatever video codec you used can take this information either
[09:01:49 CEST] <Cracki> don't guess.
[09:01:50 CEST] <Cracki> try.
[09:02:01 CEST] <Cracki> research this.
[09:02:14 CEST] <Casper> do you have some link about it?
[09:02:42 CEST] <Cracki> https://ffmpeg.org/pipermail/ffmpeg-devel/2009-November/076928.html
[09:02:46 CEST] <Cracki> this is something I just found
[09:03:16 CEST] <Cracki> I know of the existence of that metadata because I implemented some mov/mp4 parsing for my own purposes and saw it in the documentation of the mov format
[09:03:28 CEST] <Casper> ok thanks will look into it
[09:04:01 CEST] <Cracki> https://developer.apple.com/library/content/documentation/QuickTime/RM/Movi…
[09:04:09 CEST] <Cracki> somewhere on that domain is the mov file spec
[09:04:17 CEST] <Cracki> mp4 is a subset of mov, afaik
[09:04:36 CEST] <Cracki> (probably not exactly)
[09:05:01 CEST] <Cracki> https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QT…
[09:05:27 CEST] <Casper> thanks will check that tomorrow
[09:05:43 CEST] <Casper> now I should kick myself to do the dishes, then hit the bed...
[09:05:53 CEST] <Casper> don't want to, as every night
[09:06:24 CEST] <Cracki> always lick the dish you finish. less cleanup
[09:10:04 CEST] <Cracki> mvhd/tkhd contain a 3x3 matrix https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QT…
[10:32:05 CEST] <flux> when muxing h264 to mp4, how does ffmpeg find the codec configuration ("extradata")? when I try to do it (well, just really open h264), extradata ends up being null.
[12:59:20 CEST] <paveldimow> save
[13:05:51 CEST] <styler2go> Can i somehow transcode rtsp to mjpeg on the fly?
[13:32:49 CEST] <Fyr> guys, what is h264_mp4toannexb option for?
[13:33:59 CEST] <jkqxz> Changing H.264 from MP4 format to Annex B format.
[13:34:24 CEST] <Fyr> jkqxz, does FFMPEG do it by default when remuxing from MP4 to TS?
[13:35:19 CEST] <jkqxz> Yes.
[13:35:30 CEST] <Fyr> great
[13:35:39 CEST] <furq> it does now
[13:35:47 CEST] <furq> if you're on an old ffmpeg you'll need to specify the option
[14:12:53 CEST] <styler2go> Can i somehow convert a rtsp to html5 video?
[14:15:24 CEST] <BtbN> "html5 video"?
[14:15:27 CEST] <BtbN> So, an mp4 file?
[14:46:59 CEST] <styler2go> BtbN, yes
[16:22:03 CEST] <nivoh> hey guys (8
[16:22:59 CEST] <nivoh> im trying to understand how to use ffmpeg, is there any guide or something?
[16:23:35 CEST] <nivoh> need to re encode a flv file into an avi one
[16:30:43 CEST] <klaxa> nivoh: ffmpeg -i input.flv output.avi
[16:33:44 CEST] <nivoh> thanks
[16:33:51 CEST] <nivoh> but i dont get how to install it
[16:35:53 CEST] <Nacht> nivoh: What OS do you want to install it ?
[16:38:34 CEST] <nivoh> im in w8
[16:40:03 CEST] <Nacht> nivoh: You can download a build here: https://ffmpeg.zeranoe.com/builds/
[16:40:37 CEST] <Nacht> It's a ZIP file with the binaries in it. Just unpack it where you like, and you can run the executables from there.
[16:41:51 CEST] <Nacht> If you wish to be able to use ffmpeg from any path when you're using cmd, be sure to add the path where you unpacked the executables to your PATH in your environment variables
[16:42:45 CEST] <Nacht> Here's a simple website explaining it all: http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/
[17:19:19 CEST] <nivoh> thanks dude (:
[18:55:24 CEST] <kerio> where can i find some docs related to ffvhuff/huffyuv?
[18:55:48 CEST] <kerio> a paper or something, maybe? something citable
[19:02:42 CEST] <pgorley> kerio: have you tried google scholar?
[19:03:07 CEST] <pgorley> not sure what you're looking for, but a few links turn up
[19:03:09 CEST] <JEEB> kerio: IIRC it was just huffman coding and some intra prediction
[19:04:28 CEST] <kerio> pgorley: lmao, this article cites ffvhuff as `FFMPEG [Online]. Available: http://www.ffmpeg.org`
[19:04:34 CEST] <kerio> thanks fam
[19:04:39 CEST] <kerio> 10/10 bibliography
[19:04:46 CEST] <JEEB> kerio: https://wiki.multimedia.cx/index.php/HuffYUV
[19:06:32 CEST] <JEEB> and I think ffvhuff is similar
[19:10:03 CEST] <dbogdanov> Hello. I want to build a shared library linking with a static libavcodec.a. I get an error: "libavcodec.a(deinterlace.o): relocation R_X86_64_PC32 against symbol `ff_pw_4' can not be used when making a shared object; recompile with -fPIC". However, I can't manage to build ffmpeg to fix this error. I've tried --enable-pic flag. Anybody can help?
[19:12:37 CEST] <JEEB> dbogdanov: have you made sure you cleared your build directory when adding enable-pic?
[19:16:13 CEST] <dbogdanov> Yes I did
[19:17:06 CEST] <dbogdanov> It appears to be an old problem: http://libav-users.943685.n4.nabble.com/Libav-user-compiling-ffmpeg-with-fP…
[19:18:12 CEST] <JEEB> right, if you want to create a thing a la "libffmpeg.so" then you should take a look at the patchwork/mailing list
[19:18:20 CEST] <JEEB> there recently was a patch posted for that purpose :P
[19:18:32 CEST] <dbogdanov> In that thread somebody proposed a patch, but it seems to be an ugly workaround.
[19:18:46 CEST] <JEEB> anyways, on ARM things seem to work for me just fine :P
[19:18:50 CEST] <dbogdanov> why won't --enable-pic work?
[19:19:26 CEST] <JEEB> I don't know, it has worked for me so far :P otherwise VLC's contrib system wouldn't work either
[19:19:59 CEST] <iive> dbogdanov: are you using recent ffmpeg ?
[19:19:59 CEST] <dbogdanov> I am building with ffmpeg-2.8.12
[19:45:56 CEST] <dbogdanov> Solved that by adding -Wl,-Bsymbolic flag to linker
[19:46:00 CEST] <dystopia_> is there anyway to set force-cfr=1 with a copy?
[19:46:09 CEST] <dbogdanov> Thanks, JEEB
[19:46:25 CEST] <dystopia_> ffmpeg -i %input% -acodec copy -vcodec copy out.mkv
[19:46:37 CEST] <dystopia_> ^input = cfr, output=vfr
[19:49:58 CEST] <furq> dystopia_: is the input an mp4
[19:50:35 CEST] <furq> some tools will show 23.97/29.97fps material in mkv as vfr because the frame timings aren't constant
[19:52:48 CEST] <dystopia_> in put was hevc .ts
[19:54:38 CEST] <furq> the output probably isn't actually vfr then
[19:54:58 CEST] <furq> i mean technically it is but it's as close as matroska can get to the input framerate
[20:03:35 CEST] <JEEB> and mpeg-ts is limited to 90 kilohertz in timestamps as well
[20:03:41 CEST] <JEEB> fun times
[21:01:45 CEST] <_blinsay> hey y'all, i'm having some issues with the concat demuxer producing corrupt output with mp4s/h.264
[21:02:40 CEST] <_blinsay> the two videos i'm trying to combine both seem to have have the same framerate/encoding and all that jazz
[21:03:25 CEST] <_blinsay> using a -filter_complex with the concat filter and the same two produces correct output
[21:04:04 CEST] <durandal_1707> corrupt in what sense?
[21:04:28 CEST] <_blinsay> the video doesn't play smoothly, blocks of solid color start appearing in it
[21:07:07 CEST] <_blinsay> https://www.dropbox.com/s/9fwdkje4gdkk4tq/corrupt_moon.png?dl=0
[21:30:42 CEST] <cryptodechange> Are there any filters that can correct 'shaky' footage, clearly taken from a film?
[21:31:13 CEST] <cryptodechange> I have applied some slight degraining to reduce bitrate, but it has made the wobble from whatever they used to convert from original film more apparent
[21:44:08 CEST] <Dan203> I'm upgrading some software from using the v2 libs to v3. I'm trying to stamp out some of the depreciated stuff. But one issue I'm running in to is in the muxer. In the code I call avformat_new_stream to add a stream to the formatcontext, then I use the avstream->codec to set the various options I need for the codeccontext. However there is a warni
[21:44:09 CEST] <Dan203> ng in v3 that the codec pointer is depreciated. So what is the new way to get the codeccontext for a avstream?
[21:46:20 CEST] <Mavrik> Dan203, codecpar I think
[21:50:05 CEST] <Dan203> Mavrik, that doesn't have all of the same options as CodecContext. Plus, according to the comments, if you call avformat_new_stream you're suppose to call avcodec_close on the created context. I can't do that unless I have some way to get the conext
[22:22:00 CEST] <c7j8d9> Anyone knowledgeable in colorspace? Converting an VP9.2 video to HEVC 10bit I get flat colors with bt2020nc and closer to original colors with bt2020c. Are there better settings for HDR? (ffmpeg -hwaccel cuvid -i "HDR Input" -c:v hevc_nvenc -pix_fmt p010le -colorspace bt2020nc -color_primaries bt2020 -color_trc smpte2084 -rc constqp -qp 16 -c:a ac3 "Output.mp4")
[22:22:23 CEST] <JEEB> Dan203: git grep "from_context" doc/examples/
[22:22:41 CEST] <JEEB> the examples have plenty of ways to get codec parameters from an avstream etc
[22:23:53 CEST] <JEEB> c7j8d9: the question is how you're dealing with your content and what is the input/output
[22:24:12 CEST] <JEEB> (also cuvid can be fscking with you just as fine as well)
[22:27:11 CEST] <c7j8d9> Can you explain "dealing with your content"?
[22:27:35 CEST] <c7j8d9> Do you know the difference between bt2020 constant and non constant?
[22:27:46 CEST] <JEEB> in general yes, constant and non-constant luminance
[22:27:51 CEST] <JEEB> most content is NCL because of course
[22:28:06 CEST] <JEEB> that should be in the input metadata though, not a thing for any sort of debate
[22:28:50 CEST] <JEEB> what I'm trying to say is tell us what you exactly want to do, and then we go through the chain of events
[22:29:54 CEST] <c7j8d9> I downloaded vp9.2 video from youtube to play on my tv in hevc hdr10 since it won't play the vp9.2 file
[22:30:18 CEST] <JEEB> ok, so you actually do not want to do any conversions and just want to re-encode it
[22:31:23 CEST] <c7j8d9> yes...am I forcing conversions by specifying colorspace, primaries and trace?
[22:31:59 CEST] <JEEB> those are just metadata forcing things as far as I know, unless they have some special meaning with that specific HW encoder
[22:32:37 CEST] <JEEB> now, what colorspace values are you getting from the input and what sort of input is given by the HW decoder? also, does that HW decoder result go through some really insane conversion logic between the input and output. -v debug generally makes the thing spam a whole lot more but you should be able to see if any insane filter chains are going on
[22:33:24 CEST] <JEEB> post a full -v debug log or so on pastebin.com (or anything similar) and link here
[22:34:14 CEST] <paveldimow> Hi, can I analyze mp4 file so I can find what's the key frame interval?
[22:34:57 CEST] <JEEB> L-SMASH's boxdumper or ffprobe's -show_frames or -show_packets with limitation on the video track
[22:35:28 CEST] <JEEB> you can combine that with the -of json output to make it more digest'able by a script if you want to script it
[22:35:47 CEST] <paveldimow> JEEB: You are the king!
[22:36:35 CEST] <durandal_170> he is little peasant in field
[22:38:46 CEST] <paveldimow> Well he helped me many times before, so for me he is a king :)
[22:43:12 CEST] <c7j8d9> JEEB: is this enough info? https://pastebin.com/Mrwxqcgk
[22:44:05 CEST] <JEEB> [auto_scaler_0 @ 00000000055b9560] picking yuv420p out of 2 ref:yuv420p10le alpha:0
[22:44:08 CEST] <JEEB> [auto_scaler_0 @ 00000000055b9560] w:3840 h:2160 fmt:yuv420p10le sar:0/1 -> w:3840 h:2160 fmt:yuv420p sar:0/1 flags:0x4
[22:44:11 CEST] <JEEB> my condolences :P
[22:44:26 CEST] <JEEB> oh, that's ffplay
[22:44:29 CEST] <JEEB> why are you doing that?
[22:44:42 CEST] <JEEB> there's no way ffplay will play that sort of content correctly
[22:45:23 CEST] <c7j8d9> sorry...getting my feet wet with ffmpeg
[22:45:34 CEST] <JEEB> use latest mpv that can tone map down to SDR if you want a "proper" rendering of HDR content
[22:45:42 CEST] <c7j8d9> do if ffmpeg -i input -v debug?
[22:46:11 CEST] <JEEB> (although since tone mapping is not standardized in any way you cannot use it too much as a 'reference')
[22:46:28 CEST] <JEEB> (since all hardware and software will be doing it differently)
[22:46:44 CEST] <JEEB> c7j8d9: yes the idea was to get your ffmpeg command with your parameters - with the added -v debug in there
[22:46:51 CEST] <JEEB> so that the verbosity level was higher
[22:47:35 CEST] <c7j8d9> oh...when I convert? I was way off
[22:48:21 CEST] <c7j8d9> is mpv different then mpc?
[22:48:28 CEST] <JEEB> yes
[22:49:09 CEST] <JEEB> mpv is 100% open source (as opposed to mpc using the DShow media framework and whatever you have registered there), and has the least retarded video rendering framework that's available in any open source video player as far as I know
[22:49:17 CEST] <JEEB> lachs0r does windows builds
[22:49:27 CEST] <JEEB> https://mpv.srsfckn.biz/
[22:49:40 CEST] <wolfy__> Hi! What is the best approach to perform byte seeking when seek via timestamp (by using av_seek_frame()) is not available? In my case, it is feasible to preprocess the input video by iterating through all AVFrames. I read that AV_SEEK_BYTE doesn't always work.
[22:49:43 CEST] <wolfy__> I tried to use the approach described in the link below but I did not succeed, I populated a (timestamp -> byte) map, such that "byte" is the byte offset of the last read key frame while preprocessing the video. The frame that I obtain after performing the seek comes way before the target, there are lots of key frames between them. https://stackoverflow.com/a/3062994/351527
[22:50:22 CEST] <JEEB> c7j8d9: you can just extract and test by drag and dropping a file on top of mpv.exe. if you want hwdec to be utilized you will have to add --hwdec=dxva2-copy
[22:51:03 CEST] <JEEB> "normal" dxva2 will go through funky automated dxva2 routines which will not give the original YCbCr to the renderer
[22:59:23 CEST] <c7j8d9> JEEB: https://pastebin.com/G6RLEG1v
[23:01:38 CEST] <c7j8d9> this time the color looks the same even using bt2020nc
[23:03:51 CEST] <JEEB> that looks like swdec for the VP9, which should in theory be more less of "what the fuck is it doing"
[23:04:04 CEST] <JEEB> what I am interested in is how the yuv420p10 conversion is being done
[23:04:27 CEST] <JEEB> as in, yuv420p10 to p010le
[23:04:35 CEST] <JEEB> which should just be byte packing
[23:04:53 CEST] <JEEB> (yuv420p10 is fully planar, p010le is a semi-packed format)
[23:08:28 CEST] <JEEB> also do double-check if the nvenc hevc encoder actually writes the metadata
[23:08:53 CEST] <JEEB> if you ffprobe the file that was generated, if you get the correct colorspace values and MaxCLL/MaxFALL etc
[23:17:03 CEST] <c7j8d9> JEEB: https://pastebin.com/zzUSChy9
[23:19:26 CEST] <JEEB> try with -v debug although it seems like the additional metadata was not passed through the nvidia encoder
[23:19:43 CEST] <JEEB> basics are there, though
[23:19:45 CEST] <JEEB> tv, bt2020nc/bt2020/smpte2084
[23:20:49 CEST] <c7j8d9> me/ being an impatient person quit the encoding early to paste the output
[23:21:02 CEST] <JEEB> that should be OK as you can decode it fine
[23:21:10 CEST] <JEEB> the extradata thing should be written at that point anyways
[23:21:59 CEST] <JEEB> but yes, that result agrees with what I see in the nvenc hevc encoder, it just doesn't utilize the additional colorspace metadata
[23:22:22 CEST] <c7j8d9> https://pastebin.com/hCPM3apy
[23:22:55 CEST] <JEEB> so there's two possibilities: fuckery in the yuv420p10 -> p010le conversion (which should be lossless in theory since the data should be the same, just located differently in the buffers) or it's just the usual HDR playback bullshit.
[23:23:47 CEST] <JEEB> yea, that's as expected now. since the nvenc hevc encoder doesn't handle the additional values.
[23:24:05 CEST] <c7j8d9> additional colorspace metadata being the luminance and macll maxfall stuff?
[23:24:35 CEST] <c7j8d9> the usual HDR playback BS is what?
[23:25:07 CEST] <JEEB> that everything can play things differently yet they could all be correct
[23:25:19 CEST] <JEEB> due to things like tone mapping etc not being standardized
[23:25:40 CEST] <JEEB> so your TV, mpv and random other software could all claim they're correct at playback but they might not look similar
[23:26:17 CEST] <JEEB> ok, libx265 doesn't seem to utilize the side data containing the maxfall/maxcll etc stuff
[23:26:20 CEST] <JEEB> either
[23:26:28 CEST] <Mavrik> Hmm, interesting question here - how does that work in terms of HDMI?
[23:26:52 CEST] <Mavrik> If you have a HLG/HDR10/Dolby HDR content, do AVRs break that/need explicit support?
[23:27:13 CEST] <JEEB> Mavrik: HDMI has various values. I know a lot of hardware just passes the YCbCr as-is with the required metadata
[23:27:42 CEST] <JEEB> and other things convert to RGB and then note it as SMPTE ST.2084 / BT.2020
[23:28:48 CEST] <Mavrik> So for example you have an AVR that doesn't support HLG, but you have a player and TV that does - is metadata standard and gets passed through, or does it get stripped?
[23:28:57 CEST] <Mavrik> Can't really find documentation on all that :/\
[23:29:05 CEST] <JEEB> what was an AVR again?
[23:29:29 CEST] <Mavrik> Oh, AV Receiver
[23:29:41 CEST] <Mavrik> Or any other such device that does switching or audio stripping
[23:30:35 CEST] <JEEB> right. if it isn't doing "dumb" passthrough or cannot handshake the correct metadata it might just ASDF ASDF - or the feeding side just wouldn't be able to set the correct values as the protocol solving wouldn't finish
[23:31:15 CEST] <JEEB> not that I'm any good at HDMI specifics - the last time I tried to look into how you could control what a HDMI device would output led to a lot of pain and giving up
[23:31:59 CEST] <Mavrik> Yeah, that's the part I can't find any good info on - what to receivers actually do with HDMI signal
[23:32:13 CEST] <JEEB> so at this point I think the only way to test is to find a GPU+screen that lets you use the new D3D HDR APIs
[23:32:26 CEST] <JEEB> and then in actual full screen you can switch to SMPTE ST.2084/BT.2020
[23:32:38 CEST] <JEEB> since you have full control of the full screen environment
[23:32:52 CEST] <JEEB> (there previously were nvidia-specific APIs for this)
[23:33:17 CEST] <Mavrik> hmm, I have a nVidia 970 connected through an AVR to a 4K/HDR TV, so I guess I could go look for test cases
[23:33:17 CEST] <JEEB> but yea, depends on if the protocol handshakes pass with such stuff.
[23:33:40 CEST] <JEEB> and of course you'd have to make sure that it works correctly without the AVR in the middle
[23:33:54 CEST] <JEEB> which can be fun to decide as well :D
[23:33:56 CEST] <Mavrik> This whole HDR mess seems to be worse than the usual protocol problems :/
[23:34:02 CEST] <JEEB> yes
[23:34:14 CEST] <Mavrik> I wonder what kind of BS will Apple do on their new AppleTV
[23:34:14 CEST] <JEEB> tone mapping not being specified alone leads to quite different results
[23:34:19 CEST] <Mavrik> Fourth standard? :P
[23:35:48 CEST] <chance> Hi, I am trying to find a command that shows me the max bitrate of a video file. I have searched to hard to find this function, but no luck. Do any of you guys have ideas?
[23:36:15 CEST] <JEEB> chance: the maximum bit rate is always dependant on over what you calculate it
[23:36:25 CEST] <Mavrik> Yeah, that's what I wanted to ask - what's the window
[23:36:35 CEST] <chance> Could you explain what that means?
[23:36:37 CEST] <JEEB> usually you have a buffer size over which your maxrate would be calculated
[23:36:44 CEST] <JEEB> otherwise your question makes no sense
[23:37:03 CEST] <chance> Okay, so you sample small parts of the video?
[23:37:19 CEST] <Mavrik> Yes, and the depending on how big your part is, that's what your number will be
[23:37:25 CEST] <Mavrik> So it'll differ
[23:37:41 CEST] <chance> What's the best way to estimate this then?
[23:38:01 CEST] <JEEB> depends
[23:38:10 CEST] <JEEB> I mean, what kind of buffer is relevant to you
[23:38:31 CEST] <c7j8d9> thanks JEEB ... good food for thought
[23:38:57 CEST] <chance> I want to make sure "VOD content the peak bit rate SHOULD be no more than 200% of the average bit rateaccording to HLS standards
[23:39:10 CEST] <JEEB> yes, but that is always according to your buffer size
[23:39:22 CEST] <JEEB> usually you set maxrate and bufsize when encoding to keep your encodes within such parameters
[23:39:43 CEST] <chance> okay thank you
[23:39:50 CEST] <Mavrik> What's a reasonable default buffer size?
[23:40:00 CEST] <JEEB> or if the HLS specification defines the way of calculating the peak bit rate, that is the word
[23:40:12 CEST] <JEEB> as far as I know, it doesn't
[23:41:47 CEST] <DHE> there are distinct AVERAGE-BITRATE (-b) and BITRATE (-maxrate) parameters in the playlist
[23:42:06 CEST] <DHE> that's how I interpret them
[23:42:48 CEST] <JEEB> yes, but that still doesn't set the buffer size
[23:42:59 CEST] <JEEB> over which to calculate the maxrate
[23:43:18 CEST] <DHE> true. I'm not sure what the optimal value for that would be
[23:43:31 CEST] <chance> I am using a Bitrate Viewer tool which shows this: https://www.filepicker.io/api/file/zi6olrRvShy29sHtaIvW?signature=ac6eadf57…
[23:43:57 CEST] <JEEB> chance: the problem with those kinds of tools is that they are very opaque regarding what they mean with the values
[23:44:10 CEST] <JEEB> are they calculating over a buffer? if yes, what sort of buffer?
[23:44:22 CEST] <chance> Hmmm.. I will check their website
[23:44:33 CEST] <JEEB> or is it a single packet's bit rate (duration of packet and amount of bits used)
[23:44:43 CEST] <c7j8d9> Is there any benefit from converting bt709 to bt2020?
[23:45:09 CEST] <JEEB> c7j8d9: not really. you lose compatibility and you're not going to be doing re-grading the stuff anyways
[23:45:30 CEST] <c7j8d9> can you regrade with ffmpeg?
[23:45:55 CEST] <JEEB> most likely not, although there's a plethora of filters. just that not many of them deal in float
[23:46:25 CEST] <JEEB> which is pretty much required for keeping the over/underflowing values and the precision
[23:46:33 CEST] <JEEB> when doing something like color grading :P
[23:46:49 CEST] <JEEB> I have at least one UHD BD thing where the guys specifically said they took a BT.709 master and then made up the BT.2020/SMPTE ST.2084 grading
[23:47:07 CEST] <JEEB> (and let's not even talk about the fact that the master was 1080p)
[23:47:19 CEST] <c7j8d9> Tekno3D?
[23:47:49 CEST] <Mavrik> hmm
[23:47:59 CEST] <JEEB> nope, in-house by Q-Tec I think
[23:49:00 CEST] <c7j8d9> Well I am kinda curious about the same thing. Taking 1080p blurays regrading to bt2020 and 10.000nit upscaling to 4k
[23:49:18 CEST] <JEEB> doesn't make any sense
[23:49:47 CEST] <JEEB> if you had a master it'd still be shitty but at least you'd have to make the original author give his OK on your re-grading
[23:50:05 CEST] <JEEB> the upscale is just what it is, might be useful for future encoders if you did it sanely and your master was 4:4:4
[23:50:14 CEST] <JEEB> (since you could keep the 1080 worth of chroma in 2160p
[23:50:29 CEST] <JEEB> re-encoding blu-rays like that just ain't making sense
[23:50:37 CEST] <JEEB> but I bet people will do it
[23:51:06 CEST] <JEEB> just like in the 2000s we had people applying dozens of filters on their DVD/HDTV/BD rips
[23:54:31 CEST] <c7j8d9> they are "creating" 4k hdr content that doesn't exist and claim to be making better 4k hdr content than exists.
[23:55:05 CEST] <c7j8d9> https://www.youtube.com/watch?v=HI06dDUEY98&list=PLXmpoI8kKMrybV4wpba9NJ-hw…
[23:56:32 CEST] <c7j8d9> their stuff looks great with madvr but not that much better on my tv
[23:57:25 CEST] <JEEB> well at that point it's no longer the original content and it's just someone's interpretation of how it should look as opposed to how the actual mastered content should look
[23:57:45 CEST] <c7j8d9> true
[23:58:06 CEST] <JEEB> I mean, similar shit has been done by GPU vendors for over 10 years now
[23:58:13 CEST] <JEEB> they will inject shit into your DXVA2 chain
[23:58:25 CEST] <JEEB> and do color filtering etc
[23:58:54 CEST] <JEEB> this is just a fancy version of that with most likely some sort of human oversight to try and make it "look good" with the tone mapping they're applying
[23:59:33 CEST] <c7j8d9> they are trying to make things look more "realistic" colors, shadows, deep blacks
[23:59:46 CEST] <JEEB> well, yes. making shit up
[00:00:00 CEST] --- Tue Aug 22 2017
1
0
[03:03:02 CEST] <cone-089> ffmpeg 03Michael Niedermayer 07master:d132683ddd40: avcodec/snowdec: Fix off by 1 error
[03:03:02 CEST] <cone-089> ffmpeg 03Michael Niedermayer 07master:0c9d5b015c20: avcodec/fic: Fixes signed integer overflow
[03:03:02 CEST] <cone-089> ffmpeg 03Michael Niedermayer 07master:e7b9d136a1ba: avcodec/cngdec: Check skip_samples
[09:53:11 CEST] <durandal_1707> JEEB: how do you open various files in vs, half of them doesnt work at all
[11:50:12 CEST] <cone-564> ffmpeg 03bnnm 07master:e7053f3316f5: lavf/bink: fix latest header and add all existing revisions
[16:03:36 CEST] <cone-480> ffmpeg 03Mark Thompson 07master:9c878651dbc8: vaapi_encode: Move quality option to common code
[16:03:36 CEST] <cone-480> ffmpeg 03Jun Zhao 07master:c6a8c2a4f739: lavc/vaapi_encode_h264: add "coder" option support
[16:03:36 CEST] <cone-480> ffmpeg 03Jun Zhao 07master:b8b84f9af55d: doc/encoders: add "coder" option documentation for h264_vaapi
[17:13:45 CEST] <tdjones> atomnuker: I'm currently working on ironing out my final changes for the vorbis encoder. Do you have anything that you want included with the "official" submission for GsoC?
[17:14:39 CEST] <tdjones> I've just written a blog post that discusses what changes I made and includes links to the mailing list and git commit hashes, but if you want anything additional I can try to put it in
[17:17:13 CEST] <atomnuker> tdjones: you can still change your sumbission until the 29th, right?
[17:21:50 CEST] <tdjones> Yeah, that's the final submission deadline
[17:22:25 CEST] <atomnuker> cool, submit what you have tomorrow and we'll get it polished
[17:23:34 CEST] <tdjones> Ok, I tried implementing real basic bit-rate control that just shifted the quality up and down based on projected needs. Similar to how AAC does, but without multiple passes for each frame.
[17:23:42 CEST] <tdjones> It didn't really remove the clicking effect
[17:25:52 CEST] <atomnuker> so can you set the bitrate and the encoder would keep it around the same?
[17:30:25 CEST] <tdjones> Roughly. From what I understand, there isn't really a mechanism for adjusting quality dynamically during floor or residue construction, so it ends up being reactive to earlier changes rather than predictive
[17:31:35 CEST] <tdjones> The libvorbis encoder actually constructs multiple floors since they are relatively cheap and chooses the correct one after more information is available
[17:32:30 CEST] <atomnuker> that's alright, it needs not keep the bitrate exactly, variations of up to 2x (according to the libopus school of encoder writing) are acceptible
[18:14:12 CEST] <cone-480> ffmpeg 03Paul B Mahol 07master:f5361ee56f21: avfilter/vf_pseudocolor: add support for some subsampled formats
[21:15:50 CEST] <cone-109> ffmpeg 03Michael Niedermayer 07master:a165b53daa8a: avcodec/dirac_dwt_template: Fix integer overflow in vertical_compose53iL0()
[21:15:50 CEST] <cone-109> ffmpeg 03Michael Niedermayer 07master:8754ccd3b319: avcodec/pixlet: Fixes: undefined shift in av_mod_uintp2()
[00:00:00 CEST] --- Mon Aug 21 2017
1
0
[00:48:38 CEST] <dan3wik> Is it possible for FFmpeg to accept a web stream as an input?
[00:49:11 CEST] <dan3wik> I'd like to stream from a low power device using it's hardware encoder to encode h264
[00:49:23 CEST] <DHE> quite possibly. it can open HTTP based streams among others
[00:49:28 CEST] <dan3wik> And the convert that to mpeg1video on a more powerful system.
[00:49:49 CEST] <dan3wik> That mpeg1video would end up going to another server.
[00:50:01 CEST] <DHE> woah, mpeg1? why? unless it's going onto a video CD or something
[00:50:04 CEST] <dan3wik> Is there a way to make it listen?
[00:50:21 CEST] <dan3wik> The site I'm trying to connect it to only supports mpeg1video streams
[00:51:34 CEST] <dan3wik> Its for a low latency video stream
[01:39:07 CEST] <Accord> I have two audio files which I try to concat using -f concat and no -c copy ( I'm transcoding ) but the result reports more duration than there really is
[01:39:32 CEST] <Accord> both files are aac and the result is aac, the first one is created using anullsrc
[01:39:57 CEST] <Accord> when I play the result in vlc there's a gap between the two, seek bar freezes for a couple of seconds (excess duration) and then continues to the second file
[01:50:41 CEST] <atomnuker> f concat does a binary concat, it doesn't touch the headers
[01:50:54 CEST] <atomnuker> so it won't work for every format
[01:51:00 CEST] <atomnuker> use the concat filter
[02:05:42 CEST] <kerio> you can do h264 with one frame of latency
[02:42:23 CEST] <squarecircle> ohai
[02:43:06 CEST] <squarecircle> if I throw ffprobe at random files, I should be able to detect non video files
[02:43:08 CEST] <squarecircle> or?
[02:44:52 CEST] <leif> When I pass an AVChapter struct to an AVFormatContext, does it take ownership of it, or am I expected to free the memory myself?
[02:45:04 CEST] <squarecircle> I have to look for stream dicts with "video" keyes, I guess
[02:45:17 CEST] <leif> (I ask because it looks like the only way to construct an AVChapter is to malloc it myself.)
[06:05:31 CEST] <leif> It looks like I need to free it myself.
[06:17:54 CEST] <SpLiC3> What setting in ffmpeg would affect the refresh rate of the stats tools>statistics in vlc.
[06:21:44 CEST] <SpLiC3> The original http h.264 mpegts seems to be real time where as i can only seem to get it to update half as fast, this seems to affect read in some fashion and in turn buffer/cache on the client side.
[08:37:27 CEST] <H4x00m> hi
[08:39:44 CEST] <dan3wik> I'm trying to transcode a single video stream to a single target, could I do that with 'ffmpeg' or would I have to use 'ffserver'
[09:34:25 CEST] <Accord> atomnuker: thanks! concat filter seems to give correct duration
[10:49:25 CEST] <durandal_1707> dan3wik: ffserver do not use
[12:39:30 CEST] <Ingvix> hey, I'm trying to add a subtitle to multiple videos at once with a batch file but I'm guessing my command's a bit off. I'm trying to replace the second subtitle in the input video so the external sub takes it place as the second subtitle stream out of three sub streams. Here's the script and error output it gives to all of the video files: https://pastebin.com/s9sQauqT
[12:41:18 CEST] <klaxa> Ingvix: i think you want to use -map
[12:42:28 CEST] <Ingvix> should I use it for all the streams or just subtitles?
[12:44:46 CEST] <klaxa> you have to use it for all streams you want to have in your final file
[12:45:34 CEST] <Ingvix> right, thanks. I found a good example
[15:27:33 CEST] <bobob> How can I convert .srt into a bitmap stream? i read it should be possible with libass, I can't get it done
[15:46:38 CEST] <durandal_1707> bobob: you can only hardsub
[15:47:16 CEST] <BtbN> well, if you hardsub onto a generated static black background, and output as a bunch of images.
[15:48:10 CEST] <JEEB> libass should give you the plane already I think? you just tell it how big the canvas is
[15:48:17 CEST] <JEEB> then you overlay that on top of the video frame
[15:49:21 CEST] <bobob> could write down the command pls? ffmpeg canvas_size 1080p -i sub.srt sub.ass ?
[15:49:34 CEST] <JEEB> it requires custom code
[15:49:46 CEST] <JEEB> ass is also text based and that conversion can be easily done
[15:49:54 CEST] <JEEB> but your end result IIRC was to get DVB subtitles or so
[15:50:32 CEST] <JEEB> anyways, custom code is required that renders the subpictures on canvas and then you convert the canvas into a format that the DVB subtitle encoder takes in
[15:51:21 CEST] <bobob> yes
[15:53:13 CEST] <bencoh> wait, when did he mention dvb?
[15:53:19 CEST] <JEEB> during the last discussion
[15:53:23 CEST] <bencoh> ah, okay :)
[15:53:41 CEST] <JEEB> he now randomly just mentioned the "rendering subtitles into bitmaps" part for which I mentioned libass
[18:27:50 CEST] <dan3wik> Is there a way to make a transcoder relay where I can connect to the FFserver with '://ffserver/640/480/' and have it relay to '://destination/640/480/' without hardcoding it all?
[18:28:34 CEST] <BtbN> don't use ffserver, it's dead.
[18:28:55 CEST] <BtbN> And you also won't find anyone with any knowledge about how to use it.
[18:29:19 CEST] <dan3wik> Ok, is there a way I can do that with ffmpeg then?
[18:30:10 CEST] <dan3wik> The main issue I'm having with 'ffmpeg' is that I'm unable to listen for incoming connections with it
[18:30:12 CEST] <BtbN> do what?
[18:30:28 CEST] <BtbN> it can't really do that outside of some very limited special cases
[18:30:57 CEST] <dan3wik> Do you know of any alternatives that might work?
[18:31:06 CEST] <BtbN> nginx
[18:31:10 CEST] <BtbN> with rtmp
[21:48:00 CEST] <flok420> how can I set analyzeduration in the api? e.g. programatically using the c++ library
[21:49:08 CEST] <JEEB> seems like the usual AVOption
[21:49:51 CEST] <JEEB> so you set an AVOption to the input AVFormatContext
[21:53:06 CEST] <flok420> thanks
[21:53:24 CEST] <flok420> just tried setting it now in avformat_open_input and I see back the values set
[21:53:57 CEST] <flok420> unfortunately whatever I set it to (32MB and 60 seconds) I keep getting "Could not find codec parameters for stream 0 (Video: h264, 1 reference frame ([27][0][0][0] / 0x001B), none(left)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options" for an RTP stream by ffmpeg itself
[21:55:28 CEST] <iive> flok420: is the input an mpeg-ts steam?
[21:55:49 CEST] <flok420> yes, it is the result of:
[21:55:50 CEST] <flok420> fmpeg -f video4linux2 -i /dev/video0 -f alsa -i hw:0 -vcodec libx264 -s 320x240 -pix_fmt yuv420p -vb 200000 -minrate 200000 -maxrate 200000 -bufsize 2000000 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f mpegts udp://127.0.0.1:10093
[21:56:24 CEST] <iive> are you running this localy, aka on same machine?
[21:56:35 CEST] <flok420> yes
[21:58:53 CEST] <flok420> the other end is listening on udp://127.0.0.1:10093/
[22:02:02 CEST] <iive> i don't see the video codec setting
[22:02:06 CEST] <iive> oh
[22:02:10 CEST] <iive> it's there
[22:03:00 CEST] <iive> try without sound...
[22:04:07 CEST] <flok420> works!
[22:04:17 CEST] <flok420> \o/
[22:04:29 CEST] <iive> try with mp2, ac3 or aac
[22:05:58 CEST] <flok420> it only works here without audio
[22:06:25 CEST] <flok420> e.g. -acodec ac3 -ab 128k -ar 44100 -ac 2 also fails
[22:06:38 CEST] <flok420> (and mp2 and aac)
[22:08:57 CEST] <iive> hum... no idea. maybe somebody would know
[22:09:37 CEST] <iive> does it work if you write to file and then try to play that file?
[22:10:00 CEST] <flok420> maybe this code is dodgy? https://pastebin.com/5jXTv3p7 I'm new to ffmpeg and tried adapting an example to get rid of the deprecated warnings
[22:12:06 CEST] <iive> i though you are using ffplay for playback.
[22:12:41 CEST] <flok420> oh, right, no I use the ffmpeg c++ libraries
[22:13:55 CEST] <iive> try ffplay
[22:14:30 CEST] <flok420> then i get audio but no video
[22:18:44 CEST] <JEEB> then it's possible that for some reason the parameter sets aren't getting repeated
[22:19:08 CEST] <JEEB> I thought mpeg-ts output should be doing that, though
[22:19:47 CEST] <flok420> slightly related: the rtp stream of an "Verint Video Solutions S1708e" is visualized fine using gstreamer but ffmplay doesn't show anything
[22:20:07 CEST] <JEEB> yea, but that thing isn't rtp anyways
[22:20:32 CEST] <JEEB> anyways, try writing that mpegts into a file through stdout (just "-" as the output file name)
[22:20:42 CEST] <JEEB> and pipe it into a file
[22:20:56 CEST] <JEEB> then try reading that one after cutting the initial X hundred bytes out of it
[22:21:33 CEST] <JEEB> (just make sure that the file contains multiple GOPs)
[22:21:56 CEST] <JEEB> because I think libx264 + mpegts muxing /should/ be repeating the parameter sets at random access points
[22:22:02 CEST] <JEEB> without them of course you cannot watch the stream
[22:22:27 CEST] <flok420> if I *do not cut off* those x hundred bytes, then it is also only audio and no video
[22:22:51 CEST] <flok420> stop
[22:22:54 CEST] <flok420> I take that back
[22:22:59 CEST] <flok420> it just takes a bit
[22:25:06 CEST] <JEEB> basically "not getting video" usually means you are missing the parameter sets, which either means that they aren't getting passed or the GOP length is long enough that the libavformat input reader didn't probe enough
[22:25:19 CEST] <JEEB> audio is usually decode'able as is
[22:25:48 CEST] <flok420> I cut of 10KB and now it still plays but only for a couple fo seconds, then video stops and audio continues
[22:26:20 CEST] <JEEB> if it plays at all the parameter sets are there somewhere
[22:27:01 CEST] <flok420> ok so the freezing is a different point?
[22:27:39 CEST] <JEEB> that's just lack of packets in that stream or something like that (you'd have to look into it with more detail to find the exact reason)
[22:29:37 CEST] <flok420> ok. and about that "Verint Video Solutions S1708e"; you say it is not rtp but it says transport protocol rtp/udp and compression mode "MPEG4 compliant Simple Profile"?
[22:29:52 CEST] <JEEB> no, I meant your ffmpeg command line
[22:29:58 CEST] <flok420> oh ok
[22:29:59 CEST] <JEEB> which had "udp://blah" in there
[00:00:00 CEST] --- Mon Aug 21 2017
1
0
[00:01:01 CEST] <atomnuker> zlib instructions when
[00:01:03 CEST] <Gramner> they made the AES ones exist as both legacy and VEX. I expected new stuff to be VEX-only but they went legacy-only of all things?
[00:01:43 CEST] <TD-Linux> they have to be very careful with their power routing and "precharge"... otherwise you might droop the voltage of the core enough to cause glitches
[00:02:38 CEST] <atomnuker> you have capacitors everywhere to handle that
[00:03:31 CEST] <TD-Linux> yes but on chip capacitance is small. and some of that capacitance is in the thing you're powering up :)
[00:05:14 CEST] <TD-Linux> (I am kind of speculating because I'm not a chip designer. but such a thing is common at larger scales)
[00:36:33 CEST] <rcombs> is VEX longer?
[00:39:34 CEST] <nevcairiel> yes, but saner :p
[00:40:02 CEST] <Gramner> vex is the same length as legacy simd code in most cases
[00:40:33 CEST] <Gramner> evex is longer though, but has much more features so that's expected
[00:58:15 CEST] <iive> Gramner: don't worry, they will make VEX version, a bit later
[00:58:57 CEST] <iive> and it would probably need its own flag for detection :E
[01:11:39 CEST] <jamrial> rcombs: speaking of AES, what happened with your aes-ni patch?
[01:11:55 CEST] <jamrial> the cpu flag stuff was committed already
[01:11:59 CEST] <rcombs> it's been sitting on a branch forever
[01:12:18 CEST] <rcombs> mostly because& I guess it's not _that_ important to anybody? It's not like it'd be used for TLS
[01:12:30 CEST] <rcombs> just for a couple dumb DRM things
[01:13:22 CEST] <jamrial> i have committed plenty of shit nobody uses, so that's not an excuse to push something that works and makes a huge difference in performace :p
[01:13:56 CEST] <jamrial> s/push/not push/
[01:14:54 CEST] <jamrial> also, the flac cover art patch just needs a few small changes. it doesn't even depend on the segment and cuesheet patches
[01:16:51 CEST] <jamrial> iive: maybe they will make them vex at the same time they introduce sha3 instructions, so a new flag there will make sense
[01:16:58 CEST] <jamrial> does anything use sha3 for that matter?
[01:17:11 CEST] <iive> there is sha3?
[01:17:24 CEST] <iive> or is that sha512?
[01:17:36 CEST] <jamrial> no, sha512 is still sha2
[01:18:33 CEST] <jamrial> sha3 is a thing since late 2015 or so. but there was a lot of controversy regarding the algorith that won competition
[01:57:37 CEST] <rcombs> jamrial: no of course not, my excuse is that I'm lazy
[01:58:19 CEST] <rcombs> oh that reminds me, could someone review https://ffmpeg.org/pipermail/ffmpeg-devel/2017-August/214826.html
[01:58:26 CEST] <rcombs> in the field of things I actually do need
[09:26:41 CEST] <rcombs> this just in: HEIF is bad
[09:50:51 CEST] <mateo`> rcombs: sure it is, i've started working on adding support of it in lavc/mov, still picture with a simple layout are "ok". Things are starting to go crazy with the grid layout ... which will be the layout used by default by the apple phones with the upcoming release of iOS.
[09:51:01 CEST] <rcombs> mateo`: hi https://ffmpeg.org/pipermail/ffmpeg-devel/2017-August/215003.html
[09:51:20 CEST] <mateo`> @_@
[09:51:21 CEST] <rcombs> I haven't touched the layout shit at all
[09:51:51 CEST] <durandal_170> i added lerp function to lavu eval
[09:53:03 CEST] <mateo`> rcombs: I opened https://trac.ffmpeg.org/ticket/6521 when I started working on it
[09:53:27 CEST] <rcombs> I paid no attention and just jumped in :P
[09:53:37 CEST] <rcombs> it was fun!
[09:53:42 CEST] <rcombs> also extremely frustrating
[09:54:03 CEST] <rcombs> the whole ipco/ipma thing is batshit insane
[09:54:19 CEST] <mateo`> array of references everywhere
[09:54:29 CEST] <mateo`> with types
[09:54:55 CEST] <mateo`> ok, i will review your patch on Monday when I'm at work (i'll have my code to compare with yours)
[09:55:04 CEST] <rcombs> I call it "implementer-unfriendly" for a reason
[09:55:10 CEST] <rcombs> cool
[09:57:34 CEST] <mateo`> The issues with the grid layout is that the hevc tiles are independant to each other and we will need to find a way to expose it to either the decoder to recompose the final each (or maybe lavfilter)
[09:57:57 CEST] <mateo`> final +image
[09:58:00 CEST] <rcombs> that sounds very insane
[09:58:03 CEST] <rcombs> how is it actually used
[09:58:17 CEST] <rcombs> you said in iOS? I figured iOS was just going to produce regular single frames
[09:58:49 CEST] <mateo`> the samples a colleague gave to me where capture on iOS with the grid layout ...
[09:59:18 CEST] <mateo`> i can provide you such samples
[09:59:20 CEST] <rcombs> I haven't been able to get my phone (running iOS 11) to give me HEIFs at all
[09:59:32 CEST] <rcombs> it just gives me JPEGs with an HEIC extension
[09:59:35 CEST] <rcombs> ??????????
[09:59:52 CEST] <rcombs> it's not quite this bad though: https://b3n.org/psd-is-not-my-favourite-file-format/
[10:00:20 CEST] <mateo`> my heic files are mp4 + hevc
[10:01:12 CEST] <rcombs> I've got a few samples like that here
[10:01:22 CEST] <rcombs> but they just work with current lavf out-of-the-box
[10:01:32 CEST] <rcombs> ones with regular moovs
[10:03:09 CEST] <mateo`> see https://0x5c.me/sample.heic
[10:04:00 CEST] <mateo`> heic + grid layout
[10:04:42 CEST] <mateo`> "have fun" :D
[10:05:07 CEST] <rcombs> aww fuck, they've got infe before iloc
[10:05:22 CEST] <rcombs> whose idea was it for the order not to be fixed
[10:07:38 CEST] <mateo`> what I did in my wip is to store a memory representation of each new atoms iloc/infe/... in the MOVContext structure
[10:08:11 CEST] <mateo`> and process this representation at the end of mov_read_meta
[10:17:47 CEST] <mateo`> i introduced the following structure http://sprunge.us/JCTB
[10:19:00 CEST] <mateo`> I'll give a review on monday and send you my wip (i don't have the latest version with me atm and i'm just back from holidays)
[10:23:58 CEST] <rcombs> oh god
[10:24:28 CEST] <rcombs> I wrote a bit of extra code to handle the out-of-order elements (this wasn't hard) and the idat-offset data
[10:24:41 CEST] <rcombs> it's decoding now
[10:25:14 CEST] <mateo`> you are decoding the sample i gave to you ? :)
[10:25:47 CEST] <rcombs> https://gist.github.com/rcombs/fa1c860615fa9ee6620ef70f98c95084 please kill me
[10:26:05 CEST] <mateo`> hahahaha :D
[10:26:14 CEST] <rcombs> mateo`: yeah, as 48 512x512 tiles and some metadata
[10:26:23 CEST] <mateo`> yeah :)
[10:26:28 CEST] <rcombs> plus a 320x240 of what I presume is a thumbnail
[10:26:39 CEST] <rcombs> yeah this looks like fun
[10:26:42 CEST] <mateo`> yeah :)
[10:33:09 CEST] <rcombs> mateo`: yeah I've got no clue where the best place to reassemble these would be
[10:34:26 CEST] <rcombs> this whole format tries to do way too many things and makes it impossible to fit it into any existing workflow
[10:35:30 CEST] <mateo`> it should be exposed in such a way that external decoder (outside lavc) can use it
[10:35:51 CEST] <mateo`> in lavc an idea was to create a virtual hevc decoder
[10:36:11 CEST] <mateo`> but I have no idea if it can work
[10:37:32 CEST] <mateo`> auto inserting a filter to recompose the image is also something that can be considered
[10:37:43 CEST] <rcombs> that seems like it might be the least-insane thing
[10:37:55 CEST] <mateo`> yeah
[10:39:14 CEST] Action: mateo` afk for a bit
[10:39:59 CEST] <ubitux> this reminds me of the edit lists :3
[10:40:27 CEST] <ubitux> "where the fuck are we going to put that shit"
[10:41:44 CEST] <rcombs> yeah it's basically the same problem
[10:41:55 CEST] <rcombs> they decided to put post-decoder shit in the container
[10:45:36 CEST] <ubitux> libavpostdecoder
[10:46:21 CEST] <rcombs> libavjustdoeverything
[11:40:34 CEST] <durandal_170> gonna push pseudocolor filter soon tm
[12:45:24 CEST] <cone-595> ffmpeg 03Paul B Mahol 07master:e3a4afca07b2: avfilter: add pseudocolor filter
[12:45:24 CEST] <cone-595> ffmpeg 03Paul B Mahol 07master:1146133df811: avutil/eval: add linear interpolation helper
[15:49:23 CEST] <durandal_1707> nicolas is frustrating me
[16:07:02 CEST] <wm4> it's his job
[17:04:23 CEST] <kierank> J_Darnley: are you going to vdd
[17:09:53 CEST] <J_Darnley> No, I wasn't planning to.
[20:01:01 CEST] <durandal_1707> J_Darnley: why?, you must go, you will be missed
[23:43:29 CEST] <cone-106> ffmpeg 03Ivan Kalvachev 07master:43dab86bcd86: opus_pvq_search: Restore the proper use of conditional define and simplify the function name suffix handling.
[23:56:10 CEST] <kierank> J_Darnley: ok
[00:00:00 CEST] --- Sun Aug 20 2017
1
0
[05:22:26 CEST] <narinzea> I am using ffplay to play a video, but only the pause keys (p and space) is not working while other keys (esc, q, right, left, etc) seem to work fine. Any workarounds I could do?
[06:52:16 CEST] <Terlisimo> is there some switch that tells ffmpeg how much to search when looking for streams? Got an input stream with video, audio, subs, but when transcoding it does not detect the subs. The input stream is http://something if that means anything.
[06:52:32 CEST] <Terlisimo> I mean what percentage of file or how much time
[07:07:58 CEST] <furq> Terlisimo: -analyzeduration and/or -probesiz
[07:08:00 CEST] <furq> probesize
[07:11:02 CEST] <Terlisimo> that's it, thanks! I knew it existed but failed at googling it :)
[08:37:50 CEST] <LABcrab> Hi. I'm wondering where is the best place to talk about video cables.
[09:16:14 CEST] <Fyr> hey, guys. is FFMPEG AAC development frozen?
[09:16:41 CEST] <Fyr> the commits come once in a month without any significant change.
[10:59:08 CEST] <Mavrik> I guess the AAC support is now good enough? What's missing?
[11:00:04 CEST] <Fyr> the linear quality when using the variable bitrate option.
[11:00:45 CEST] <Mavrik> Ah
[11:00:50 CEST] <Fyr> has variable bitrate been implemented or it's sill experimental?
[11:01:12 CEST] <Mavrik> No idea, sorry :/
[11:01:20 CEST] <Mavrik> I usually use fdk-aac still
[11:02:00 CEST] <Fyr> cool, but John Van Sickle and Zeranoe do not add it to their builds.
[11:02:41 CEST] <Mavrik> Yeah, because it's not redistributable due to license.
[11:03:23 CEST] <Fyr> it's possible to distribute libfdcaac and a library.
[11:03:29 CEST] <Fyr> *as a library
[11:04:47 CEST] <c_14> but not as part of a (l)gpl'd ffmpeg
[11:08:13 CEST] <Fyr> can anybody forecast when h.265 replaces h.264?
[11:08:36 CEST] <Fyr> Blu-Rays still come with H.264.
[11:10:17 CEST] <Mavrik> It'll take awhile.
[11:10:24 CEST] <Fyr> ='(
[11:10:37 CEST] <Mavrik> Especially due to ridiculous patent costs of H.265 anything
[11:10:47 CEST] <Mavrik> There's not much effort put into libx265 due to that either
[11:11:15 CEST] <Mavrik> Google went VP9 / AV1 way as well so they're probably not going to invest into H.265 either
[11:11:38 CEST] <Fyr> Mavrik, the patents cover only the devices.
[11:12:04 CEST] <Fyr> if you produce devices, then you have to pay for each device.
[11:12:26 CEST] <Mavrik> Which patent pool? ;)
[11:12:41 CEST] <Fyr> well, it requires digging.
[11:13:44 CEST] <Mavrik> Anyway, at least HEVC Advance requires you to pay as the content distributor as well
[11:13:53 CEST] <Mavrik> Unless you give out the videos for free
[11:14:10 CEST] <Mavrik> Which makes it less attractive for content providers like Google as well, meaning less support
[11:14:52 CEST] <Fyr> then, we should press on Google to release VP10.
[11:15:07 CEST] <Mavrik> What's wrong with VP9? :)
[11:15:12 CEST] <c_14> the encoder
[11:15:12 CEST] <Mavrik> It's comparable to HEVC
[11:15:17 CEST] <Mavrik> And they're working on AV1
[11:15:17 CEST] <Fyr> lack of hardware acceleration.
[11:15:31 CEST] <Fyr> most of devices do not support it.
[11:15:33 CEST] <Mavrik> VP9 right now is hardware accelerated on more devices than HEVC probably
[11:15:43 CEST] <Mavrik> And yes, the encoder sucks ass
[11:15:47 CEST] <Fyr> not really
[11:15:50 CEST] <Mavrik> But then again, H.265 encoders suck ass as well
[11:17:03 CEST] <Fyr> the players use 10% of CPU on my computer when playing VP9, while H.264 and some others codecs use only 1-2%.
[11:18:00 CEST] <Mavrik> So what does you computer have to do with general state of HW acceleration?
[11:18:16 CEST] <Fyr> my phone and tablets support H.264, but HEVC and VP9 make them almost burn.
[11:19:43 CEST] <c_14> ffvp9 decodes as fast or faster than ffh264
[11:20:05 CEST] <Fyr> Mavrik, because most of my videos are in H.264 and not in VP9 or HEVC.
[11:20:49 CEST] <Fyr> VP9 or HEVC would halve their size and use lower bandwidth on stream videos.
[11:21:01 CEST] <Mavrik> Not sure what you're talking about.
[11:21:10 CEST] <Mavrik> I guess your computer and tablets are old enough to not support either HEVC or VP9?
[11:21:14 CEST] <Fyr> that has to do with the general state of HW acceleration.
[11:21:24 CEST] <Fyr> maybe
[11:21:31 CEST] <Mavrik> Pretty much everything that supports HEVC HW decode also supports VP9. With the exception of Apple devices I guess?
[11:21:39 CEST] <Fyr> right
[11:21:40 CEST] <Mavrik> Not sure what the state of iOS is with VP9
[11:21:47 CEST] <Fyr> add also lack of AC-3.
[11:22:05 CEST] <Fyr> 8'-(
[11:22:15 CEST] <Mavrik> AC3 can be easily CPU decoded, not a huge deal
[13:48:09 CEST] <darsain> hey guys I have this command to scale down to required dimensions:
[13:48:12 CEST] <darsain> -vf scale="trunc(min(iw\,1024)/2)*2:trunc(min(ih\,600)/2)*2:force_original_aspect_ratio=decrease"
[13:48:47 CEST] <darsain> and I'm getting "height not divisible by 2" error if the ":force_original_aspect_ratio=decrease" is there
[13:48:52 CEST] <darsain> any way how to work around it?
[13:54:16 CEST] <niklob> hello, I need a windows build with dvb_teletext encoder enabled. Google couldn't help so far. Does anyone where I could get that?
[13:55:08 CEST] <niklob> --enable-libzvbi is what I need
[14:00:43 CEST] <kepstin> darsain: yeah, that seems to be an issue with that option. If you're using expressions anyways you can probably implement the effect of that option in the expressions, but it will make it more complicated.
[14:03:04 CEST] <darsain> kepstin, uh, any pointers how? :)
[14:04:38 CEST] <kepstin> darsain: you have the input width and height (and sar) available as variables, so you can calculate "is the source video wider or taller than the desired output?", and use that in a conditional when picking the output size
[14:06:32 CEST] <darsain> kepstin, yes, that is obvious, but I'm not that familiar with the syntax and methods to do that in the -vf string
[14:10:56 CEST] <kepstin> You'd probably just want something like 'if(gte(dar\,1024/600)\,{wider}\,{narrower})'
[14:11:09 CEST] <kepstin> note that the expression docs are here: https://www.ffmpeg.org/ffmpeg-utils.html#Expression-Evaluation
[14:11:41 CEST] <darsain> kepstin, thx, I'll play around with that :)
[14:14:34 CEST] <niklob> are there ffmpeg builds with all codecs enabled available?
[14:15:03 CEST] <Cracki> maybe
[14:15:03 CEST] <kepstin> no, because ffmpeg builds with all codecs enabled are a license combination that's not redistributable
[14:15:18 CEST] <Cracki> in some jurisdictions
[14:15:21 CEST] <kepstin> there's some with *most* codecs enabled, tho.
[14:40:47 CEST] <darsain> can the expression return a string? for example, instead of doing:
[14:40:51 CEST] <darsain> "if(gte(dar\,1024/600)\,{widthCalcWide}\,{widthCalcNarrow}):if(gte(dar\,1024/600)\,{heightCalcWide}\,{heightCalcNarrow})"
[14:40:56 CEST] <darsain> to do a simpler version with only one conditional method:
[14:41:00 CEST] <darsain> "if(gte(dar\,1024/600)\,{widthCalcWide}:{heightCalcWide}\,{widthCalcNarrow}:{heightCalcNarrow})"
[14:52:41 CEST] <darsain> or rather, if I can return a stringexpression from if()
[15:29:53 CEST] <niklob> Does anyone here got mingw installed?
[15:30:24 CEST] <JEEB> i have at home
[15:30:50 CEST] <Fyr> (=
[15:30:52 CEST] <Fyr> I do
[15:31:12 CEST] <niklob> Fyr, are you able to compile with --enable-libzvbi flag?
[15:31:53 CEST] <Fyr> niklob, I've never tried to compile it with this option.
[15:32:40 CEST] <niklob> Fyr: Could you give it a try please? I can't get it done now and I can't find a build
[15:32:54 CEST] <Fyr> niklob, is it connected to:
[15:32:54 CEST] <Fyr> https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=1390
[15:32:54 CEST] <Fyr> ?
[15:33:02 CEST] <niklob> I hope it's not too much work
[15:33:53 CEST] <Fyr> so, is it a Linux library?
[15:34:01 CEST] <Fyr> why is it necessary for Windows?
[15:34:12 CEST] <niklob> I don't have linux atm :(
[15:35:51 CEST] <niklob> Oh that last link from the thread did it for me!
[15:36:02 CEST] <niklob> Thank you, Fyr! <3
[15:37:55 CEST] <niklob> Fyr, damnit actually it didn't. It got the decoder enabled, but not the encoder. I'll keep searching
[15:44:30 CEST] <JEEB> i don't think ffmpeg's libzvbi wrapper had encoding support?
[15:49:24 CEST] <CoreX> niklob i tried soo many times to add libzvbi to my compiles i gave up in the end
[16:21:59 CEST] <niklob> ( :+/ I'LL NEVER GIVE UP! GLOBALIST SCUM! AAAAAAAAAAAAAHHHHHHHHHHHH!
[16:39:39 CEST] Action: redrabbit watches UHD1 by astra
[16:39:43 CEST] <redrabbit> encoding porn
[16:39:54 CEST] <redrabbit> picture & so perfect
[16:40:26 CEST] <redrabbit> 17.8Mbit
[16:42:19 CEST] <redrabbit> im trying hard to see artifacts
[16:42:43 CEST] <redrabbit> got to get ridicoulously close to the screen lol
[16:47:09 CEST] <Fyr> redrabbit, do you mean, re-encoding?
[16:47:28 CEST] <redrabbit> its satellite tv
[16:48:24 CEST] <redrabbit> orbital position 19.2°E
[16:52:22 CEST] <Fyr> I always thought that the video downloaded from server has a better quality than the video retranslated and received as analogous.
[16:52:49 CEST] <redrabbit> well in that case, the quality is impeccable
[16:53:13 CEST] <Fyr> but quality fades with distance.
[16:53:27 CEST] <redrabbit> you are kidding right :p
[16:53:29 CEST] <Fyr> that's why people turn to digital TV.
[16:53:42 CEST] <redrabbit> nice try
[16:53:47 CEST] <Fyr> though it requires a better bandwidth.
[16:53:48 CEST] <redrabbit> such a troll rofl
[16:53:51 CEST] <redrabbit> :')
[16:54:14 CEST] <Fyr> redrabbit, send me a sample.
[16:54:29 CEST] <redrabbit> capping right now
[16:58:31 CEST] <redrabbit> i hope you wont mind the wait, upload is crowded atm, uploading stuff to yt
[17:07:18 CEST] <JEEB> redrabbit: any broadcast encode is in no way special. the artifacts depending on the format are somewhat different (in addition to encoder-specific stuff if an encoder has faults that end up in visible artifacting), and you might just not be noticing them due to the added resolution.
[17:07:49 CEST] <JEEB> broadcast in general is limited through VBV/HRD and usually has short GOPs etc
[17:07:54 CEST] <redrabbit> just saying it looks better than current hdtv
[17:08:47 CEST] <Fyr> redrabbit, does it look better than current 4k?
[17:09:07 CEST] <JEEB> define whatever you mean with that first
[17:09:41 CEST] <Mavrik> That's usually because broadcast TV has significantly higher bitrates than the compressed dreck they stream over IPTV or cable
[17:09:47 CEST] <Mavrik> At least here in EU on average.
[17:09:51 CEST] <Fyr> I mean than current non-free 4k porn distributed on the Internet.
[17:10:32 CEST] <JEEB> I've had 40mbps 2160p60 BT.2020 streams and they definitely were showing off the fact that it was a lulzy broadcast encoder
[17:10:34 CEST] <redrabbit> it is 4K
[17:11:13 CEST] <redrabbit> imgpost.cf/UHD1.ts
[17:11:16 CEST] <JEEB> of course, if you watch it in a way that the samples are small enough you might not notice the artifacts just due to the added amount of stuff
[17:11:35 CEST] <JEEB> (that is the reason why broadcast wants to go 8K)
[17:11:56 CEST] <JEEB> "because the compression artifacts on a 4K screen will look smaller"
[17:12:26 CEST] <Guest39209> Is there any good way to add chapters with the C APIs?
[17:12:42 CEST] <JEEB> chapters most definitely are in the API
[17:12:50 CEST] <JEEB> check the muxer you'll be poking
[17:13:54 CEST] <redrabbit> looks way better than current 1080p tv streams
[17:14:25 CEST] <leif> JEEB: Ah, okay, so you insert it at the start, before you start adding packets?
[17:14:58 CEST] <JEEB> leif: not sure how exactly it works, that's why I noted checking some code in the FFmpeg repo
[17:16:08 CEST] <leif> JEEB: Makes sense, thanks.
[17:16:39 CEST] <BtbN> Why don't they just use non-shit encoders?
[17:16:56 CEST] <BtbN> Seriously, a single powerful PC with a bunch of x264 processes could do a better job
[17:17:13 CEST] <JEEB> because politics
[17:17:21 CEST] <JEEB> it's always been a VeryExpensiveBox
[17:17:27 CEST] <JEEB> thus it will be a VeryExpensiveBox
[17:17:35 CEST] <JEEB> (and maybe someone somewhere got some blowjobs)
[17:17:38 CEST] <Fyr> redrabbit, the picture IS NOT impeccable.
[17:17:43 CEST] <BtbN> I don't think x264 supports multi-stream-cbr.
[17:17:55 CEST] <BtbN> But that could definitely be added
[17:18:19 CEST] <redrabbit> its quite good for a satellite stream
[17:18:24 CEST] <Fyr> it looks lakie hardware encoding with the highest possible quality.
[17:18:48 CEST] <JEEB> redrabbit: if it's just 17Mbps that's defintely on the lower spectrum of satellite broadcast
[17:18:48 CEST] <redrabbit> yeah its hw encoding
[17:18:54 CEST] <Fyr> good, but software encoding is better in comparable bitrate.
[17:18:57 CEST] <JEEB> I've had 40Mbps satellite broadcasts
[17:19:29 CEST] <redrabbit> on what orbital position
[17:19:55 CEST] <JEEB> let me check, it was the "4K Channel" that was received in Japan
[17:20:20 CEST] <redrabbit> max bitrate ive seen in europe from my rotor is 25Mbit
[17:20:28 CEST] <redrabbit> on some 4K test channels
[17:20:58 CEST] <JEEB> ok, 40Mbps was a bit over the top, it seems like it was 35Mbps
[17:21:12 CEST] <JEEB> DVB-S2 8PSK 3/5
[17:22:14 CEST] <redrabbit> what i like about that 17Mbit 4K is the fact that its closer to actual bitrates for 1080p and still looks a ton better.. could possibly end up used for actual broadcastings in the future
[17:22:21 CEST] <redrabbit> can't wait to see the low end disapear
[17:22:22 CEST] <redrabbit> :p
[17:23:09 CEST] <redrabbit> tons of horrid stuff on sattelite
[17:23:11 CEST] <JEEB> anyways, I've got some samples from that channel and the encoder's just shit :P
[17:23:13 CEST] <redrabbit> mpeg2 rules
[17:23:33 CEST] <redrabbit> i posted the sample JEEB
[17:23:44 CEST] <redrabbit> can judge by youself
[17:23:54 CEST] <JEEB> I have some earlier samples from that one as well
[17:24:12 CEST] <JEEB> didn't really show anything that AVC couldn't do IMHO
[17:24:16 CEST] <atomnuker> hevc video and yet crappy mpeg2 audio at 192kbps
[17:24:47 CEST] <redrabbit> yeah its crazy how bad the settings are on satellite broadcasting
[17:24:57 CEST] <redrabbit> im comparing satellite broadcasting to satellite broadcasting in that case
[17:26:04 CEST] <niklob> How to encode teletext subtitles, guys. :(
[17:26:41 CEST] <JEEB> niklob: implement it either in libavcodec or write a libzvbi wrapper for encoding if libzvbi supports encoding it
[17:29:08 CEST] <kerio> teletext subtitles?
[17:29:09 CEST] <kerio> what year is this
[17:29:22 CEST] <JEEB> it's the DVB way of passing text based subtitles
[17:29:26 CEST] <JEEB> (Ž4@)
[17:29:41 CEST] <JEEB> just like US likes its ATSC captions within the video stream
[17:29:42 CEST] <redrabbit> i have to setup that on my transcoding setup as well
[17:30:14 CEST] <kerio> JEEB: not on fancy hd streams for sure tho
[17:30:24 CEST] <JEEB> yes, even in HD
[17:30:32 CEST] <JEEB> if you have text based subs
[17:30:36 CEST] <JEEB> they are teletext in DVB
[17:30:36 CEST] <redrabbit> gross
[17:30:53 CEST] <JEEB> image based subtitles are usually DVB subtitles because that lets you do higher resolution
[17:31:48 CEST] <kerio> hmm
[17:32:18 CEST] <JEEB> the libavcodec libzvbi wrapper will decode teletext in image mode by default, though. which is why it can look like shit
[17:32:25 CEST] <JEEB> you have to select the text mode manually
[17:32:31 CEST] <kerio> anyway my parents managed to buy a tv with integrated sat tuner and no SCART port
[17:33:15 CEST] <kerio> so we couldn't connect our old tuner box, and we had to buy a CAM :|
[17:33:29 CEST] <JEEB> heh
[17:33:30 CEST] <kerio> who makes a tv without SCART
[17:33:42 CEST] <JEEB> I'm pretty sure my current TV has no SCART
[17:33:50 CEST] <kerio> who makes a tv without SCART in europe
[17:34:01 CEST] <JEEB> I had to buy a RGB SCART cable for my console + SCART->HDMI converter
[17:34:04 CEST] <JEEB> this is Europe :
[17:34:05 CEST] <JEEB> :D
[17:34:06 CEST] <kerio> dear lord
[17:34:10 CEST] <kerio> hold on what console is that
[17:34:16 CEST] <JEEB> original xbox
[17:34:20 CEST] <kerio> ...y tho
[17:34:27 CEST] <kerio> skies of arcadia?
[17:34:29 CEST] <JEEB> because I have it and i want to have the capability to play it?
[17:34:50 CEST] <JEEB> there's some old games that were never released on anything else later
[17:34:53 CEST] <kerio> i mean you could just play halo with a controller on pc
[17:34:59 CEST] <kerio> :^)
[17:35:04 CEST] <JEEB> and Xbox emulation isn't exactly in good state
[17:35:11 CEST] <redrabbit> because you can is enough
[17:35:11 CEST] <redrabbit> :p
[17:35:27 CEST] <JEEB> I will probably have to get some stuff for my Megadrive too
[17:35:28 CEST] <JEEB> :D
[17:35:33 CEST] <kerio> yea it strikes a weird imbalance of being quite powerful, because pc, but hard to emulate, because not really pc
[17:35:33 CEST] <BtbN> Scart->HDMI converter that understands RGS?
[17:35:35 CEST] <BtbN> *RGB
[17:35:41 CEST] <redrabbit> keepin' the gear working is a satisfaction
[17:35:44 CEST] <redrabbit> even if you dont use it
[17:35:44 CEST] <JEEB> BtbN: at least I think so
[17:35:44 CEST] <redrabbit> lol
[17:35:52 CEST] <JEEB> BtbN: it still does weird upscaling and filtering though
[17:35:54 CEST] <BtbN> The ones I dealt with just used the composite signal and ignored the high quality RGB
[17:35:58 CEST] <kerio> redrabbit: yea that's why i bought another flash cart
[17:36:09 CEST] <kerio> even though i haven't been playing with my 3ds at all
[17:36:41 CEST] <BtbN> If you want high quality RGB to Digital, you'll want something like an OSSC.
[17:37:16 CEST] <kerio> "high quality"
[17:37:20 CEST] <JEEB> yea, the box I have currently is crap but it works well enough
[17:37:29 CEST] <JEEB> (although I'm indeed not 100% sure if it's RGB input or not)
[17:37:53 CEST] <BtbN> RGB is the highest quality you can possibly get out of pre-HDMI consoles
[17:38:13 CEST] <BtbN> If you have money to spare, you can also get a Framemeister. That's supposedly even better, but not open-source.
[17:41:42 CEST] <BtbN> The setup we had at ESA primarily involved an OSSC and an iScan VP50, to generate optimal quality digital image, no matter what console you connected to it.
[17:41:57 CEST] <BtbN> And some other devices which I forgot about.
[17:44:37 CEST] <kerio> BtbN: rgb? not component?
[17:44:44 CEST] <kerio> rgb is still interlaced, right?
[17:44:56 CEST] <BtbN> Can be, but doesn't have to
[17:45:11 CEST] <BtbN> A lot of older consoles can output RGB, or can easily be modded to do so.
[17:45:28 CEST] <BtbN> And out of all the possible outputs, it's by far the best
[17:45:39 CEST] <kerio> why did i buy that component cable for the wii then ð€
[17:45:46 CEST] <BtbN> Wii can't output RGB
[17:45:51 CEST] <BtbN> Component is the best you get there
[17:45:56 CEST] <furq> skies of arcadia fucking sucks
[17:45:57 CEST] <JEEB> without HW modding that is
[17:45:59 CEST] <furq> i just wanted to mention that
[17:46:16 CEST] <BtbN> sure, but why would you mod the Wii, which can do Component natively, to get RGB out of there?
[17:46:20 CEST] <BtbN> The benefit of that is not worth it
[17:46:40 CEST] <JEEB> true
[17:46:41 CEST] <kerio> especially if you're going to convert it to yuv anyway :^)
[17:47:30 CEST] <BtbN> But on very old consoles, like (S)NES, getting RGB is just a matter of soldering some pre-existing connectors on the PCB to some new RCA connector on the back
[17:48:04 CEST] <JEEB> yea
[17:48:50 CEST] <BtbN> And I think all the Sony-Consoles just support RGB natively in their better SCART cables
[17:49:01 CEST] <BtbN> But not YCbCr
[17:50:51 CEST] <furq> i'm not really sure what you'd do with a megadrive
[17:50:57 CEST] <furq> it does rgb natively but all the adapters i've seen are scart
[17:51:25 CEST] <BtbN> You put it into a Syncstrike
[17:51:41 CEST] <furq> oh nvm there are some component cables for it
[17:52:59 CEST] <JEEB> I think I checked the alternatives for my model from some UK cable store lately
[17:53:21 CEST] <furq> scart cables are pretty cheap and widely available
[17:53:21 CEST] <BtbN> The Standard-Setup for Scart-Console was SCART from console into Syncstrike to VGA, VGA into OSSC, into iScan VP50, output in 1080p60 HDMI, to capture card.
[17:53:21 CEST] <JEEB> something like https://www.retrogamingcables.co.uk/games-consoles/sega/mega-drive-2/sega-m…
[17:53:40 CEST] <furq> yeah
[17:53:56 CEST] <furq> i'm glad i decided to stick with emulators
[17:54:03 CEST] <furq> especially given how expensive all this shit is now
[17:54:20 CEST] <BtbN> We had 5 racks with a full capture chain. I think each rack was easily worth like 10k¬
[17:54:42 CEST] <furq> i think i mentioned there's a CEX near me that was selling a megadrive and mega-cd for £120
[17:54:55 CEST] <furq> the same shop is now selling a boxed alisia dragoon for £40
[17:55:18 CEST] <furq> what kind of brain sickness would compel a man to spend £40 on alisia dragoon
[17:55:23 CEST] <furq> it wasn't even mint condition or anything
[17:55:26 CEST] <BtbN> need something like this for most classic RGB consoles http://arcadeforge.net/Scaler-and-Strike-Devices/Sync-Strike::15.html?langu…
[17:57:20 CEST] <furq> i do wish i'd bought that 1-slot MVS my friend was selling a few years ago
[17:57:32 CEST] <furq> those have exploded in value lately
[18:02:42 CEST] <JEEB> hah, https://www.retrogamingcables.co.uk/games-consoles/sega/mega-drive-2/sega-m…
[18:02:57 CEST] <JEEB> BtbN: how much bullshit is in this description? :D
[18:09:23 CEST] <BtbN> which one? The SyncStrike one, or the cable one?
[18:09:39 CEST] <JEEB> the cable I just linked :D
[18:09:54 CEST] <JEEB> although I just noticed that everything for MD2 is out of stock anyways
[18:09:57 CEST] <JEEB> (Ž4@)
[18:10:05 CEST] <furq> should've got a 1
[18:10:25 CEST] <JEEB> hey, it's a thing I got as a BD present back in my kiddo years :D
[18:10:31 CEST] <JEEB> couldn't actually select what I got
[18:10:38 CEST] <BtbN> reads quite reasonable to me. A bit over the top on praising the cable quality though.
[18:10:44 CEST] <furq> i had a 1 and a 32x and my parents chucked them when i moved out
[18:10:52 CEST] <furq> i could've got £150 for those now
[18:10:58 CEST] <BtbN> I'd rather buy a seperate SyncStrike and a normal cable. Would be cheaper and more versatile.
[18:11:33 CEST] <BtbN> It's essentially just a built-in SyncStrike into the plug
[18:12:24 CEST] <JEEB> furq: in my case I passed the MD2 to my Russian family side's kids
[18:12:36 CEST] <JEEB> and now they no longer care about it so I'm going to take it back and check it
[18:15:29 CEST] <furq> are they not big fans of >;K<8 @C:0<8
[18:25:06 CEST] <cryptodechange> Encoding DVDs again, what was it again when 2 frames had scanlines and 3 were fine? Telecine right?
[18:25:14 CEST] <furq> yes
[18:26:24 CEST] <cryptodechange> I found a thread somewhere that had a pretty nifty cheat sheet for telecine, interlaced etc
[18:29:28 CEST] <cryptodechange> Scan type : Interlaced, Scan order : Top Field First
[18:31:10 CEST] <cbsrobot> cryptodechange: https://ffmpeg.org/ffmpeg-filters.html#detelecine
[18:33:21 CEST] <furq> cryptodechange: i've probably mentioned this before but all DVDs show as tff interlaced
[18:33:37 CEST] <furq> you need to check it by eye
[18:34:56 CEST] <cryptodechange> Yeah I spoke about this months ago, I've yet to experiment with it as I was focusing on my blurays for the time being
[18:35:03 CEST] <cryptodechange> but it's definitely 3 frames progressive, 2 interlaced
[18:36:08 CEST] <furq> well yeah there are a bunch of filters for it of varying complexity for sources of varying complexity
[18:36:13 CEST] <furq> detelecine is the most basic iirc
[18:37:50 CEST] <cryptodechange> Also, if the end result is a different fps, would I need to reencode the audio?
[18:38:00 CEST] <furq> no
[18:38:16 CEST] Action: cryptodechange usually leaves audio untouched
[18:38:52 CEST] <furq> the fps changes from 30 to 24 because you're combining two frames out of every five
[18:39:03 CEST] <furq> the duration stays the same
[18:39:29 CEST] <JEEB> no, you remove fields so that it goes down
[18:39:43 CEST] <JEEB> combining just puts two fields together
[18:40:01 CEST] <JEEB> so you get 30/1.001Hz out of 60/1.001Hz fields
[18:40:19 CEST] <cryptodechange> i see, makes sense
[18:40:37 CEST] <furq> sure
[18:40:45 CEST] <furq> you're combining half of one frame with half of the next
[18:40:52 CEST] <JEEB> uhh, no?
[18:41:01 CEST] <JEEB> and that's field matching
[18:41:09 CEST] <JEEB> field match => decimation
[18:41:09 CEST] <redrabbit> does all american tv is shot at 30fps
[18:41:19 CEST] <furq> no, some is shot at 24
[18:41:26 CEST] <furq> and some is shot at 60
[18:41:50 CEST] <JEEB> so you first do field matching so that you get 30Hz frames out of 60Hz fields with the minimum amount of combing
[18:42:02 CEST] <JEEB> and then you decimate (usually to 24Hz from 30Hz)
[18:42:30 CEST] <JEEB> usually stuff that requires decimation can be seen after field matching as the pattern ends up being 1-2-3-4-4 instead of 1-2-3-4-5
[18:51:21 CEST] <cryptodechange> the original framerate is 29.970 (30000/1001) FPS
[18:53:59 CEST] <JEEB> cryptodechange: the coded frame rate (with fields put together usually)
[18:54:08 CEST] <JEEB> that really means... not much with interlacism
[18:54:18 CEST] <JEEB> it just means what you get in, not what's inside of it
[19:02:19 CEST] <cryptodechange> So something like -vf "fps=24000/1001,fieldmatch,yadif=deint=interlaced,decimate"
[19:03:01 CEST] <JEEB> wat @ the fps override in the beginning
[19:03:21 CEST] <cryptodechange> me rn https://cdn-images-1.medium.com/max/455/1*snTXFElFuQLSFDnvZKJ6IA.png
[19:03:38 CEST] <JEEB> you can do deint after fieldmatch but that usually means you're expecting the source to not be pure telecine
[19:03:51 CEST] <JEEB> which it can be, but you should check
[19:04:19 CEST] <JEEB> doing extra stuff if not needed is kind of meh. you will have to quality check the transcode anyways
[19:05:02 CEST] <cryptodechange> https://lists.ffmpeg.org/pipermail/ffmpeg-user/2014-May/021253.html
[19:05:46 CEST] <cryptodechange> so the decimate and the fps is redundant
[19:06:04 CEST] <JEEB> no, it just means that you are field matching something that is supposedly already 24Hz
[19:06:19 CEST] <JEEB> which means you go (4/5)*24Hz
[19:06:42 CEST] <JEEB> (unless decimate filter picks another decimation pattern with 24Hz input)
[19:07:09 CEST] <JEEB> and yes, the yadif is often added so that users don't ask more questions and possible "no match found" fields would get "magically handled"
[19:08:38 CEST] <JEEB> also don't expect blu-rays to be free of interlacism btw, I've seen plenty of blu-rays with interlacism on them :V (in both telecined and truly interlaced form)
[19:08:53 CEST] <JEEB> although you have much higher chances of getting progressive stuff on the disc
[19:09:46 CEST] <JEEB> since unlike older things like DVD the spec doesn't require interlacism (even if soft telecine with the headers that mark when an interlaced device should duplicate fields)
[19:11:21 CEST] <cryptodechange> oh jeez, weirdly most DVDs I play (animated, at least), I can notice it off the bat
[19:12:44 CEST] <JEEB> you get extra points for finding stuff that's somehow been f'd up. like the opening of the 2008 animated series "true tears" having two separate telecine patterns at the same time
[19:12:54 CEST] <JEEB> young me was... rather confused
[19:13:01 CEST] <cryptodechange> ;_;
[19:13:02 CEST] <JEEB> "I field match this and it's still wrong?!"
[19:13:22 CEST] <JEEB> (since field matching would only fix one of the patterns)
[19:13:27 CEST] <cryptodechange> i suppose -vf "fieldmatch,fieldmatch" won't work
[19:13:41 CEST] <JEEB> nope
[19:13:43 CEST] <cryptodechange> :P
[19:14:08 CEST] <cryptodechange> following some oldish ffmpeg mail list trail
[19:14:17 CEST] <JEEB> and then there's the more usual case of "whomever edited this stuff did it in interlaced mode"
[19:14:17 CEST] <cryptodechange> how -vf fieldmatch,yadif=deint=interlaced does most the work but can leave juddering
[19:14:48 CEST] <JEEB> that does just fieldmatch, if the content looks like it has doubling (1-2-3-4-4 instead of 1-2-3-4-5) you of course decimate
[19:15:03 CEST] <cryptodechange> so -vf fieldmatch,yadif=deint=interlaced,decimate \o/
[19:15:23 CEST] <cryptodechange> batch encode without visual comparison starting naow!
[19:15:31 CEST] <JEEB> :<
[19:15:50 CEST] <JEEB> most likely it will be "fine", but I still hate batch crap for interlaced content
[19:15:54 CEST] <CoreX> somebody said the fieldmatch filter is terrible in ffmpeg
[19:16:02 CEST] <CoreX> is that true or just alot of BS ?
[19:16:08 CEST] Action: cryptodechange hits ctrl+c
[19:16:15 CEST] <JEEB> it can be, but IIRC it was a port of the Vapoursynth filter which seemed OK
[19:16:27 CEST] <JEEB> which in its own part based on the TIVTC filter in Avisynth
[19:16:47 CEST] <JEEB> (which is what pretty much everyone used in avisynth)
[19:17:20 CEST] <CoreX> so better to stick with avs+dlls if you want perfection with encoding in ffmpeg
[19:17:22 CEST] <JEEB> I generally hate not being able to preview the result so I'm mostly using avs (and vapoursynth nowadays) for most filtering
[19:17:52 CEST] <cryptodechange> I'll test a 150 frame encode once makemkv has finished
[19:17:57 CEST] <CoreX> yeah same here tho all my stuff is yadif based pal content but still its intresting to know
[19:18:49 CEST] <cryptodechange> my server spent a week encoding the dbz bluray, and my nlmeans filter made the backgrounds shake a little, where the frames misaligned but the grain somewhat hid it
[19:19:41 CEST] <cryptodechange> apart from that I'm pretty happy with it
[19:19:55 CEST] <cryptodechange> the negative smartblur (forgot who mentioned it) worked well
[19:20:33 CEST] <durandal_1707> JEEB: you can preview filters with mpv
[19:22:14 CEST] <JEEB> durandal_1707: true
[19:22:19 CEST] <JEEB> you just have to remember --pause
[20:29:23 CEST] <zyme> This might Dumb/pointless/not be the best place to ask: But does anyone know if there was a design reason or pattern basis for the resolutions chosen for HD standards? or it it just a coincidence that if you calculate the pixel count of 720p and divide by 1080 you get 853.333~ which is the column count for 480p when both are standard 16:9; and is it also coincidental that 1080-480=600 which is exactly halfway between 480
[20:29:23 CEST] <zyme> and 720? Just seems like there was an mathematical idealology used for deciding the ideal resolution difference/increments. I'm thinking the up/downscale encoding processes are more efficient at specific amount intervals instead of being just reliant on maintaining similar ratios and being different in efficiency or accuracy only based off the % resolution size difference.
[20:34:58 CEST] <BtbN> They are just multiples of 360?
[21:16:53 CEST] <cryptodechange> I asked yesterday about packet/frame loss on a network drive, what about a 100% HDD load?
[21:25:20 CEST] <BtbN> what about it? Things will be slow.
[22:10:31 CEST] <dystopia_> so i have a weird issue
[22:10:51 CEST] <dystopia_> somtimes when encoding somthing, ffmpeg will just freeze for like a minute
[22:10:59 CEST] <dystopia_> then just continue going like normal
[22:11:24 CEST] <dystopia_> could this be a sign the drive it's running from is dying
[22:11:26 CEST] <dystopia_> or somthing else
[22:17:10 CEST] <BtbN> most likely waiting on io
[22:31:43 CEST] <jj15> Hey all, I'd like to place an audio EQ into a stream. I'm unsure of the best way to do this. Only thing I can think of is converting the audio to a visual equaliser and then layering that over the original video. Is there a better way to do it?
[23:06:44 CEST] <furq> jj15: what do you mean by audio EQ
[23:07:37 CEST] <jj15> A visual audio equaliser. You see them on videos. Like the on here https://www.youtube.com/watch?v=cmT_hJdvDp0
[23:08:06 CEST] <furq> !filter showspectrum
[23:08:06 CEST] <nfobot> furq: http://ffmpeg.org/ffmpeg-filters.html#showspectrum-1
[23:08:11 CEST] <furq> that's the closest thing ffmpeg has afaik
[23:08:25 CEST] <furq> and it doesn't really look as neat as that
[23:08:54 CEST] <furq> er
[23:08:56 CEST] <furq> !filter showfreqs
[23:08:56 CEST] <nfobot> furq: http://ffmpeg.org/ffmpeg-filters.html#showfreqs
[23:08:59 CEST] <furq> that, rather
[23:10:42 CEST] <jj15> I took a look at those, but yeah as you say they don't look too good. I was thinking to do it in aftereffects, export it and just use ffmpeg for the streaming. I think that's as good as I'm going to get.
[23:42:47 CEST] <lightbulb6> hello. i'm trying to encode with ffmpeg using libvpx-vp9 with the `-row-mt` switch under windows using the latest zeranoe build (2017-08-17), but ffmpeg does not recognize that parameter. i've also tried the static linux build, once again 2017-08-17, and it recognizes the parameter just fine
[23:45:35 CEST] <lightbulb6> apparently both builds were built with vpx version 1.6.1, so i can't really see why the zeranoe build would not recognize that switch
[23:47:27 CEST] <furq> i don't think row-mt has made it into a release yet
[23:47:32 CEST] <furq> you still need a git build iirc
[23:49:04 CEST] <lightbulb6> so the libvpx version zeranoe uses does not have that yet? i'll try building ffmpeg myself on windows, thanks
[00:00:00 CEST] --- Sun Aug 20 2017
1
0
[03:59:43 CEST] <cone-808> ffmpeg 03Zhao Zhili 07master:7fb4b0368de1: ffprobe: fix use of uninitialized variable
[03:59:43 CEST] <cone-808> ffmpeg 03Jacob Trimble 07master:f4544163b276: libavformat/mov: Fix inserting frames before current_frame.
[11:40:27 CEST] <nevcairiel> always funny when people screwed themself by hiding their super-secret x264 commandlines by stripping out the metadata and now having decoding broken because their magic 4:4:4 lossless encodes were not standards conform and no metadata to identify them as such =p
[11:41:00 CEST] <nevcairiel> apparently the recent cabac fixes made decoding fail entirely now, previously it only degraded the image a bit =p
[11:41:54 CEST] <JEEB> yayifications
[11:42:03 CEST] <JEEB> and yea, version SEI removal is just funny
[11:43:26 CEST] <RiCON> nevcairiel: they'll fix it by telling people to use an older lavfilters/mpc
[11:45:19 CEST] <nevcairiel> probably
[11:45:36 CEST] <nevcairiel> someone should make a bsf filter to re-add the metadata
[11:46:14 CEST] <nevcairiel> i was going to suggest to make a bsf to fix the encodes, but thats probably not possible
[11:46:36 CEST] <wbs> maybe using jkqxz's coded bitstream framework?
[11:52:34 CEST] <wm4> there was also the thing where not feeding the first packet to the decoder would break decoding of some 4:4:4 video (or something similar), which broke seeking for me
[12:41:50 CEST] <cone-227> ffmpeg 03Michael Niedermayer 07master:c359c51947c9: avcodec/rangecoder: Do not increase the pointer beyond the buffer
[12:41:50 CEST] <cone-227> ffmpeg 03Michael Niedermayer 07master:b9f92093a102: avcodec/ffv1dec: Check for bitstream end in decode_line()
[12:41:50 CEST] <cone-227> ffmpeg 03Michael Niedermayer 07master:cadab5a2a74d: avcodec/pixlet: fixes integer overflow in read_highpass()
[13:58:46 CEST] <wm4> wbs: not sure if you know about uwp/winrt, but pseudo relocs don't work there, and ffmpeg triggers pseudo relocs with some avpriv_ variables
[13:58:59 CEST] <wm4> do you think it would make sense to replace them all with getter functions?
[13:59:10 CEST] <wbs> wm4: what exactly are pseudo relocs here?
[13:59:47 CEST] <wbs> and is this avpriv_ entries that are data variables instead of functions?
[13:59:51 CEST] <wbs> in DLL interfaces?
[14:00:06 CEST] <wbs> s/in/across/
[14:01:20 CEST] <wm4> wbs: pseudo relocs are relocations emited by gnu ld (or something) and performed by the mingw runtime when the DLL is initialized
[14:01:32 CEST] <wm4> they require making parts of the code writable temporarily
[14:01:42 CEST] <wm4> uwp prevents that
[14:01:45 CEST] <wbs> ah
[14:01:58 CEST] <wm4> (although there are weird exceptions intended for JITs, not sure if usable)
[14:02:28 CEST] <wm4> but I think ffmpeg had a strong opinion on not exporting variables via the API (wasn't the reason windows DLLs?)
[14:02:33 CEST] <wbs> I guess that happens when the variable actually is exported from a DLL, but the code using it doesn't really know (no __declspec(dllimport) etc)
[14:02:36 CEST] <wm4> just that this is ignored for avpriv symbols
[14:02:41 CEST] <wm4> yes
[14:02:44 CEST] <wbs> yes, exported data is a huge problem in DLLs
[14:03:01 CEST] <wbs> when making msvc dll support work, we got rid of as much of it as we needed in libav, to get them working
[14:03:15 CEST] <wm4> well, ffmpeg is back to 17 of such variables, lol
[14:03:29 CEST] <nevcairiel> there are no imported data variables
[14:03:36 CEST] <nevcairiel> that would just break shared builds entirely
[14:03:45 CEST] <wm4> I'm talking about stuff like avpriv_mjpeg_bits_ac_luminance
[14:04:08 CEST] <wm4> grep "extern.*avpriv_"
[14:04:24 CEST] <wbs> hm. libav has got that one as well, used from libavformat
[14:04:43 CEST] <wm4> it would work if the libs were all in one DLL
[14:05:13 CEST] <nevcairiel> it would probably also work if there was a smart macro that swaps around between dllexport and dllimport like some other projects have
[14:05:17 CEST] <nevcairiel> but alas we didnt bother with that
[14:05:29 CEST] <wbs> yeah, and it's pretty tricky when all libs are built at once
[14:05:35 CEST] <wbs> and what's internal for one is external for another
[14:06:05 CEST] Action: wbs thanks past self
[14:06:10 CEST] <wbs> d66c52c2b369401ba4face1c171ccb19130b7a31 has got a pretty good writeup
[14:06:14 CEST] <nevcairiel> hehe
[14:06:25 CEST] <wbs> in libav, there's one such variable in libavformat/rtpdec_jpeg.c
[14:06:38 CEST] <wbs> on mingw, such things are fixed up automatically. on msvc, they aren't
[14:06:41 CEST] <nevcairiel> in normal builds you just get a tiny bit of overhead from one extra deref of such not-really-imported data objects
[14:06:55 CEST] <wbs> so shared msvc builds would actually crash in libavformat/rtpdec_jpeg.c
[14:07:10 CEST] <wbs> except nobody using shared msvc builds probably have touched that piece of code, since those aren't covered by fate tests
[14:07:13 CEST] <wm4> <nevcairiel> it would probably also work if there was a smart macro that swaps around between dllexport and dllimport like some other projects have <- wouldn't be wrong for avpriv variables
[14:08:01 CEST] <nevcairiel> wbs: as long as those tables are marked av_export i would think it should work
[14:08:15 CEST] <wbs> nevcairiel: yeah, so it seems.. when I read further in my commit message essay
[14:08:41 CEST] <wbs> that's clearly one of the better commit messages I've written at least, since current self don't remember half of the tradeoffs and things we fought back then
[14:09:17 CEST] <wbs> wm4: are these cases that aren't marked with av_export?
[14:09:18 CEST] <nevcairiel> i use shared msvc builds for dev/debugging often enough, never ran into a serious issue like that
[14:09:27 CEST] <iive> am I correct to assume that these "variables" are shared constants?
[14:09:40 CEST] <wbs> nevcairiel: on the other hand, I'm pretty sure you never ran the rtpdec_jpeg code either :P
[14:09:49 CEST] <nevcairiel> nah, but its not the only one
[14:10:00 CEST] <wbs> yeah, and I think the av_export hack did work that way yeah
[14:10:08 CEST] <wm4> wbs: it's marked av_export there
[14:10:25 CEST] <nevcairiel> the problem is when building the library that actually contains the symbol
[14:10:32 CEST] <wm4> the specific one I tested (removing a use of such a symbol and then checking the size of the pseudo reloc table)
[14:10:35 CEST] <nevcairiel> because its marked as dllimport but isnt actually imported
[14:10:43 CEST] <wbs> yup
[14:10:49 CEST] <nevcairiel> it kind of works but emits a warning
[14:10:50 CEST] <wbs> and msvc handles it but moans loudly
[14:10:55 CEST] <wm4> <iive> am I correct to assume that these "variables" are shared constants? <- yes
[14:11:32 CEST] <wm4> how do you even switch between import/export
[14:11:38 CEST] <wm4> so inconvenient
[14:11:49 CEST] <wbs> you need to have something like -DBUILDING_LAVC
[14:11:55 CEST] <wbs> and a separate av_lavc_export define
[14:11:57 CEST] <nevcairiel> well most projects just have one library they build
[14:12:02 CEST] <nevcairiel> so they build that with dllexport
[14:12:11 CEST] <nevcairiel> and whoever uses the l ibrary then uses dllimport
[14:12:12 CEST] <wbs> which changes to __declspec(dllexport) for the object files that belong to lavc
[14:12:16 CEST] <nevcairiel> easy to provide with some macros
[14:12:30 CEST] <nevcairiel> more effort with 10 libraries =p
[14:12:48 CEST] <iive> there was a recent discussion into making a single ffmpeg library.
[14:13:09 CEST] <wm4> so why not just replace all of this with getters
[14:13:22 CEST] <wm4> or would such a patch be rejected because too ugly and PERFORMANCELOSS?
[14:15:04 CEST] <wbs> in most cases, for anything in e.g. libavformat, the performance requirements should be one order of magnitude less than in lavc
[14:15:23 CEST] <wbs> so for that pair, using an accessor should be fine I think. it's uglier and a lot of work though
[14:15:50 CEST] <nevcairiel> most of those tables are some sort of codec tables that the demuxers/muxers want access to
[14:16:08 CEST] <nevcairiel> iirc some of the aac tables are like that as well
[14:16:12 CEST] <nevcairiel> sample rate, channel config etc
[14:16:17 CEST] <wbs> yeah
[14:16:27 CEST] <wbs> absolutely not performance critical at least
[14:16:35 CEST] <wm4> so I'd churn out a gigantic patch that replaces all those av_export variables
[14:17:57 CEST] <wm4> it's also silly that ffmpeg needs to make code writeable just because it's built as DLL
[14:18:11 CEST] <wm4> I'm kind of surprised this didn't upset any security BS software yet
[14:24:13 CEST] <wm4> hm, might also be worth thinking about adding a single-lib build mode
[14:24:29 CEST] <wm4> but since that require dealing with all the make files, I'd rather not
[15:20:14 CEST] <RiCON> wm4: there's a thread talking about that already, iirc
[15:20:58 CEST] <RiCON> wm4: http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2017-July/214213.html
[15:22:03 CEST] <wm4> oh nice
[15:23:00 CEST] <wm4> or not nice, but still
[16:34:52 CEST] <atomnuker> iive: what's left with your pvq search patches? does something more need doing?
[16:35:39 CEST] <iive> nothing
[16:35:42 CEST] <iive> afaik
[16:36:22 CEST] <iive> they've been waiting for about 10 days for somebody to approve them.
[16:40:33 CEST] <atomnuker> k, I'll push them tonight
[17:00:12 CEST] <iive> \o/
[18:12:00 CEST] <atomnuker> iive: I got v7 here, but I can't find the x86util/inc patches
[18:12:09 CEST] <atomnuker> (did you post them in another thread/do they exist?)
[18:12:21 CEST] <iive> yeh, another name
[18:12:48 CEST] <iive> https://ffmpeg.org/pipermail/ffmpeg-devel/2017-August/214630.html
[18:13:34 CEST] <iive> gmail web seems to breaks the threading if subject is changed
[18:19:12 CEST] <cone-880> ffmpeg 03Ivan Kalvachev 07master:30ae07d7ef35: Add macros to x86util.asm .
[18:19:12 CEST] <cone-880> ffmpeg 03Ivan Kalvachev 07master:7205513f8f4b: SIMD opus pvq_search implementation
[18:19:38 CEST] <atomnuker> iive: pushed, cheers
[18:20:07 CEST] <iive> now we wait, to see its FATE.
[18:20:20 CEST] Action: atomnuker starts burning that f5 key on fate.ffmpeg.org
[18:20:55 CEST] <wm4> that's... not even close to how we format commit message subject lines normally
[18:31:06 CEST] <cone-880> ffmpeg 03Rostislav Pehlivanov 07master:8e53cd1fab86: ops_pvq_search: remove dead macro
[18:31:07 CEST] <cone-880> ffmpeg 03Rostislav Pehlivanov 07master:f386dd70acdc: opus_pvq_search: only use rsqrtps approximation on CPUs with avx
[18:35:53 CEST] <atomnuker> iive: which sse4 instruction gets used currently in the sse4 version?
[18:45:02 CEST] <iive> atomnuker: blendv
[18:52:37 CEST] <atomnuker> cool, I'll leave things as they are
[18:58:45 CEST] <jamrial> why did you push it with all that dead code?
[19:00:36 CEST] <atomnuker> the presearch rounding? it was forgotten
[19:11:57 CEST] <Chloe> wm4: don't worry. We at FFmpeg are really good at consistency and quality control.
[19:14:05 CEST] <atomnuker> Chloe: why not put your self-defined expertise in consistency and quality control to work and do actual contributing discussions by reviewing patches on the ml?
[19:15:09 CEST] <Chloe> atomnuker: because we'd still have have no one agreeing on anything.
[19:16:24 CEST] <atomnuker> Chloe: you need only agree with yourself to make a remark
[19:17:38 CEST] <niklob> https://pastebin.com/6fL5KmEc "[dvbsub @ 00000000025eb520] [IMGUTILS @ 00000000079ef680] Picture size 0x0 is invalid" Wouldn't it be better to set the default to some bigger than 0x0?
[19:17:44 CEST] <wm4> and me
[19:21:57 CEST] <cone-880> ffmpeg 03Carl Eugen Hoyos 07master:285c015f1077: lavd/libdc1394: Do not crash if dc1394_camera_new() fails.
[19:22:00 CEST] <atomnuker> Chloe: I look down on those easily influenced by attempts of people trying to make the project look bad through echo-chambers
[19:23:18 CEST] <iive> atomnuker: please revert your second patch
[19:23:32 CEST] <atomnuker> its always the same, line after line: "ffmpeg never removes anything!", "ffmpeg does no efforts to improve their codebase!", "ffmpeg's standards are low"
[19:24:13 CEST] <atomnuker> iive: does a cetrain revision of phenoms from 2009 have bad divps performance?
[19:24:34 CEST] <iive> yes all of them
[19:24:44 CEST] <Chloe> Well last time I tried to remove something, there were people who supported it and then one person who didn't and then it wasn't removed.
[19:24:54 CEST] <Chloe> Like sure, some things work in FFmpeg, doesn't mean they should be in it
[19:25:17 CEST] <atomnuker> Chloe: when was that and what was it?
[19:26:08 CEST] <iive> atomnuker: There is much cleaner way to enable divps for avx code, and it is one liner
[19:26:17 CEST] <Chloe> opengl device last year
[19:26:31 CEST] <iive> atomnuker: your change obfuscates the code and makes it much harder to tweak.
[19:26:34 CEST] <Chloe> why do we need an OpenGL output device *in* ffmpeg
[19:26:39 CEST] <atomnuker> iive: its still faster than C and its an encoder
[19:26:56 CEST] <atomnuker> Chloe: because someone wanted it and contributed code for it
[19:27:47 CEST] <atomnuker> if you think its no longer useful then please state so, send another patch and carefully explain what would replace it
[19:28:04 CEST] <Chloe> It would be immediately rejected if I just said 'nothing' would replace it
[19:28:12 CEST] <JEEB> that's not true
[19:28:18 CEST] <JEEB> I mean, o9k things do opengl upload
[19:28:23 CEST] <iive> atomnuker: I'm ok with making the AVX variant use divps, however your commit message implies the opposite
[19:28:32 CEST] <wm4> ffmpeg still has the old vdpau decoding API
[19:28:46 CEST] <Chloe> JEEB: but why does that have to be *in* ffmpeg
[19:28:49 CEST] <wm4> it adds tons of special cases to all supported codecs
[19:28:59 CEST] <Chloe> the ffmpeg api is simple enough
[19:28:59 CEST] <wm4> and nothing really uses it (at least mplayer doesn't)
[19:29:00 CEST] <JEEB> yes, but what I mean is that the "what would replace it" doesn't have to be in FFmpeg
[19:29:03 CEST] <JEEB> that's my point :)
[19:29:21 CEST] <Chloe> well yes, people would write their own external code to replace it
[19:29:24 CEST] <JEEB> if it's beter to have something outside of FFmpeg, IMHO that point should be brought up
[19:29:29 CEST] <JEEB> *better
[19:29:45 CEST] <JEEB> wm4: yea that one would be a prime target if even mplayer doesn't habla it
[19:29:49 CEST] <Chloe> It's kind of silly to have opengl code like that in FFmpeg because then the user has no control over it
[19:30:24 CEST] <wm4> the worst about the opengl code is how it's hacked in into libavdevice
[19:30:36 CEST] <Gramner> atomnuker: ! for logical negation only works in nasm. use "notcpuflag(x)" instead of "!cpuflag(x)" if you want compatibility with yasm
[19:30:54 CEST] <atomnuker> iive: I'll rename the non-avx versions to _approx then
[19:30:55 CEST] <JEEB> it could be put under examples for example if someone really cares about having the code around "as an example for others"
[19:31:40 CEST] <JEEB> anyways, old VDPAU might actually be more important if it's got its tentacles around decoders
[19:31:45 CEST] <iive> atomnuker: revert this commit and send your changes to the maillist.
[19:34:32 CEST] <durandal_1707> iive: why?
[19:34:56 CEST] <iive> durandal_1707: i already explained why. i'll send a mail to document it.
[19:35:30 CEST] <Chloe> atomnuker: so you're saying times have changed and I should try again?
[19:36:15 CEST] <JEEB> if it's been a while, it's worth it to bring out the discussion again and see how it goes
[19:39:47 CEST] <durandal_1707> no its useful like caca device
[19:40:46 CEST] <durandal_1707> ffserver is very useful
[19:41:08 CEST] <durandal_1707> same as dupe prores stuff
[19:41:19 CEST] <JEEB> what was the end result with prore encoders?
[19:41:27 CEST] <JEEB> I remember you added features to teh kostya one
[19:41:32 CEST] <JEEB> recently
[19:41:35 CEST] <durandal_1707> nobody gives a shit
[19:41:43 CEST] <JEEB> well yes
[19:43:47 CEST] <atomnuker> iive: https://0x0.st/nW9.diff
[19:44:22 CEST] <atomnuker> splits the pvq function into non-exact and exact versions and only enables the exact on have_avx_fast (which excludes slow amd stuff)
[19:44:48 CEST] <atomnuker> good?
[19:47:00 CEST] <iive> no
[19:47:56 CEST] <iive> i've sent mail to -cvs-log, with the one liner i have in mind.
[19:51:15 CEST] <jamrial> there's no need to revert anything if it can be fixed with an onliner patch...
[19:52:01 CEST] <jamrial> also, if you send something to cvs-log send it to -devel as well. not everyone follows that list
[19:52:09 CEST] <atomnuker> I don't
[19:52:20 CEST] <JEEB> reverting doesn't help anything if you already can just fix it (if you wouldn't be able to fix it quickly enough then that's a separate thing)
[19:52:47 CEST] <atomnuker> iive: what don't you like about my patch?
[19:53:58 CEST] <iive> 1. wrong commit message, it does the reverse
[19:54:23 CEST] <atomnuker> iive: I meant the diff
[19:54:52 CEST] <iive> as I said, the same thing could be done in 1 line.
[19:55:23 CEST] <iive> 2. it removes the define that explains what the different code paths does.
[19:55:31 CEST] <iive> it's still missing in your new patch.
[19:55:50 CEST] <iive> does/do.
[19:55:55 CEST] <atomnuker> fine, added it back to where PVQ_FAST_SEARCH gets substituted, good enough?
[19:56:25 CEST] <iive> atomnuker: revert your commit and apply the 1 liner.
[19:56:34 CEST] <atomnuker> no, I prefer my approach
[19:56:51 CEST] <durandal_1707> war
[19:57:06 CEST] <iive> atomnuker: you like obfuscated code?
[19:57:21 CEST] <atomnuker> iive: no, having 2 separate function names for approximated search
[19:57:39 CEST] <iive> atomnuker: and how is that better?
[19:58:37 CEST] <atomnuker> its more explicit and less obfuscated
[19:58:48 CEST] <iive> it is far more obfuscated
[19:58:56 CEST] <atomnuker> I can't even _see_ your one liner patch
[19:59:02 CEST] <iive> because you have to pass a parameter through 2 different macro templetes
[19:59:07 CEST] <iive> and you pass it as a number
[19:59:19 CEST] <iive> so once again, you have no idea what the %1 stands for...
[19:59:28 CEST] <atomnuker> iive: so you look it up
[19:59:41 CEST] <atomnuker> its better than cpuflags
[19:59:54 CEST] <iive> atomnuker: it's not obvous, and the asm code is hard enough
[19:59:55 CEST] <durandal_1707> i prefer obfuscated code always, it prevents people from touching your code
[20:00:19 CEST] <durandal_1707> exactly
[20:00:46 CEST] <iive> atomnuker: the whole purpose of that define is to be used as a switch...
[20:00:48 CEST] <atomnuker> iive: its far more obvious than not knowing cpuflags(avx) ifdeffery will still leave avx functions elsewhere
[20:01:41 CEST] <atomnuker> since cpuflags is mostly used everywhere to remove all avx/avx2 functions
[20:01:47 CEST] <atomnuker> rather than just particular ones
[20:02:04 CEST] <iive> atomnuker: i don't understand what you mean with that.
[20:02:33 CEST] <atomnuker> I meant that if I saw cpuflags(avx) in someone's asm I'll assume that no where else in the code will there be any avx functions
[20:02:37 CEST] <atomnuker> but just inside the brackets
[20:02:58 CEST] <atomnuker> *ifdef
[20:03:54 CEST] <iive> what's the point of that?
[20:05:13 CEST] <atomnuker> iive: https://0x0.st/nW9.diff
[20:05:25 CEST] <atomnuker> annotated the macros so its obvious which is which
[20:06:40 CEST] <atomnuker> iive: wrong link, sorry: https://0x0.st/nWt.diff
[20:10:47 CEST] <iive> atomnuker: let me try again. You are adding complexity so you can have different name, however there is no overlap in the functions
[20:10:59 CEST] <atomnuker> I want to have complexity here
[20:11:09 CEST] <iive> you don't have approx_avx and exact_avx
[20:11:12 CEST] <atomnuker> there needs to be a clear difference between which function is bitexact and exact
[20:12:12 CEST] <atomnuker> iive: (fma does add errors, but this is about the function itself being always bitexact with C, not occasionally)
[20:13:51 CEST] <iive> you can just add a comment
[20:14:05 CEST] <atomnuker> anyone who works on the encoder will need to know that there are 2 versions of the code, and explicitly knowing which is which is better rather than having to dig into the asm code to figure it out
[20:14:35 CEST] <iive> the approximation is better
[20:14:59 CEST] <atomnuker> no, the exact version is better because its _exact_
[20:15:02 CEST] <iive> that's why I didn't try to enable it on avx myself.
[20:15:13 CEST] <atomnuker> the approximation is a hack
[20:15:28 CEST] <atomnuker> because old cpus have crap division
[20:15:35 CEST] <iive> it produces less distortion. at least with my samples.
[20:15:57 CEST] <atomnuker> tbh I'd rather remove the approximation but I'm giving it the benefit of the doubt for people with not-so-modern CPUs
[20:16:08 CEST] <iive> not always but usually.
[20:16:57 CEST] <atomnuker> iive: its still not exact with C, and that's not what's best for an encoder under development
[20:19:58 CEST] <iive> still
[20:20:22 CEST] <iive> revert the patch, add the 1 liners, and if you insist,
[20:20:53 CEST] <iive> send the function name suffix as parameter to the PVQ_SEARCH macro.
[20:20:59 CEST] <iive> also
[20:21:55 CEST] <atomnuker> I'm not reverting the patch, and especailly not applying the one liner which obfuscates the code even more
[20:21:58 CEST] <iive> I'm not sure that AVX_FAST() is the macro you want to use.
[20:22:05 CEST] <atomnuker> it is, it blocks out slow amd
[20:22:27 CEST] <atomnuker> putting the define there is not at all clear when it makes a difference
[20:22:31 CEST] <iive> well, the approx avx code is faster on a bunch of amd's
[20:22:47 CEST] <atomnuker> yes, that's when it gets used
[20:23:14 CEST] <atomnuker> not on the fast ones having fast divs, on the slow ones having slow divs but fast approx
[20:24:45 CEST] <atomnuker> also depending on what happens in the future the approximation might be better off enabled on new cpus or disabled on old ones
[20:24:45 CEST] <iive> It's perfectly clear.
[20:25:16 CEST] <atomnuker> or even having 2 versions of the same instruction set but with approx and non-approx for debugging or testing
[20:25:23 CEST] <atomnuker> grouping them doesn't allow that
[20:25:28 CEST] <atomnuker> having a separate argument does
[20:25:45 CEST] <iive> you are not listening to anything I say.
[20:25:55 CEST] <iive> revert the commit and send patch to maillist.
[20:27:49 CEST] <atomnuker> no, its too slow, my patch works and I like it more, yasm is broken, no time to waste
[20:28:47 CEST] <nevcairiel> from my point of view, nasm is way more broken =p
[20:28:54 CEST] <atomnuker> if you don't like it, send a patch to the ML to do what you want it to do and I'll review it
[20:29:06 CEST] <iive> i was developing on yasm, if it is broken, then you have broken it.
[20:29:32 CEST] <iive> atomnuker: did you read my email?
[20:31:34 CEST] <Gramner> nevcairiel: if you have actual reproducible nasm bugs, just file some bug reports. issues actually gets fixed in nasm
[20:33:44 CEST] <cone-880> ffmpeg 03Rostislav Pehlivanov 07master:3c99523a2864: opus_pvq_search: split functions into exactness and only use the exact if its faster
[20:34:03 CEST] <atomnuker> iive: yes, I have broken it making the code better, and now I have fixed it, with a solution that I like even more
[20:35:14 CEST] <nevcairiel> Gramner: i doubt they're going to like "build ffmpeg on windows, try to link with msvc", a minimized reproduction case is hard
[20:41:24 CEST] <iive> atomnuker: are you drunk?
[20:43:20 CEST] <iive> i cannot help but read the above line in Rick's voice.
[20:47:14 CEST] <atomnuker> no idea who rick is, but he's probably not like me at all atm because I'm sober and angry arguing about something as trivial as this
[20:47:26 CEST] <atomnuker> old CPUs suck and I dread the day they'll be considerd retro
[20:48:20 CEST] <atomnuker> the Ghz wars wasted so many years for marginal gains
[20:49:41 CEST] <Gramner> now we get re-releases and re-re-releases of the same cpus year after year instead
[20:50:32 CEST] <durandal_1707> should we raise max threads define?
[20:50:33 CEST] <iive> i do recommend you to watch "Rick and Morty". Rick is genous that can literally do everything.
[20:50:49 CEST] <atomnuker> kaby lake vs skylake was particularly bad, a whole rerelease for a vp9 decoder and occasional gains
[20:51:21 CEST] <atomnuker> now I don't know what is better - kaby lake x or skylake x
[20:51:48 CEST] <atomnuker> I thought kaby lake x is better because its kaby lake with an x so its better than kaby lake which was newer than skylake
[20:52:27 CEST] <atomnuker> but apparently no, kaby lake x is the budged form of skylake x
[20:52:43 CEST] <nevcairiel> thats not the case though
[20:53:06 CEST] <atomnuker> its the opposite?
[20:53:08 CEST] <Gramner> KBL-X is such a crazy product. I have no idea how the hell that thing managed to get approved. it literally requires motherboards to have dual VRM setups in order to support FIVR and non-FIVR CPUs at the same time
[20:53:08 CEST] <nevcairiel> kaby lake x is literally kaby lake on a different socket, basically same cpus with better power delivery
[20:53:33 CEST] <nevcairiel> its not really related to skylake-x other then running on the same platform
[20:54:15 CEST] <Gramner> it's shoehorned into the same platform in a super ugly and complex way
[20:54:45 CEST] <atomnuker> so kabylake x doesn't have avx512 and kaby lake had such bad power dissipation it required a new socket?
[20:54:53 CEST] <Gramner> I'm surprised it actually works without blowing up half the time
[20:55:35 CEST] <Gramner> now it only blows up if you switch between KBL-X and SKL-X cpus on the smae motherboard without taking special precautions
[20:55:54 CEST] <nevcairiel> afaik they fixed that
[21:08:54 CEST] <iive> atomnuker: i really don't understand what was the hurry in your commits.
[21:09:21 CEST] <iive> it's not like you are going to miss the release window or something.
[21:09:29 CEST] <atomnuker> one should not leave yasm broken
[21:09:35 CEST] <iive> you broke it
[21:10:08 CEST] <iive> and I do mean both of these commits.
[22:01:42 CEST] <paveldimow> Hi, anyone interested in adding support for amf0? I would like to discuss this in private is possible. Tnx
[22:06:52 CEST] <Compn> paveldimow : durandal_1707 might be
[22:07:24 CEST] <Compn> which amf0 are we talking about ?
[22:07:25 CEST] <Compn> flv ?
[22:07:26 CEST] <Compn> or mp4 ?
[22:07:41 CEST] <paveldimow> well it's amf0 in mp4 container
[22:08:41 CEST] <paveldimow> I am not sure if he is interested since he asked "new adobe bullshit?" :D
[22:08:59 CEST] <Compn> haha :D
[22:09:12 CEST] <JEEB> > amf0 in mp4
[22:09:18 CEST] <JEEB> how the REDACTED did they manage that
[22:09:29 CEST] <JEEB> esp. if it's over RTMP because RTMP is FLV
[22:11:13 CEST] <paveldimow> well all I know is that client connect via rtmp like protocol to server and start brodcast the audio/video + metadata which are actually timestamps every 60 frames
[22:11:45 CEST] <paveldimow> at the end I have a mp4 file with one video one audio and one amf0 stream
[22:13:27 CEST] <jamrial> Gramner: looks like cannon lake is going to be mobile only due to low yields, which means avx512 consumer outside of skl-x will not be a thing until ice lake
[22:14:32 CEST] <nevcairiel> more like making a high-performance core more efficient then their fully optimized 14nm process takes a bit more optimization
[22:14:46 CEST] <nevcairiel> and early 10nm process isnt there
[22:14:56 CEST] <jamrial> s/consumer/desktop
[22:19:08 CEST] <Gramner> 14nm++ is better than 10nm for high power chips but yields are also apparently not great
[22:20:37 CEST] <Gramner> afaik CNL will only have a single avx-512 ALU too. OTOH it might get away with very low avx frequency offsets due to the clock rate being low in the first place
[22:22:47 CEST] <atomnuker> is it time for gallium arsenide?
[22:23:37 CEST] <Gramner> dunno. III-V has been in the labs a long time
[22:25:14 CEST] <Gramner> InGaAs has good properties
[22:25:22 CEST] <TD-Linux> wait does avx-512 support integers < 32 bits
[22:25:57 CEST] <Gramner> avx-512 is a collection of 2^82 different instruction set extensions
[22:26:10 CEST] <nevcairiel> afaik with the proper extensions (which skl-x has), it goes down to byte level like all others
[22:26:15 CEST] <Gramner> but the subset available on "normal" CPU:s supports that, yes
[22:26:47 CEST] <Gramner> https://pbs.twimg.com/media/DBPfgewWsAEVkiA.jpg:large
[22:27:23 CEST] <TD-Linux> ah I need the "BW" feature
[22:28:04 CEST] <Gramner> now why they couldn't even bother grouping together the related types introduced at the same time beats me
[22:28:34 CEST] <Gramner> e.g. CD should've been part of F. BW+DQ+VL should've been a single flag etc.
[22:30:14 CEST] <Gramner> I just threw F+CD+BW+DQ+VL under the "avx512" cpuflag in x86inc. nobody going to bother checking for every possible permutation anyways. and xeon phi is kind of irrelevant for the general multimedia use case
[22:33:22 CEST] <J_Darnley> Gramner: That venn diagram makes it look like a real shitshow.
[22:34:01 CEST] <nevcairiel> just ignore the Phi side and its like any other instruction set
[22:34:10 CEST] <atomnuker> Gramner: if you don't use 512bit regs but say 256bit regs can you perform 4x256bit mults or whatever?
[22:34:10 CEST] <Gramner> to be fair, you can basically ignore the entire right side
[22:34:38 CEST] <atomnuker> (can the units split and act independently?)
[22:34:39 CEST] <Gramner> atomnuker: no
[22:35:41 CEST] <atomnuker> that's a shame, 2 of the same operations and you've saturated them
[22:36:01 CEST] <Gramner> there are two generic 256-bit simd ALU:s on p0 and p1. they are fused to form a single 512-bit ALU on SKL-X. so those aren't actully any wider than before. p5 is the only execution port that's wider
[22:36:13 CEST] <Gramner> p5 is native 512-bit
[22:36:32 CEST] <jamrial> and as such fast zmm shuffles?
[22:36:40 CEST] <Gramner> p2/p3/p4 are also native 512-bit (so you can do 2x64 byte loads and 1x64 byte store per cycle)
[22:37:08 CEST] <Gramner> in-lane zmm shuffles are 1/1
[22:37:19 CEST] <Gramner> cross-lane dword and qword 3/1
[22:37:28 CEST] <nevcairiel> does it have 4 lanes now? <.<
[22:37:42 CEST] <Gramner> cross-lane word shuffles (e.g. vpermw) are slow. 6/2 iirc
[22:37:45 CEST] <Gramner> 4 lanes yes
[22:37:53 CEST] <Gramner> but many new amazing shuffle instructions
[22:38:00 CEST] <Gramner> so much less of an issue now
[22:39:03 CEST] <Gramner> vperm(i|t)2(b|w|d|q) are super useful. the byte version is only in CNL though
[22:40:01 CEST] <Gramner> most cross-lane shuffling avx-512 code I've written so far has been in the frequency domain so word shuffles were sufficient
[22:45:15 CEST] <TD-Linux> so for the models that have only 1 avx-512 fma, does that mean that p5 is just 256 wide?
[22:45:30 CEST] <Gramner> no, that's always 512-bit
[22:45:45 CEST] <TD-Linux> does it just drop fma? or do p0/p1 drop fma
[22:45:50 CEST] <Gramner> on the 1fma it can only do shuffles. on 2fma it can do either shuffles or arith
[22:46:10 CEST] <nevcairiel> didnt someone claim that tests have shown that actually all models have the full port
[22:46:40 CEST] <TD-Linux> so it's dropping more than just fma
[22:47:12 CEST] <Gramner> "fma" is a stupid term in this case since fma ops is just a small subset of instructions it can execute
[22:47:29 CEST] <TD-Linux> yeah I see it used all over the place but "alu" seems like it would be more appropiate
[22:47:31 CEST] <nevcairiel> do those "fma" units also handle integer instructions?
[22:47:37 CEST] <nevcairiel> or is that something else?
[22:47:46 CEST] <Gramner> yes
[22:47:57 CEST] <TD-Linux> hopefully agner's guide is updated soon
[22:48:15 CEST] <Gramner> everything that's not a shuffle or otherwise very complex
[22:49:24 CEST] <Gramner> basically everything that both p0 and p1 can do in 256-bit p5 can do in 512-bit on the "2FMA" models
[22:50:02 CEST] <Gramner> so arithmetic, logic, shifts, and whatnot
[22:50:37 CEST] <atomnuker> I think having more ALUs and more shuffle instructions might have been better than avx512
[22:51:04 CEST] <Gramner> then you're going to get bottlenecked by decoding probably
[22:51:27 CEST] <atomnuker> hm, good point
[22:51:35 CEST] <Gramner> if you can't decode instructions fast enough to keep the execution units busy it's pointless
[22:52:15 CEST] <Gramner> and that's a serial process (due to variable-length ops) and quite power hungry too
[22:53:30 CEST] <Gramner> but the execution units on SKL-X are very unbalanced. everything is thrown into p5
[22:59:26 CEST] <Gramner> avx offsets are a big issue. they are sort-of designed around being able to handle "power viruses" that max out every execution unit every cycle which punishes real-world code more than neccessary. it really needs more granularity than a simple "downclock everything a few hundred MHz as soon as a zmm reg is touched" to get any widespread adaption
[23:18:22 CEST] <nevcairiel> i tuned my avx offset to running something like linpack which absolutely melts the cpu, but if i dont the system just shuts down, which is not something I like ever happening. but just for x264 for example i could leave it much much higher
[23:18:32 CEST] <nevcairiel> of course server cpus dont really get the benefit of tuning such things
[23:19:38 CEST] <atomnuker> you can adjust that?
[23:19:42 CEST] <atomnuker> in the bios?
[23:19:46 CEST] <nevcairiel> yes
[23:19:47 CEST] <Gramner> yes, which is why it should be a dynamic thing that gradually drops the frequency as needed instead of a static value
[23:19:49 CEST] <BtbN> On most consumer-PCs, yes
[23:19:54 CEST] <BtbN> But not on server-boards
[23:20:05 CEST] <atomnuker> and if you leave it on max with the stock coolet it'll overheat?
[23:20:18 CEST] <atomnuker> *cooler
[23:20:21 CEST] <nevcairiel> it'll probably just shutdown due to various protections
[23:20:42 CEST] <BtbN> it's almost impossible to kill a modern CPU via heat
[23:20:42 CEST] <atomnuker> what has happened to desktop CPUs while I've used laptops?
[23:20:44 CEST] <nevcairiel> my PC just hard-resets if i try to run something really powerful like Linpack
[23:20:57 CEST] <nevcairiel> without proper offset
[23:21:02 CEST] <BtbN> I'm currently playing the AMD support game.
[23:21:12 CEST] <BtbN> They told me a VCore voltage range to try for system stability.
[23:21:25 CEST] <BtbN> And I was like "dudes, my BIOS Auto setting is higher then your max in that range"
[23:21:38 CEST] <BtbN> and it's still not stable
[23:21:59 CEST] <BtbN> But I just did the tests, found it being even less stable, and reported back
[23:22:08 CEST] <BtbN> wonder how long they'll keep trying until I get a new CPU
[23:22:13 CEST] <atomnuker> this is horrible, so you need liquid cooling even if you don't clock your cpu to get the most out of it?
[23:22:17 CEST] <J_Darnley> Clearly they've run out of stock.
[23:22:18 CEST] <Gramner> you never go auto voltage when oc:ing
[23:22:28 CEST] <BtbN> I'm not OCing anything
[23:22:36 CEST] <Gramner> ah
[23:22:40 CEST] <BtbN> Just broken Ryzen
[23:22:48 CEST] <nevcairiel> atomnuker: the default offsets are very conservative, if you change them thats "OC" =p
[23:23:29 CEST] <atomnuker> grr, bloody newfangled avx offset stuff
[23:23:42 CEST] <BtbN> Ryzen doesn't have it!
[23:23:51 CEST] <nevcairiel> ryzen barely has avx2 as it is
[23:23:57 CEST] <Gramner> ryzen only has 128-bit SIMD
[23:24:11 CEST] <BtbN> Well, but as it doesn't clock down, it is actually competitive on avc2 on servers
[23:24:12 CEST] <atomnuker> Gramner: but it has more units
[23:24:12 CEST] <Gramner> avx2 is emulated as two 128-bit ops
[23:24:22 CEST] <BtbN> *avx2
[23:25:17 CEST] <nevcairiel> anyhow, as a Ryzen buyer I would be miffed if I read something like "the top binned Zen Dies went into ThreadRipper", basically that means if you buy Ryzen you get the leftovers? :p
[23:25:55 CEST] <atomnuker> threadripper has numa, I'd rather avoid it
[23:26:12 CEST] <BtbN> It doesn't. Just the same CCX design Ryzen has as well.
[23:26:17 CEST] <BtbN> Not actual NUMA
[23:26:24 CEST] <nevcairiel> threadripper has two actual dies
[23:26:35 CEST] <nevcairiel> the latency between those is far higher then between two CCX on the same die
[23:26:47 CEST] <nevcairiel> there is a reason why AMD has this game mode that disables one die
[23:26:57 CEST] <iive> Gramner: avx2 is very easy to be emulated as two 128bit ops, because it is basically that
[23:27:48 CEST] <Gramner> sure. but on amd it's not really any faster aside from a bit reduced decoder pressure
[23:28:07 CEST] <Gramner> using avx2 on amd makes stuff slower in some cases
[23:29:00 CEST] <iive> i've seen this happen on intel too ;)
[23:29:24 CEST] <BtbN> If the CPU clocks itself back into the 90s because of avx2 load, yeah
[23:30:48 CEST] <iive> Gramner: my point is, that not the emulation part is bad, but not having extra units for execution.
[23:31:21 CEST] <nevcairiel> thats not the reason, the reason is people using avx2 on algorithms that dont really scale well, if its only a few percent faster then its not going to help with the possibility of a downclock, but if it scales properly then a 10%-15% downclock won't make it "slower"
[23:32:02 CEST] <nevcairiel> (on that note, latest cpus dont downclock that much for avx2 anymore, avx512 on the other hand)
[23:32:27 CEST] <iive> how long does it take for cpu to downclock avx2 units?
[23:32:36 CEST] <Gramner> die shrinks to the rescue with lower per-transistor capacitancy? I hope
[23:33:15 CEST] <nevcairiel> skylake got much faster with clock changes, a few milliseconds or so
[23:33:27 CEST] <nevcairiel> i forgot the marketing name for their faster clock changes
[23:33:31 CEST] <nevcairiel> speed-something
[23:33:50 CEST] <nevcairiel> speed shift? that may be it
[23:34:53 CEST] <iive> scale?
[23:35:32 CEST] <atomnuker> turbo boost?
[23:35:59 CEST] <atomnuker> wait, that was another thing
[23:36:25 CEST] <Gramner> 56kc to power up ymm registers (during which time avx code is very slow), after not using avx for 2.7Mc it's powered down again (on SKL-S, dunno if the values are different on SKL-X)
[23:39:46 CEST] <Gramner> I actually have no idea why it takes over 50.000 clock cycles to power up some more transistors, but I'm not a hw designer
[23:40:19 CEST] <iive> avx code is very slow... how does it execute at all, if it doesn't use emulation?
[23:41:46 CEST] <BtbN> 50000 clock cycles isn't all that much time at 3GHz+. If they need to physically charge up or something
[23:41:50 CEST] <Gramner> like 4-5x slower. probably emulated with 128-bit ops in a non-optimal way due to the expectation that applications that actually make use of AVX will stay powered up all the time so not worth optimizing it to the ideal ~2x
[23:59:32 CEST] <Gramner> huh, I just realized that all the brand new SHA instructions are using legacy encoding only, not VEX. including all the good old beloved features such as hidden implicit registers. just... why?
[00:00:00 CEST] --- Sat Aug 19 2017
1
0
[01:25:32 CEST] <jonascj> I have an mp4 file which originally plays in the expected orientation (people appear upright on computer monitor), but when transcoded to ts the video appears flipped or rotated 180deg. Anyone experienced something similar and have suggestions for a workaround/fix?
[01:33:48 CEST] <iive> jonascj: i've heard that mp4 has some matrix that allow manipulation of the decoded image. e.g. having additional cropping
[01:34:26 CEST] <iive> it might also allow rotation.
[01:35:09 CEST] <iive> so my first guess is that the source video is flipped and has data to correct the flip. but ffmpeg losses that info.
[01:36:06 CEST] <iive> i'm actually sure there is a filter that could flip the image, or rotate it on 90 degree intervals.
[01:50:40 CEST] <voip_> Hello guys
[01:51:02 CEST] <voip_> I have segmentation fault error with qsv codec
[01:51:04 CEST] <voip_> https://pastebin.com/P7gnqdBT
[01:51:56 CEST] <c_14> You either didn't build it correctly or didn't link it correctly
[01:54:22 CEST] <c_14> Or didn't patch your kernel
[01:55:12 CEST] <voip_> c_14, i didnt get any error during build . kernel 3.10.0-327.el7
[01:55:25 CEST] <voip_> ok thank you i will try again
[01:55:58 CEST] <c_14> did you use the media codec patches to build the kernel?
[01:56:08 CEST] <c_14> Are you using the media codec patched versions of the libraries?
[01:57:32 CEST] <voip_> as i know last version od IntelSDK doesnt require patches
[01:58:38 CEST] <c_14> last time I built it it needed them
[01:58:45 CEST] <c_14> was march/april afair
[02:03:48 CEST] <voip_> FFmpeg
[02:03:48 CEST] <voip_> -
[02:03:48 CEST] <voip_> y
[02:03:48 CEST] <voip_>
[02:03:48 CEST] <voip_> i test.mp4
[02:03:49 CEST] <voip_> -
[02:03:53 CEST] <voip_> vcodec h264 _ qsv
[02:03:55 CEST] <voip_> -
[02:03:57 CEST] <voip_> acodec copy
[02:03:59 CEST] <voip_> -
[02:04:01 CEST] <voip_> b:v 8000K out.mp4 passing
[02:39:11 CEST] <sh4rm4^bnc> how do i specify to reencode to stereo rather than 5.1 ?
[02:39:32 CEST] <relaxed> -ac 2
[02:42:03 CEST] <sh4rm4^bnc> thanks!
[03:30:10 CEST] <Aerroon> question: if i have a video file that i run in a video player like VLC
[03:30:22 CEST] <Aerroon> if i then run the same video file again will i see identical frames?
[03:30:56 CEST] <Aerroon> or are they "close enough"?
[03:34:18 CEST] <relaxed> you mean playing it back a second time?
[03:35:03 CEST] <relaxed> after transcoding it?
[05:16:26 CEST] <Aerroon> relaxed, no, if i play it back on two separate occasions
[05:16:30 CEST] <Aerroon> will i get the exact same frames
[05:51:39 CEST] <Videogamer555> Need some help with muxer RTP_MPEGTS
[05:55:16 CEST] <Videogamer555_> Can anybody here see my posts?
[05:55:34 CEST] <Videogamer555_> Just curious because the last time I posted it didn't appear on my own screen.
[10:56:06 CEST] <Ingvix> just checking that if I had accidently run a bad command resulting an empty file which overwrote the original, there's no way to get the original back?
[10:57:30 CEST] <klaxa> maybe with file recovery tools
[10:57:59 CEST] <klaxa> data is usually not immediatly overwritten with 0s
[10:58:07 CEST] <klaxa> if overwritten or deleted
[11:10:23 CEST] <kerio> Aerroon: most codecs have a deterministic output
[11:10:52 CEST] <kerio> and even if they didn't, i'd expect the same player to play the same video file in the same way all the times
[11:18:05 CEST] <Aerroon> kerio, thank you
[12:55:06 CEST] <paveldimow> Hi, how can I preserve metadata from video stream in mp4? For example, I have https://pastebin.com/ck6J0Jtq the problem is that since ffmpeg does not support amf0 I want to remove it since because of that I don't get the right duration of video: Duration: 93:13:29.07, start: 0.000000, bitrate: 0 kb/s
[14:03:37 CEST] <berz3rk> hello guys
[14:04:19 CEST] <berz3rk> I have a bunch of 3d movies in mkv format and have different needs to convert them all in a big loop to mp4 files with only using first audio stream, limiting audio bitrate to 320 kb/s and using audio codec aac. Can you help me how to achieve this? thanks
[14:04:48 CEST] <berz3rk> something like this :/ ffmpeg -i *.mp4 -c:v copy -c:a aac -b:a 320k MyMovieNameXX_3dff_sbs.mp4
[14:16:59 CEST] <redrabbit> today i got why HEVC is far from beeing widely used
[14:17:27 CEST] <redrabbit> on my cellphone cpu usage was near maxed out with not even extravagant bitrates
[14:17:31 CEST] <redrabbit> battery killer
[14:17:55 CEST] <redrabbit> AVC on the other hand have super low ressource use
[14:18:05 CEST] <redrabbit> hw decoders working
[14:18:19 CEST] <ketas> need hw for hevc
[14:18:22 CEST] <ketas> :P
[14:18:31 CEST] <redrabbit> maybe the phone have hw decoders for hevc but the software dont know how to use it
[14:18:41 CEST] <redrabbit> or maybe its because its an old phone ^^
[14:20:01 CEST] <redrabbit> (vlc)
[14:21:54 CEST] <redrabbit> phone is over 5 years old
[14:22:01 CEST] <redrabbit> still working solid imo
[14:22:48 CEST] <redrabbit> Qualcomm MSM8260A Snapdragon S4 Plus
[14:23:44 CEST] <redrabbit> http://www.gsmarena.com/acer_cloudmobile_s500-4542.php
[14:42:26 CEST] <Mavrik> Yeah, 5 year phone won't have a HEVC decoder
[15:25:18 CEST] <redrabbit> that would be a sort of good reason to upgrade
[15:28:42 CEST] <klaxa> eeh, there isn't that much hevc content available yet
[15:53:16 CEST] <redrabbit> yeah
[15:53:36 CEST] <redrabbit> i can use the hardware encoders of my nvidia card to stream HEVC though
[15:54:51 CEST] <redrabbit> i have setup an IPTV service so i can access terrestrial / satellite tv when i'm not home
[16:23:18 CEST] <alexpigment> redrabbit: do you have a cablecard-type setup, or do you use a capture card?
[16:23:35 CEST] <alexpigment> or hdhomerun
[16:26:06 CEST] <redrabbit> two usb tuners for the terrestrial (dvb-t2) and pci-E card with two dvb-s2 tuners
[16:26:14 CEST] <redrabbit> + dvbviewer for software
[16:26:39 CEST] <alexpigment> ah gotcha
[16:26:47 CEST] <redrabbit> works neat
[16:27:03 CEST] <alexpigment> i've got two tuners for OTA, but here all the cable is encrypted
[16:27:04 CEST] <redrabbit> i spent about 2 days neatpicking my transcoding presets
[16:27:15 CEST] <alexpigment> does HEVC really help that much?
[16:27:24 CEST] <redrabbit> oh yeah, cable is impossible to to break without the keys
[16:27:29 CEST] <redrabbit> you need a card
[16:27:51 CEST] <redrabbit> i heard it was possible for virgin somewhere
[16:27:52 CEST] <alexpigment> yeah, i've got Hauppauge capture cards, but I haven't figured out how to get the channels to change remotely yet
[16:28:01 CEST] <redrabbit> im dont use that isp though
[16:28:12 CEST] <redrabbit> i get all my stuff from the satellite
[16:28:17 CEST] <alexpigment> america is full of cable monopolies
[16:28:25 CEST] <alexpigment> and I can't get satellite due to condo rules
[16:28:27 CEST] <redrabbit> got like 7000 channels with my motorized dish
[16:28:43 CEST] <alexpigment> would love to get satellite just for the picture quality
[16:28:54 CEST] <alexpigment> time warner / spectrum cable is not even *trying* on picture quality
[16:28:59 CEST] <redrabbit> meh
[16:29:07 CEST] <redrabbit> yeah there is some nice hd stuff
[16:29:09 CEST] <alexpigment> granted, I think all cable companies are inherently limited in what they can do with quality
[16:29:17 CEST] <redrabbit> lots of stuff is still sd / mpeg 2
[16:29:21 CEST] <redrabbit> unwatchable
[16:29:31 CEST] <alexpigment> the HD stuff is what I find most unwatchable
[16:29:52 CEST] <redrabbit> well my cable compagny use H.264 and AAC
[16:30:09 CEST] <redrabbit> they broadcast dvb-C and dvb-t2 in the cable
[16:30:17 CEST] <redrabbit> i use the dvb-t2, most of the fta is there
[16:30:19 CEST] <alexpigment> mine uses MPEG-2, but they cram 3-4 channels (or more) into a single 38mbps channel allotment
[16:30:23 CEST] <redrabbit> and quality is similar to sattelite
[16:30:27 CEST] <redrabbit> its great
[16:30:33 CEST] <redrabbit> really depends on encoders
[16:30:35 CEST] <alexpigment> yeah, dvb-t2 should be awesome
[16:30:40 CEST] <redrabbit> dvb-c same
[16:30:50 CEST] <redrabbit> its just a mean of transport
[16:30:59 CEST] <redrabbit> they use shitty codec settings
[16:31:27 CEST] <redrabbit> its like they are doing a contest for dumbest encoder settings
[16:31:29 CEST] <redrabbit> on tv stuff
[16:31:31 CEST] <alexpigment> haha
[16:31:41 CEST] <alexpigment> i promise, whatever dumb settings they use, cable is worse
[16:31:56 CEST] <alexpigment> i wouldn't be surprised if some of the HD channels are under 6mbps MPEG-2
[16:31:59 CEST] <redrabbit> from the moment you see MPEG-2 it can only suck
[16:32:09 CEST] <redrabbit> full hd or 720
[16:32:10 CEST] <alexpigment> not if you use all the bandwidth you're allowed
[16:32:29 CEST] <redrabbit> yeah it needs a ton of bw to look remotely good
[16:32:32 CEST] <alexpigment> if you used one HD channel per 38mbps stream, it would look amazing
[16:32:38 CEST] <redrabbit> 16:27 < alexpigmen> does HEVC really help that much?
[16:32:49 CEST] <redrabbit> if you have the right hardware to decode yeah
[16:32:56 CEST] <kerio> surely you can just get a capture card with a CAM interface
[16:32:59 CEST] <kerio> for pay tv
[16:33:01 CEST] <redrabbit> you get a better picture
[16:33:05 CEST] <kerio> right? D:
[16:33:06 CEST] <alexpigment> CAM interface?
[16:33:22 CEST] <furq> redrabbit: is this the thing you're screen capturing for
[16:33:22 CEST] <redrabbit> especially for low bandwith setups when you have to fit as much as you can in a little package
[16:33:32 CEST] <iive> content access management
[16:33:32 CEST] <furq> i take it you can't just grab the stream with ffmpeg and transcode it
[16:33:36 CEST] <redrabbit> furq: nope, i tried obs just for the luls
[16:33:41 CEST] <furq> oh ok
[16:33:43 CEST] <redrabbit> streamed some gta to youtube
[16:33:49 CEST] <redrabbit> just to see how it would look
[16:33:54 CEST] <alexpigment> kerio: not sure exactly what you're implying, but the source of the content in my area is the problem, not the capturing
[16:34:00 CEST] <redrabbit> its a bit crappy i only have 5mpbs upload
[16:34:05 CEST] <redrabbit> could be worse i guess
[16:34:13 CEST] <furq> that's more than most services will let you stream anyway
[16:34:26 CEST] <kerio> youtube lets you stream as high as you want i think
[16:34:29 CEST] <redrabbit> i dont look at streaming from games much
[16:34:35 CEST] <devinheitmueller> kerio: here in the US we have the CableCard standard, which is basically the US equivalent to CAMs. However because of DRM you cannot access the decrypted video unless the downstream equipment is protected as well.
[16:34:37 CEST] <alexpigment> redrabbit: i suppose if you're comparing HEVC to H264 via hardware alone, then yes, i'm sure it helps. but I think x264 is more efficient than nvenc HEVC fwiw
[16:34:40 CEST] <redrabbit> i have no reference point for quality
[16:34:42 CEST] <furq> doesn't youtube boot you if your stream bandwidth is too high
[16:34:52 CEST] <furq> i've never tried it but i remember people in here complaining about that
[16:34:59 CEST] <redrabbit> alexpigment: yeah agreed
[16:35:03 CEST] <furq> alexpigment: it is much more efficient
[16:35:09 CEST] <furq> but obviously not so much if you have realtime constraints
[16:35:16 CEST] <kerio> furq: they recommend 20-51mbps for 2160p60 streams
[16:35:22 CEST] <furq> fun
[16:35:25 CEST] <furq> maybe i'm thinking of twitch
[16:35:31 CEST] <kerio> yea twitch boots you if you go over 6mbps
[16:35:34 CEST] <alexpigment> twitch is really low
[16:35:39 CEST] <alexpigment> i think it's like 3-4mbps max
[16:35:45 CEST] <redrabbit> you can get comparable perfs with highest settings on x265 vs the "loose" settings on nvenc
[16:35:46 CEST] <alexpigment> which sucks, but hey, they're not google
[16:35:50 CEST] <furq> it's a good job that video game footage is extremely easy to compress
[16:35:52 CEST] <redrabbit> its real time and cpu free though
[16:35:55 CEST] <furq> especially first-person games
[16:36:09 CEST] <kerio> alexpigment: yea they're not google, they're amazon
[16:36:10 CEST] <kerio> >:(
[16:36:11 CEST] <alexpigment> furq: not always true in my experience
[16:36:21 CEST] <furq> that was some of that classic furq sarcasm
[16:36:29 CEST] <redrabbit> furq: i sent you a link to my stream test
[16:36:31 CEST] <furq> that we all love so much
[16:36:36 CEST] <kerio> alexpigment: i think they relaxed it to 6
[16:36:38 CEST] <redrabbit> just to have an external pov on the quality
[16:36:40 CEST] <alexpigment> kerio: true. i was really talking about the rules that have been in place since before amazon
[16:36:41 CEST] <redrabbit> if you have a minute
[16:36:41 CEST] <kerio> so people can stream 1080p60 kinda decently
[16:37:08 CEST] <redrabbit> i streamed 1440p
[16:37:17 CEST] <redrabbit> figured yt would give more bw
[16:37:46 CEST] <alexpigment> redrabbit: have you ever watched a youtube stream? ;)
[16:37:59 CEST] <redrabbit> not much
[16:38:01 CEST] <alexpigment> "i'll take my low-quality video with a side of macroblocking, please"
[16:38:02 CEST] <redrabbit> it looks bad right?
[16:38:05 CEST] <alexpigment> of course
[16:38:07 CEST] <furq> yeah this looks about standard for youtube
[16:38:23 CEST] <redrabbit> alexpigment: sent you the link as well if you wanna check
[16:38:26 CEST] <alexpigment> k
[16:38:30 CEST] <furq> this will have been reencoded fyi
[16:38:34 CEST] <redrabbit> furq: ok, good to know
[16:38:43 CEST] <redrabbit> it looked crappy to me
[16:38:44 CEST] <furq> live streams get reencoded for archival
[16:38:51 CEST] <furq> so the actual live stream might have looked fine
[16:38:59 CEST] <redrabbit> was similar
[16:39:03 CEST] <redrabbit> kinda
[16:39:07 CEST] <redrabbit> i don't know ^^
[16:39:18 CEST] <alexpigment> actually, this is kinda low for youtube
[16:39:28 CEST] <alexpigment> what bitrate was being sent to them?
[16:39:33 CEST] <redrabbit> 5Mpbs
[16:39:33 CEST] <furq> i tried the 1440p60 stream and it still looks mediocr
[16:39:34 CEST] <furq> e
[16:39:41 CEST] <furq> yeah 5mbps is really low for 1440p60
[16:39:44 CEST] <redrabbit> i guess i should go back to 1080p
[16:39:45 CEST] <alexpigment> 5Mbps is too low imho
[16:39:50 CEST] <furq> youtube uses like 20mbps for 1440p
[16:40:00 CEST] <redrabbit> yeah makes sense
[16:40:07 CEST] <alexpigment> furq: are you sure about that?
[16:40:15 CEST] <furq> pretty sure
[16:40:18 CEST] <alexpigment> i've got some 2160p clips somewhere around here
[16:40:21 CEST] <alexpigment> lemme see what they use
[16:40:22 CEST] <furq> it's significantly higher than 1080p60
[16:40:31 CEST] <furq> maybe 15 for 1440p and 20 for 2160p
[16:40:33 CEST] <furq> i've not checked in a while though
[16:40:50 CEST] <redrabbit> is there better than youtube quality wise
[16:40:54 CEST] <alexpigment> yes
[16:40:58 CEST] <alexpigment> vimeo has always been better
[16:41:06 CEST] <redrabbit> do they reencode your stream when you live stream ?
[16:41:09 CEST] <alexpigment> although they don't have a livestream platform if that's what you're asking about
[16:41:12 CEST] <furq> redrabbit: no
[16:41:14 CEST] <furq> only for archival
[16:41:18 CEST] <redrabbit> ok, good to know
[16:41:20 CEST] <furq> 264 mp4 2560x1440 DASH video 12166k , avc1.640032, 30fps, video only, 273.52MiB
[16:41:26 CEST] <furq> that was the first match for "4k"
[16:41:33 CEST] <furq> hopef someone has a 1440p60 stream around
[16:41:40 CEST] <redrabbit> what would be the best settings on OBS for 5mbps ?
[16:41:41 CEST] <furq> s/stream/video/
[16:41:48 CEST] <furq> i'd probably go with 720p60 at 5mbit
[16:41:52 CEST] <redrabbit> thanks
[16:42:09 CEST] <alexpigment> i agree - 720p60 is a safer bet. that's what most people on twitch use for similar reasons
[16:42:27 CEST] <alexpigment> allows you to have good quality HD with smooth motion, and most people can stream it at reasonable bitrates
[16:42:34 CEST] <redrabbit> yeah my stream looks super blocky
[16:42:36 CEST] <alexpigment> also no hardware acceleration issues on older devices
[16:42:37 CEST] <furq> yeah and youtube gives a decent bump to 60fps stuff
[16:42:50 CEST] <furq> it usually looks nicer in addition to being smoother
[16:43:07 CEST] <alexpigment> there was a while where 720p in general looked better than 1080p on youtube
[16:43:18 CEST] <alexpigment> i'm not sure if that is still true, but it wouldn't surprise me
[16:43:26 CEST] <furq> mine defaults to 720p anyway
[16:43:47 CEST] <redrabbit> i picky highest quality available usually
[16:43:59 CEST] <redrabbit> for that case looks like im gonna switch to 720p
[16:44:05 CEST] <furq> i have also noticed that vp9 generally does better at every resolution
[16:44:21 CEST] <redrabbit> no hw encoders th o
[16:44:24 CEST] <furq> much better in some cases
[16:44:34 CEST] <furq> and yeah i didn't mean uploading vp9
[16:44:52 CEST] <furq> i've seen a few youtube videos that were rate starved all to hell before the vp9 version finished processing
[16:45:04 CEST] <furq> and then the vp9 version looks absolutely fine
[16:45:25 CEST] <furq> usually pathological stuff like old arcade games when the screen gets super busy
[16:48:48 CEST] <alexpigment> for what it's worth, i just found a fairly high motion video on youtube, and here's what I'm seeing for the bitrates (in case this is helpful for anyone)
[16:49:04 CEST] <alexpigment> 720p = 2239Kbps
[16:49:22 CEST] <alexpigment> 1080p = 4271Kpbs
[16:49:34 CEST] <alexpigment> 1440p = 10.1Mbps
[16:49:47 CEST] <alexpigment> 2160p = 22.3Mbps
[16:49:51 CEST] <furq> are those all vp9
[16:49:58 CEST] <furq> also is that 60fps
[16:50:00 CEST] <alexpigment> nope, all H.264
[16:50:02 CEST] <alexpigment> nope
[16:50:06 CEST] <alexpigment> 30fps
[16:50:12 CEST] <alexpigment> just throwing that out there
[16:50:49 CEST] <alexpigment> still, it's good to know they're going up to 22Mbps for 2160p
[16:51:00 CEST] <alexpigment> should be adequate for decent H.264
[16:51:29 CEST] <furq> http://vpaste.net/pazl1
[16:51:33 CEST] <furq> that's pretty typical
[16:52:55 CEST] <alexpigment> so it looks like they only do webm for 60fps?
[16:53:40 CEST] <alexpigment> well, i guess Dash as well... i don't really understand what dash is. i need to read up on that
[16:56:13 CEST] <furq> "DASH video" is h264
[16:56:21 CEST] <alexpigment> yeah, i was just thinking that
[16:56:29 CEST] <furq> i'm pretty sure they do webm over dash as well, so idk why youtube-dl calls it that
[16:56:31 CEST] <alexpigment> do the dash videos all dynamically switch between each other?
[16:56:43 CEST] <furq> yeah it's much the same as hls
[16:56:45 CEST] <alexpigment> or does each dash stream contain lower resolutions.
[16:56:48 CEST] <alexpigment> ?
[16:57:17 CEST] <furq> it'll dynamically switch quality based on bandwidth etc
[16:58:05 CEST] <furq> and also it conveniently provides a degraded experience on iOS
[16:58:10 CEST] <alexpigment> right, but does it jump from 1080p dash to 720p dash dynamically, or does the 1080p have a 360p stream build in that it degrades to
[16:58:12 CEST] <furq> because those guys are stuck using the http streams which cap at 720p
[16:58:37 CEST] <alexpigment> i guess the former seems more logical
[16:58:38 CEST] <furq> it's the same as hls, you get a bunch of playlist files with segments and it'll switch between playlists
[16:58:43 CEST] <alexpigment> gotcha
[16:58:45 CEST] <alexpigment> ok, thanks
[16:58:57 CEST] <alexpigment> i see the word a lot but i've never really looked into it for whatever reason
[16:59:12 CEST] <furq> it's very similar to hls but it's got "MPEG" in the name and also it's not made by apple
[16:59:19 CEST] <alexpigment> ah
[16:59:43 CEST] <dystopia_> hls is anoying
[16:59:55 CEST] <c_14> and uses xml because reasons
[17:00:06 CEST] <furq> but yeah you need to use a thirdparty app for anything over 720p on iOS
[17:00:20 CEST] <furq> because they refuse to support mpeg-dash (unless you're on netflix.com)
[17:00:33 CEST] <furq> you'd think apple would love anything with mpeg in the name
[17:06:03 CEST] <alexpigment> apple often actively blocks technologies that they don't financially benefit from
[17:06:14 CEST] <alexpigment> which is why quicktime won't play MPEG-4 files with MP3 audio
[17:06:22 CEST] <alexpigment> (unless you rename to F4V, curiously)
[17:06:57 CEST] <furq> well they're pretty much the only ones going all in with hevc and ignoring av1
[17:06:59 CEST] <kerio> quicktime player on macos doesn't support hevc :c
[17:07:06 CEST] <furq> lol really
[17:07:14 CEST] <furq> that'll have to change quick
[17:07:53 CEST] <furq> iOS 11 is going full-on hevc for everything afaik
[17:07:56 CEST] <furq> including for images
[17:08:49 CEST] <furq> which is good because there are no other new lossy image formats that are just starting to gain widespread support
[17:09:01 CEST] <furq> certainly not any made by google
[17:11:10 CEST] <kerio> :^)
[17:12:08 CEST] <kerio> well i can't open the x265 example mp4 on safari ios either
[17:12:53 CEST] <kerio> so whaddayaknow
[17:19:02 CEST] <furq> nice
[17:25:36 CEST] <ritsuka> kerio: it's supported in 10.13 and iOS 11, that will be out next month
[17:25:42 CEST] <kerio> ;o
[17:25:47 CEST] <kerio> yay
[17:25:49 CEST] <kerio> do i get hwaccel tho
[17:25:58 CEST] <kerio> iphone 7 and oldish mbp
[17:26:06 CEST] <ritsuka> but only hvc1 fourcc, so probably files from ffmpeg won't work
[17:26:09 CEST] <ritsuka> yes if you have a recent intel cpu or iphone 7 and later
[17:46:22 CEST] <dan3wik> Does -video_size change input resolution and -s changes output?
[17:47:25 CEST] <BtbN> how would you change input resolution?
[17:57:42 CEST] <kepstin> many webcams have selectable resolution, for example
[17:58:35 CEST] <kepstin> dan3wik: on input devices with selectable resolution, the '-video-size' input avoption can be used to select which resolution to use
[17:59:03 CEST] <kepstin> while the -s output option adds a scale filter on the output to rescale everything to your desired resolution
[17:59:12 CEST] <dan3wik> Oh yeah, Its for a webcam. So I can use that?
[17:59:24 CEST] <dan3wik> Cool, ok. thanks
[17:59:39 CEST] <kepstin> er, -video_size
[17:59:45 CEST] <kepstin> underscore, not dash :/
[18:00:31 CEST] <dan3wik> Ok, thanks. The man page on pi just says "Changes the desired frame size"
[18:00:38 CEST] <dan3wik> for both of them
[18:01:17 CEST] <kepstin> I *think* that if you use -s as an input option, the ffmpeg cli tool maps it to the -video_size option for you, but I haven't confirmed that
[18:06:45 CEST] <dan3wik> Ok. I was just checking because I script I am looking at uses -video_size as a fixed value and allows -s to be adjusted with arguments.
[18:07:39 CEST] <dan3wik> The coded in -video_size is 320x240 and the default -s is 1080x1920
[18:07:48 CEST] <dan3wik> I thought it was a little odd
[18:27:24 CEST] <niklob> Hello guys, why do I get the "[dvbsub @ 00000000025eb520] [IMGUTILS @ 00000000079ef680] Picture size 0x0 is invalid" and how to fix this?? https://pastebin.com/6fL5KmEc
[18:32:11 CEST] <dystopia_> i don't think it can handle that subtitle format
[18:33:46 CEST] <dystopia_> hmm if it's .srt just mux them in with mkvmerge
[18:34:51 CEST] <niklob> my recorder can't handle srt
[18:34:56 CEST] <niklob> only dvb
[19:32:45 CEST] <niklob> so ffmpeg can't covnert .srt to dvb?
[19:33:59 CEST] <JEEB> it could, but it doesn't
[19:34:11 CEST] <JEEB> because you would have to first render the subtitle with libass
[19:34:23 CEST] <JEEB> then convert it to an image format that the DVB subtitle encoder likes
[19:35:16 CEST] <JEEB> basically, it doesn't just work decode->encode
[19:45:16 CEST] <kerio> lib ass 🤤
[20:30:11 CEST] <niklob> how do i render with libAss?
[20:30:58 CEST] <JEEB> there's a filter for that already which takes in ASS files, so you'd have to extend that one to take subtitle AVFrames :P
[20:31:17 CEST] <JEEB> or you write similar logic on the client side (libass returns RGB pictures back)
[21:25:02 CEST] <paveldimow> Hi, anyone can explain why each mpeg packet in mpegts has different PTS? I would expect that every packet that is part of one picture/frame has the same PTS, or I am wrong?
[21:25:26 CEST] <JEEB> at the point where you are getting packets they are no longer MPEG-TS packets
[21:25:32 CEST] <JEEB> they are packets of those streams
[21:26:28 CEST] <paveldimow> JEEB: hmmm, then what does ffprobe -show_packets -select_streams v sample.mp4 shows?
[21:27:01 CEST] <paveldimow> it shows mpeg packets or not?
[21:28:04 CEST] <JEEB> paveldimow: it shows packets that are gotten for different streams from the demuxer
[21:28:10 CEST] <JEEB> it is not mpeg-ts packets
[21:28:24 CEST] <JEEB> libavformat abstracts the mpeg-ts away from you
[21:35:38 CEST] <paveldimow> JEEB: but in mpegts then all packets in the same frame have same PTS?
[21:37:03 CEST] <JEEB> no idea, haven't looked at the packets that much recently :P
[21:37:12 CEST] <paveldimow> :D
[21:42:53 CEST] <peloverde> Has anyone had luck building ffmpeg with mingw-w64 clang?
[21:44:07 CEST] <durandal_1707> what, theres error?
[21:44:34 CEST] <peloverde> multiple definitions of various GUIDs
[21:44:59 CEST] <peloverde> e.g. C:\msys64\mingw64\x86_64-w64-mingw32\lib/libstrmiids.a(lib64_libstrmiids_a-strmiids.o):strmiids.c:(.rdata$IID_ICodeInstall[IID_ICodeInstall]+0x0): multiple definition of `IID_ICodeInstall'
[21:44:59 CEST] <peloverde> libavcodec/libavcodec.a(dxva2.o):D:/dev/ffmpeg/ffmpeg/libavcodec/dxva2.c:639: first defined here
[21:49:25 CEST] <JEEB> peloverde: I remember someone bringing that up, but not sure if it was a mingw-w64 thing or an FFmpeg thing.
[21:49:33 CEST] <JEEB> is that with current FFmpeg?
[21:50:44 CEST] <peloverde> yes, it's with current master ffmpeg and current msys2 mingw-w64 clang
[21:52:43 CEST] <JEEB> ah yes
[21:52:46 CEST] <JEEB> seems like a mingw-w64 thing
[21:52:47 CEST] <JEEB> https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/cd50f3c…
[21:53:07 CEST] <paveldimow> Is this channel the right place to ask/offer job for ffmpeg developer?
[21:53:09 CEST] <JEEB> at least this is GUID declaration fixing
[21:53:41 CEST] <JEEB> paveldimow: do you need someone to work on the insides of FFmpeg or creating an API client that utilizes FFmpeg's libraries?
[21:54:29 CEST] <paveldimow> I need someone to add the support for amf0 in ffmpeg
[21:54:35 CEST] <JEEB> right
[21:54:45 CEST] <JEEB> I recommend poking the ffmpeg-devel mailing list or so
[21:54:59 CEST] <paveldimow> JEEB: Tnx!
[21:55:07 CEST] <JEEB> wait
[21:55:10 CEST] <JEEB> actionscript?
[21:55:17 CEST] <durandal_1707> amf0 is what?
[21:55:27 CEST] <JEEB> durandal_1707: http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/amf/pdf/amf0-file-fo…
[21:55:35 CEST] <JEEB> it seems like flash stuff o_O
[21:55:58 CEST] <durandal_1707> new adobe bullshit?
[21:56:10 CEST] <JEEB> old
[21:56:24 CEST] <paveldimow> old "D
[21:56:25 CEST] <JEEB> > AMF 0 was introduced ... 2001.
[21:57:49 CEST] <paveldimow> It's not my fault for sure :) the thing is that Wowza media server write metadata information in amf0 (those are the timestamps) and I need support for this in ffmpeg
[21:58:41 CEST] <JEEB> seems to be utilized in RTMP or so
[21:58:54 CEST] <paveldimow> that's correct
[21:59:07 CEST] <JEEB> lol, rtmp parser in lisp https://github.com/sile/rtmp
[22:00:08 CEST] <paveldimow> with chinese doc.. not tnx :)
[22:00:20 CEST] <JEEB> Japanese but yea
[22:09:41 CEST] <peloverde> the gcc build works fine for me with the same mingw headers/libs :(
[22:09:59 CEST] <JEEB> uh-oh. sounds like that fix I linked might have not worked with clang then
[22:10:38 CEST] <peloverde> I guess we'll see what happens when clang-5 rolls out in the next few weeks
[22:47:03 CEST] <paveldimow> Does anyone can recommend an audio filter that can hmmmm fade? the difference between audio, when combining multiple video clips?
[22:48:15 CEST] <c3-Win> You mean Normalize the audio?
[22:48:42 CEST] <paveldimow> well something like that
[22:49:39 CEST] <paveldimow> for example to cut off some spikes
[22:52:21 CEST] <c3-Win> paveldimow: Lower spikes is either using a limiter or compressor.
[22:55:01 CEST] <paveldimow> c3-Win: One more question can I use audio or video filter only on certain part of audio/video? For example use audio compressor from 00:10:34 to 00:10:36 ?
[22:55:25 CEST] <c3-Win> paveldimow: I can't say,s orry.
[23:29:00 CEST] <dystopia_> [Parsed_setsar_3 @ 000000000412ed80] num:den syntax is deprecated, please use num/den or named options instead
[23:29:11 CEST] <dystopia_> i get this error, when scaling like this "scale=1280:-4,setsar=1:1"
[23:29:26 CEST] <dystopia_> how should i be entering ir?
[23:29:31 CEST] <dystopia_> it*
[23:32:29 CEST] <BtbN> weird, it's interpreting it as a single value
[23:33:33 CEST] <relaxed> the examples say setsar=sar=1/1
[23:37:48 CEST] <dystopia_> will give that a shot relaxed
[23:47:24 CEST] <SpLiC3> when repeating a .ts stream to pipe:1 i can get multiple vlc users on but when kodi users connect the stream buffer cache goes apeshit
[23:48:21 CEST] <SpLiC3> is there any buf/cache options that would help with that, current line is...
[23:51:11 CEST] <SpLiC3> -re -fflags igndts -vsync 1 -i cache:http://someiptv:port/blah.ts -sn -tune zerolatency -map 0 -bufsize 10000k -bsf null -muxrate 10M
[23:53:41 CEST] <SpLiC3> -re -fflags igndts -vsync 1 -i cache:http://someiptv:port/blah.ts -sn -tune zerolatency -map 0 -bufsize 10000k -bsf null -muxrate 10M -f mpegts
[23:53:46 CEST] <SpLiC3> sorry missed teh -f
[00:00:00 CEST] --- Sat Aug 19 2017
1
0
[00:15:26 CEST] <cone-340> ffmpeg 03Marton Balint 07master:366e6bfc517c: fate: add overlay filter tests with alpha
[00:23:47 CEST] <cone-340> ffmpeg 03Michael Niedermayer 07master:1e6cab874512: avcodec/diracdec: Check perspective_exp and zrs_exp.
[00:23:48 CEST] <cone-340> ffmpeg 03Michael Niedermayer 07master:92da23093c78: avcodec/diracdec: Fixes integer overflow
[00:43:35 CEST] <Shiz> k/w 58
[08:25:21 CEST] <rcombs> ubitux: oh hey, was it you that recommended the Odroid-C2
[08:26:39 CEST] <rcombs> consider vs the Rock64, which is slightly slower, but has USB-3, and a much better GPU (H264 High 10 support and a kernel API that's actually useful enough that someone's written an HWContext impl for it)
[08:54:02 CEST] <ubitux> rcombs: it was a relatively "safe bet"
[08:54:09 CEST] <ubitux> rockchip support should be good though
[08:54:24 CEST] <ubitux> your main issue with arm boards is the mainline support
[08:55:19 CEST] <rcombs> yeah, I think I'll use the C2 for ARM/ARM64 dev work, but the Rock64 seems like it actually might replace my Pi3 for home media playback
[08:57:05 CEST] <ubitux> how are you going to play 10-bit animes with that stuff :s
[08:58:40 CEST] <rcombs> it has H264 High 10 hardware decoding support
[08:59:02 CEST] <wm4> wat
[08:59:41 CEST] <rcombs> only consumer chip I'm aware of that does
[09:19:24 CEST] <JEEB> rcombs: wait what
[09:19:31 CEST] <rcombs> that was my reaction
[09:19:38 CEST] <JEEB> as in, proper or "the artifacts don't show up"
[09:19:51 CEST] <JEEB> because after 2011 I've seen a lot of samples with the latter
[09:22:11 CEST] <rcombs> I'll tell you when mine comes in
[09:22:36 CEST] <JEEB> k
[09:23:21 CEST] <rcombs> data sheet says "H.264/AVC Base/Main/High/High10 profile @ level 5.1; up to 4Kx2K @ 60fps"
[09:23:31 CEST] <rcombs> (RK3328)
[09:25:11 CEST] <rcombs> JEEB: how does one distinguish "proper" from "the artifacts don't show up"
[09:25:46 CEST] <rcombs> check if output is bitexact with lavc?
[09:27:48 CEST] <JEEB> rcombs: that and I think most 8bit decoders start with fabulous purple with this sample http://www.cccp-project.net/beta/test_files/H.264-10bit-sample-railgun.mkv
[09:28:03 CEST] <rcombs> yeah, that I have seen (on RPi)
[09:28:29 CEST] <JEEB> being able to verify bit-exactness with lavc would be the final verdict I guess
[09:28:31 CEST] <rcombs> fabulous purple as soon as the black+white portion ends
[09:29:06 CEST] <rcombs> I'm not sure if it returns 16-bit for 10-bit input, or if it internally truncates or dithers the output to 8-bit
[09:29:41 CEST] <rcombs> if the latter, that makes verification tricky
[09:29:56 CEST] <JEEB> true
[09:30:52 CEST] <JEEB> I guess if it outputs 8bit then you have to bit shift that into 10bit and check error
[09:32:13 CEST] <rcombs> oh apparently it does output 10-bit as 10-bit
[09:32:29 CEST] <rcombs> so yeah I'll give it a go once I've got mine
[09:36:16 CEST] <JEEB> cool
[09:36:42 CEST] <JEEB> I'd be honestly surprised if we got proper 10bit decoding with HWdec. although even if it supports it, it's not like you can use 10bit in general since most things just don't support it :<
[09:52:18 CEST] <wm4> for hevc rockchip returns bit-packed p010
[09:59:41 CEST] <rcombs> do you have a device or are you looking at docs
[10:05:23 CEST] <wm4> if it's rockchip it's probably the same one longchair has been working on
[10:05:31 CEST] <wm4> to add ffmpeg and mpv support
[11:47:15 CEST] <cone-745> ffmpeg 03Paul B Mahol 07master:28e9ba951d1a: avcodec/dnxhdenc: call slice thread code only if slice threading is enabled
[11:59:25 CEST] <rcombs> wm4: yes
[11:59:34 CEST] <rcombs> I pinged him about it to test, but he's out atm
[12:18:13 CEST] <wm4> make: *** No rule to make target 'libavcodec/x86/simple_idct.asm', needed by 'libavcodec/x86/simple_idct.o'. Stop.
[12:18:22 CEST] <wm4> I can't tell how often I've hit this shit now
[12:19:36 CEST] <kierank> heh
[12:19:36 CEST] <kurosu> from a branch where it was not templated to another? or the nasm bug?
[12:19:49 CEST] <kurosu> just do rm libavcodec/x86/simple_idct*
[12:20:25 CEST] <wm4> the dependency issue... I know how to fix it, but it's still very annoying
[12:20:40 CEST] <wm4> especially because with make -j4 it can look like it successfully finished the builfd
[12:33:44 CEST] <rcombs> wm4: rm libavcodec/x86/*.d libavcodec/*.d
[12:33:54 CEST] <rcombs> we really should fix that though
[12:35:02 CEST] <wm4> I'd rather not delete libavcodec/*.d because then the whole thing probably rebuilds, "rm libavcodec/x86/simple_idct.d" is enough (but annoying)
[12:35:17 CEST] <wm4> I must have hit that like 10 times when testing
[12:35:23 CEST] <rcombs> remaking the .d files isn't too bad, is it?
[13:17:33 CEST] <J_Darnley> Clearly nobody should ever delete a file in ffmpeg because out-of-date .d files might refer to it.
[13:18:19 CEST] <J_Darnley> And why the heck is put_bits_ptr so shit that it doesn't seem to point to the right place?
[13:20:19 CEST] <atomnuker> J_Darnley: you're doing something wrong
[13:20:25 CEST] <J_Darnley> Well clearly.
[13:21:51 CEST] <J_Darnley> Do I need to flush before calling it?
[13:23:39 CEST] <iive> imho, this is makefile bug
[13:24:02 CEST] <iive> unless somebody knows how to write the makefile in a way that avoids this bug.
[13:25:02 CEST] <iive> i mean, it is a `make` bug
[13:25:38 CEST] <J_Darnley> Mmm. I think x264 has a dependency generation step before building anything. Maybe we should steal that.
[13:25:53 CEST] <wm4> iive: well it doesn't happen with my makefile for mpv, which is derived from mplayer's
[13:26:47 CEST] <iive> J_Darnley: the problem is that dependency are already generated, doing them again is kind of pointless
[13:27:18 CEST] <iive> wm4: well, i've seen it happen in mplayer, so maybe you could tell us how you solved that.
[13:29:31 CEST] <wm4> are you sure in mplayer it wasn't just a recursively called ffmpeg makefile
[13:30:27 CEST] <rcombs> is something actually depending on the .o
[13:31:04 CEST] <rcombs> or is make just noticing that there's a dep defined on a nonexistent file
[13:40:09 CEST] <wbs> look for "Dummy rule" in Makefile, there's a special case for this, but only for .h files
[13:44:51 CEST] <wm4> so the AVIO read_packet callback accepts partial reads?
[13:51:23 CEST] <durandal_1707> michaelni: why is frame encoder number of threads limited to 64?
[13:53:10 CEST] <durandal_1707> i feel there is nothing left to do
[13:53:51 CEST] <wm4> durandal_1707: htsp demuxer
[13:54:36 CEST] <durandal_1707> what the fck is that? some kind of abdomination?
[13:56:20 CEST] <wm4> it's tvheadend's streaming protocol https://tvheadend.org/projects/tvheadend/wiki/Htsp
[13:56:51 CEST] <nevcairiel> why do single products invent their own streaming shit now
[13:57:06 CEST] <wm4> dunno
[13:57:25 CEST] <nevcairiel> and its probably terrible? :)
[14:00:35 CEST] <J_Darnley> Ah ha! I *do* need to flush even if put_bits is aligned to a byte boundary.
[14:03:02 CEST] <atomnuker> durandal_1707: ffa1 research?
[14:13:19 CEST] <durandal_1707> atomnuker: im more home with ffv2 research
[14:19:15 CEST] <atomnuker> cool
[14:20:30 CEST] <atomnuker> the key to that and imo to everything video codec related right now is this: frequency domain intra
[14:21:04 CEST] <atomnuker> daala couldn't figure it out but if it did it would have been almost perfect
[14:32:59 CEST] <Compn> durandal_1707 : mplayer netstream ? :P
[14:33:36 CEST] <Compn> durandal_1707 : bug kostya for indeo specs
[16:30:32 CEST] <cone-642> ffmpeg 03Michael Niedermayer 07master:931c0ac95ceb: avcodec/zmbv: Check decomp_size
[21:56:47 CEST] <cone-104> ffmpeg 03Marton Balint 07master:7160992431b0: avformat/utils: always av_reduce r_frame_rate
[22:25:14 CEST] <cone-104> ffmpeg 03Werner Robitza 07master:801ba0f0ee72: filters.texi: explain audio upsampling in loudnorm
[23:38:16 CEST] <cone-104> ffmpeg 03Kyle Swanson 07master:2955cd448282: filters.texi: clarify audio upsampling in loudnorm
[00:00:00 CEST] --- Fri Aug 18 2017
1
0
[00:41:35 CEST] <medfly> Hi, friends. I can't build ffmpeg 3.3.3 with -Wl,--warn-shared-textrel -Wl,--fatal-warnings on netbsd/i386.
[00:41:54 CEST] <medfly> kinda "don't do that" but also I believe that text relocations violate W^X
[00:42:05 CEST] <medfly> I may be wrong
[00:42:30 CEST] <medfly> if I add -fPIC to CFLAGS, it gets further, but not to the end
[00:42:48 CEST] <medfly> LD libavresample/libavresample.so.3
[00:42:48 CEST] <medfly> ld: libavresample/x86/audio_convert.o: warning: relocation in readonly section `.text'
[00:42:51 CEST] <medfly> ld: warning: creating a DT_TEXTREL in a shared object.
[00:42:54 CEST] <medfly> library.mak:93: recipe for target 'libavresample/libavresample.so.3' failed
[00:44:02 CEST] <medfly> I think if you attempt to do a text relocation at runtime on a platform like netbsd which enforces W^X it will crash
[00:44:47 CEST] <iive> medfly: how is code written into memory? only dma allowed ?
[00:45:09 CEST] <iive> also, it would help if there is an option to say the name of the relocation symbol.
[00:45:14 CEST] <medfly> there are exceptions
[00:47:10 CEST] <medfly> just that the default allocation will silently not allow you to map things executable
[00:47:16 CEST] <medfly> iif they're writable
[00:47:27 CEST] <medfly> not great, i know
[00:48:07 CEST] <iive> well, I would assume that it would allow writing the code as data and then forbid writing and allow execution in a single operation.
[00:48:32 CEST] <iive> so a texrel should be done after the writing and before the switch of page attributes
[00:49:39 CEST] <medfly> I think program .text is mapped RX, so if you attempt to do te relocation and write, it will fail to write. maybe it still succeeds. but there's nothing attempting to change mapping
[00:49:54 CEST] <medfly> fail to write as in memory violation
[00:50:53 CEST] <medfly> I don't use the extension thing that allows to enforce memory protections actually, but just saw my rtld complain about text relocations
[00:50:58 CEST] <medfly> and other things are crashy, so suspected
[00:51:07 CEST] <medfly> s/memory protections/fine grained memory protections/
[00:52:03 CEST] <medfly> $ mpv *
[00:52:03 CEST] <medfly> /usr/pkg/lib/ffmpeg3/libavcodec.so.57: text relocations
[00:52:03 CEST] <medfly> /usr/pkg/lib/ffmpeg3/libavutil.so.55: text relocations
[00:52:29 CEST] <medfly> It manages to run! but I had to switch to an old version of firefox which i smaybe related
[00:52:38 CEST] <iive> things been crashiny is not proof for your suspicouns. especially if they crash after the program starts.
[00:53:12 CEST] <medfly> It doesn't do the relocations at load, it lazily does them as needed
[00:53:41 CEST] <logicaltechno> Hello. I am the developer of an Android game that relies heavily on ffmpeg to extract frames from multiple videos at a time. I am trying to improve the performance of said decoding by using the hard ware accelerated h274-mediacodec feature. I am currently experienceing this error spammed in the logs: E C2DColorConvert: unknown format passed for luma alignment number. I also this in the logs: W VideoCapabilities: Unrecognized profile
[00:54:22 CEST] <medfly> I will make a bug report :)
[00:55:03 CEST] <iive> medfly: try to find the texrels with `objdump`
[00:56:18 CEST] <medfly> hmm, I am told this is how to do it
[00:56:21 CEST] <medfly> $ readelf --relocs /usr/pkg/lib/ffmpeg3/libavcodec.so.57 | egrep '(GOT|PLT|JU?MP_SLOT)'
[00:56:23 CEST] <medfly> 00a5532c 00005307 R_386_JUMP_SLOT 00000000 _Jv_RegisterClasses
[00:56:26 CEST] <medfly> 00a55330 00009607 R_386_JUMP_SLOT 00000000 __cxa_finalize
[00:56:28 CEST] <medfly> that doens't seem like ffmpeg functions
[00:56:30 CEST] <medfly> 00a55334 0001b807 R_386_JUMP_SLOT 00000000 __register_frame_info
[00:56:33 CEST] <medfly> 00a55338 00024c07 R_386_JUMP_SLOT 00000000 __deregister_frame_inf
[00:56:53 CEST] <iive> yeh
[00:57:21 CEST] <medfly> I wonder if it's something about my local toolchain that is creating its own text relocations unless built with -fPIC
[00:57:24 CEST] <medfly> I'll ask :)
[00:57:41 CEST] <logicaltechno> You can rwork around the text relocations with --disable-asm, --disable-yasm, --disable-inline-asm, --disable-neon
[00:58:32 CEST] <logicaltechno> text relocations are fixed in ffmpeg versions newer than 3.something,,, theres no text relocations in the 3.3 version that I'm using
[00:58:40 CEST] <iive> logicaltechno: i think recent ffmpeg uses PIC for asm too
[00:59:32 CEST] <logicaltechno> I'm looking at a commit I made last year called "remove text relocations in ffmpeg" where I just changed compile options. This year, I'm using ffmpeg 3.3 and do not have to remove asm
[01:00:47 CEST] <logical> Is anyone aware of the cause of " E C2DColorConvert: unknown format passed for luma alignment number." when using android hardware acceleration?
[01:01:01 CEST] <logicaltechno> Yo logical and me are the same person..
[01:03:14 CEST] <iive> no idea about that.... i'm not even sure what luma alignment number is. i mean, luma is the Y plane in YUV,
[01:04:58 CEST] <iive> and alignment in ffmpeg is done to set planes to start from specific addresses, or each line of the image to have a specific size (linesize/stride).
[01:05:27 CEST] <iive> but then why would you need a specific format to pass a number for it...
[01:05:46 CEST] <logicaltechno> Sorry I missed what you said before "and alignment"
[01:06:02 CEST] <iive> "no idea about that.... i'm not even sure what luma alignment number is. i mean, luma is the Y plane in YUV, "
[01:06:24 CEST] <logicaltechno> I see. Thanks for giving my issue your attention.
[01:06:55 CEST] <logicaltechno> The video looks properly encoded. This android source file is where the error originates from: https://android.googlesource.com/platform/hardware/qcom/media/+/2a914b33529…
[01:07:16 CEST] <iive> there are people who know more... just wait a bit longer.
[01:08:26 CEST] <iive> so that's from line 531?
[01:09:01 CEST] <iive> NV12 is known image format.
[01:10:20 CEST] <iive> the function seems to be called from ::getBuffReq()
[01:10:26 CEST] <logicaltechno> Yes its from line 531. Exactly.
[01:11:37 CEST] <iive> so, since you are decoding the video, I'd assume that it expects the output format to be nv12_2k
[01:14:09 CEST] <logicaltechno> I'm not sure how to check that. In what function call would nv12 be specified?
[01:15:02 CEST] <logicaltechno> If I run ffprobe on my videos I get "Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,"
[01:15:11 CEST] <logicaltechno> Maybe I need to encode them with an nv12 color format?
[01:15:57 CEST] <logicaltechno> maybe I need "-pix_fmt nv12"
[01:17:39 CEST] <logicaltechno> Alright I'm encoding all my videos with -pix_fmt nv12, see ya in 30 minutes!
[01:17:40 CEST] <iive> logicaltechno: are you using ffmpeg/ffplay? or libavcodec in some program.
[01:17:48 CEST] <logicaltechno> libavcodec in an android program
[01:18:40 CEST] <iive> well, iguess setting breakpoint at the error message and checking the backtrace is not as simple on adb?
[01:20:33 CEST] <logicaltechno> It's relatively simple for my execution enviroment. The break would be in Android source code. I'm pretty optimistic about the chances of this nv12 re-encode. The thing that confuses me is that I downloaded someones example and ran ffprobe on his example mp4, and it was yuv color format
[01:27:28 CEST] <furq> logicaltechno: if you're using x264 then -pix_fmt nv12 won't change anything
[01:28:17 CEST] <furq> x264 will convert it to yuv420p internally
[01:29:34 CEST] <logicaltechno> Well snap. so if the error is from getBuffReq in https://android.googlesource.com/platform/hardware/qcom/media/+/2a914b33529…
[01:30:00 CEST] <logicaltechno> then I need to make "isYUVSurface(format)" return true
[01:33:35 CEST] <redrabbit> hi
[01:33:36 CEST] <redrabbit> Cmd=-analyzeduration {analyzeduration} {offset} {realtime} -i "{infile}" -f mpegts -pat_period 0.2 -c:v libx265 -crf 21 -x265-params vbv-maxrate=1000:vbv-bufsize=2000 -g 50 {framerate} -map 0:v:0 -map 0:a:0 -vf "yadif=0:-1:1, scale={scalex}:{scaley}" -preset {vpreset} -level 30 -c:a aac -b:a 148k -ar 44100 -cutoff 15000 -ac 2 -async 1 -y "{outfile}"
[01:33:57 CEST] <redrabbit> i use this command atm, id like to passthrough the audio instead of transcoding it
[01:34:05 CEST] <redrabbit> unsure what i should change
[01:34:20 CEST] <logicaltechno> -c:a copy
[01:34:25 CEST] <redrabbit> thanks
[01:34:30 CEST] <logicaltechno> get right of -b:a
[01:34:38 CEST] <logicaltechno> get rid of -b:a 148k
[01:34:51 CEST] <logicaltechno> probably get right of -ar, -cutoff, -ac
[01:34:55 CEST] <logicaltechno> rid** not right
[01:36:16 CEST] <redrabbit> works !
[01:36:19 CEST] <redrabbit> o/
[01:36:43 CEST] <logicaltechno> \o
[01:37:02 CEST] <logicaltechno> anyone know where the format for "isYUVSurface" is coming from?
[01:37:33 CEST] <redrabbit> oh yeah that's much better. sounds nicer than transcoding for sure
[01:59:45 CEST] <RandomCouch_> Hi, I'm trying to stream an mp3 file to an rtmp server and I'm having some issues. I'm trying to combine the mp3 with an image
[01:59:50 CEST] <RandomCouch_> this is my command
[02:00:05 CEST] <RandomCouch_> "avconv -re -i " + filePath + " -loop 1 -i local.jpg -map 0:a -map 1:v -preset veryfast -maxrate 320k -bufsize 256k -g 25 -c:a copy -b:v 128k -s 320x240 -r 30 -ar 44100 -f flv " + stream
[02:00:36 CEST] <RandomCouch_> the rtmp server receives it but it's very laggy
[02:00:38 CEST] <RandomCouch_> or choppy
[02:06:48 CEST] <hiihiii> how do you set user agent
[02:07:15 CEST] <hiihiii> I've been using -header but no success
[02:07:34 CEST] <hiihiii> I'm on a windows machine
[02:08:03 CEST] <RandomCouch_> -headers 'User-Agent: "FMLE/3.0 (compatible; FMSc/1.0)"'
[02:09:25 CEST] <RandomCouch_> so, I'm trying to stream this mp3 file combined with an image to an rtmp server, my previous command is actually working fine now, but the stream doesn't stop when it reaches the end of the mp3 because I'm looping the image with -loop 1
[02:09:39 CEST] <hiihiii> I've tried that with \r\n at the end but still not solving my issue
[02:09:47 CEST] <RandomCouch_> is there a way to have the stream stop at the end of reading the mp3 but loop the image ?
[02:11:34 CEST] <hiihiii> RandomCouch_: maybe you could set shortest=1 somewhere idk
[02:12:12 CEST] <hiihiii> -loop isn't a filter so I'm not sure
[02:12:25 CEST] <RandomCouch_> -shortest 1 ?
[02:12:31 CEST] <RandomCouch_> I just tried that it gave me Unable to find a suitable output format for '1'
[02:12:56 CEST] <hiihiii> it's not an option
[02:13:14 CEST] <hiihiii> try setting -t with the mp3's duration
[02:14:19 CEST] <RandomCouch_> hm
[02:14:25 CEST] <hiihiii> hope that won't override loop
[02:18:48 CEST] <hiihiii> I get this error when setting the header "no trailing CRLF found in HTTP header". tried adding "\r\n" to it but nope
[02:31:19 CEST] <pingouin> hello
[02:32:14 CEST] <pingouin> is it allowad to copy paste command line on the chan ? or pastebin url/link mandatory ?
[02:35:41 CEST] <JEEB> since you usually want to post the terminal output as well, that's why pastebin should be used :P
[02:37:49 CEST] <pingouin> ok thanks
[02:40:15 CEST] <pingouin> so, i record my desktop video+sound with ffmpeg and it working great - i'm sure my command line options is not the best, that another problem - i can playback my screencast with mplayer, working great, but when i try to use some vdpau options to playback the file, i only have some choppy/globy green/yellow/black/nothing for the video, the sound is playing great
[02:40:37 CEST] <pingouin> my command line to record with ffmpeg and playback with mplayer : https://pastebin.com/YVyi3yN9
[02:41:50 CEST] <pingouin> installed last nvidia drivers to give a shot at - mine was old - no change
[02:43:00 CEST] <pingouin> the mplayer playback with vdpau options work great on dvd or others files i did not recorded myself with ffmpeg
[03:08:29 CEST] <kepstin> pingouin: with that ffmpeg command, your video will probably be yuv444p pixfmt, which i guess your vdpau decoder doesn't handle correctly.
[03:09:36 CEST] <kepstin> you can add "-pix_fmt yuv420p" to the ffmpeg command and it'll use a more widely supported format
[03:09:54 CEST] <kepstin> (with some quality loss, since it reduces the chroma resolution)
[03:10:10 CEST] <pingouin> ok, hmmm, how can i find the yuv444p info from the video ? i see nothing with the mplayer -identify
[03:10:23 CEST] <pingouin> i've to try that
[03:14:25 CEST] <redrabbit> is there a way to offload some of the load of that command to the gpu decoder ?
[03:14:26 CEST] <redrabbit> Cmd=-analyzeduration {analyzeduration} {offset} {realtime} -i "{infile}" -f mpegts -pat_period 0.2 -c:v libx265 -crf 19 -x265-params vbv-maxrate=3200:vbv-bufsize=6400 -g 50 {framerate} -map 0:v:0 -map 0:a:0 -vf "yadif=0:-1:1, scale={scalex}:{scaley}" -preset {vpreset} -level 30 -c:a copy -async 1 -y "{outfile}"
[03:14:41 CEST] <redrabbit> i have a 1060 6gb
[03:15:01 CEST] <redrabbit> i heard they had encoders build in but im unsure i can use them
[03:15:51 CEST] <redrabbit> gains from decoding source from the hw decoders were marginal last time i tried
[03:16:36 CEST] <iive> i think you have to look for "nvenc"
[03:17:44 CEST] <redrabbit> h264_nvenc
[03:17:58 CEST] <redrabbit> looks like it doesnt do HEVC
[03:18:00 CEST] <redrabbit> ?
[03:18:16 CEST] <iive> it does, if it is new enough.
[03:18:34 CEST] <redrabbit> i shall use h265_nvenc then i guess
[03:18:35 CEST] <iive> (driver and ffmpeg)
[03:18:51 CEST] <redrabbit> last drivers and ffmpeg
[03:19:01 CEST] <iive> well, yeh. h265 is hevc
[03:21:29 CEST] <furq> redrabbit: nvenc is much lower quality than x265
[03:21:51 CEST] <furq> it's not that bad for realtime stuff though
[03:23:07 CEST] <pingouin> kepstin: thank you, it's working with this strange option ! GPU decode works, and the video is playing without any blob
[03:23:14 CEST] <pingouin> wtf is this option ?!
[03:24:11 CEST] <iive> yuv is different color space. similar to one used internally by analog color TV
[03:25:10 CEST] <iive> Y is luminacity (aka gray levels) and U and V are caller color differential (e.g. Green-Blue, Green-Red)
[03:26:17 CEST] <iive> 1:1 transition from rgb to yuv would produce yuv444. Because human eye is less sensitive to color changes, you can actually send less of color info.
[03:26:49 CEST] <iive> this is done by sending UV planes at half resolution for yuv422 (half width)
[03:27:09 CEST] <iive> or quarter for yuv420 (half width and half height)
[03:27:34 CEST] <pingouin> whoaw.... :/
[03:28:14 CEST] <pingouin> and vdpau do not like the default used when i record...
[03:28:24 CEST] <pingouin> have to check what it can handle...somewhere
[03:29:34 CEST] <iive> it probably reports yuv444 as supported, but handles it as yuv420...
[03:30:00 CEST] <pingouin> http://us.download.nvidia.com/XFree86/Linux-x86_64/384.59/README/vdpausuppo…
[03:30:09 CEST] <pingouin> is it what we talking about ?
[03:30:47 CEST] <iive> VDP_CHROMA_TYPE
[03:31:22 CEST] <furq> you probably want -pix_fmt yuv422p then
[03:31:37 CEST] <furq> unless 420 is acceptable quality
[03:31:51 CEST] <furq> oh nvm
[03:31:57 CEST] <furq> In all cases, VdpDecoder objects solely support 8-bit 4:2:0 streams,
[03:33:48 CEST] <pingouin> yeah quality is ok on everything, maybe a little blury on command line text...
[03:34:33 CEST] <iive> lossy video doesn't like sharp edges
[03:35:59 CEST] <iive> -qp 0 would make libx264 lossless.
[03:36:31 CEST] <iive> if there are any artifacts, they could be from the yuv444->420 reduction.
[03:37:11 CEST] <iive> gtg, n8 ppl
[03:37:31 CEST] <pingouin> yeah, tried the -qp 0 option.....the file was huge !
[03:37:44 CEST] <pingouin> yeah, good night & thank iive
[03:39:38 CEST] <pingouin> thank you kepstin !
[03:40:11 CEST] <pingouin> i would never figure it out by myself....until 1000 years of test
[03:52:00 CEST] <redrabbit> Cmd=-analyzeduration {analyzeduration} {offset} {realtime} -i "{infile}" -f mpegts -pat_period 0.2 -c:v h264_nvenc -preset slow -bufsize 4000k -maxrate 2000k -crf 20 -g 50 {framerate} -map 0:v:0 -map 0:a:0 -vf "yadif=0:-1:1, scale={scalex}:{scaley}" -level 30 -c:a copy -async 1 -y "{outfile}"
[03:52:05 CEST] <redrabbit> im using this command
[03:52:13 CEST] <redrabbit> somehow it only works with mpeg2 sources
[03:52:19 CEST] <redrabbit> strange
[03:52:57 CEST] <redrabbit> h265_nvenc didnt worked at all though
[03:55:44 CEST] <pingouin> thank you very much again.
[03:55:50 CEST] <pingouin> Good day/night
[04:13:19 CEST] <redrabbit> http://dpaste.com/3W24QPN
[04:13:34 CEST] <redrabbit> Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[04:14:03 CEST] <redrabbit> when i try to transcode AVC source it doesnt start
[04:14:22 CEST] <redrabbit> mpeg2 source works though
[04:14:45 CEST] <redrabbit> probably an option in the command i posted before
[04:19:54 CEST] <hiihiii> hello
[04:20:26 CEST] <hiihiii> how do you pipe the outout of ffmpeg to compression tool, say zip
[04:21:37 CEST] <hiihiii> ffmpeg -i input | zip archive.zip ?
[04:22:29 CEST] <hiihiii> since zip expects an output followed by a list of inputs, the ubove command is failing
[04:26:47 CEST] <redrabbit> "yadif=0:-1:1, scale={scalex}:{scaley}" was messing it up
[04:32:43 CEST] <redrabbit> doesnt look too bad for something that uses so little cpu
[04:40:01 CEST] <redrabbit> -c:v hevc_nvenc
[04:40:08 CEST] <redrabbit> and not -c:v h265_nvenc
[04:40:09 CEST] <redrabbit> heh
[04:40:11 CEST] <redrabbit> _o/
[04:45:16 CEST] <redrabbit> hw encoding works nicely
[04:45:22 CEST] <redrabbit> hw decoding : Error while opening decoder for input stream #0:0 : Operation not permitted
[04:45:43 CEST] <redrabbit> only uses 10% cpu with hw decoding, but id like to shave as much as i can
[04:45:56 CEST] <redrabbit> without hw decoding*
[04:50:47 CEST] <redrabbit> ah, solved it
[06:20:35 CEST] <redrabbit> well looks like hw encoder for hevc maxes out around 3Mbit
[06:50:36 CEST] <xacktm> redrabbit: hey, do you mind me asking what you ahve installed for nvenc? I've tried this command to capture teh screen but I keep getting "Cannot Init CUDA!" https://bpaste.net/show/de8052d290b8
[10:13:54 CEST] <JustASquid> Anyone familiar with dshow for webcam capture?
[14:02:09 CEST] <certaindestiny> Hi all, I am getting a Too many inputs specified for the setpts filter error when using this command https://pastebin.com/U7tzCf4Y, Anybody able to figure out why this is happening?
[14:03:34 CEST] <DHE> always include the output from ffmpeg as well
[14:03:48 CEST] <DHE> first guess without said output is that the input source has multiple video streams?
[14:04:18 CEST] <durandal_1707> certaindestiny: you do not name output pad for each filter
[14:04:31 CEST] <durandal_1707> only for some
[14:04:52 CEST] <certaindestiny> @durandal_1707, I am sorry can you please elaborate?
[14:05:34 CEST] <certaindestiny> @dhe, How can i specify which inputs to keep?
[14:06:39 CEST] <DHE> that's also a good point. if you separate filters with a comma, the outputs from one carry to the input of the next
[14:06:48 CEST] <durandal_1707> certaindestiny: what to elaborate? i described what you need to do, simply copypasta can not work
[14:06:55 CEST] <DHE> use a ;semicolon; if you want only the indicated names to be used
[14:07:30 CEST] <durandal_1707> you need to understand that how filterfraphs are built
[14:07:45 CEST] <durandal_1707> filtergraphs
[14:09:09 CEST] <certaindestiny> @durandal_1707, Do you mean i cannot use both the setpts and hstack filter in the same line and need to apply first pts and then the hstack?
[14:09:51 CEST] <durandal_1707> certaindestiny: hstack takes and needs multiple inputs
[14:09:59 CEST] <DHE> the rules of how you specify filter inputs and outputs vary depending on what character you use.
[14:10:12 CEST] <durandal_1707> you can not do setpts,hstack
[14:10:19 CEST] <DHE> ;[input] filter=params [output]; # the semicolons means this is an isolated filter
[14:10:46 CEST] <DHE> , filter=params, # the commas mean to chain the previous output into this input, and this output into the next filter's input
[14:11:05 CEST] <durandal_1707> you need to do: setpts a, setpts b, a b hstack
[14:11:18 CEST] <certaindestiny> So i would need to something along the line of [0:v] setpts [a] ;[a] hstack
[14:11:20 CEST] <DHE> as a matter of style, I suggest always using ;semicolon; style when doing complex filters
[14:11:49 CEST] <DHE> [0:v] setpts=...[a] ; [1:v] setpts=... [b] ; [a][b] hstack [out]
[14:12:05 CEST] <DHE> this filtergraph will horizontally stack 2 videos and call the resulting video [out]
[14:12:58 CEST] <certaindestiny> ah ok ok ok, I though i could directly apply the setpts filter to the video input
[14:13:30 CEST] <certaindestiny> as here:https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%… both pts and scale where applied in a row
[14:15:29 CEST] <durandal_1707> certaindestiny: you can do the same just you need to connect right pads to filter input/outputs
[14:17:00 CEST] <certaindestiny> durandal_1707, Something like this? https://pastebin.com/NHP912tH
[14:19:08 CEST] <durandal_1707> certaindestiny: sure. but better use alphabet only for naming pads
[14:20:07 CEST] <certaindestiny> @durandandal_1707, I am now getting No such filter: '' does it not allow spaces to be present?
[14:37:26 CEST] <durandal_1707> you mis typed smthing
[14:40:26 CEST] <certaindestiny> @durandall, I is working now. Thanks for the help
[14:40:35 CEST] <certaindestiny> thank aswell DHE
[14:41:34 CEST] <ZoomZoomZoom> Hi! How can I extract an audio stream from a mp4 file, when the stream misses a header?
[14:42:40 CEST] <ZoomZoomZoom> Should I force an input format? It should work, but I don't know how to do it per-stream.
[14:43:05 CEST] <BtbN> misses a header? So, a broken mp4 file?
[14:44:09 CEST] <ZoomZoomZoom> Kinda. It says "[mp2 @ 00000000004edbe0] Header missing"
[14:45:54 CEST] <ZoomZoomZoom> I have 2 files from same source. ffprobe says "Stream #0:1[0x1c0]: Audio: mp2, 0 channels, s16p" for the audio stream in the first file and "Stream #0:1[0x1c0]: Audio: mp2, 0 channels" for the second.
[14:49:22 CEST] <ZoomZoomZoom> I could analyze and convert the stream by hand, if I could just separate it from the container.
[14:50:19 CEST] <BtbN> 0 channels looks very broken though
[14:51:49 CEST] <ZoomZoomZoom> The files play (with no sound, of course), and I can demux the video stream. But not audio.
[15:24:16 CEST] <redrabbit> hi, im using ffmpeg to stream my iptv service with my 1060 as the encoder
[15:24:41 CEST] <redrabbit> wondering what is the best solution to use ffmpeg/hw encoding to stream the content of my win10 desktop
[15:32:23 CEST] <furq> redrabbit: you probably want to use OBS for screen capture on windows
[15:33:20 CEST] <redrabbit> looking it up
[15:33:38 CEST] <redrabbit> so it works with nvidia hw encoder i guess
[15:34:36 CEST] <furq> should do
[15:34:36 CEST] <redrabbit> installing it
[15:34:52 CEST] <redrabbit> yeah it would make sense
[15:36:37 CEST] <certaindestiny> I am still trying to stream 4 rtsp stream to 1 udp stream. However i am seeing an enormous amount of errors. for which i can not find a reason why they are appearing. Anybody having any experience with this? https://pastebin.com/qBxjkdhb
[15:37:15 CEST] <furq> do you get those errors while decoding one of those streams
[15:37:58 CEST] <certaindestiny> You mean sepperatly?
[15:38:17 CEST] <furq> yeah
[15:38:27 CEST] <furq> ffmpeg -i rtsp://foo -f null -
[15:39:11 CEST] <redrabbit> out of curiousity is it called multiplexing
[15:39:26 CEST] <furq> is what called multiplexing
[15:39:28 CEST] <certaindestiny> I am getting those errors aswell on the single rtp stream
[15:39:45 CEST] <redrabbit> kind of like TV streams ?
[15:39:56 CEST] <furq> certaindestiny: those are mpeg2 decoder errors, so if you're getting it with one stream then your upstream is probably broken
[15:40:21 CEST] <furq> i doubt there's much ffmpeg can do about that
[15:40:22 CEST] <redrabbit> with multiple channels in one multiplex so variable bandwith worth together
[15:40:39 CEST] <certaindestiny> That would be highly unlikely as decoding the stream directly on VLC is not giving any error messages at all
[15:42:56 CEST] <certaindestiny> Think i might have got it. Buffer size and max delay should be after the stream input not before i think
[15:45:06 CEST] <certaindestiny> nvm, that fixes it for the single stream but not all 4 of them
[15:52:44 CEST] <certaindestiny> Furq, any advice?
[15:57:50 CEST] <redrabbit> furq: i figured i would need to run a streaming server
[15:58:00 CEST] <redrabbit> what do you recommand for debian
[16:04:21 CEST] <c7j8d9> I running a batch script to convert multiple files in a folder. is there a way add a delete command to delete the current file when done converting?
[16:04:43 CEST] <c7j8d9> @echo off & setlocal
[16:04:43 CEST] <c7j8d9> FOR /r %%i in (*.mkv) DO ffmpeg -i "%%~fi" -c:v copy -c:a ac3 "%%~dpni%.mp4"
[16:46:23 CEST] <relaxed> c7j8d9: do ffmpeg ... && <command to delete current file in loop>
[16:47:33 CEST] <c7j8d9> del "%%~fi" ?
[16:54:00 CEST] <SpeakerToMeat_> I can't find any concise online explanation about the difference between tbr, tbn and tbc? how they're calculated, used, sourced, set, etc?
[16:54:23 CEST] <SpeakerToMeat_> Is there any such document somewhere? or is the only solution to read source code?
[16:55:05 CEST] <JEEB> "tb" is time base
[16:55:36 CEST] <SpeakerToMeat_> Ok,
[16:56:23 CEST] <JEEB> which exact values are being gotten you would have to check ffmpeg.c's code
[16:56:24 CEST] <JEEB> but
[16:56:25 CEST] <JEEB> 29.97 tbr, 90k tbn, 59.94 tbc
[16:56:35 CEST] <JEEB> 90k seems like the container time base
[16:56:45 CEST] <JEEB> 59.94 would probably be the decoder's code base?
[16:57:02 CEST] <JEEB> 29.97 would probably be some "frame rate" time base?
[16:57:08 CEST] <JEEB> let's see how wrong I am :)
[16:57:22 CEST] <SpeakerToMeat_> Sigh, thanks, I think I'll end up perusing the source.
[16:57:41 CEST] <kepstin> i think tbr is from the framerate, and is sometimes estimated, yeah
[16:58:05 CEST] <JEEB> seems to be libavformat/dump.c
[16:58:09 CEST] Action: kepstin thought tbc was container time base, but that doesn't make sense on mpeg-ts
[16:58:28 CEST] <JEEB> kepstin: yea what I just poked with a stick is MPEG-TS and you can see 90k in tbn
[16:58:50 CEST] <JEEB> it's interlaced NTSC so the 59.94 tbc makes sense for the AVCodecContext frame rate
[16:58:59 CEST] <JEEB> "frame rate"
[16:59:03 CEST] <JEEB> I mean time base
[16:59:39 CEST] <JEEB> yup, tbc is the decoder time base
[17:00:14 CEST] <JEEB> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/dump.c;h=8fd58a0…
[17:00:25 CEST] <JEEB> SpeakerToMeat_: there you have the definitions :)
[17:00:42 CEST] <JEEB> don't be fooled by the "print_fps", it is not frame rate
[17:00:50 CEST] <JEEB> it is the time base for that given thing
[17:01:19 CEST] <SpeakerToMeat_> there's this https://stackoverflow.com/questions/3199489/meaning-of-ffmpeg-output-tbc-tb… but these things make no sense without some sort of strange/crazy units as there's no reason to the numbers, how can I have a file with a tbn of 24 and a tbc of 12288, 12288 frames per second? and this is a codec copied file where the original has a tbn of 24 and a tbc of 24
[17:01:35 CEST] <JEEB> as I said, it's not a frame rate
[17:01:54 CEST] <SpeakerToMeat_> Then, it's a time fraction? 12288 means 1/12288 of a second?
[17:01:55 CEST] <JEEB> time base is the maximum precision of timestamps
[17:05:26 CEST] <JEEB> so in "29.97 tbr, 90k tbn, 59.94 tbc" , tbr is the time base of a "frame rate" of the stream (however that is filled), tbn is the demuxer's time base (MPEG-TS has a time base of 90 kilohertz so the value is correct), tbc is the time base gotten from the decoder
[17:06:01 CEST] <JEEB> these are all internal values that can also be very much misleading or somehow wrong :D
[17:06:32 CEST] <JEEB> SpeakerToMeat_: I hope this helped :)
[17:10:37 CEST] <pingouin> hello #ffmpeg
[17:10:48 CEST] <SpeakerToMeat_> JEEB: And why the original file has 24 for tbn? btw this is prores jic
[17:10:59 CEST] <pingouin> iive: thank you again for the help last night
[17:11:24 CEST] <iive> pingouin: what was the issue?
[17:11:35 CEST] <JEEB> SpeakerToMeat_: different containers have different limitations for values etc
[17:11:39 CEST] <JEEB> among other possibilities
[17:12:05 CEST] <JEEB> I really recommend not to stare too much at all of those values but rather I would probably look at ffprobe's stuff like -show_streams or -show_frames with -of json
[17:12:14 CEST] <pingouin> also thank you too kepstin
[17:13:34 CEST] <pingouin> iive: the -vdpau option for the playback with mplayer, encode with ffmpeg need to put the -pix_fmt due to some limitation of the nvdia vdpau
[17:13:49 CEST] <iive> oh, sure.
[17:14:18 CEST] <pingouin> you quited before i can thank you
[17:14:35 CEST] <iive> i think you did
[17:15:55 CEST] <SpeakerToMeat_> JEEB: Yeah but I worry because I do a -c:v copy, source is 24,24,24, output is 24,12288,24 and when played in quicktime (not mplayer, ffplay or vlc) it has unexplainable pauses
[17:16:10 CEST] <pingouin> when i do an : ffmpeg -pix_fmts
[17:16:29 CEST] <JEEB> SpeakerToMeat_: from what container to what container btw?
[17:16:40 CEST] <SpeakerToMeat_> JEEB: from quicktime to quicktime
[17:16:45 CEST] <JEEB> mov to mov?
[17:16:50 CEST] <SpeakerToMeat_> yes
[17:16:55 CEST] <JEEB> ok, that's funky
[17:16:58 CEST] <JEEB> do you set any params?
[17:16:59 CEST] <pingouin> i get a list of a lot option available, one draw my attention : ..H.. vdpau_h264
[17:17:10 CEST] <JEEB> also can you test with the latest master of FFmpeg?
[17:17:23 CEST] <pingouin> is it to encode espescialy for the vdpau ?
[17:17:24 CEST] <SpeakerToMeat_> JEEB: None, only two maps as I'm adding an audio track to a quicktime that had none
[17:17:31 CEST] <JEEB> ah
[17:17:44 CEST] <JEEB> I wonder if that's where it's getting the time base for one of the tracks
[17:18:20 CEST] <SpeakerToMeat_> JEEB: basically (filenames changed:( ffmpeg -i video.mov -i audio.wav -map 0:0 -map 1:0 -c copy out.mov
[17:18:30 CEST] <JEEB> yea
[17:18:48 CEST] <SpeakerToMeat_> Hmm maybe I'd have to ffprobe the sound file... yet it's the stream 0 (video) on the out that's changing
[17:19:30 CEST] <JEEB> yea, since the time bases are stream-specific (although f.ex. MPEG-TS always has 90k there because that's the global specified time base for that specific container) and the print is only done when AVMEDIA_TYPE_VIDEO
[17:19:59 CEST] <JEEB> I would rather check both time bases with -show_streams -of json with ffprobe in that output .mov
[17:20:20 CEST] <JEEB> also it would be interesting to know the general ffprobe details (without any parameters) of the input files
[17:20:25 CEST] <SpeakerToMeat_> pingouin: I have no personal idea, but what I'd gather it's probably a vdpau sped up encoder?
[17:20:35 CEST] <SpeakerToMeat_> JEEB: Ok.
[17:20:53 CEST] <JEEB> metadata and file names aren't really too interesting (as in, tags etc) - mostly time bases and other technical information on the input files
[17:21:04 CEST] <pingouin> SpeakerToMeat_: any idea where can i read about that ?
[17:21:39 CEST] <SpeakerToMeat_> pingouin: ... maybe try.... one second
[17:22:21 CEST] <SpeakerToMeat_> pingouin: ffmpeg -h encoder=vdpau_h264
[17:22:31 CEST] <SpeakerToMeat_> if it's an encoder, it should show more help there
[17:22:42 CEST] <SpeakerToMeat_> JEEB: Until it starts failing :D
[17:23:56 CEST] <pingouin> bah, not a big deal, wanted to understand better what this is....
[17:24:02 CEST] <pingouin> thank you anyway
[17:24:04 CEST] <JEEB> well, yea - I'm trying to gather the general details of the input files so suddenly the thing becomes reproduce'able without your original input files
[17:24:05 CEST] <SpeakerToMeat_> pingouin: I myself don't have it, but I have an nvenc_h264 which is an nvidia encoder, so I'm guessing hardware assisted
[17:24:33 CEST] <SpeakerToMeat_> JEEB: Yeah I gather that, I will try in a short while, right now I'm doing a heavy process. Thanks for the help
[17:24:54 CEST] <pingouin> SpeakerToMeat_: Codec 'vdpau_h264' is not recognized by FFmpeg when i try you above command ( ffmpeg version 3.2.5-1 )
[17:25:14 CEST] <pingouin> SpeakerToMeat_: and i got all the nvdia's driver ( playing with vdpau work great)
[17:26:25 CEST] <SpeakerToMeat_> pingouin: Yeah I don't have that one either, you saw this on your "ffmpeg -codecs" list?
[17:27:51 CEST] <pingouin> nop it's the answer of the ffmpeg -h encoder=vdpau_h264
[17:29:11 CEST] <pingouin> SpeakerToMeat_: but if i do an : ffmpeg -codecs i got : DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_crystalhd h264_vdpau ) (encoders: libx264 libx264rgb h264_nvenc h264_omx h264_vaapi nvenc nvenc_h264 )
[17:30:53 CEST] <jkqxz> h264_vdpau is a deprecated standalone decoder, replaced by the VDPAU hwaccel. It is nothing to do with encoding.
[17:33:03 CEST] <pingouin> jkqxz: ok thank you for the information
[17:33:58 CEST] <pingouin> jkqxz: do you know any hardware acceleration encoder/option to try for h264 with ffmpeg ?
[17:35:34 CEST] <jkqxz> See the standalone hardware encoders in your list - h264_nvenc, h264_omx, h264_vaapi. Which of those might be usable will depend on what hardware you have.
[17:37:36 CEST] <pingouin> jkqxz: ok thank for the help, i'll test that
[17:38:25 CEST] <SpeakerToMeat_> JEEB: I'll retake this asap, but I'm pretty sure so far a) the audio influenced/influences the tbc somehow b) this might not have to do with tbc but with a TC track
[18:00:04 CEST] <pingouin> sorry to bother but what is the difference between h264_nvenc & nvenc_h264 ? i'm confuse
[18:03:31 CEST] <SpeakerToMeat_> pingouin: I have no idea, I'd guess they're different names for the same encoder... but it's a guess
[18:06:03 CEST] <durandal_1707> there is long description for the reason
[18:07:32 CEST] <SpeakerToMeat_> JEEB: It seems for some reason, the time base for the original video is being changed when rewrapped with the audio, and that's odd... https://pastebin.com/ibYZsuPu
[18:07:56 CEST] <SpeakerToMeat_> JEEB: I gotta run about now, but when I come back I'll see if I can somehow compile a newer ffmpeg (lots of deps. LOOOTS of deps, but it might be worth it)
[18:08:00 CEST] <SpeakerToMeat_> And test that one
[18:08:12 CEST] <pingouin> durandal_1707: where can i read about ?
[18:09:08 CEST] <jkqxz> nvenc_h264 is a deprecated name for h264_nevnc. (It existed before it was agreed that all of those encoders should use the form "$codec_$api".)
[18:09:31 CEST] <pingouin> ok ! great
[18:10:27 CEST] <jkqxz> So they are the same thing, but you should use h264_nvenc because nvenc_h264 will be removed in some future version.
[18:10:50 CEST] <pingouin> many thanks for the light about this jkqxz !
[18:14:37 CEST] <SpeakerToMeat_> JEEB: Now if you see my inputs, I have a %0.1 discrepancy between video and audio, and I think it might be the reason of it all, maybe (just maybe) ff is trying to make them match and thus changes the time base for the video... this happened because of a bug in resolve which caused troubles with premiere. sigh
[18:41:01 CEST] <SpeakerToMeat_> Ok, no, doing a codec copy of ProRes 422, ffmpeg 3.2.5 insists on changing the time base, from 1/24000 to 1/12288
[18:41:04 CEST] <SpeakerToMeat_> for some reason
[18:56:07 CEST] <jdelStrother> Hi there
[18:59:32 CEST] <jdelStrother> I'm trying to find a decent programmatic way of determining if an mp3 is VBR or not. I thought I'd be able to walk through the mp3 frames with `ffprobe -show_frames` and figure out the bitrate for each frame from that, but that doesn't quite give what I was hoping for
[18:59:57 CEST] <furq> mediainfo?
[19:00:33 CEST] <jdelStrother> urgh, I was hoping to avoid adding another binary dependency
[19:09:42 CEST] <furq> if you're using python then mutagen will do it as well
[19:10:20 CEST] <furq> the fastest way is to just check the xing header but that's only reliable for mp3s encoded by lame
[19:11:19 CEST] <dustobub> Hey! I'm trying to do a video capture from a WDM device (Blackmagic Decklink) and have it record for only 8 seconds and then exit the process. Currently when I run the following command, the recording finishes after 8 seconds, but the process doesn't exit. Does anyone know of a way to have the process exit cleanly without resorting to timeout+pkill
[19:11:19 CEST] <dustobub> ? Here's the command: ffmpeg -y -f dshow -video_size 3840x2160 -pixel_format uyvy422 -rtbufsize 256MB -framerate 24 -t 00:00:08 -i video="Blackmagic WDM Capture" -c:v h264_nvenc -b:v 20000k capture.mp4
[19:12:17 CEST] <furq> maybe move -t after the input
[19:15:52 CEST] <dustobub> furq: thanks for the suggestion, but that seems to do the same thing. any other ideas?
[19:17:06 CEST] <furq> the same thing as what
[19:18:49 CEST] <dustobub> furq: the behavior is the same (it doesn't automatically exit after the recording stops)
[19:19:12 CEST] <furq> oh right i thought you were someone else
[19:19:22 CEST] <furq> i'm not really sure what would be causing that
[19:39:53 CEST] <c_14> check strace or a--, wait windows
[19:39:56 CEST] <c_14> attach the debugger?
[19:40:01 CEST] <c_14> I'm pretty sure that's a thing you can do in windows
[19:56:09 CEST] <ney> I'm in trouble with streaming ffmpeg to ffserver using a c++ code, someone help?
[19:57:03 CEST] <BtbN> Don't use ffserver
[19:57:05 CEST] <BtbN> it's dead
[19:58:06 CEST] <ney> Whoa... this is new to me. What I have to use instead?
[19:59:19 CEST] <ney> By the way, the ffserver is configured and working for me, the problem is sending the output to it.
[19:59:39 CEST] <BtbN> It's been unmaintained for years, just dragged along because some people refuse to drop it
[20:00:06 CEST] <BtbN> And nobody really knows how to work with it, and it has a long list of issues nobody cares to fix.
[20:00:22 CEST] <ney> It's important, what do you recommend to make the streaming?
[20:00:32 CEST] <BtbN> The usual thing people use is nginx-rtmp
[20:00:51 CEST] <ney> Ah! Great, I'll look for it.
[20:02:12 CEST] <ney> My application consists in capturing image from one or more webcams and streaming over internet. But I have to make some realtime in image, like zooming, panning, overlay them.
[20:02:52 CEST] <BtbN> sound like you are looking for obs?
[20:03:13 CEST] <ney> So, I'm trying to capture and manipulate it with OpenCV, send to a server with ffmpeg and broadcast it. Is a good idea?
[20:03:28 CEST] <ney> "Obs"? What does it means?
[20:03:38 CEST] <BtbN> That's the name of the software.
[20:03:46 CEST] <ney> * broadcast with nginx now.
[20:04:14 CEST] <ney> I want to build one, for my masters dissert.
[20:04:38 CEST] <devinheitmueller> ney: https://obsproject.com/
[20:05:49 CEST] <ney> Obs don't works for me.
[20:07:13 CEST] <ney> Mode datailed: I have a webcam connected to a Raspberry PI. I send commands to it, and the Raspberry have to prepare the image (zoom, pan, crop ... these things) and send the treated image to the server, understood?
[20:08:14 CEST] <ney> There is a robot connected to Raspberry.
[20:08:28 CEST] <devinheitmueller> Ugh. Good luck doing any serious image processing on a Pi. :-)
[20:08:52 CEST] <BtbN> the processing is not the problem
[20:08:55 CEST] <BtbN> the encoding to stream it is
[20:09:36 CEST] <ney> Ahhh, I have hearded about this. Even at 15 Fps, is not praticeable?
[20:09:53 CEST] <ney> An 640 x 480 image
[20:09:56 CEST] <BtbN> if you manage to utilize the hardware encoder, maybe
[20:09:59 CEST] <BtbN> but it's shit quality
[20:11:03 CEST] <ney> I think I'll have to try ... and do the best I can, even if to say to team that is inviable.
[20:12:16 CEST] <devinheitmueller> BtbN: I assumed he had access to the MMAL facilities on the Pi, but turns up under ffmpeg only decode was implemented. So yeah, hes not going to get very far.
[20:12:48 CEST] <BtbN> I remember there being some h264_omx?
[20:13:00 CEST] <devinheitmueller> Why on earth does everybody work so hard to do everything with a Pi? For most people, a NUC would work just as well and only costs $200.
[20:13:19 CEST] <ney> Hey, NUC? What is it?
[20:13:21 CEST] <atomnuker> less, even,
[20:13:37 CEST] <atomnuker> you can get one for around 80 or so bux
[20:13:59 CEST] <devinheitmueller> nehttps://www.intel.com/content/www/us/en/products/boards-kits/nuc.html
[20:14:01 CEST] <devinheitmueller> ney: https://www.intel.com/content/www/us/en/products/boards-kits/nuc.html
[20:14:06 CEST] <atomnuker> (having at least some celeron with avx, they're not bad)
[20:14:59 CEST] <ney> Here in Brazil is expensive (about 4x more than a RPi)
[20:15:04 CEST] <devinheitmueller> atomnuker: Yeah, I assumed $200 after you add memory and a storage. But yeah, still quite cheap and well worth it if youre not trying to ship thousands of units.
[20:15:51 CEST] <atomnuker> ah, yeah, memory is expensive
[20:16:08 CEST] <atomnuker> (very expensive nowadays, what happened?)
[20:16:16 CEST] <devinheitmueller> ney: Are you planning on shipping a thousand robots? If youre really only going to build a single robot, just buy a NUC or other small form-factor PC and save yourself a lot of headache.
[20:17:21 CEST] <ney> I have to talk with my team to change hardware. But is a very good tip that we was uninformed.
[20:18:00 CEST] <ney> Sure I'll look for it
[20:19:03 CEST] <ney> But, even if we change the hardware, I think the software will be the same, right? Opencv -> ffmpeg -> nginx...
[20:20:29 CEST] <devinheitmueller> ney: Probably. Except in that case the hardware will be 50X faster than a Pi, so you may actually be able to do that workload on the platform without having to spend three months optimizing the code.
[20:20:51 CEST] <devinheitmueller> :-)
[20:20:58 CEST] <ney> That's sounds very good!!!
[20:21:30 CEST] <ney> So, I have one ffmpeg question to you.
[20:22:02 CEST] <ney> I used a sample code that save a stream to a file, opening from webcam. Worked just fine.
[20:22:47 CEST] <ney> Then, instead redirect the output to a file, I redirected to a feed at ffserver (that I'm abandoning now)
[20:23:24 CEST] <ney> I want to know if to stream to a server is very different to stream to a file, because my try doesn't worked.
[20:24:10 CEST] <ney> I'm using FLV as conteiner and libx264 as encoder, to be more suitable.
[20:24:42 CEST] <devinheitmueller> You would probably have to provide more detail as to why it failed. Probably the easiest thing to do for debug/testing would be to just set the output to udp://x.x.x.x:1234 and see if you can watch it with VLC.
[20:25:16 CEST] <ney> I made the output to http and tried to get in VLC.
[20:25:40 CEST] <ney> The VLC debug received a lot of data, but not displayed anything.
[20:26:27 CEST] <devinheitmueller> HTTP adds alot of complexity where things can go wrong, hence using just UDP multicast avoids such.
[20:28:29 CEST] <ney> There are some source code or tutorial where I can research how to do this?
[20:28:45 CEST] <devinheitmueller> https://trac.ffmpeg.org/wiki/StreamingGuide
[20:29:28 CEST] <furq> ney: what pi is it
[20:30:06 CEST] <ney> (SHAME!!!) RPi B+ <:(!
[20:30:18 CEST] <furq> yeah that's not going to do much
[20:30:24 CEST] <furq> i was going to say it might be worth a try if you have a 3
[20:30:47 CEST] <furq> the encoder is the same on all of them, but opencv is probably too much for a pi
[20:31:29 CEST] <ney> As I'm using opencv only to make some transformations on matrixes, I have some lighter alternative?
[20:32:05 CEST] <furq> opencv apparently has some neon optimisations so i guess that's your best choice on a pi
[20:32:21 CEST] <furq> the encoding is basically free, but obviously the hardware encoder is really poor quality
[20:32:41 CEST] <furq> and if you're using the pi camera interface then the decoding is basically free as well
[20:32:55 CEST] <furq> so opencv (and audio if you need that) is the only bit that will hit the cpu
[20:33:20 CEST] <ney> Yeah, but I'm thinking if the Pi cannot handle it, I stream the whole image over the net and make the treatments client sided.
[20:33:39 CEST] <furq> yeah that'll work fine
[20:33:54 CEST] <ney> I'm thinking in save CPU or save bandwidth, what is more critical on the project.
[20:34:09 CEST] <furq> you probably don't have a choice really
[20:34:18 CEST] <furq> unless your webcam is like 480p or less
[20:34:37 CEST] <ney> The way all of you are saying... I gess not, really.
[20:34:57 CEST] <furq> obviously it's worth trying it for yourself
[20:35:17 CEST] <devinheitmueller> On that topic, look what just came across on Hackaday: http://hackaday.com/2017/08/17/hackaday-prize-entry-inspectorbot-aims-to-lo…
[20:35:23 CEST] <furq> just encoding and streaming the raw images off the webcam should be no problem
[20:35:31 CEST] <devinheitmueller> Might be worth seeing how this person wrote their software.
[20:35:36 CEST] <furq> as long as it's not a usb webcam
[20:35:57 CEST] <furq> you just need ffmpeg built with --enable-omx
[20:36:49 CEST] <ney> Ohh, that robot is a dream!!!
[20:37:24 CEST] <ney> That webcam looks like usb, no?
[20:38:00 CEST] <furq> the issue with usb is that you'd need to use mjpeg for HD
[20:38:10 CEST] <furq> also i'm pretty sure that's using the pi camera interface
[20:38:15 CEST] <furq> at least the top camera is
[20:38:40 CEST] <furq> mmal on the pi does mjpeg decoding but i don't think that made it into ffmpeg yet
[20:38:57 CEST] <ney> I'm with difficulties with one camera and they made with two! Humiliating!
[20:39:01 CEST] <furq> and rawvideo over usb2 won't work well for anything over 480p
[20:39:29 CEST] <furq> someone was trying something similar with a pi zero and they couldn't decode 720p30 mjpeg in realtime
[20:39:43 CEST] <ney> So, let's start my research on NGinx. Make a c++ program to send a stream to nginx is almost the same to send for a video stream on Hard Disk?
[20:39:59 CEST] <furq> not really
[20:40:05 CEST] <furq> you'd need to mux to flv and send over rtmp
[20:40:18 CEST] <furq> if you're already using the ffmpeg libs then it's not that much different
[20:40:36 CEST] <ney> Yes, using the ffmpeg libs...
[20:40:43 CEST] <furq> that should be fine then
[20:41:09 CEST] <ney> Man, all of you, thanks for the chat! I learnt a lot!
[20:41:24 CEST] <ney> I'll return when have some news!
[20:41:44 CEST] <ney> An thanks for the NUC tip, I'll try to use them with the team!
[20:41:57 CEST] <ney> See you soon!
[21:06:27 CEST] <Pandela> Afternoon, just curious still. Does anyone know if FFmpeg can process an entire file, but skip frames of which to process a video? Say only apply a filter to the first few seconds or so on?
[21:09:22 CEST] <durandal_1707> yes
[21:12:28 CEST] <devinheitmueller> Just run ffmpeg -frames 60 foo.ts and it will only process the first 60 frames of video.
[21:13:22 CEST] <devinheitmueller> (i.e. 60 frames = 20 seconds of video if FPS=30)
[21:13:31 CEST] <devinheitmueller> s/20/2/
[21:17:22 CEST] <Pandela> devinheitmueller: That only encodes the first 60 frames lol, I want to process the entire video but only apply a filter to the first few frames or so
[21:17:49 CEST] <BtbN> add the video as input twice, once skipping 60, once only 60. Filter first one, concat.
[21:18:18 CEST] <durandal_1707> Pandela: yes use smthing like: vflip=enable=....
[21:20:18 CEST] <Pandela> durandal_1707: I'm gonna give that a shot, sadly ladspa audio filters do not have Timeline support, which uses that =enable= flag
[21:20:31 CEST] <Pandela> BtbN: That might work too <3
[21:21:10 CEST] <BtbN> if you encode to a similar format, you might even be able to not re-encode the rest of the video
[21:21:40 CEST] <Pandela> what about codec copy?
[21:22:35 CEST] <BtbN> you can't filter if you don't encode.
[21:26:27 CEST] <SpeakerToMeat_> It has nothing to do with the audio, if I try to copy the video stream only to a new file, it still changes the time base to 1/12288
[21:28:21 CEST] <Pandela> BtbN: touche
[21:29:06 CEST] <durandal_1707> you can encode to null
[21:57:20 CEST] <SpeakerToMeat_> Arrrrrrgh, ffmpeg 3.3.3 does the same thing
[22:25:13 CEST] <techno_> I'm trying to use the h264_mediacodec for android hw accel decoding and am receiving this message spammed in the logcat output: C2DColorConvert: unknown format passed for luma alignment number
[22:25:16 CEST] <techno_> anyone have any ideas?
[22:26:52 CEST] <niklob> Hello gents, I have a .ts file with dvb subs. Is it possible to find out which character encoding was used, even though dvb is a bitmap stream?
[22:27:22 CEST] <JEEB> the best you might get is the language code
[22:32:35 CEST] <SpeakerToMeat_> niklob: As it's a bitmap stream, the original encoding should be lost/gone, it's just pixels now, no encoding for those
[22:33:22 CEST] <niklob> yeah, taht's what i expected. i was just hoping there might be something in the metadata, but ffprobe didn't show it
[22:35:29 CEST] <paveldimow> Hi, any chance that ffmpeg will support amf0?
[22:37:26 CEST] <niklob> Another problem: I imported srt subs like this: "ffmpeg -i input.mkv -i eng.srt -c:v copy -c:a copy -c:s dvbsub -map 0:0 -map 0:1 -map 1:0 -metadata:s:s:0 language=eng output.ts" and they show up as dvbsubs in the tracklist in VLC
[22:37:34 CEST] <niklob> BUT: they are invisible
[22:38:39 CEST] <devinheitmueller> paveldimow: what are you trying to do with amf0?
[22:39:00 CEST] <niklob> It's strange, because ffmpeg didn't return any errors or warnings, but after activating the track, the subtitles remain hidden/invisible
[22:39:01 CEST] <furq> presumably something to do with rtmp
[22:39:13 CEST] <devinheitmueller> furq: Yeah, perhaps pass through Ad triggers?
[22:40:08 CEST] <paveldimow> devinheitmueller: I a trying to read that metada
[22:40:54 CEST] <devinheitmueller> Yeah, presumably you would have to build a bitstream filter.
[22:41:03 CEST] <paveldimow> the thing is that client is doing live streaming via mobile app and when media server saves mp4 I need to read this metadata
[22:41:17 CEST] <llogan> niklob: use a pastebin to show complete console output
[22:41:17 CEST] <paveldimow> it should contain timestamps
[22:41:57 CEST] <paveldimow> but I am don't know, so I would like to dump this metadata
[22:41:59 CEST] <devinheitmueller> Sounds like fun. Pretty sure youre going to have to write some code. There isnt any functionality like that readily available to users.
[22:42:21 CEST] <paveldimow> well... I tried :) thank you for your answer
[22:42:52 CEST] <paveldimow> maybe any other tool that is capable of this?
[22:43:56 CEST] <devinheitmueller> Not that I know of. Feels like the sort of thing you could hack together in a few hours if you knew what you were doing.
[22:45:03 CEST] <paveldimow> well I just saw your github... I am not 0.1% near.. :)
[23:12:33 CEST] <SpeakerToMeat_> The only encoder that can do prores HQ is prores_ks
[23:13:43 CEST] <SpeakerToMeat_> that was supposed to be a question. ugh
[23:13:54 CEST] <SpeakerToMeat_> It seems prores and prores_ka can't do HQ, am I right?
[23:17:02 CEST] <llogan> SpeakerToMeat_: I believe they both can, but prores_aw may not accept named values, so use -profile:v 3 or whatever
[23:17:27 CEST] <llogan> there really should be only one prores encoder... dumb to have two
[23:18:33 CEST] <JEEB> I thought one of them was removed recently
[23:19:00 CEST] <llogan> ah. i haven't been paying attention lately.
[23:19:16 CEST] <JEEB> I could be wrong of course
[23:19:42 CEST] <JEEB> fug
[23:19:43 CEST] <JEEB> still there
[23:19:46 CEST] <JEEB> :V
[23:20:00 CEST] <llogan> may you live 1000 years and never hunt again
[23:21:10 CEST] <alexpigment> is one of them better than the other in terms of encoding speed?
[23:21:22 CEST] <alexpigment> i vote on keeping that one and fixing whatever annoyances there are with profile naming ;)
[23:21:42 CEST] <JEEB> IIRC anatoly's was faster by default but kostya's compressed better?
[23:21:51 CEST] <alexpigment> interesting
[23:22:07 CEST] <alexpigment> i'm sure it's probably pretty small in terms of visual differences
[23:22:13 CEST] <llogan> AFAIKAND/ORIIRC there was some discussion about it on -devel ML
[23:22:14 CEST] <alexpigment> unless you're doing a proxy preset
[23:22:23 CEST] <JEEB> llogan: yea
[00:00:00 CEST] --- Fri Aug 18 2017
1
0
[00:54:50 CEST] <cone-013> ffmpeg 03Michael Niedermayer 07master:0ac8fce2679e: swresample/resample: Fix flush refelction length
[01:49:03 CEST] <iive> refelction? reflection?
[03:14:37 CEST] <jamrial> nevcairiel: "LINK : fatal error LNK1000: Internal error during BuildLibrary" :D
[03:15:02 CEST] <jamrial> msvc2017 x86_32
[03:17:32 CEST] <jamrial> this is after you updated the compiler yesterday it seems
[03:18:02 CEST] <jamrial> affects static builds only
[03:18:13 CEST] <jamrial> it also started failing some audiomatch tests in shared builds (which compile fine)
[03:45:07 CEST] <cone-013> ffmpeg 03Nikolas Bowe 07master:4b54d5a721cc: avformat/mov: Fix memory leak when reading DDTS box.
[03:45:08 CEST] <cone-013> ffmpeg 03Leo Izen 07master:cbd8e070561b: encoders.texi: Replace x264 --full-help suggestion with --fullhelp
[09:16:23 CEST] <gene_> Hi guys, I ran into a weird ffmpeg issue that I'm hoping you guys might know how to squeeze past
[09:16:58 CEST] <gene_> I'm trying to add a epoch timestamp to a video recording, which is formated by %s
[09:17:30 CEST] <gene_> Pretty much all other drawtext formats work fine (%a %b %S %d %Y) etc.
[09:18:20 CEST] <gene_> but when I put the %s in there the recording immediately breaks and it prints out something about side data ( Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1)
[09:19:35 CEST] Action: rcombs summons reviews; prepares for controversy
[09:20:15 CEST] <durandal_1707> rcombs: for what?
[09:20:28 CEST] <rcombs> TLS verify-by-default
[09:21:11 CEST] <gene_> I'm hoping one of you might know how to avoid using this seemingly special %s side data code sequence. Been trying to figure it out for like 3 hours with no luck lol. Or if you guys know a different way to drawtext without referencing %s
[09:21:12 CEST] <nevcairiel> unless you can hook up proper callbacks for API users to be notified, thats not going to work =p
[09:21:50 CEST] <rcombs> nevcairiel: I have it configurable at compile-time, and people who need the current behavior and use the system-installed library can turn it off at runtime
[09:22:54 CEST] <nevcairiel> the point stands that plainly failing without the ability to know why from an API standpoint is no good
[09:23:33 CEST] <rcombs> there are any number of ways to fail without knowing why from an API standpoint
[09:24:03 CEST] <rcombs> not sure why this is any different
[09:25:11 CEST] <nevcairiel> because bad cert is something you may want the ability to let the user intervene and add an exception or whatever
[09:25:29 CEST] <rcombs> I mean, I guess it could be a new AVERROR code
[09:26:05 CEST] <rcombs> but it's currently AVERROR(EIO) with an error logged, and you can always try again with verify=0
[09:26:53 CEST] <nevcairiel> i do wonder though, if its such an important topic for you, why don't you just set verify to 1 in your code :D
[09:27:27 CEST] <rcombs> because it matters to me that people using ffmpeg.c, or mpv, or whatever else, actually are protected by TLS
[09:27:38 CEST] <rcombs> right now it's effectively worthless by default
[09:28:23 CEST] <nevcairiel> i never understand that, people claim that everytime and make it out to be that unverified tls is somehow much much worse then plain http, but you still get encryption and everything
[09:28:49 CEST] <rcombs> it makes the user think it's safe when it's really not
[09:28:53 CEST] <cone-446> ffmpeg 03Paul B Mahol 07master:7b19e76aeb0a: avfilter/vf_transpose: rewrite for x86 SIMD
[09:29:03 CEST] <rcombs> and encryption is useless if the other party is an impersonator
[09:29:15 CEST] <rcombs> sure, it protects against a purely-passive attacker
[09:29:22 CEST] <nevcairiel> you're downloading a media file =p
[09:29:35 CEST] <rcombs> but anyone in a network position to do passive snooping is also in a position to intercept your connection
[09:30:01 CEST] <rcombs> potentially on a private server with auth, potentially with private contents
[09:31:09 CEST] <rcombs> alternately, an attacker could modify the file to trigger a code-exec bug and pwn you (not like there's never been a code-exec bug in media code)
[09:31:42 CEST] <rcombs> fwiw opportunistic encryption (i.e. encryption without authentication) is a good thing when it doesn't produce a false sense of security
[09:32:53 CEST] <rcombs> meanwhile, if consumer code really cares about the current behavior, and doesn't care about verification& they can just as easily set verify to 0 in their code
[09:33:20 CEST] <rcombs> I'll yell at them if they do, but they can just as easily as I can add verify=1 to mine
[09:34:20 CEST] <nevcairiel> my point however stands, as long as I cant add a callback or w hatever that gives me cert information on failure so i can ask the user, its practically unusable
[09:35:26 CEST] <rcombs> "verification failed and the user wants to skip it" is an extremely edgy case these days
[09:35:44 CEST] <rcombs> the only real reason you'd want to do that in 2017 is for debugging
[09:35:56 CEST] <rcombs> and if you're debugging you can set verify=0 yourself
[09:37:55 CEST] <rcombs> nevcairiel: would you be okay with a callback that runs synchronously during tls_open() and passes you an engine-specific pointer?
[09:38:38 CEST] <rcombs> (like, SSL* for OpenSSL, gnutls_session_t for GNUTLS, SSLContextRef for Secure Transport&)
[09:41:55 CEST] <nevcairiel> thats how curl handles this iirc, just gives you those structs. if you also tell it what the engine actually is, it could probably work
[09:42:09 CEST] <rcombs> that would be easy enough to do
[09:42:45 CEST] <rcombs> I don't think this should block on that, though, since anything that needs to disable verification can still do so
[09:44:38 CEST] <rcombs> (if I was going to build that, I'd want to work with a consumer that's using it, and do more testing)
[09:47:56 CEST] <nevcairiel> our use-case at work for that is that people host their media at home and may want to stream that on the go or wherever, you know, everyone offers this these days. Of course you want that encrypted, but because its a home connection they don't have a proper hostname and thus no proper certificate - to give us some security we exchange the fingerprint through our servers on a secure and verified channel, and do our own fingerprint
[09:47:57 CEST] <nevcairiel> check on the certificate
[09:48:25 CEST] <rcombs> oh, we have that same use-case
[09:48:28 CEST] <rcombs> we just give them certs
[09:48:48 CEST] <nevcairiel> we thought about offering a dynamic-dns service with certs
[09:48:54 CEST] <nevcairiel> but thats too much right now
[09:49:22 CEST] <rcombs> you could use let's encrypt and wildcards, when those are available
[09:49:53 CEST] <rcombs> <IP with s/\./-/>.<user fingerprint>.<domain>
[09:50:31 CEST] <rcombs> but yeah, that sounds like a reasonable use-case for self-verification, sure
[09:51:24 CEST] <nevcairiel> to be honest by the time they would get to ffmpeg reading the media, our app would already have verified the cert, unless someone jumps in between right then and there
[09:51:28 CEST] <rcombs> that sounds like rather than having a callback on failure, you'd want a callback that runs instead of the default verification routine
[09:51:43 CEST] <rcombs> yeah, the trick would be to fingerprint lavf's TLS connections against your app's
[09:51:51 CEST] <rcombs> which is probably doable
[09:51:59 CEST] <nevcairiel> on failure works, as long as it lets me say "try again and ignore failure this time"
[09:52:19 CEST] <rcombs> wouldn't even necessarily have to be "try again"
[09:52:29 CEST] <rcombs> just "continue with the connection despite the failure"
[09:53:06 CEST] <rcombs> could implement it as a callback whose default is the default verification function, which is also available as public API
[09:53:28 CEST] <rcombs> and then if you want to do the default, and then do something else if it fails, you just call the default function first thing in your own handler
[09:57:02 CEST] <rcombs> nevcairiel: alternately you could provide your custom CA in the ca_path arg and set the custom domain in the host arg
[09:59:10 CEST] <rcombs> in other news: I was really surprised to find that https://wrong.host.badssl.com/ worked with verify=1 with tls_openssl
[09:59:36 CEST] <rcombs> turns out it verifies the root but not the leaf's subjectname
[09:59:52 CEST] <wbs> rcombs: because implementing that is a pretty large, nontrivial piece of code
[10:00:02 CEST] <rcombs> wbs: not in OpenSSL 1.1
[10:00:05 CEST] <wbs> (and as you noticed, they only recently got a function that does that for you)
[10:00:08 CEST] <wbs> exactly
[10:00:20 CEST] <wbs> our openssl code integration was written in 2011, long long before openssl 1.1
[10:00:29 CEST] <rcombs> yeah
[10:00:55 CEST] <wbs> and when I did our openssl code, I looked at how curl does it (it was like a 100+ line function, that just at the same time had a found vulnerability in hostname/cert parsing)
[10:01:13 CEST] <rcombs> fun!
[10:01:26 CEST] <rcombs> I also looked at that, actually
[10:01:53 CEST] <rcombs> briefly considered porting it but settled on the warning
[10:01:59 CEST] <wbs> it's pretty astonishing that openssl, given how widespread it is, hasn't provided that until now
[10:02:15 CEST] <rcombs> yeah that's a mess
[10:02:20 CEST] <JEEB> aye
[10:02:35 CEST] <wbs> because it's really nontrivial code to do right (an trivial case that handles the simplest ones would probably be pretty simple)
[10:03:19 CEST] <wbs> but then, doing a security relevant function intentionally half-assedly doesn't sound right either, then I rather don't pretend to do it at all (a warning telling the user about this, instead of a code comment, probably is smart) :P
[10:04:07 CEST] <rcombs> yeah, that's what I was thinking as well
[10:04:44 CEST] <rcombs> and then 1.1 handles it just fine, so that's solved for future
[10:05:13 CEST] <rcombs> how long until their relicense finishes and people can actually redistribute ffmpeg builds using it
[10:05:17 CEST] <rcombs> I wanna stop building GNUTLS
[10:05:49 CEST] <rcombs> (god building GNUTLS is a mess)
[10:06:10 CEST] <wbs> for client code, I don't mind gnutls, but for the server side of things (at least on older debian stables), openssl is the only usable thing
[10:06:45 CEST] <rcombs> I haven't looked at the APIs much; the build is just a mess
[10:07:01 CEST] <wbs> yeah
[10:07:11 CEST] <wbs> although openssl with their weird custom build system isn't too nice either
[10:07:20 CEST] <rcombs> true
[10:07:24 CEST] <rcombs> that's getting a bit better though
[10:08:55 CEST] <wm4> last time we heard about the relicensing, it made headlines by offending people with badly worded letters
[10:09:12 CEST] <rcombs> their CLA process is a mess
[10:09:34 CEST] <rcombs> it involves downloading a PDF, filling it out and signing it (in Preview Dot App), and emailing it back
[10:09:57 CEST] <wm4> there are simpler methods that aren't legally worse (apparently)
[10:10:25 CEST] <rcombs> yeah I get the feeling lawyers came up with this without asking any non-lawyers if it was a good idea
[10:10:39 CEST] <rcombs> and lawyers are used to deal with bullshit like that all day
[10:10:55 CEST] <rcombs> (or, their paralegals are, anyway)
[10:11:00 CEST] <wm4> lol
[10:13:02 CEST] <JEEB> yup
[10:13:11 CEST] <JEEB> sounds like "the usual process for lawyers"
[10:13:18 CEST] <JEEB> which for tech people is meh dot png
[10:13:44 CEST] <rcombs> at least they only want it once per person
[10:13:59 CEST] <rcombs> I could imagine lawyers wanting once per contribution
[13:45:37 CEST] <cone-534> ffmpeg 03Paul B Mahol 07master:16efcfe4138f: avfilter/vf_weave: fix top vs bottom field order
[13:54:20 CEST] <rcombs> what is with the MPEG people and size-size fields that are always completely useless because everybody just sets them to 4
[13:55:21 CEST] <JEEB> ah yes
[13:55:32 CEST] <JEEB> theoretical optimization :D
[14:24:47 CEST] <rcombs> wow
[14:24:57 CEST] <rcombs> I'm working on HEIF in lavf because I'm stupid
[14:25:04 CEST] <rcombs> and damn this is way overengineered
[14:25:17 CEST] <JEEB> yea
[14:25:53 CEST] <rcombs> it can split an image across multiple mdats because& why not, I guess?
[14:26:04 CEST] <rcombs> (why not is that that's stupid and unnecessarily complex)
[14:26:41 CEST] <rcombs> but this is MPEGshit so the words "unnecessarily complex" produce boners
[14:27:06 CEST] <wm4> commercial multimedia standards are designed to produce consultants
[14:27:21 CEST] <atomnuker> rcombs: does heif store jpegs as well?
[14:27:31 CEST] <wm4> maybe it's for incremental encoding/loading
[14:27:46 CEST] <rcombs> atomnuker: afaik that's not specced but there's no reason it couldn't if you defined an ID for it
[15:01:25 CEST] <BtbN> Interesting, that NDI video codec is lossy, but without generation-loss.
[15:01:45 CEST] <BtbN> So re-compressing the same video again and again will only reduce the quality once initially
[15:04:02 CEST] <kierank> BtbN: allegedly
[15:04:10 CEST] <kierank> but depends on their dct and their encoder
[15:04:13 CEST] <BtbN> that should be easy to prove?
[15:04:15 CEST] <kierank> vc-2 can do the same thing
[15:05:11 CEST] <niklob> Hello, I was trying to soft-embed srt subs as dvbsubs: ffmpeg -i in.mkv -i English.srt -c:v copy -c:a copy -c:s dvbsub out.mkv but I get "Application provided invalid, non monotonically increasing dts to muxer in stream 2: 3005830 >= 1670230 av_interleaved_write_frame(): Invalid argument"
[15:05:23 CEST] <niklob> I thought this was fixed: https://trac.ffmpeg.org/ticket/2024
[15:09:32 CEST] <niklob> it's ffmpeg version n3.0.7-2-gdffd455 von win10 x64 if it matters
[15:10:03 CEST] <BtbN> that's in bad need of an update.
[15:10:15 CEST] <BtbN> Also not really a -devel question.
[15:15:50 CEST] <niklob> sorry, I will try 3.3.3 now. Any advice in case it fails?
[15:17:47 CEST] <JEEB> the error says the reason. your input is borked. first there was a packet pushed into the output with a timestamp 3005830 , and then 1670230
[15:17:56 CEST] <JEEB> time is going backwards!
[15:29:41 CEST] <niklob> JEEB: those are miliseconds right? Because I looked in my srt file and it's not going backwards at anywhere near that marker
[15:31:13 CEST] <JEEB> that's in the output time base
[15:48:51 CEST] <ubitux> do we have a global init function somewhere?
[15:49:19 CEST] <nevcairiel> kind of, what do you want to init?
[15:49:48 CEST] <ubitux> global system configuration stuff somehow
[15:50:13 CEST] <ubitux> don't we have a global mutex initialized somewhere?
[15:51:21 CEST] <nevcairiel> we have the w32thread stuff that globally inits once when its used first, maybe you can follow that pattern?
[15:51:41 CEST] <nevcairiel> use pthread_once to init on first use
[15:51:51 CEST] <ubitux> mmh. i guess yeah. thanks
[15:52:37 CEST] <nevcairiel> in other news, nasm must surely be producing oddly shaped win32 object files, now it breaks even more msvc builds =p
[15:52:53 CEST] <JEEB> \o/
[15:54:06 CEST] <niklob> 3.3.3 did it. ty guys
[15:54:40 CEST] <wm4> ubitux: we don't add new global init stuff
[15:54:52 CEST] <wm4> <nevcairiel> we have the w32thread stuff that globally inits once when its used first, maybe you can follow that pattern? <- that's per source file
[15:58:26 CEST] <atomnuker> ubitux: av_register_all() (or the lavc-only one)?
[15:58:44 CEST] <ubitux> yeah, no ;)
[15:59:03 CEST] <ubitux> it's fine, i'll hack something, it's just a PoC
[16:57:54 CEST] <nevcairiel> jamrial: the static build failure was nasm, they must truely be producing odd object files. the audiomatch thing is a few single bit differences in the decoded audio, presumably using float for comparison is a bad idea? :)
[16:58:13 CEST] <jamrial> lol nasm
[17:00:09 CEST] <jamrial> honestly, if we can't even take advantage of the feature that allows dependency creation and assembly in one call, then maybe we should keep yasm as the default until avx512 code starts to land
[17:02:42 CEST] <nevcairiel> i switched it over to yasm anyway, cant really do anything for the audiomatch other then suggesting to use aac_fixed for decoding =p
[17:05:06 CEST] <ubitux> what's the nasm bug count up to now?
[17:05:33 CEST] <nevcairiel> they fixed the dependency thing upstream after wbs send a patch
[17:05:40 CEST] <nevcairiel> but unreleased of course
[17:06:16 CEST] <nevcairiel> it basically being broken with visual studio 2017 is still out there
[17:06:31 CEST] <ubitux> should i report that one? https://trac.ffmpeg.org/ticket/6516
[17:06:57 CEST] <nevcairiel> guess it wouldnt hurt
[17:06:57 CEST] <ubitux> or you know a related existing bug report?
[17:07:16 CEST] <nevcairiel> trying to slim down a minimal reproduction case for the vs2017 breakage is rather annoying
[17:18:02 CEST] <rcombs> BtbN: I just recently learned the same is true of JPEG
[17:18:38 CEST] <BtbN> really?
[17:18:48 CEST] <rcombs> yeah, at a given quantizer
[17:18:56 CEST] <BtbN> interesting
[17:19:13 CEST] <rcombs> "indempotent" is the term
[17:19:49 CEST] <rcombs> technically it's true at the block level, specifically; in theory an encoder could apply different quantizers on different blocks
[17:20:10 CEST] <rcombs> but most (all?) JPEG encoders just take your "quality" input and use it as the quantizer setting for the whole image
[17:20:56 CEST] <nevcairiel> jpeg defines how this quality value is to be used
[17:21:04 CEST] <nevcairiel> it scales the DCT table
[17:21:15 CEST] <wm4> does libavcodec's mjpeg encoder use this?
[17:24:50 CEST] <nevcairiel> no idea, its mpegvideo_enc, not going to find out
[17:34:23 CEST] <wm4> here be dragons
[17:34:50 CEST] <atomnuker> wat
[17:35:07 CEST] <wm4> https://en.wikipedia.org/wiki/Here_be_dragons
[17:35:49 CEST] <atomnuker> nah, I meant that surely at least one encoder besides mozjpeg is smart enough to do rdo
[17:42:31 CEST] <TD-Linux> rcombs, JPEG doesn't have any way to signal quantizers at different blocks. however you can use RDO to shift it
[17:55:57 CEST] <J_Darnley> Is the FFALIGN macro only able to align for power-of-2 values?
[17:56:55 CEST] <atomnuker> J_Darnley: nope, it works for everything
[17:56:57 CEST] <J_Darnley> Nevermind, I do have a power of 2 value
[18:02:57 CEST] <J_Darnley> Ah... of course, put_bit_count will return something much larger than expected with that change.
[18:07:51 CEST] <nevcairiel> atomnuker: i dont think FFALIGN works for anything but powers of two, or perhaps some sums of power of twos
[18:09:07 CEST] <nevcairiel> it uses bitmath after all, so if the binary representation of a-1 doesnt turn out to have a bunch of ones at the end, it wouldnt work
[18:09:32 CEST] <atomnuker> hm, you're right, I guess I misremembered
[19:25:16 CEST] <durandal_1707> kierank: how would lipsync work with noninteger framerates?
[19:28:18 CEST] <kierank> 1601, 1602 pattern
[19:28:41 CEST] <kierank> But afaik you can't do that in avfiltrr
[19:29:12 CEST] <durandal_1707> kierank: why?
[19:29:33 CEST] <durandal_1707> what is 1602 pattern?
[19:29:47 CEST] <kierank> There is a pattern which averages to 8008/5
[19:29:53 CEST] <kierank> The NTSC average
[19:30:11 CEST] <kierank> Because your click needs to be sample accurate but you don't know what the video generator is doing
[19:30:31 CEST] <kierank> You could set the click every n frames I guess
[19:30:34 CEST] <kierank> That's the easiest way
[19:34:05 CEST] <durandal_1707> kierank: i already filter that does av sync test
[19:34:19 CEST] <durandal_1707> *wrote
[19:34:36 CEST] <kierank> But it's not sample accurate for NTSC for example
[19:35:12 CEST] <kierank> But a bit of a niche use case
[19:35:51 CEST] <durandal_1707> its useful to fix av sync issues with hw and sw
[19:36:45 CEST] <durandal_1707> is there somewhere code that does this already?
[19:37:18 CEST] <kierank> No
[19:37:48 CEST] <kierank> Actually I think the issue isn't that big a deal
[19:37:56 CEST] <kierank> Ignore me
[19:38:21 CEST] <kierank> Ah I remember
[19:38:35 CEST] <kierank> I wanted to draw a box at the same time as a click
[19:38:44 CEST] <kierank> And I wasn't sure how to sync the two
[19:38:48 CEST] <kierank> That was it
[19:39:19 CEST] <J_Darnley> atomnuker: If you remember the specifics, to write a boolean in vc2enc can I just use "put_bits(pb, 1, bool)"?
[19:40:47 CEST] <atomnuker> J_Darnley: not if you have to write them golomb coded
[19:41:52 CEST] <J_Darnley> uh, I don't know. I'm trying to write it in the transform_parameters header if that makes a difference.
[19:43:06 CEST] <J_Darnley> It does come after one of the uint writes.
[19:44:12 CEST] <atomnuker> yeah, to toggle between custom and non-custom things you use regular put_bits
[22:29:51 CEST] <J_Darnley> If you call avpriv_align_put_bits() do you need to call flush_put_bits() before calling put_bits_ptr() to get the right pointer?
[00:00:00 CEST] --- Thu Aug 17 2017
1
0
[01:07:08 CEST] <Justanick> kepstin: ffmpeg had enabled -mips32r6 and -mips32r5 which triggers the problem. only -mips32r2 is supported by the cpu.
[01:20:16 CEST] <sh4rm4^bnc> what's the recommended format for audio in mp4/mkv ?
[01:20:43 CEST] <sh4rm4^bnc> not for hi-fi, but it should be good enough so one can clearly distinguish voices from background noise
[01:20:59 CEST] <iive> aac
[01:21:08 CEST] <sh4rm4^bnc> i currently use aac 80kbit, but it's hard to hear the voices
[01:21:39 CEST] <sh4rm4^bnc> blends too much into the backgrounds
[01:21:56 CEST] <iive> mono?
[01:22:03 CEST] <sh4rm4^bnc> no
[01:22:17 CEST] <iive> 80kbps is just too low.
[01:22:32 CEST] <sh4rm4^bnc> well, i don't specifically specify stereo, if you mean that
[01:22:44 CEST] <iive> even opus uses 96kbps by default, and it is 2 generations after aac.
[01:22:51 CEST] <sh4rm4^bnc> i have mp3s with 80kbit that sound just fine...
[01:23:03 CEST] <iive> i don't believe that.
[01:23:53 CEST] <tdr> depending what they are, could be possible
[01:24:12 CEST] <sh4rm4^bnc> IIRC it was RZA-The Chase
[01:24:15 CEST] <tdr> a bet a spectrum analyzer would show some chopage tho
[01:24:27 CEST] <sh4rm4^bnc> is opus better than aac ?
[01:24:55 CEST] <iive> yes, it is improvement over vorbis.
[01:25:02 CEST] <iive> but afaik not mp4 support.
[01:25:16 CEST] <sh4rm4^bnc> ah, but it would work with mkv ?
[01:25:27 CEST] <iive> i guess.
[01:25:56 CEST] <sh4rm4^bnc> "-c:a opus" ?
[01:26:29 CEST] <sh4rm4^bnc> btw, if anyone knows a good subtitle website...
[01:26:32 CEST] <iive> that's still experimental
[01:26:50 CEST] <iive> but it works. you could try libopus
[01:27:01 CEST] <iive> too
[01:27:12 CEST] <sh4rm4^bnc> that would mean -c:a libopus ?
[01:28:05 CEST] <iive> yeh, external codec libraries use name starting with lib
[01:28:27 CEST] <sh4rm4^bnc> ok, thanks
[01:29:58 CEST] <CoreX> sh4rm4^bnc what kind of subtitle website like one where you can download a tool to extract subtitles or one that has already made subtitle files
[01:30:48 CEST] <sh4rm4^bnc> the latter
[01:31:47 CEST] <sh4rm4^bnc> tehre's www.opensubtitles.org which is OK, but its lacking some stuff
[01:32:54 CEST] <sh4rm4^bnc> and then there's subdb where you need some kind of tool to access it, or drag and drop your videos into the browser (!)...
[01:35:06 CEST] <CoreX> yeah subdb matches the hash up with the file
[03:07:55 CEST] <cryptodechange> Does xerror during an transcode only exit on an error with the source? or does it check frames for errors on the output too?
[03:10:40 CEST] <c_14> There's a few places scattered in the codebase that check xerror and if set exit
[03:10:48 CEST] <c_14> It mainly just turns several warnings into errors
[03:11:00 CEST] <c_14> There's no additional sanity checks added
[03:11:36 CEST] <DJ-Pyro> who has better drivers for windows? nvidia or amd GPU
[03:20:12 CEST] <Cracki> for what
[09:04:33 CEST] <gene_> I'm trying to get an epoch timestamp to render on my video and literally nothing has worked
[09:05:02 CEST] <gene_> the issue comes from the %s in the command: text='%{localtime\:%s}':
[09:05:37 CEST] <gene_> if I put %H in there or something it works fine and it spits out the hour
[09:05:52 CEST] <gene_> but it seems like %s is some sort of mystical thing that breaks my recording
[09:06:43 CEST] <squ> do you have syntax format?
[09:07:08 CEST] <gene_> To give an example, this command works great: ffmpeg -f gdigrab -i desktop -vf "drawtext=fontfile=/Windows/Fonts/Arial.ttf: expansion=normal: text='%{localtime\:%a %b %d %Y}': x=10: y=20: fontcolor=black: fontsize=30" out.mkv
[09:07:37 CEST] <gene_> but if I replace %a %b %d %Y with %s it fails completely -_____________-
[09:11:15 CEST] <gene_> When I put the %s in there it spits out something about side data ( Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1), which is what's making me believe %s has some sort of special meaning in ffmpeg
[09:15:18 CEST] <gene_> hmmm... I'll try asking in the devel channel
[09:19:32 CEST] <Eldarko> I know i've asked this question yesterday, but i still can not fine the answer: Could you guys tell me why this line does not save files with name pattern provided? What is missing? Thank you! ffmpeg -i " + url + " -c copy -f hls -hls_time 10 -hls_flags second_level_segment_duration -use_localtime 1 -use_localtime_mkdir 1 -nostdin -loglevel 16 -hls_segment_filename %Y%m%d/%H/%M/segment_%Y%m%d%H%M%S_%%010t.ts -method PUT http://12
[13:02:11 CEST] <chamath> Hi guys, I'm trying to add a wipe transition between videos like 12th second of this video.
[13:02:14 CEST] <chamath> https://www.youtube.com/watch?v=SJ1CcaawxmA
[13:03:30 CEST] <chamath> I have tried following command
[13:03:53 CEST] <chamath> https://thepasteb.in/p/y8h656B8OXjTO
[13:04:23 CEST] <chamath> Bit it does not have that gradient kind of effect to wipe line
[13:04:30 CEST] <chamath> Any ideas?
[14:20:36 CEST] <lavalike> do you happen to know if there's any ffmpeg-supported aac encoder that will encode to 2.1? FR+FL+LFE (the source is EAC3 5.1 640k in my case)
[14:21:23 CEST] <lavalike> both -c:a aac and -c:a libfdk_aac create 3 channels in the shape of FL+C+FR in my tests, but maybe I'm missing something
[14:22:23 CEST] <lavalike> I think it might be impossible for fdk given this https://github.com/nu774/fdkaac/blob/master/README#L298-L307 haven't found evidence for the native encoder though
[14:24:21 CEST] <atomnuker> lavalike: aac has crap support for non-standard (according to the 1997 specs) channel layouts
[14:27:19 CEST] <lavalike> ah, hmpf!
[14:28:17 CEST] <lavalike> I will try to test the other supported layouts, I think 3.1 could do the job, do you have other suggestions? maybe a different codec?
[14:32:00 CEST] <atomnuker> yes, vorbis or opus ought to work
[14:33:18 CEST] <atomnuker> (actually only opus would work, and you'll need to set -mapping_family 255)
[14:51:20 CEST] <lavalike> ah that's an interesting idea
[14:56:15 CEST] <lavalike> it's even being supported by bleeding edge safari, neat
[15:03:56 CEST] <kerio> yay opus
[15:15:04 CEST] <lavalike> this test opus audio track is hilarious https://hpr.dogphilosophy.net/test/
[15:26:15 CEST] <lavalike> Audio: opus (libopus) ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, 2.1, flt, 384 kb/s (default) exciting
[15:44:33 CEST] <certaindestiny> Hi all, I need a little help adding a watermark at the top right corner of my command syntax. Anybody able to help in this regards?
[15:44:35 CEST] <certaindestiny> https://pastebin.com/UmVQDHee
[16:06:09 CEST] <thebombzen> certaindestiny: you don't actually use the watermark.png input at all
[16:06:37 CEST] <thebombzen> also certaindestiny consider using the vstack and hstack filters rather than an overlay chain. much faster
[16:06:41 CEST] <thebombzen> !filter vstack
[16:06:41 CEST] <nfobot> thebombzen: http://ffmpeg.org/ffmpeg-filters.html#vstack
[16:06:43 CEST] <thebombzen> !filter hstack
[16:06:43 CEST] <nfobot> thebombzen: http://ffmpeg.org/ffmpeg-filters.html#hstack
[16:08:34 CEST] <certaindestiny> @thebombzen @nfobot. I am not familiar with that filter. How can i transform my current command to use hstack and vstack and also include a watermark?\
[16:15:09 CEST] <Dark-knight> quick question what is deinterlace?
[16:15:43 CEST] <durandal_1707> certaindestiny: read docs, stack filters take same dimensions inputs
[16:15:58 CEST] <durandal_1707> Dark-knight: use google
[16:16:32 CEST] <Dark-knight> ...aright, I had irc open, so I thought I'd ask
[16:17:40 CEST] <certaindestiny> @durandal_1707, If i was able to understand the exact syntax from the doc ffmpeg provided i would not have asked the question.....
[16:25:33 CEST] <durandal_1707> certaindestiny: your inputs are of same size?
[16:25:47 CEST] <certaindestiny> For this particular instance, yes
[16:28:06 CEST] <certaindestiny> I think i finally found something that might explain it. Please correct me if i am wrong. I basically need to create 2 vstacks, (or hstack) and stack those to hstacks?
[16:28:50 CEST] <durandal_1707> just use [0:v][1:v]hstack[a],[2:v][3:v]hstack[b],[a][b]vstack....
[16:29:39 CEST] <certaindestiny> Alright great, and how would you go about adding the watermark to the top right cornor of the entire output?
[16:36:26 CEST] <certaindestiny> @durandal_1707 When using the command you provided it gives me the error, Unable to find a suitable output format for
[16:36:56 CEST] <certaindestiny> Has this been released in ffmpeg3.3.3 ?
[16:43:52 CEST] <certaindestiny> Never mind, Fixed that. Its a bad idea to make a typo
[17:09:59 CEST] <sh4rm4^bnc> is there a flag to extract and re-embed subs when re-encoding ?
[18:09:53 CEST] <fede_> Hello
[18:10:26 CEST] <fede_> I have a camera ip and i convert with ffmpeg to mjpeg
[18:11:08 CEST] <fede_> I can see my cam in localhost on http://localhost:8090/monitoring1.mjpg
[18:11:16 CEST] <fede_> But i canŽt see in external ip
[18:11:32 CEST] <fede_> I try ACL allow all in config file but doesnt work
[18:11:42 CEST] <fede_> Any one can help me?
[18:14:04 CEST] <SpeakerToMeat> I'm using a '-filter_complex "[1:a][2:a][3:a][4:a][5:a][6:a]amerge=inputs=6[aout]" -map "[aout]"' but then of course I can't do a "-c:a copy", is there any way to mix these together without having them recoded and specifying to use the original file parameters?
[18:23:54 CEST] <SpeakerToMeat> fede_: So you're using ffmpeg as http server¡
[18:23:56 CEST] <SpeakerToMeat> ?
[18:24:14 CEST] <SpeakerToMeat> via -listen ?
[18:26:40 CEST] <SpeakerToMeat> fede_: If so, afaik from what I see the ip it binds to is the one you specify in the url at the parameters, so if your specified url is http://localhost:8090/monitoring1.mjpg in the command line, it'll bind to localhost and not be accessible formt he outside, change localhost to your ip address to bind to it
[18:34:16 CEST] <kepstin> SpeakerToMeat: to change the number of channels in an audio stream with a compression codec requires recompression with most codecs. No real way around that.
[19:21:33 CEST] <cryptodechange> any options for logging the output on ffmpeg? 2> /path/to/out.txt hides the terminal output
[19:29:52 CEST] <relaxed> cryptodechange: ffmpeg 2>&1 | tee ffmpeg.log
[19:31:27 CEST] <cryptodechange> ty!
[19:38:22 CEST] <furq> cryptodechange: -report also works but it forces -v verbose
[20:05:43 CEST] <cryptodechange> aha, it makes a huge list in the log of each frame, I suppose I can't really avoid that?
[20:14:58 CEST] <rjp421> "Too many packets buffered for output stream 0:1." "2 frames left in the queue on closing"
[20:19:57 CEST] <rjp421> ^ using the latest linux x64 static binary, cmd and log: https://pastebin.com/raw/M6TBEtYS
[20:20:38 CEST] <rjp421> i have to keep running the cmd and eventually it will start encoding
[20:29:45 CEST] <SpeakerToMeat> I have something strange, I'm muxing video and audio into a quicktime wrapper (prores 422 video, pcm audio)... the original video is 24 fps, 24 tbr tbn and tbc, but the output video (which is desynced to the audio that should fit perfectly), is 24 fps and tbr, but tbn and tbc are 12288, why would this change? could it be affecting the sync? how do I avoid it?
[20:39:51 CEST] <SpeakerToMeat> if I specify -r 24 for the video stream input, the output stream (this it all -c:v copy) then tbc reads 24 on the output too, but tbn is still at 12288
[22:04:12 CEST] <paveldimow> Hi, ffmpeg does not support amf0, is there any way I can "extract/convert/read" this data? Maybe any other tool ?
[22:12:47 CEST] <mightyiam> What would make pngstream -> vp9 very fast, please? For example, what is faster, if the png is compressed or not? Specifically, my pngs have very little info in them. Primarily some black lines...
[22:23:00 CEST] <kepstin> mightyiam: the slowest part of that is probably the vp9 encoding; play with encoder settings before worrying about the png decoding speed
[22:23:42 CEST] <mightyiam> kepstin, thanks. I have played with encoder settings quite a bit. Any tips?
[22:24:41 CEST] <kepstin> mightyiam: show us what you have right now?
[22:25:28 CEST] <mightyiam> kepstin, https://pastebin.com/wXVkh7SX
[22:25:33 CEST] <kepstin> mightyiam: general ideas are make sure you have a recentish git build of libvpx so you have the new multithreading code, and tweak the -speed option
[22:27:13 CEST] <kepstin> (-cpu-used is an alias for -speed, iirc)
[22:28:06 CEST] <kepstin> also, your options list is kinda weird there - in most languages, you'll need to have the parameter and value in separate strings so it'll be parsed correctly
[22:28:19 CEST] <kepstin> depends how you're constructing the ffmpeg command tho
[22:29:11 CEST] <mightyiam> This is through https://github.com/fluent-ffmpeg/node-fluent-ffmpeg
[22:29:56 CEST] <furq> you probably want to use row-mt if you're using a recent enough libvpx
[22:29:59 CEST] <mightyiam> I bet I have an oldish libvpx
[22:30:01 CEST] <furq> that's supposed to give a big speed boost
[22:30:26 CEST] <furq> or rather it's supposed to actually utilise all your cores
[22:30:41 CEST] <mightyiam> 1.6.1
[22:31:21 CEST] <mightyiam> Seems to be latest release
[22:33:23 CEST] <Asuran> thats stable release
[22:33:29 CEST] <Asuran> git means newer
[22:33:34 CEST] <Asuran> but unstable perhaps
[22:33:39 CEST] <Asuran> depends on project
[22:34:17 CEST] <furq> yeah row-mt still needs a git build
[22:34:25 CEST] <furq> there's not been a new release since january
[22:34:33 CEST] <furq> i figured it'd have made it into a release by now
[22:34:50 CEST] <furq> if you're actually getting 100% utilisation then i don't think it really matters
[22:35:16 CEST] <furq> but tile-columns is legendarily bad at multithreading
[22:35:34 CEST] <Asuran> will av1 be same?
[22:35:35 CEST] <Asuran> i fear it
[22:38:44 CEST] <mightyiam> Thank you guys
[22:51:25 CEST] <furq> Asuran: probably at first but the vpx guys know it's a problem
[22:51:36 CEST] <furq> there just isn't much impetus to fix it because vp9 is basically just for youtube
[00:00:00 CEST] --- Thu Aug 17 2017
1
0
[00:51:34 CEST] <rcombs> remind me why the data arg is void* instead of AVFrame*
[00:52:18 CEST] <rcombs> also isn't that changed with the new API anyway
[01:13:16 CEST] <atomnuker> rcombs: I'll answer if you push your patches
[01:15:45 CEST] <rcombs> is everyone okay with how they fuck up the MD5
[01:16:27 CEST] <rcombs> or, well, can, if you trim in a remux
[01:16:37 CEST] <rcombs> dunno if that's really solvable
[01:16:56 CEST] <atomnuker> md5?
[01:17:08 CEST] <atomnuker> I just want the one to mux in coverart
[01:21:10 CEST] <J_Darnley> No, no! Flac files do not have video streams!
[01:25:24 CEST] <rcombs> oh boy, an objection
[01:25:28 CEST] <rcombs> of some sort
[01:29:10 CEST] <J_Darnley> Not to your patches but rather to how ffmpeg treats these binary data attachments.
[01:30:31 CEST] <cone-352> ffmpeg 03Michael Niedermayer 07master:426a322aa2bf: avcodec/cavsdec: Check I frame mb decode for errors
[01:30:31 CEST] <cone-352> ffmpeg 03Michael Niedermayer 07master:b9ce43625c43: avcodec/cavsdec: Check P/B frame mb decode which return error codes
[01:38:41 CEST] <rcombs> oh yeah, that's kinda weird
[01:38:45 CEST] <rcombs> but it's how it works so w/e
[03:08:08 CEST] <atomnuker> michaelni: there's something wrong with swr I think
[03:08:45 CEST] <atomnuker> lets say I have a huge buffer of say 13230000 samples I want to resample from 44100 to 48000 hz
[03:09:41 CEST] <atomnuker> and I give it to swr directly and ask for a small amount of samples back, e.g. swr_convert(swr, out, 1024, in, 13230000)
[03:09:58 CEST] <atomnuker> (and of course the number of samples resampled is returned)
[03:10:59 CEST] <atomnuker> if I do this until swr_convert returns 0 I get a total of 21216000 samples back
[03:11:28 CEST] <atomnuker> which at 48000 hz is 442 seconds
[03:11:48 CEST] <atomnuker> but the 13230000 samples I fed in at 44100 are exactly 300 seconds
[03:12:08 CEST] <atomnuker> so swr returned an extra 142 seconds of audio
[03:13:29 CEST] <atomnuker> up until 300 seconds its all fine, then what's resampled is 142 seconds of reversed audio starting from the end
[03:14:09 CEST] <atomnuker> what the fuck is going on?
[03:15:08 CEST] <atomnuker> if I feed in swr say 4096 samples at a time the amount of extra samples at the end gets reduced
[03:16:00 CEST] <atomnuker> and if I reduce that to 1800ish samples I get almost a correct time
[03:25:55 CEST] <michaelni> atomnuker, is this a regression ? and how can this be reproduced ? ... would be ideal if we had a fate test to test such things
[03:26:12 CEST] <atomnuker> no idea if its a regression
[03:26:25 CEST] <atomnuker> it has been this way since May
[03:26:36 CEST] <atomnuker> (when I first used it)
[03:56:48 CEST] <atomnuker> michaelni: https://pars.ee/temp/resample_fail.c
[03:57:18 CEST] <atomnuker> compile with gcc example.c $(pkg-config --libs libavcodec)
[03:58:15 CEST] <atomnuker> put some audio in the buffer and fwrite it, you'll hear the same as what I hear
[04:00:28 CEST] <atomnuker> change const int samples_avail = FFMIN(1800, samples_left); and you'll see it'll be a few thousands longer instead of several hundred seconds
[04:03:18 CEST] <atomnuker> (I guess it could be made into a fate test but its no point testing something that seems to be broken)
[04:13:46 CEST] <michaelni> will take a look when i have time, unless someone else does before
[15:05:33 CEST] <cone-544> ffmpeg 03Paul B Mahol 07master:8d2da0939cbd: avfilter/vf_datascope: make it possible to change pixscope window position
[15:52:58 CEST] <cone-544> ffmpeg 03Vittorio Giovara 07master:14604087031d: Add single precision planar RGB pixel formats
[15:52:59 CEST] <cone-544> ffmpeg 03Vittorio Giovara 07master:8b9ae9a8e03c: zscale: Enable single precision input/ouput filtering
[15:53:00 CEST] <cone-544> ffmpeg 03Vittorio Giovara 07master:62dfa2ba14d9: Add tonemap filter
[17:25:09 CEST] <J_Darnley> In a decoder what do I put into the "void *data" argument, and when?
[17:25:15 CEST] <J_Darnley> How do I tell it where the AVFrame is I want to output is when it is ready?
[17:25:50 CEST] <J_Darnley> Do I need to set something other than got_frame to 0 or NULL when I am not outputting anything?
[17:27:01 CEST] <atomnuker> *data always points to an avframe, it just lacks allocated buffers
[17:27:46 CEST] <atomnuker> if you have a frame set *got_frame to 1 and alloc/transfer buffers onto the *data avframe
[17:29:40 CEST] <J_Darnley> Do I just copy/assign the contents of my AVFrame struct into the address data points to then?
[17:30:07 CEST] <atomnuker> you have an internal avframe, right?
[17:30:13 CEST] <J_Darnley> I do now.
[17:30:47 CEST] <atomnuker> then do av_frame_ref(data, internal_av_frame)
[17:30:53 CEST] <J_Darnley> Yes, I leave data untouched.
[17:31:09 CEST] <J_Darnley> okay, I will try that.
[17:33:27 CEST] <J_Darnley> Colour me surprised.
[17:33:41 CEST] <J_Darnley> That seems to work.
[17:34:09 CEST] <J_Darnley> Now we're back to 1 frame of decoding, kierank.
[17:34:36 CEST] <kierank> atomnuker: why av_frame_ref?
[17:34:50 CEST] <kierank> surely that leaves a reference with the internal frame as well
[17:34:55 CEST] <kierank> this is confusing me quite a bit
[17:35:46 CEST] <kierank> J_Darnley: I think we want av_frame_move_ref
[17:36:16 CEST] <J_Darnley> coming right up.
[17:37:20 CEST] <atomnuker> kierank: hm, you're right
[17:37:33 CEST] <atomnuker> (since the internal avframe is reused)
[17:38:09 CEST] <atomnuker> so if you wanted to decode more than 1 frame and do nothing the first one would be junk
[17:40:04 CEST] <J_Darnley> Better, 20 frames output with move_ref
[17:40:58 CEST] <J_Darnley> Runnign valgrind
[17:42:18 CEST] <atomnuker> michaelni: does the swresample patch fix the issue I had?
[17:43:15 CEST] <J_Darnley> Valgrind looks good.
[17:43:28 CEST] <J_Darnley> Do you want the diff, kierank?
[17:43:40 CEST] <kierank> can you send me a git-format path
[17:43:43 CEST] <kierank> patch
[17:44:32 CEST] <J_Darnley> Do you want me to cram it all into one collosal patch? Not I think there are any changes I could separate.
[17:45:11 CEST] <kierank> yes
[17:45:47 CEST] <J_Darnley> Okay. I will leave out the printfs though.
[18:02:28 CEST] <kierank> lol
[18:02:29 CEST] <kierank> I came across your website ffmpeg.org and you would be good fit to our program focused on international oriented startups and scale-ups that can provide added value for media companies in the areas of content, advertising or technology. Dutch media organizations are actively looking for companies like you.
[18:12:58 CEST] Action: J_Darnley feels left out of the spam party
[19:31:09 CEST] <durandal_1707> im out of ideas for new filters
[19:31:27 CEST] <atomnuker> durandal_1707: write simd?
[19:31:56 CEST] <atomnuker> (transpose is slow and doesn't have simd, but at least it does slice threading)
[19:35:20 CEST] <durandal_1707> how would you transpose simd?
[19:36:10 CEST] <BtbN> the color/chromakey filters could also use some work
[19:36:43 CEST] <BtbN> They are very simplistic and slow. Made them in the hopes for there to be enough interest to get them improved, but so far that didn't happen
[19:37:05 CEST] <atomnuker> durandal_1707: lookup tables
[19:38:07 CEST] <J_Darnley> durandal_1707: have a holiday
[19:38:12 CEST] <durandal_1707> atomnuker: that doesnt makes sense?
[19:39:36 CEST] <atomnuker> durandal_1707: you're right, it doesn't, transpose only has moves, no multiplies
[19:41:06 CEST] <durandal_1707> vs have simd, but there is no nice way to bench it
[19:43:12 CEST] <J_Darnley> if you're desperate for something to do you could finish that differencemax mode I proposed for overlay or blend
[19:50:27 CEST] <kierank> durandal_1707: lipsynctest filter with correct 1601 NTSC support ;)
[19:56:40 CEST] <durandal_1707> kierank: what?
[19:57:21 CEST] <kierank> Filter to generate lipsync test but working correctly with ntsc
[19:57:27 CEST] <kierank> So 1601, 1602 pattern
[21:51:34 CEST] <michaelni> atomnuker, it should fix the issue you reported yesterday
[22:32:18 CEST] <durandal_1707> atomnuker: posted patch that speeds up transpose filter
[22:37:36 CEST] <atomnuker> durandal_1707: lgtm'd
[22:37:40 CEST] <atomnuker> michaelni: I'll test it now
[22:46:02 CEST] <atomnuker> michaelni: patch lgtm'd, tested and works, thanks alot
[23:15:15 CEST] <durandal_1707> why are compilers shit?
[23:16:19 CEST] <durandal_1707> i created inline function of 2 hardcoded parameters that are used in loops and speed was raised with inlined function
[23:16:57 CEST] <durandal_1707> its just hardcoding w and h
[23:17:43 CEST] <TD-Linux> look at the assembly
[23:18:20 CEST] <durandal_1707> why its just hardcoded loop number
[23:18:52 CEST] <TD-Linux> you're comparing hard coding and not hard coding?
[23:19:03 CEST] <durandal_1707> and compiler is instructed to not add own simd code
[23:19:20 CEST] <durandal_1707> TD-Linux: just loop numbers
[23:20:17 CEST] <TD-Linux> it can still copy larger chunks at once (and potentially unroll without lead in/out). look at the assembly
[23:21:23 CEST] <atomnuker> even with tree vectorization off gcc still vectorized some simple shifts + movs double loops
[00:00:00 CEST] --- Wed Aug 16 2017
1
0
[00:00:48 CEST] <SpLiC3> I should note when accessing the resulting remuxed .ts over http vlc handles it ok with a 4 sec or so delay, the first video frame shows then it buffers? or waits for x new packets?
[05:44:17 CEST] <willbarksdale> Hey folks, I am currently decoding an RTMP stream over a wifi network using FFMPEG, I would like to also send this FTMP stream to the facebook live API. Is it possible to somehow send the stream directly to fb live without decoding it? I am trying to avoid decoding and re-encoding at the same time.
[05:51:11 CEST] <willbarksdale> I am using FFMpeg on iOS
[06:17:49 CEST] <Cracki_> stream copy
[06:18:04 CEST] <Cracki_> meaning -c copy
[12:48:56 CEST] <Eldarko> Hello, guys! Is it possible to send segments with meta-data (such as duration/time) via http? Lets say, i want to send .ts files from my home to server, store em there, and then build a playlist on a server-side.
[12:49:20 CEST] <BtbN> HLS
[12:52:35 CEST] <Eldarko> HLS is for the playlist. Playlist requires at least a duration and filename. How do i send this data via http by ffmpeg with each segment?
[12:57:41 CEST] <BtbN> it writes that to the playlist automatically if you use the hls muxer
[12:57:48 CEST] <BtbN> just need to run a HTTP server to serve it
[13:00:35 CEST] <Eldarko> can it send me duration as http header, or something like that?
[13:00:52 CEST] <BtbN> The duration is in the playlist
[13:01:19 CEST] <BtbN> HTTP servers usually don't parse media file to extract metadata
[13:03:11 CEST] <Eldarko> Yeah, well, ill have to parse each ffmpeg playlist in order to get duration of the segment. I was hoping there is a way to get it w/o parsing the string
[13:05:56 CEST] <Eldarko> i dont really need this playlist, i only need a .ts file itself and its duration since its too expensive to extract it later from .ts file.
[13:09:43 CEST] <Eldarko> Thak you, Timo )
[14:41:32 CEST] <erika> hi! quick question for devs: is there any plan for basic support of dolby AC4?
[14:42:01 CEST] <erika> lmk if it's better suited for #ffmpeg-devel
[14:42:34 CEST] <BtbN> if you manage to find a spec that's not tied to some NDA or crazy license fees, and someone willig to implement it.
[14:43:17 CEST] <furq> does anything actually use ac4
[14:43:41 CEST] <furq> now, i mean
[14:43:44 CEST] <furq> i'm sure it's only a matter of time
[14:44:03 CEST] <dystopia_> is dolby atmos ac4?
[14:44:23 CEST] <furq> no
[14:44:29 CEST] <erika> hmmm OK, thanks - not in the near future then
[14:45:06 CEST] <furq> ATSC 3.0 supports Dolby AC-4 and MPEG-H 3D Audio.
[14:45:08 CEST] <furq> oh wonderful
[14:45:36 CEST] <dystopia_> i live in dvb land
[14:45:44 CEST] <furq> same
[14:45:48 CEST] <dystopia_> things here are moving to aac
[14:47:01 CEST] <furq> yeah dvb-t2 is exactly the same as dvb-t as far as audio goes
[14:50:57 CEST] <furq> Currently a Dolby Digital 5.1-channel soundtrack can be encoded with AC-3 using 384Kbps but with AC-4 that same track can be encoded at only 96Kbps with no perceivable loss in quality. In fact the compression is so good that a stereo track can be encoded at just 32Kbps,
[14:51:01 CEST] <furq> what
[14:51:17 CEST] <furq> "can be" is doing a lot of work in that sentence
[14:52:38 CEST] <cryptodechange> Is a network drive output for ffmpeg a bad idea?
[14:52:50 CEST] <cryptodechange> Could the end result be corrupted, local network
[14:52:56 CEST] <furq> do you plan on outputting at more than 1gbps
[14:53:13 CEST] <BtbN> if it's not seekable, you're in for half-broken or entirely broken stuff
[14:53:36 CEST] <cryptodechange> It's pretty much locally connected via. a switch, literally just compressing video sources
[14:53:44 CEST] <cryptodechange> but in the event of hanging, packet loss, etc
[14:53:51 CEST] <BtbN> Using NFS is perfectly fine
[14:53:56 CEST] <BtbN> if it's on a LAN
[14:53:58 CEST] <furq> right
[14:54:09 CEST] <BtbN> that's why TCP exists
[14:54:10 CEST] <furq> obviously don't do that shit to sshfs over wan, but cifs/nfs on a lan will be fine
[14:54:22 CEST] <furq> packet loss won't be an issue unless you pull a cable
[14:54:49 CEST] <cryptodechange> Using an SMB share which I mounted
[14:54:53 CEST] <furq> smb is cifs
[14:56:40 CEST] <cryptodechange> Ok sure, but is there a slight off chance of packet loss (faulty cable, congestion, over worked drives), will FFMPEG wait until data is written?
[14:57:02 CEST] <BtbN> ffmpeg has no idea and doesn't care about the network part of it
[14:57:09 CEST] <BtbN> it just sees a local file
[14:57:32 CEST] <furq> right
[14:57:33 CEST] <cryptodechange> Say I am scrubbing my ZFS drive, whilst xfering a lot of data, and operations are waiting/hanging on the data
[14:57:53 CEST] <cryptodechange> ok interesting
[14:58:14 CEST] <furq> this is why we have buffers
[14:58:16 CEST] <cryptodechange> Is there any way to check for corrupted/bad frames, instead of using my eyes? :P
[14:58:44 CEST] <BtbN> what kind of hellish network are you on that you expect it to mangle everything that goes through it?
[14:58:53 CEST] <furq> ffmpeg -v quiet -xerror -i foo.mp4 -f null - || echo oh no!!
[15:00:17 CEST] <cryptodechange> \o/
[15:01:23 CEST] <cryptodechange> This is my setup
[15:01:24 CEST] <cryptodechange> https://imgur.com/a/6Bjxh
[15:01:39 CEST] <cryptodechange> Behemoth is my 48 TB NAS and plex server
[15:01:52 CEST] <cryptodechange> Little box is my seedbox/encode destination
[15:02:02 CEST] <cryptodechange> So: big nas - encode > little nas - rsync > big nas
[15:02:16 CEST] <cryptodechange> My line of thinking was to avoid fragmentation over long encode times, when other stuff is being xfered
[15:02:25 CEST] <cryptodechange> As ZFS can't be defragged in a traditional sense
[15:07:38 CEST] <BtbN> you're worrying about all the wrong things...
[15:07:56 CEST] <BtbN> Networks don't shred data passing through it, and modern file-systems have no need to worry about fragmentation
[15:09:22 CEST] <furq> nah zfs fragmentation is a pain
[15:09:36 CEST] <viric> btrfs fragmentation too
[15:09:37 CEST] <furq> i doubt that this is going to help matters though
[15:10:27 CEST] <furq> also i hope you budgeted 20% of that 48TB for leaving empty forever or else the zpool performance goes to absolute fucking shit
[15:10:42 CEST] <viric> :)
[15:10:43 CEST] <furq> because you'll need to do that
[15:34:39 CEST] <cryptodechange> It's 12 * 6TB, split into 2 raidz-2 vdevs
[15:43:56 CEST] <furq> that seems like an excessively large raid6
[15:58:38 CEST] <SoreGums> how do i get these 2 commands into a single command? I know i need to use filter complex however all combinations I've tried don't work. What I want is to downmix the 6ch opus to aac and have both 6ch & 2ch in the mkv
[15:58:42 CEST] <SoreGums> ffmpeg -i chapters.video.audio-6ch-opus.subtitles.mkv -map_metadata -1 -map_chapters -1 -vn -sn -c:a aac -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR" audio-2ch-aac.m4a
[15:58:42 CEST] <SoreGums> ffmpeg -probesize 150M -analyzeduration 150M -i audio-2ch-aac.m4a -i chapters.video.audio-6ch-opus.subtitles.mkv -map 0 -map 1 -c copy chapters.video.audio-6ch-opus.audio-2ch-aac.subtitles.mkv
[16:01:46 CEST] <SoreGums> as can been seen above, i'm getting my downmixed 2ch aac, then copy it into the original with all the other streams - it works, just from reading, i should be able to 1shot this
[16:17:02 CEST] <SoreGums> the reason i need the 2ch audio is for some reason device is not mapping the channels properly during the downmix and i have no control over it
[16:40:34 CEST] <pgorley> hi, is it normal that after a call to swr_convert_frame, the out AVFrame's nb_samples is still 0?
[16:46:51 CEST] <durandal_1707> pgorley: yes
[16:47:07 CEST] <durandal_1707> read docs and examples
[16:50:05 CEST] <Eldarko> Hello again, guys! :) Could anyone tell me why cant i select a name for a file that is going to be pushed to server via http
[16:50:11 CEST] <Eldarko> ffmpeg -i " + url + " -c copy -f hls -hls_time 10 -hls_flags second_level_segment_duration -use_localtime 1 -use_localtime_mkdir 1 -nostdin -loglevel 16 -hls_segment_filename %Y%m%d/%H/%M/segment_%Y%m%d%H%M%S_%%010t.ts -method PUT http://127.0.0.1:9090/live/stream.m3u8
[17:10:18 CEST] <Eldarko_> So, could anyone help with the question above?
[17:17:54 CEST] <Eldarko_> https://pastebin.com/uqHkAmmy
[17:28:29 CEST] <pgorley> durandal_1707: thanks, that helped me find what was happening
[17:28:41 CEST] <pgorley> i was ignoring an input changed error
[17:28:53 CEST] <pgorley> and swr_convert was never being called
[17:42:45 CEST] <momomo> anyone knows if a universal lnb can recieve ku band frequencies? c-band?
[17:44:39 CEST] <Pandela> Morning
[17:45:15 CEST] <Pandela> I was curious, is there a way to tell FFmpeg to process an entire file, but skip parts (say the beginning) to apply an effect?
[17:50:38 CEST] <pgorley> i keep getting "Input channel count and layout are unset", which options do i need to set on swr_context to fix this?
[17:51:44 CEST] <atomnuker> pgorley: you need to set both the input and output frame's sample format, samplerate and channel layout
[17:52:18 CEST] <pgorley> atomnuker: on the AVFrame, using av_opt_set_int, or both?
[17:52:47 CEST] <atomnuker> on the avframe
[17:52:56 CEST] <atomnuker> the opt set stuff is for the swr context
[17:53:50 CEST] <pgorley> are those options not set when decoding?
[17:55:27 CEST] <atomnuker> on the input avframe they are
[17:55:37 CEST] <atomnuker> on the output they're not, since you create the output avframe
[17:55:55 CEST] <pgorley> seems the channel layout on my input frame is set to 0
[17:58:42 CEST] <durandal_1707> pgorley: set channel layout based on channel count
[17:59:22 CEST] <pgorley> AV_CH_LAYOUT_MONO for 1 and AV_CH_LAYOUT_STEREO for 2, etc, right
[17:59:50 CEST] <atomnuker> pgorley: no, its AV_CH_LAYOUT_MONO for mono and AV_CH_LAYOUT_STEREO for stereo
[18:01:59 CEST] <Eldarko> Is it possible to set a name pattern for a .ts file when using PUT?
[18:02:25 CEST] <Eldarko> or even just a name
[18:03:15 CEST] <SpeakerToMeat> And, I have to run, duh, see you all soon :D
[18:03:33 CEST] <Eldarko> bye
[18:03:53 CEST] <pgorley> durandal_1707, atomnuker: thanks, turns out i just forgot to set AVCodecContext->channel_layout before decoding
[18:04:49 CEST] <SpeakerToMeat> I'll leave the question here, I want to combine 6 mono wav files into a single 5.1 track, using this guide https://trac.ffmpeg.org/wiki/AudioChannelManipulation but I have two doubts. A) I need to change the bit depth, do I need to do this for all inputs separatedly or can I do this to the post complex filter map output somehow? and B) in cases where channels are labelable is there any way to have them
[18:04:51 CEST] <SpeakerToMeat> rightly tlabeled
[18:05:29 CEST] <orbisvicis> how can I determine the actual bitrate of a vbr mp3 file ?
[18:05:43 CEST] <orbisvicis> well, average bitrate, min/max bitrate
[18:05:56 CEST] <BtbN> "actual" bitrate?
[18:06:04 CEST] <BtbN> It's variable, there is no actual bitrate.
[18:06:18 CEST] <BtbN> If you want the average, just divide the filesize by the duration
[18:09:57 CEST] <orbisvicis> BtbN: how can I get the data filesize, excluding headers/frames ?
[18:10:00 CEST] <orbisvicis> and min/max
[18:10:27 CEST] <BtbN> an .mp3 file is rather raw, the size of the header barely matter
[18:16:14 CEST] <orbisvicis> hmm so duration, according to ffmpeg, is "estimated" from bitrate
[18:17:06 CEST] <orbisvicis> is there any tool to tell me the duration, cbr/vbr, average bitrate (cbr/vbr) and min/max bitrate (vbr) ?
[18:25:07 CEST] <BtbN> the duration for mp3 should be accurate
[18:29:43 CEST] <DHE> that may happen if the input were a pipe or none-file. ffmpeg should seek to the end to read the timestamp on the last sample, right?
[18:29:55 CEST] <DHE> otherwise yeah, mp3 duration may be wildly inaccurate if using bitrate alone.
[18:30:08 CEST] <Lirk> Hi
[18:30:17 CEST] <orbisvicis> no, I get this using `ffmpeg -i` on certain mp3 files
[18:30:38 CEST] <Lirk> is there way to get help about ffmpeg postprocessing from command line?
[18:31:20 CEST] <Lirk> from source postprocess.c /* -pp Command line Help */ const char pp_help[] =
[19:21:26 CEST] <SpeakerToMeat> I want to combine 6 mono wav files into a single 5.1 track, using this guide https://trac.ffmpeg.org/wiki/AudioChannelManipulation but I have two doubts. A) I need to change the bit depth, do I need to do this for all inputs separatedly or can I do this to the post complex filter map output somehow? and B) in cases where channels are labelable is there any way to have them rightly labeled?
[19:23:39 CEST] <SpeakerToMeat> I'll try to do a global -c:a see if it works
[19:36:26 CEST] <SpeakerToMeat> Btw anybody here well experienced with quicktime? what's the right expected PCM type (alongside prores in case it matters any), signed or unsigned? little or big endian?
[19:38:34 CEST] <JEEB> lessee the thing I have around
[19:39:00 CEST] <JEEB> pcm_s16be
[19:39:08 CEST] <JEEB> is what I have, but I have a feeling it's pretty free
[19:42:04 CEST] <SpeakerToMeat> JEEB: I'm checking wikipedia, it seems there's fourcc for both signed le and be, and identifiers for 24 be and 32 be, but these do not denote whether they're signed or unsigned
[19:43:17 CEST] <SpeakerToMeat> Wellthey don't specify two's complement like 16 bits le/be so I guess unsigned
[19:43:40 CEST] <JEEB> well I just checked what I had in a prores mov file and that was what I just noted :P
[19:43:58 CEST] <JEEB> I would guess audio is signed unless specifically noted otherwise
[19:44:26 CEST] <JEEB> also you could check what FFmpeg writes with which identifiers in MOV
[19:44:35 CEST] <JEEB> wikipedia is not exactly the best of references
[19:44:51 CEST] <SpeakerToMeat> Yeah but it has more information than the apple developers document...
[19:45:12 CEST] <SpeakerToMeat> Which doesn't even specify whether the in24 fourcc identifier is for BE or LE pcm...
[19:45:31 CEST] <JEEB> also there's QTFF dot pdf
[19:45:36 CEST] <JEEB> from apple
[19:45:52 CEST] <JEEB> (also they seem to have the file format spec as HTML now, too)
[19:45:53 CEST] <JEEB> https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QT…
[19:47:04 CEST] <SpeakerToMeat> Yeah I should check, I'm here right now https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QT…
[19:47:06 CEST] <SpeakerToMeat> thanks
[19:47:25 CEST] <JEEB> https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QT…
[19:47:40 CEST] <JEEB> this page contains the definition for the identifier I have in my mov file's audio track 'twos'
[19:47:43 CEST] <JEEB> for example
[19:48:27 CEST] <SpeakerToMeat> Yeah it says twos and raw come from version 0, versions 1 and 2 extend that
[19:50:01 CEST] <JEEB> sound sample description box seems to contain formatSpecificFlags which then has endianness etc
[19:50:29 CEST] <JEEB> so I would guess the newer four-letter identifiers don't base on that thing itself too much for the endianness
[19:53:22 CEST] <SpeakerToMeat> That would make sense, I'm checking the sound descriptors for versions 1 and 2
[20:01:20 CEST] <SpeakerToMeat> Ok for labeling and layout with amerge, is there any way to manually specify a layout for inputs which do not have it?
[20:01:26 CEST] <SpeakerToMeat> audio I mean
[21:10:14 CEST] <Justanick> Hi, what is the right was if I want to cross compile ffmpeg 3.3.3 but I m not able to execute the cross compiled files on the build host.
[21:10:14 CEST] <Justanick> At the moment it fails with zlib requested but not found.
[21:10:14 CEST] <Justanick> --target-exec= is not set
[21:11:07 CEST] <Justanick> Is ther something like, "use the host compiler for dependency checking"?
[21:16:29 CEST] <DHE> well you don't need the host version of zlib. that doesn't actually do you any good
[21:18:37 CEST] <Justanick> DHE: I know that I don't need the host version. The target version of the zlib is installed but the test fails with collect2: error: ld returned 1 exit status
[21:30:35 CEST] <JEEB> actual error is most likely in ffbuild/config.log
[21:32:33 CEST] <Justanick> JEEB: I see only a config.log. There is no folder ffbuild
[21:33:36 CEST] <JEEB> ok, then that release is from before ffbuild subdirectory was added
[21:33:46 CEST] <JEEB> current master has it under ffbuild/
[21:35:46 CEST] <Justanick> I'm at the moment on 3.3.3
[21:37:26 CEST] <Justanick> JEEB: The config.log is at https://gist.github.com/D-Albers/4d93a769078ddff44fa7373cc91d5b7c
[21:41:19 CEST] <Justanick> Any ideas how I can fix this?
[21:48:04 CEST] <niklob> hello, " -i video.mkv -i sub.srt -c:v copy -c:a copy -c:s dvbsub output.mkv" returns: [matroska @ 000001cd047cc700] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 229503 >= 27794 av_interleaved_write_frame(): Invalid argument
[21:49:08 CEST] <niklob> ffmpeg can't convert srt to dvb ?
[21:54:38 CEST] <kepstin> Justanick: do a search for "-lz" in that output to find the linker error. Looks like there's some abi incompatibilities between your libraries and the compiler you're using.
[22:00:33 CEST] <Justanick> kepstin: The eroor message is: failed to merge target specific data of file /tmp/ffconf.uwSNapW1.o
[22:00:56 CEST] <kepstin> and the line before that, which complains about some different nan modes or something.
[22:01:07 CEST] <kepstin> you probably need arch-specific compiler knowledge to fix this :/
[22:02:07 CEST] <Justanick> kepstin: linking -mnan=2008 module with previous -mnan=legacy modules
[22:03:34 CEST] <kepstin> Justanick: you'll want to bring that compiler command and linker output to someone who works on the lede/openwrt project toolchain to get help, I suspect it's a bit out of the domain of what most people here know.
[22:03:42 CEST] <Justanick> kepstin: Coukd this problem been be triggered through changing the compiler option? If yes, I may have an idea.
[22:09:59 CEST] <niklob> How to soft-embed dvb-subs from a .srt-file?
[22:18:52 CEST] <Justanick> kepstin: Thanks for the help so far. :)
[22:24:29 CEST] <niklob> How can I tell ffmpeg to ignore wrong time value in my srt file?
[22:24:42 CEST] <niklob> time values*
[22:27:59 CEST] <niklob> nvm
[22:28:04 CEST] <niklob> it's a bug in ffmpeg
[22:28:07 CEST] <niklob> :(
[00:00:00 CEST] --- Wed Aug 16 2017
1
0
[14:09:35 CEST] <cone-410> ffmpeg 03Yogender Gupta 07master:77c5a54192b2: avfilter/scale_npp: fix passthrough mode
[14:10:21 CEST] <BtbN> I forgot to commit my local changes...
[14:17:39 CEST] <cone-410> ffmpeg 03Timo Rothenpieler 07master:f4ebbda566f7: avfilter/scale_npp: check for buffer allocation failure
[15:05:31 CEST] <JEEB> heh, I love the lack of time_base in AVFrames
[15:06:24 CEST] <wm4> add it
[15:06:32 CEST] <JEEB> just tried using yadif and magically my pts got doubled :) then noticed `link->time_base.den = ctx->inputs[0]->time_base.den * 2;` in vf_yadif
[15:07:01 CEST] <wm4> yes you need to use the output sink timebase
[15:07:09 CEST] <JEEB> ah right, that's a thing
[15:13:12 CEST] <JEEB> so yea, things that could be in AVFrame: frame_type , time_base
[15:13:25 CEST] <JEEB> maybe I'll get to adding them one day :V
[15:13:39 CEST] <iive> start now :D
[15:29:05 CEST] <JEEB> iive: more likely I will start with trying to make a callback in lavf for "program has been updated"
[15:29:20 CEST] <JEEB> because I am crazy enough to use lavf for mpeg-ts
[15:31:36 CEST] <kierank> JEEB: insane
[15:31:41 CEST] <thardin_> madman
[15:32:14 CEST] <kierank> I will make sure I take you to the local asylum at vdd
[15:32:40 CEST] <JEEB> sounds like the correct action :D
[15:32:46 CEST] <JEEB> at least soon enough
[15:33:18 CEST] <JEEB> but yea, do we have any other examples of registering callbacks or so from lavf?
[15:33:27 CEST] <JEEB> or would I be wading into new territory?
[15:36:30 CEST] <wm4> JEEB: what callback?
[15:37:21 CEST] <JEEB> wm4: a thing for the mpegts demuxer or so, which would enable me to get a callback called if an AVProgram has gotten updated
[15:38:20 CEST] <JEEB> either a pointer in an AVOption (lol) or something else through the avcontext
[15:38:25 CEST] <JEEB> *avformatcontext
[15:38:30 CEST] <nevcairiel> cant you just diff the programs after every call :p
[15:38:42 CEST] <JEEB> nevcairiel: I would guess that is rather inefficient
[15:39:56 CEST] <iive> JEEB: doesn't the program table already have a sequence number?
[15:40:05 CEST] <wm4> JEEB: some update flag or counter would probably be better
[15:40:18 CEST] <wm4> the only callback we have in lavf is the one for opening reference files
[15:40:35 CEST] <wm4> and only because there's absolutely no other way to implement this
[15:42:19 CEST] <JEEB> wm4: yea, that's another way of doing it. although in theory before you get your next AVPacket multiple PMTs might have happened
[15:42:24 CEST] <JEEB> so you'd need an array of ints
[15:42:44 CEST] <JEEB> nullptr if no update, [1337, 1338] if updates happened
[15:43:50 CEST] <JEEB> iive: nope https://www.ffmpeg.org/doxygen/trunk/structAVProgram.html
[15:44:05 CEST] <JEEB> and you just get an array of these
[15:44:12 CEST] <JEEB> which get updated when they get
[15:44:19 CEST] <wm4> maybe we should have some sort of event thing
[15:44:33 CEST] <wm4> where you can get not only packets but also events (as structs) from the demuxer
[15:44:40 CEST] <wm4> (still preferable to callbacks)
[15:45:04 CEST] <kierank> anyone familiar with h264 in rtp?
[15:45:07 CEST] <JEEB> yea, I'm not preferring callbacks. that's just the first thing that came to mind :P
[15:45:27 CEST] <JEEB> since people generally herp a derp at the idea of new fields in lavf ctx
[15:48:22 CEST] <jkqxz> kierank: Meaning STAPs and FUs? Yes.
[15:48:56 CEST] <kierank> jkqxz: so one thing I don't understand in h264 rtp is how long you are meant to buffer
[15:49:33 CEST] <iive> JEEB: i was talking about the dvb standard, it has sequence for all the tables that could change,
[15:49:47 CEST] <iive> but yeh, having an event signaling stuff is good idea.
[15:50:00 CEST] <iive> e.g. imagine been able to handle extradata change.
[15:51:05 CEST] <kierank> you get a timestamp for a frame but relative to what?
[15:51:41 CEST] <jkqxz> kierank: There are no general rules.
[15:52:03 CEST] <wbs> kierank: the rtp timestamps are against an undefined random origin
[15:52:04 CEST] <jkqxz> The RTCP lets you match the RTP timestamp to a real clock (and the matching audio clock).
[15:52:28 CEST] <kierank> and I guess you build an estimator of the link delay from the rtcp timestamps
[15:52:56 CEST] <wbs> you don't need to do that, the rtcp packets just say "rtp time X in the video stream corresponds to realtime clock Y"
[15:53:12 CEST] <wbs> so you basically use the latest of those mappings to produce a coherent timeline
[15:59:41 CEST] <wm4> iive: we already support extradata changes
[15:59:51 CEST] <iive> how?
[15:59:54 CEST] <wm4> side data
[16:00:12 CEST] <iive> but that needs an actual data?
[16:00:17 CEST] <kierank> wbs: i see
[16:00:24 CEST] <iive> aka packet
[16:00:25 CEST] <wm4> iive: yes
[16:00:53 CEST] <iive> how about an null packet that only has side-data?
[16:01:08 CEST] <kierank> wbs: but it's still up to the receiver to come up with an estimator of how much to buffer
[16:01:18 CEST] <kierank> because I would assume for frame timestamp n, an rtcp packet would also contain timestamp n
[16:01:27 CEST] <wm4> iive: API break
[16:02:02 CEST] <iive> avi file does have a null packets... how are these handled?
[16:02:54 CEST] <jkqxz> kierank: Yes, it's completely up to the receiver. They need to balance their own requirements for real-time-ness vs. possibility of packets turning up later.
[16:03:14 CEST] <kierank> I mean buffer enough to keep enough frames available to display
[16:03:16 CEST] <kierank> i.e the vbv
[16:03:22 CEST] <wm4> iive: discarded
[16:03:30 CEST] <kierank> which is in addition to any packet based buffering
[16:04:34 CEST] <jkqxz> Traditionally RTP is used in IDR/P-only close-to-CBR cases where that is not an issue.
[16:05:12 CEST] <jkqxz> CBR in the "all frames are roughly the same size" sense, not just "within HRD constraints".
[16:05:43 CEST] <kierank> ok, makes sense
[16:09:47 CEST] <kierank> the whole thing about moving live streaming to webrtc isn't going to work then
[16:09:58 CEST] <kierank> without big quality drops if all frames are same size
[16:11:47 CEST] <BtbN> Doesn't WebRTC also only support bad codec modes?
[16:11:52 CEST] <BtbN> Like, h264 baseline only?
[16:14:14 CEST] <jkqxz> There is nothing stopping the receiver using more buffering and adding delay if they want (based on the HRD parameters, I guess).
[16:15:36 CEST] <cone-410> ffmpeg 03Timo Rothenpieler 07master:62b75537db15: avfilter/scale_npp: fix logic used in previous patch
[16:15:59 CEST] <jkqxz> The all-frames-same-size is just the normal RTP use in videoconferencing-type applications (i.e. what webrtc was originally meant for).
[16:16:23 CEST] <BtbN> rabb.it uses WebRTC for live streaming. It's bad.
[16:18:28 CEST] <jkqxz> If enough people start using it then it I imagine more support will be hacked in.
[16:18:57 CEST] <JEEB> one of the gaming streaming services renamed webrtc to "ftl protocol"
[16:18:59 CEST] <BtbN> I couldn't even figure out how to stream to a browser using WebRTC
[16:56:21 CEST] <tdjones> atomnuker: Do you have any requirements for my GSoC submission aside from git patches being sent to the mailing list?
[17:00:17 CEST] <atomnuker> tdjones: there was something new this year, can't remember, there's still time
[17:00:40 CEST] <tdjones> Yeah, they want us to publish it online in some manner
[17:01:22 CEST] <tdjones> Didn't know if you wanted it done in any specific way, but just let me know if you think of something
[17:02:37 CEST] <atomnuker> k, for now keep at it and improve the patches, with your improvements the field is open for experimentation
[17:04:03 CEST] <atomnuker> do send what you come up with a week or so before the deadline (which is in 2 weeks) so it can be polished and upstreamed
[17:06:37 CEST] <tdjones> Sure
[17:25:51 CEST] <J_Darnley> How does a decoder signal to avcodec that it needs more data before it can return a frame? Is it more than just setting got_picture to 0? Isn't there something about an again return code?
[17:26:50 CEST] <atomnuker> no, just set *got_frame to 0 and return a positive number (the packet size or however many bits you've read)
[17:27:28 CEST] <J_Darnley> That is what we're doing.
[17:28:22 CEST] <kierank> J_Darnley: you're allocating the frame and then doing nothing with it
[17:28:24 CEST] <kierank> that's the bug
[17:28:27 CEST] <kierank> it's not stored anywhere
[17:28:34 CEST] <kierank> you need to take a reference to the buffer
[17:28:45 CEST] <kierank> and then output it when you have a complete frame
[17:29:09 CEST] <J_Darnley> That was about to be next question, "what about AVFrames".
[17:30:18 CEST] <wm4> J_Darnley: depends which API
[17:30:27 CEST] <wm4> there are 2
[17:30:31 CEST] <kierank> the normal API
[17:30:43 CEST] <wm4> both are normal
[17:35:30 CEST] <J_Darnley> Okay, I don't knwow what you mean by that, kierank:
[17:35:44 CEST] <kierank> so at the moment we send a fragment to diracdec
[17:35:47 CEST] <J_Darnley> When you say "reference" do you mean ffmpeg's reference counting API
[17:35:49 CEST] <kierank> it's a sequence header
[17:35:57 CEST] <kierank> it allocates a frame
[17:36:02 CEST] <kierank> we don't return the frame
[17:36:04 CEST] <kierank> the frame leaks
[17:36:06 CEST] <J_Darnley> ... or a member in the dirac decoder struct?
[17:36:32 CEST] <kierank> not sure if keeping it in a member of the struct is ok or if it needs to be refcounted
[17:36:36 CEST] <kierank> I think refcounted
[17:36:51 CEST] <kierank> ah *data is a pointer
[17:36:56 CEST] <kierank> so it just leaks unless its stored
[17:37:12 CEST] <kierank> so maybe not refcounted
[17:37:16 CEST] <kierank> just stored in the struct
[17:37:22 CEST] <J_Darnley> yeah a void pointer maing it so obvous what's there
[17:37:27 CEST] <atomnuker> you can do the following: call get_buffer on field 1 with the full frame size, decode to it and have a pointer in your context to it
[17:37:41 CEST] <kierank> it's not about field 1
[17:37:47 CEST] <kierank> it's about indepdently decodable slices
[17:37:52 CEST] <atomnuker> then during field 2 don't call get buffer, write to field 1's avframe and transfer the reference to the current avframe
[17:37:58 CEST] <atomnuker> ah, ok
[17:37:59 CEST] <kierank> atomnuker: already implemented
[17:38:07 CEST] <kierank> by you in fact
[17:38:13 CEST] <J_Darnley> :)
[17:38:30 CEST] <atomnuker> I don't remember what the trimmed decoder does but I don't think it does that
[17:42:52 CEST] <J_Darnley> I see the decoder calling av_frame_ref for something about fields.
[17:43:15 CEST] <kierank> atomnuker: trimmed does exactly that
[17:43:40 CEST] <kierank> J_Darnley: can you check my hypothesis is correct with valgrind
[17:43:43 CEST] <kierank> i think the avframe leaks
[17:43:48 CEST] <J_Darnley> okay
[17:44:11 CEST] <kierank> atomnuker: there is a new vc-2 spec that implements fragments (i.e groups of slices) which we feed to the decoder individually
[17:44:17 CEST] <kierank> hence things have changed quite a bit
[17:45:00 CEST] <J_Darnley> Thanks for backtracing those log messages, valgrind.
[17:45:30 CEST] <J_Darnley> Nothing is leaked.
[17:46:12 CEST] <J_Darnley> Unless that is part of the ~5k "still reachable"
[17:47:54 CEST] <kierank> ok then i dunno why ffmpeg complains about frame size changing
[17:47:57 CEST] <kierank> you'll need to look into that
[17:48:06 CEST] <kierank> in theory it should do the right thing, count the slices until they are done
[17:48:17 CEST] <kierank> if need be break non-fragmented hq mode, I don't care any more
[17:48:18 CEST] <J_Darnley> I agree.
[17:48:56 CEST] <atomnuker> kierank: lol, I'm looking at the code and I can't figure out what happens
[17:49:10 CEST] <kierank> atomnuker: for what case?
[17:49:16 CEST] <atomnuker> interlaced
[17:49:36 CEST] <atomnuker> I can't see where the buffer gets transferred and outputted during the second field
[17:50:04 CEST] <atomnuker> the data avframe doesn't get touched during the second field
[17:50:15 CEST] <atomnuker> how is it outputting stuff during the second field?
[17:50:57 CEST] <atomnuker> ah, nevermind
[17:51:04 CEST] <atomnuker> av_frame_ref(data, s->current_picture)
[17:51:13 CEST] <kierank> "/* Picks the field number based on the parity of the picture number */"
[17:51:14 CEST] <kierank> yeah
[17:51:57 CEST] <atomnuker> clever, it creates a reference in the output avframe from the internal one
[18:32:17 CEST] <J_Darnley> kierank: no more error, but now I am leaking things
[18:34:40 CEST] <kierank> ok
[18:35:24 CEST] <J_Darnley> oh, and no allocated buffer for the planes.
[18:35:46 CEST] <kierank> huh
[18:35:51 CEST] <kierank> that's clearly broke then
[18:35:57 CEST] <J_Darnley> Yes!
[18:41:28 CEST] <J_Darnley> Oh, that was my mistake. I put the idwt in the wrong place.
[18:42:40 CEST] <J_Darnley> Good news: the chroma is no longer green, we now have a nice 50% gray image
[18:43:38 CEST] <kierank> are you doing the slice unpack
[18:44:06 CEST] <J_Darnley> Probably not. Did I miss something?
[18:44:25 CEST] <kierank> decode_hq_slice
[18:44:28 CEST] <kierank> actually decoding the coefficients
[18:44:36 CEST] <J_Darnley> Ha.
[18:44:43 CEST] <J_Darnley> Yeah, probably
[18:44:48 CEST] <kierank> do it linearly don't try and thread it
[18:44:55 CEST] <J_Darnley> noted
[19:19:30 CEST] <J_Darnley> kierank: I think I've got it.
[19:20:05 CEST] <kierank> definitely worth fuzzing if it works and doesn't leak
[19:20:07 CEST] <J_Darnley> I see the zoneplate pattern
[19:20:43 CEST] <J_Darnley> Oh, I think it still leaks
[19:21:51 CEST] <J_Darnley> Yeah, I didn't change that bit.
[19:22:20 CEST] <kierank> and multiple frames works?
[19:22:21 CEST] <J_Darnley> To all: how do you use av_frame_ref correctly?
[19:22:44 CEST] <J_Darnley> kierank: I haven't made a sample like that
[19:22:55 CEST] <J_Darnley> Myabe I should do that first
[19:22:55 CEST] <kierank> J_Darnley: the sample on .18 is like that
[19:23:19 CEST] <J_Darnley> Really?
[19:23:35 CEST] <kierank> yes, I think it's 40 frames or something
[19:23:57 CEST] <kierank> ah no
[19:23:58 CEST] <kierank> my bad
[19:24:09 CEST] <kierank> anyway make one work without a leak
[19:24:12 CEST] <kierank> and fuzz crash
[19:24:14 CEST] <kierank> then go onto more
[19:24:18 CEST] <J_Darnley> okay
[19:24:38 CEST] <J_Darnley> Continuing my question...
[19:25:39 CEST] <kierank> you allocate a frame and you get 1 ref to it
[19:25:42 CEST] <J_Darnley> Yes
[19:25:44 CEST] <J_Darnley> I'm using av_frame_ref to make a reference into the dirac decoder struct after I allocate
[19:25:44 CEST] <kierank> then you ref it to get another one
[19:26:20 CEST] <J_Darnley> I'm using av_frame_ref to make a reference into the dirac decoder struct after I allocate a frae on the first fragment given to the decoder
[19:27:04 CEST] <kierank> so you need to assume that anything you put into *data gets freed afterwards
[19:27:10 CEST] <J_Darnley> Then when I have decoded the picture I am using av_frame_ref again to copy properties back into the output AVFrame
[19:27:21 CEST] <kierank> then you have a refcount of two
[19:27:28 CEST] <kierank> and after decode_frame it has a refcount of 1 so leaks
[19:27:35 CEST] <kierank> I think
[19:27:46 CEST] <kierank> but i thought you'd reuse the frame so maybe it should have a refcount of 1
[19:28:07 CEST] <J_Darnley> I don't know what any of this does
[19:28:14 CEST] <kierank> J_Darnley: refcounting
[19:28:14 CEST] <J_Darnley> I hate garbage collection garbage.
[19:28:19 CEST] <kierank> nonsense
[19:28:28 CEST] <kierank> refcounting was a patch that took ffmpeg into the 21st century
[19:28:43 CEST] <JEEB> true
[19:29:04 CEST] <kierank> ok libavcodec to be more precise
[19:29:08 CEST] Action: J_Darnley prefers the stoneage
[19:29:20 CEST] <durandal_1707> lol
[19:29:45 CEST] <kierank> good luck sharing frames between threads
[19:31:01 CEST] <J_Darnley> So when do I call free or unref or whatever?
[19:31:02 CEST] <kierank> J_Darnley: so yes i am right
[19:31:07 CEST] <kierank> you don't free
[19:31:16 CEST] <kierank> you only ref the frame if you need to keep a copy
[19:31:18 CEST] <atomnuker> yep, refcounting absolutely rocks and saves on so much memcpys
[19:31:33 CEST] <kierank> J_Darnley: so you keep a copy of the frame during the fragments
[19:31:44 CEST] <kierank> then pass it to *data on the way out
[19:31:45 CEST] <kierank> afaik
[19:32:02 CEST] <kierank> J_Darnley: I will convert you to refcounting like I convertered atomnuker
[19:32:05 CEST] <kierank> it was a struggle but I won
[19:32:26 CEST] <kierank> J_Darnley: the current problem is we store the frame in *data
[19:32:30 CEST] <kierank> instead of the struct
[19:32:35 CEST] <kierank> and so *data is freed automatically
[19:33:08 CEST] <J_Darnley> Not anymore. I made a ref using a new AVFrame in the diracdec struct.
[19:33:25 CEST] <J_Darnley> Do I write that address into *data then?
[19:33:32 CEST] <kierank> you don't need to make a ref in the struct
[19:33:38 CEST] <kierank> you go direct
[19:33:43 CEST] <kierank> then put that into *data when the frame is done
[19:35:16 CEST] <J_Darnley> ? I'm sure *data is being saved into one of the other 3 AVFrame* in the struct on the first fragment.
[19:36:08 CEST] <kierank> huh
[19:36:11 CEST] <kierank> data is the output
[19:36:41 CEST] <kierank> data = frame <-- then ffmpeg does what it wants
[19:37:16 CEST] <kierank> J_Darnley: you're sure the avframe is leaking from valgrind
[19:37:18 CEST] <kierank> can you patch .18
[19:37:20 CEST] <kierank> and I can look
[19:38:38 CEST] <J_Darnley> Okay
[00:00:00 CEST] --- Tue Aug 15 2017
1
0
[00:20:43 CEST] <sh4rm4^bnc> what's the trick to get ffprobe to report length for all of a dvd's VOB files ?
[00:21:21 CEST] <sh4rm4^bnc> i tried using concat:file1.VOB|file2.VOB, and looping over all vobs and adding up the size
[00:21:47 CEST] <sh4rm4^bnc> the concat thing just returns length for the last VOB in the list
[00:22:27 CEST] <sh4rm4^bnc> and looping over single files gets erroneus results, for example VTS_01_4.VOB is reported to have 90000 seconds
[00:54:09 CEST] <dystopia_> ffprobe -i "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB"
[00:54:10 CEST] <dystopia_> maybe
[01:29:08 CEST] <sh4rm4^bnc> dystopia_, thanks, but as i said, this returns only the length of the last file
[01:46:51 CEST] <c_14> sh4rm4^bnc: there's no good solution besides iterating over each file and getting the duration there (if necessary by actually counting frames/pts)
[01:47:20 CEST] <c_14> Well, I guess you could use concat and ffmpeg to create a file and grab the reported output duration of that
[01:56:32 CEST] <sh4rm4^bnc> c_14, is there an advantage over using ffmpeg for that instead of cat *.VOB > foo.vob ?
[01:57:21 CEST] <sh4rm4^bnc> (that's what i wanted to avoid to begin with; i need the length for automatic framerate calculation to encode the dvd as mp4)
[01:59:23 CEST] <c_14> If you're using the concat protocol, not really. Using tccat might be a better alternative
[01:59:50 CEST] <sh4rm4^bnc> btw i would have expected that dvd metadata files have the length info, but my tried to use dvd://path didnt work out...
[02:00:20 CEST] <c_14> they should
[02:01:02 CEST] <sh4rm4^bnc> so there's probably a trick to make ffprobe read the info from the metadata, instead of scanning the vob's
[02:01:23 CEST] <c_14> Probably a deficiency in the code if anything
[02:01:56 CEST] <sh4rm4^bnc> well, i find it quite deficient that the concat:foo|bar input doesn't work as expected
[02:02:42 CEST] <c_14> the duration reported by ffprobe is only metadata
[02:02:48 CEST] <c_14> and for that it just uses the first file
[02:03:00 CEST] <c_14> you could use -count_frames and some extra options to get all the frame pts
[02:03:06 CEST] <c_14> but those'll probably wrap
[02:03:13 CEST] <c_14> So you'd have to catch that and add it all up yourself
[02:04:48 CEST] <sh4rm4^bnc> haha, -count_frames makes ffmpeg segfault
[02:05:00 CEST] <sh4rm4^bnc> or ffprobe, rather
[02:05:08 CEST] <c_14> version?
[02:05:22 CEST] <sh4rm4^bnc> ffprobe version 3.2.3 Copyright (c) 2007-2017 the FFmpeg developers
[02:06:02 CEST] <c_14> That's relatively new I guess
[02:06:04 CEST] <c_14> weird
[02:06:08 CEST] <c_14> linux?
[02:06:12 CEST] <sh4rm4^bnc> yes
[02:06:16 CEST] <c_14> Try
[02:06:18 CEST] <c_14> http://johnvansickle.com/ffmpeg/
[02:06:20 CEST] <c_14> A build from there
[02:06:54 CEST] <sh4rm4^bnc> nope sorry - i use only sw built myself from source
[02:07:13 CEST] <c_14> can you build from git then?
[02:07:13 CEST] <sh4rm4^bnc> also i use musl libc, so that one is almost certainly not compatible anyway
[02:07:16 CEST] <c_14> git master head?
[02:07:25 CEST] <sh4rm4^bnc> i guess i could try that
[02:07:28 CEST] <c_14> I just recommended that because most people are lazy
[02:36:08 CEST] <sh4rm4^bnc> no segfault with latest git snapshot... though it's either dead-slow, or stuck in an endless loop
[02:36:35 CEST] <sh4rm4^bnc> i started the command like 10 mins ago, still not finished
[02:36:56 CEST] <c_14> count_frames can take a while
[02:36:57 CEST] <c_14> though not _that_ long usually
[02:37:34 CEST] <sh4rm4^bnc> PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
[02:37:34 CEST] <sh4rm4^bnc> 25885 user 20 0 95612 22264 12012 R 99.8 0.1 11:52.75 ffprobe -v error -show_entries format=dura
[02:39:28 CEST] <sh4rm4^bnc> it's on the first vob file, which without count_frames reports a length of 29 secs
[02:40:00 CEST] <c_14> the thing with count_frames is that it won't necessarily make your result better if you don't work with it, if your content is cfr you can grab the total number of frames with format=nb_read_frames, otherwise you'll have to dump info on every frame with show_frames or similar to get the pts of each of them
[02:48:08 CEST] <sh4rm4^bnc> still running, i think we can officially declare it to be an endless loop
[02:48:22 CEST] <sh4rm4^bnc> let's see if i can get a backtrace
[02:59:51 CEST] <sh4rm4^bnc> for some reason gdb can't associate the program counter with the source code addresses, so bad luck i guess
[03:00:32 CEST] <sh4rm4^bnc> only thing i can tell is that memset is called in the loop with small buffers of maybe 32 bytes max
[03:01:16 CEST] <sh4rm4^bnc> anyway, let me know if you need further info, c_14 (assuming you're a dev interested in fixing this)
[03:02:28 CEST] <c_14> Im not much of a dev and I'm busy these days anyway, but you could open a bug report on trac though without a reproducer getting a fix would be hard
[03:02:41 CEST] <c_14> To fix your actual problem, I would recommend using tccat or something though
[05:32:01 CEST] <c3r1c3-Win> danieel: i need a log, not a screenshot.
[05:32:28 CEST] <c3r1c3-Win> Sorry... I somehow ended up in this chat.
[06:22:49 CEST] <sh4rm4^bnc> hmm, when i encode stuff with libx264, the resulting video can only be watched if it is completely downloaded, unlike e.g. youtube videos where you can watch while you download. i get this error:
[06:22:52 CEST] <sh4rm4^bnc> [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[06:22:52 CEST] <sh4rm4^bnc> [lavf] avformat_open_input() failed
[06:23:17 CEST] <sh4rm4^bnc> is there a trick to produce a "streamable" video ?
[06:23:47 CEST] <relaxed> you need -movflags faststart
[06:24:02 CEST] <sh4rm4^bnc> cool, thanks
[06:24:15 CEST] <furq> you shouldn't need that any more unless your browser is really old
[06:24:22 CEST] <furq> although it's still a good idea in general
[06:24:37 CEST] <thebombzen> sh4rm4^bnc: keep in mind that if you encode with -movflags +faststart, you still need to write the whole file. it's not stremable in the sense that you can view partial files
[06:24:48 CEST] <furq> right
[06:24:52 CEST] <furq> you'd need to use a different muxer for that
[06:24:53 CEST] <sh4rm4^bnc> i encode stuff on an fast server, then download it, trying to watch it with mpv while it plays
[06:25:01 CEST] <relaxed> the + isn't needed
[06:25:02 CEST] <furq> while it encodes, you mean?
[06:25:09 CEST] <furq> in that case use mkv
[06:25:12 CEST] <sh4rm4^bnc> no, after it is encoded
[06:25:17 CEST] <furq> oh
[06:25:18 CEST] <thebombzen> relaxed: it should be used though
[06:25:33 CEST] <furq> tbh you should probably still use mkv unless you have a good reason to prefer mp4
[06:25:40 CEST] <furq> but if you want to use mp4 then do what relaxed said
[06:26:00 CEST] <relaxed> it should be used for multiple flags
[06:26:08 CEST] <thebombzen> sh4rm4^bnc: mp4 files have a table of contents (called the moov atom) that by default is at the end of the file and it's created when the file is ready to be finished
[06:26:42 CEST] <thebombzen> you can't read the mp4 file without the moov atom. but -movflags +faststart moves it to the front of the file when writing to a seekable device, which means that browsers can start it immediately
[06:26:43 CEST] <sh4rm4^bnc> i see
[06:26:49 CEST] <furq> browsers will usually seek to the end of the file to download the moov atom now
[06:26:58 CEST] <furq> but if you're using scp or something then obviously that's not going to work
[06:27:11 CEST] <thebombzen> this also requires the http server to support seeking, which it might not if it's old
[06:27:36 CEST] <sh4rm4^bnc> i download with wget :)
[06:27:50 CEST] <thebombzen> well there you go
[06:28:16 CEST] <thebombzen> if you use a primitive browser like wget or curl to download it sequentially, you have the issue described above.
[06:28:56 CEST] <sh4rm4^bnc> can libx264 be used with mkv ? and if so, what's the advantage ?
[06:29:15 CEST] <furq> yes and the advantage is you don't need to rewrite the entire file when it's done encoding to put the moov atom at the start
[06:29:30 CEST] <furq> more or less everything is compatible with mkv
[06:29:46 CEST] <furq> (except timebases that aren't a power of 10, but ignore that for now)
[06:29:50 CEST] <sh4rm4^bnc> oh great. i just use foo.mkv as output filename instead of foo.mp4 ?
[06:29:51 CEST] <thebombzen> most browsers will not autoplay matroska files
[06:30:00 CEST] <furq> well he's not using a browser so that's fine
[06:30:02 CEST] <furq> sh4rm4^bnc: yeah
[06:30:12 CEST] <c3r1c3-Win> Just remux if you need the mp4 file.
[06:30:14 CEST] <thebombzen> don't use -movflags +faststart though, that's a mp4-specific option
[06:30:34 CEST] <sh4rm4^bnc> ok, thanks
[06:30:35 CEST] <thebombzen> (er, mov, mp4, m4a, 3gp, 3g2, mj2, but whatever)
[06:30:53 CEST] <furq> also if you already encoded these files then you don't need to reencode them
[06:31:06 CEST] <furq> you can just copy the streams into mkv or whatever
[06:32:00 CEST] <sh4rm4^bnc> ah, how can i do that ?
[06:32:23 CEST] <furq> -i foo.mp4 -map 0 -c copy bar.mkv
[06:33:51 CEST] <sh4rm4^bnc> nice
[08:15:56 CEST] <thunfisch> is it possible to print an AVFormatContext property with the ffmpeg comand line? need to get the 'rtcp_ts_offset' value that is being set in libavformat/rtsp.c:2188 @master
[08:16:02 CEST] <thunfisch> want to avoid writing custom code
[08:17:53 CEST] <thunfisch> or even better: set dts to that value
[13:35:48 CEST] <Vonor> getting on latest git checkout: x86_64-pc-linux-gnu-gcc is unable to create an executable file. using gcc 4.8.5 -> http://paste.opensuse.org/65205285
[13:38:39 CEST] <durandal_1707> what is error?
[13:39:12 CEST] <Vonor> that is the error
[13:39:19 CEST] <BtbN> there's no error in that log
[13:39:33 CEST] <bencoh> Vonor: you should paste the full configure log
[13:39:46 CEST] <Vonor> the log shows only gcc -v
[13:40:36 CEST] <Vonor> erm, the output of the configure script has that as first line, then suggests about cross compiling (which is not the case ) and says "C compiler test failed". that's it
[13:41:34 CEST] <Vonor> ah. there's a build log. heh. didn't see that before. my bad. here's the actual line: x86_64-pc-linux-gnu-gcc -march=k8 -mtune=core2 -O2 -pipe --static -fPIE -march=core2 -c -o /tmp/ffconf.cFXFnAgx/test.o /tmp/ffconf.cFXFnAgx/test.c
[13:41:34 CEST] <Vonor> ./configure: line 892: x86_64-pc-linux-gnu-gcc: command not found
[13:42:47 CEST] <furq> pastebin the full configure log
[13:47:23 CEST] <Vonor> http://arin.ga/4AdqDq
[13:47:57 CEST] <furq> --cc=x86_64-pc-linux-gnu-gcc
[13:48:12 CEST] <ScottSteiner> I have a video that I sped up 8x. I want to put a timestamp on it, but the drawtext filter doesn't support a framerate of 400/1. How do I generate a transparent video with the timestamp so I can speed it up and then merge it with the original video?
[13:48:24 CEST] <furq> you probably don't want to set --cc etc if you're not cross compiling
[13:48:30 CEST] <furq> especially not to something that doesn't exist
[13:50:45 CEST] <Vonor> ehh..do'h. that configure line was from a gentoo environment i had before. thanks for the hint.
[13:52:50 CEST] <furq> ScottSteiner: what do you mean "doesn't support a framerate of 400/1"
[13:52:54 CEST] <furq> that seems to work fine here
[13:53:17 CEST] <ScottSteiner> I get error message "[Parsed_drawtext_0 @ 0x1e18d00] Timecode frame rate 400/1 not supported"
[13:53:40 CEST] <ScottSteiner> Could it be a codec/container issue? I'm putting it into a libvpx webm
[13:54:02 CEST] <Vonor> hmm. missing some libararies i guess. it's complaining now that ld cannot find -lpng and -lc i got libpng12, libpng16 and their respective -devel packages installed.
[13:54:03 CEST] <furq> that shouldn't matter
[13:55:45 CEST] <furq> ScottSteiner: pastebin the command and full output
[13:56:14 CEST] <ScottSteiner> https://paste.debian.net/plain/981285
[14:02:03 CEST] <furq> oh right i actually get a similar error
[14:02:19 CEST] <furq> timecode_rate only works here if i set it to 30 or 60
[14:02:43 CEST] <ScottSteiner> yeah, i was just looking at the code https://www.ffmpeg.org/doxygen/2.1/libavutil_2timecode_8c_source.html supported_fps[] = {24, 25, 30, 50, 60};
[14:03:39 CEST] <ScottSteiner> so I need to create a blank image with just the timer on an alpha channel...How would I do that?
[14:04:04 CEST] <furq> you can use text=${pts\:hms} for a millisecond timestamp
[14:04:12 CEST] <furq> that'll at least give you a unique value per frame
[14:04:21 CEST] <furq> i don't see how you'd get a proper timecode at 400fps though
[14:04:34 CEST] <furq> er, %{}
[14:04:42 CEST] <ScottSteiner> I can already generate the timestamp
[14:04:55 CEST] <ScottSteiner> My plan is to create a video of the full length and then speed that one up too
[14:05:13 CEST] <ScottSteiner> it should be a bit faster since I'll be doing it at a different bitrate
[14:05:53 CEST] <furq> what are you actually doing
[14:06:00 CEST] <furq> i just noticed your output video is 60fps and now i'm confused
[14:06:01 CEST] <ScottSteiner> putting a timer on a video
[14:06:49 CEST] <ScottSteiner> I have a video that I sped up 8x. I want to put a timestamp on it, but preserve the original timing
[14:07:14 CEST] <ScottSteiner> I don't want to re-encode the entire thing because it's a rather large file that took a few hours to encode initially
[14:14:44 CEST] <furq> ffmpeg -f lavfi -i color=white@0.0:d=1234,format=rgba,drawtext="timecode='00\:00\:00\.000':timecode_rate=60" -c:v ffv1 out.nut
[14:14:52 CEST] <furq> something like that will draw the timecode on a transparent background
[14:15:00 CEST] <furq> replace d=1234 with the actual duration
[14:26:59 CEST] <ScottSteiner> thanks furq, I'll try that out
[14:33:17 CEST] <furq> actually that might be a dumb way of doing it
[14:33:29 CEST] <Vonor> using this as configure line -->> ./configure --pkg-config-flags="--static" '--extra-cflags=--static' '--extra-cxxflags=--static' --disable-shared --enable-static --disable-gpl --disable-nonfree <<-- I would expect to get a static binary. But I'm getting a dynamically linked one :-( -->> ffmpeg: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.0.0, BuildID[sha1]=3f1b52e39bab32a7d454a06113e
[14:33:29 CEST] <Vonor> 2c29b5015aa2f, stripped
[14:33:39 CEST] <furq> if you're encoding it again anyway then the right thing is probably to do -vf drawtext=[options],fps=400 on the source video
[14:33:47 CEST] <furq> that'll give you a 60fps timecode on a 400fps video
[14:33:57 CEST] <furq> or whatever the source framerate is
[14:53:34 CEST] <ScottSteiner> I did " ffmpeg -i input.webm -vf drawtext="fontcolor=black:fontsize=48:timecode='00\:00\:00\.000':timecode_rate=60:text=''",fps=400 output.webm" but the timestamp was shown in realtime, but sped up
[14:53:52 CEST] <ScottSteiner> with input.webm being the sped up video
[15:09:10 CEST] <ScottSteiner> maybe ill just bite the bullet and re-encode the whole thing. trying to find workarounds seems to be more painful than just letting it run in the background
[15:11:03 CEST] <dystopia_> wrong framerates maybe?
[15:11:33 CEST] <ScottSteiner> not that I can see
[15:32:38 CEST] <ScottSteiner> it ended up not being too bad, the frames being dropped since I chained my atempo/setpts filters really sped things up
[18:19:57 CEST] <pgorley> hi, how would i put AVFrame->data into an std::vector<uint8_t>?
[18:20:08 CEST] <c_14> memcpy?
[18:21:53 CEST] <pgorley> c_14: i was trying the iterator ctor approach, but it seems to segfaults, is there a way to get a pointer to the last item in AVFrame->output?
[18:25:34 CEST] <c_14> You mean AVFrame->data ?
[18:26:52 CEST] <c_14> use the width * height?
[18:39:44 CEST] <BtbN> height * linesize
[18:45:01 CEST] <c_14> eeh, right
[18:51:56 CEST] <pgorley> BtbN, c_14: thank you
[18:52:13 CEST] <pgorley> but yea, AVFrame->data
[19:43:53 CEST] <pgorley> i think i'm going about this wrong
[19:45:06 CEST] <pgorley> i'm working with an application that takes an array of audio samples for each channel (each channel is an int16_t*) and i want to put my audio file in there
[19:46:07 CEST] <durandal_1707> AVFrame stores channels in extended_data[x]
[19:46:27 CEST] <durandal_1707> where x is 0 for packed sample format
[19:46:54 CEST] <durandal_1707> or x is channel number in case of planar sample format
[19:47:27 CEST] <pgorley> so i would just append extended_data to my array each time i decode a frame?
[19:48:28 CEST] <durandal_1707> something like that
[19:48:34 CEST] <pgorley> hmm
[19:49:14 CEST] <durandal_1707> but make sure its still same endianess, sample fmt is in native endianess
[19:49:29 CEST] <pgorley> and how do i know if my format is packed or planar?
[19:49:35 CEST] <pgorley> oh, nvm found it
[19:50:12 CEST] <pgorley> av_sample_is_planar and then use av_samples_get_buffer_size to get the size of extended_data?
[19:51:35 CEST] <pgorley> durandal_1707: i'll try it out, thanks!
[19:51:44 CEST] <durandal_1707> size of extended data is nb of decoded samples * sizeof( sample ) in bytes
[19:53:50 CEST] <pgorley> durandal_1707: how do i get the size of a sample? since i'm putting it in an array of int16_t, would it be 2?
[19:54:19 CEST] <durandal_1707> if decoded sample format is int16
[19:54:45 CEST] <durandal_1707> if not than you need to resample using libswresample
[19:56:06 CEST] <pgorley> i see, so i would need to check if the samle format is int16 and if not call swr_convert on it?
[19:56:29 CEST] <durandal_1707> yes
[19:57:02 CEST] <pgorley> this is starting to make sense, thanks a lot!
[19:57:26 CEST] <CyBerNetX> hello
[19:57:42 CEST] <durandal_1707> hello
[19:58:05 CEST] <CyBerNetX> i serach info in this page https://trac.ffmpeg.org/wiki/RemapFilter
[19:58:24 CEST] <CyBerNetX> i hav made the project bin
[19:58:55 CEST] <CyBerNetX> but i dont understand this
[19:59:17 CEST] <durandal_1707> what exactly?
[19:59:25 CEST] <CyBerNetX> i test on a file who have 2 spherical view
[19:59:54 CEST] <CyBerNetX> 1 front and
[20:00:04 CEST] <CyBerNetX> bak side
[20:00:34 CEST] <voip_> Hello guys, please help me with problem: Selected ratecontrol mode is not supported by the QSV runtime.
[20:00:42 CEST] <voip_> https://pastebin.com/fQ2xGN6M
[20:00:51 CEST] <BtbN> Use a rate control mode that it supports
[20:00:54 CEST] <CyBerNetX> i think the binarie is used to made remap on 1 spherical view ?
[20:01:20 CEST] <JEEB> voip_: you have not set a rate control mode and I guess the global default is 200kbps bit rate
[20:01:29 CEST] <JEEB> that is not supported by that encoder
[20:01:45 CEST] <CyBerNetX> but my camera has 2 fisheye one on front and 1 one backside
[20:01:47 CEST] <JEEB> also I'm pretty sure the QSV encoder has no knowledge of x264 presets
[20:02:58 CEST] <durandal_1707> CyBerNetX: map files work only for layouts mentioned in wiki
[20:03:27 CEST] <CyBerNetX> ok thanks
[20:08:09 CEST] <voip_> JEEB, how can fix and set rate control
[20:08:10 CEST] <voip_> ?
[20:14:26 CEST] <voip_> JEEB, i tryed with h264_qsv -b:v 2500k same problem
[20:36:30 CEST] <voip_> guys, how can i setup rate control ? I also i tried with h264_qsv -b:v 2500k same problem
[20:37:52 CEST] <pgorley> in multichannel audio, are all AVFrame->extended_data arrays the same size?
[20:38:11 CEST] <BtbN> voip_, try also specifying a maxrate
[20:39:57 CEST] <voip_> tryed, same problem :(
[20:46:13 CEST] <jkqxz> voip_: Making libmfx work on Linux is painful. Make sure you are using the modified kernel and all of the modified libraries (and that your distribution isn't overriding them with normal versions).
[20:47:45 CEST] <BtbN> Or just use libva
[20:47:49 CEST] <jkqxz> If transcoding locally in CBR mode (like "-b:v 1M -maxrate 1M") doesn't work then there is probably something wrong with your setup. The whole thing is hopelessly undebuggable, "strace" is about the best tool for working out what it's actually doing.
[20:49:23 CEST] <voip_> guys i think its setup problem. because i follow instructions and test command (fmpeg -y -i test.mp4 -vcodec h264_qsv -acodec copy -b:v 8000K out.mp4) give me same error
[22:15:37 CEST] <paveldimow> Hi, I have two incoming (live) rtmp streams, I would like pick the video from one stream and audio from another stream and to sync them. Is this possible with ffmpeg?
[22:16:08 CEST] <BtbN> syncing two unrelated streams is most likely close to impossible
[22:17:06 CEST] <JEEB> it's not impossible but you will have to make concessions/have a buffer if they are offset by enough time
[22:18:44 CEST] <BtbN> one slight network-stutter and they will be permanently out of sync again until you restart
[22:19:17 CEST] <paveldimow> what do you mean by unrelated?
[22:19:38 CEST] <JEEB> BtbN: wouldn't the PTS matching still be the same
[22:19:55 CEST] <BtbN> I don't think ffmpeg cares about PTS for seperate input sources
[22:20:00 CEST] <BtbN> it treats them as unrelated
[22:20:03 CEST] <JEEB> yes
[22:20:08 CEST] <JEEB> which is why you have to write hte code yourself
[22:20:22 CEST] <JEEB> you take in two inputs, you know the approximate difference and start matching PTS
[22:20:31 CEST] <JEEB> (using a buffer for the one that's ahead)
[22:20:40 CEST] <BtbN> That does assume that the PTS are identical though
[22:20:44 CEST] <BtbN> which they most likely won't be
[22:21:08 CEST] <JEEB> not identical, but that the offset will not change - you would have to make an interface that takes in change requests for it if it is variable
[22:21:26 CEST] <paveldimow> hmmm
[22:21:48 CEST] <paveldimow> so, to sum, it's possible but very hard
[22:22:11 CEST] <JEEB> possibly not very hard, but "not something achievable with the ffmpeg.c command line app as-is"
[22:22:16 CEST] <paveldimow> ok, does it matter if the input streams are created with the same application?
[22:22:27 CEST] <JEEB> why would it?
[22:23:04 CEST] <paveldimow> I don't know, beacuse of "[22:20] <BtbN> That does assume that the PTS are identical though [22:20] <BtbN> which they most likely won't be"
[22:24:22 CEST] <paveldimow> well ok, what do you think how much if take time/money to make this solution with ffmpeg?
[22:24:43 CEST] <paveldimow> we are talking about days/months/years?
[22:25:11 CEST] <paveldimow> just asking, I don't know if you are developers
[22:26:12 CEST] <JEEB> depends on your experience with the libav* APIs
[22:26:33 CEST] <JEEB> and in general your grasp on the idea of having two inputs and buffering one until you get to the same point in your other stream
[22:27:24 CEST] <paveldimow> how about your experience? :)
[22:27:53 CEST] <JEEB> the dynamic buffer would be the thing for me to watch out for, otherwise it sounds relatively straightforward
[22:28:17 CEST] <BtbN> until someone restarts one of the input streams, and everything's messed up
[22:28:32 CEST] <JEEB> yes, and that's when you have to then re-adjust the dynamic buffer again
[22:28:39 CEST] <JEEB> and the desync rate
[22:28:55 CEST] <JEEB> I mean, far from being perfect but that's what you get when you want to sync two unrelated things together
[22:28:58 CEST] <BtbN> I'd have no idea how to do that in any reliable way
[22:29:08 CEST] <paveldimow> it can be static as well or no? I mean give it enough size
[22:29:33 CEST] <paveldimow> well, does it help if we consider one "master" stream to be super reliable?
[22:29:41 CEST] <BtbN> someone would have to constantly babysit it, and manually adjust the delay
[22:30:07 CEST] <paveldimow> well, manual adjust is not an option... at least for now :)
[22:30:21 CEST] <BtbN> The only reliable way to do things like that is realtime timestamps and synced clocks. But I don't think rtmp even supports that
[22:30:36 CEST] <JEEB> yea, unless you code it into special SEI messages or something
[22:30:40 CEST] <JEEB> and add parsing of that to lavf
[22:31:06 CEST] <JEEB> or use the UTC timestamp as FLV timestamp? not sure how big the values can be
[22:31:15 CEST] <JEEB> only remember how it was a time base of 1/1000
[22:31:18 CEST] <paveldimow> 32bit
[22:31:35 CEST] <paveldimow> which is quite enough
[22:31:36 CEST] <BtbN> rtmp timestamps wrap around after roughly 45 hours
[22:31:43 CEST] <BtbN> realtime timestamps wouldn't work
[22:31:54 CEST] <paveldimow> no no, no need to more then 2-3 hours
[22:32:10 CEST] <BtbN> Well, the unix time started 1970 though
[22:32:38 CEST] <JEEB> anyways, if you can sync the source clocks and use timestamps as your PTS then, uh
[22:32:44 CEST] <JEEB> suddenly the problem becomes a bit simpler
[22:33:10 CEST] <BtbN> If you manage to ensure the PTS are identical on all inputs, you can hack something, yes. But ffmpeg.c still can't do it.
[22:33:36 CEST] <paveldimow> what do you mean byt PTS are identical?
[22:33:48 CEST] <JEEB> PTS = presentation time stamp
[22:34:27 CEST] <paveldimow> yes yes, but why when if I understand correctly, rtmp does not support absolute timestamps only relative
[22:34:47 CEST] <JEEB> RTMP = FLV, FLV AFAIK supports PTS just fine
[22:34:56 CEST] <JEEB> go read the FLV specs if you care enough
[22:34:57 CEST] <BtbN> There are no relative timestamps
[22:35:06 CEST] <BtbN> They are always absolute to a random timebase
[22:35:52 CEST] <paveldimow> Timestamps in RTMP are given as an integer number of milliseconds relative to an unspecified epoch. Typically, each stream will start with a timestamp of 0, but this is not required, as long as the two endpoints agree on the epoch. Note that this means that any synchronization across multiple streams (especially from separate hosts) requires some additional mechanism outside of RTMP.
[22:36:23 CEST] <paveldimow> hmmmm
[22:36:39 CEST] <BtbN> I think RTP/RTSP uses absolute global timestamps by default
[22:36:47 CEST] <BtbN> meaning those streams sync themselves without any further effort
[22:37:08 CEST] <BtbN> only depending on an accurtate clock on all machines involved
[22:37:28 CEST] <paveldimow> would ntp be an option in that case?
[22:37:33 CEST] <pgorley> do i have to set the output frame's nb_samples before calling swr_convert_frame? it's always 0 afterwards
[22:37:35 CEST] <BtbN> it's required.
[22:50:35 CEST] <Cracki> ntp would be a good enough option. consider gps-derived time for more precision. be aware that gps time isn't UTC time, and google time servers aren't UTC either.
[23:12:01 CEST] <paveldimow> Thank you for your answers. I'll have to discuss my idea in my head few times :)
[23:14:01 CEST] <paveldimow> How they did something like this? https://www.youtube.com/watch?v=xQkapLhuGV0
[23:15:36 CEST] <Cracki> timestamps I'd guess
[23:15:50 CEST] <Cracki> audio and video can be bad enough to not be usable for synchronization
[23:16:01 CEST] <paveldimow> :D
[23:16:25 CEST] <paveldimow> you mean in this particular video from snapchat?
[23:16:29 CEST] <Cracki> yes
[23:16:43 CEST] <paveldimow> yes, that's make sense
[23:17:15 CEST] <Cracki> perhaps even gps time, but I don't know if gps receivers typically used in smartphones give that info
[23:18:22 CEST] <paveldimow> not sure
[23:18:30 CEST] <paveldimow> but, what's better ntp or gps?
[23:18:36 CEST] <Cracki> ntp/sntp is easy enough for them to do, and something on the order of <30 ms is imperceptible to humans
[23:19:16 CEST] <Cracki> as long as you have a link, you can always to sntp/ntp. gps only works outdoors or with very good receivers.
[23:19:31 CEST] <Cracki> gps would give you a very phase-stable clock signal
[23:20:36 CEST] <paveldimow> thank you Cracki
[23:53:31 CEST] <SpLiC3> If using ffmpeg as remuxer with avconv what commands would i need to introduce to my .json to maintain the buffer of the original .ts stream or is that a rather obtuse question?
[23:54:33 CEST] <SpLiC3> source is already encoded h.264 in a .ts with acc audio, i just select copy for those though, is that correct?
[00:00:00 CEST] --- Tue Aug 15 2017
1
0
[01:06:10 CEST] <cone-670> ffmpeg 03Michael Niedermayer 07master:62702eebded6: avcodec/ffv1dec_template: Fix undefined shift
[01:06:10 CEST] <cone-670> ffmpeg 03Michael Niedermayer 07master:0561bd2fc2bf: avcodec/gdv: Check available space before reading palette
[01:06:10 CEST] <cone-670> ffmpeg 03Michael Niedermayer 07master:5859b5b4394d: avcodec/lagarith: Detect end of input in lag_decode_line() loop
[12:16:41 CEST] <BtbN> The intermediate-replacement Ryzen 1500X also has a UA number of 1707. So way in the "broken-range"
[12:16:50 CEST] <BtbN> guess buying one now does not mean you're safe
[12:17:11 CEST] <JEEB> ouch
[12:17:24 CEST] <BtbN> well, I'm fine with my intermediate-CPU being broken in the same way
[12:17:37 CEST] <BtbN> as long as my RMA gets me a properly working 1800X
[12:17:47 CEST] <JEEB> true that
[12:19:31 CEST] <nevcairiel> until AMD officially confirms the failure, they wont get those off the shelves. those "broken ranges" have been determined by users after all.
[12:20:08 CEST] <BtbN> would have just expected them to be long sold off
[12:22:04 CEST] <atomnuker> BtbN: shouldn't you cancel, now you have to RMA 2 CPUs
[12:22:44 CEST] <BtbN> I haven't tested the R5 yet
[12:22:53 CEST] <BtbN> it's still in its original box
[12:22:58 CEST] <BtbN> won't open it until I need it
[12:23:16 CEST] <BtbN> I need its plastic-packaging to re-package my CPU, as I lost the packaging for it...
[12:24:02 CEST] <nevcairiel> thats why my basement is full of packaging things from all sorts of shit. i should eventually sort some of the older stuff out, but for now there is still room! =p
[12:24:19 CEST] <BtbN> I still have the full packaging of the main CPU
[12:24:36 CEST] <BtbN> I just lost the small piece of plastic where the actual CPU is put into, so the pins don't bend
[12:24:56 CEST] <nevcairiel> that would be included in "full" in my definition =p
[12:25:20 CEST] <nevcairiel> intel cpus also ship in some plastic case, i just put that back into the paper thing for storage
[12:25:36 CEST] <BtbN> AMD CPUs are way more critical there than Intel though
[12:26:03 CEST] <nevcairiel> i know, they still use fragile pins
[12:45:40 CEST] <J_Darnley> nevcairiel: that packaging problem sounds familiar :)
[17:13:14 CEST] <atomnuker> rcombs: are you going to push your flac patches finally?
[20:30:59 CEST] <philipl> BtbN: We don't currently have a filter that will do a crop in cuda do we? The existing scale filters are strictly for scaling
[20:31:17 CEST] <BtbN> cuvid can do cropping, but that's about it.
[20:33:06 CEST] <philipl> BtbN: ah yes. But good enough for my purposes.
[21:31:48 CEST] <JEEB> /30/25
[00:00:00 CEST] --- Mon Aug 14 2017
1
0
[00:01:33 CEST] <dorvan> Peste_Bubonica: fast test... make a directory, mount a ramdisk (mount -t tmpfs tmpfs /DIR), make 2 directories inside SRC, DST, copy src in ramdisk/SRC, and convert it to ramdisk/DST and check the time.
[00:01:58 CEST] <BtbN> no need for that
[00:02:10 CEST] <BtbN> just use yuvtestsrc2 and output to /dev/null
[00:02:14 CEST] <BtbN> if you want to benchmark purely the encoder
[00:02:22 CEST] <dorvan> BtbN: it's not a need, it's a test to bypass hd I/O
[00:02:52 CEST] <dorvan> if you want to benchmark only the encoder...
[00:03:11 CEST] <Peste_Bubonica> dorvan, ok, I will try that
[00:03:28 CEST] <dorvan> mine it's a test to check the really I/O performance of his system, making the work
[00:03:31 CEST] <Cracki> disk I/O will not be the bottleneck
[00:03:52 CEST] <Cracki> only uncompressed video hits the limits of currently available mass storage I/O
[00:03:57 CEST] <BtbN> ffmpeg -f lavfi -i testsrc2 -c:v hevc_nvenc -pix_fmt yuv420p -f null -
[00:04:03 CEST] <Cracki> ^
[00:04:07 CEST] <dorvan> Cracki: you can't say, because you don't no how is using his system
[00:04:19 CEST] <Cracki> ¯\_(Ä)_/¯
[00:04:26 CEST] <BtbN> gives me ~2800fps on my 1050 here.
[00:04:39 CEST] <Peste_Bubonica> beast ram # du -hs /mnt/ram/input.mkv
[00:04:39 CEST] <Peste_Bubonica> 4.7G /mnt/ram/input.mkv
[00:04:54 CEST] <Cracki> what resolution is testsrc2? 720x5?? ?
[00:05:04 CEST] <BtbN> 320x240 by default
[00:05:08 CEST] <Cracki> ic
[00:05:17 CEST] <BtbN> using 1080p is probably a better test
[00:05:36 CEST] <dorvan> BtbN: I confirm
[00:05:38 CEST] <Cracki> linear scaling would give ~100 fps
[00:05:40 CEST] <Peste_Bubonica> 4600fps
[00:05:44 CEST] <Peste_Bubonica> BtbN, with your test
[00:05:55 CEST] <dorvan> Peste_Bubonica: great!
[00:06:11 CEST] <BtbN> 1920x1080 gives ~220 fps
[00:06:27 CEST] <BtbN> ffmpeg -f lavfi -i testsrc2=size=1920x1080 -c:v hevc_nvenc -pix_fmt yuv420p -f null -
[00:06:28 CEST] <Peste_Bubonica> GPU at 18%
[00:06:38 CEST] <dorvan> :-)
[00:06:46 CEST] <BtbN> you have to look at the video engine load. It's seperate from GPU usage
[00:06:58 CEST] <Peste_Bubonica> ~390fps
[00:06:59 CEST] <BtbN> Not sure if nvidia-smi even shows it.
[00:07:01 CEST] <dorvan> try to change the format
[00:07:11 CEST] <Peste_Bubonica> at 1920x1080
[00:07:18 CEST] <dorvan> and repeat BtbN's test
[00:07:31 CEST] <Peste_Bubonica> now it goes to 400fps and become stable
[00:07:41 CEST] <dorvan> good...
[00:08:01 CEST] <Peste_Bubonica> i can't find it on nvidia-smi
[00:08:20 CEST] <Peste_Bubonica> 57w of TDP, 22% GPU load, 53 celsius
[00:08:33 CEST] <BtbN> you might have to look in nvidia-settings. Not sure if you can even read it on linux
[00:08:40 CEST] <BtbN> GPUz on Windows shows it
[00:09:18 CEST] <Peste_Bubonica> I have an 4k file here, 6.8GB h264
[00:09:19 CEST] <dorvan> BtbN: show only partial data
[00:09:44 CEST] <Peste_Bubonica> this file don't plays well on my TV, I think that I will try to reencode it, to see if it works better
[00:10:02 CEST] <Peste_Bubonica> many h265 files works well on this TV, but this h264 don't
[00:10:07 CEST] <Peste_Bubonica> and it plays nice on my PC
[00:10:24 CEST] <BtbN> hardware players are picky. And usually quite broken
[00:10:31 CEST] <dorvan> Peste_Bubonica: check the encoder speed, but it's like a dragster test in the desert... you have to check the max perf of your system can do "really" in the city :-)
[00:11:44 CEST] <dorvan> this include all the system bus transfers and bottlenecks, ramdisk can help you to remove all removable
[00:11:49 CEST] <Peste_Bubonica> sorry by the noob question, but what is the difference for 10bit and 8bit?
[00:12:08 CEST] <Peste_Bubonica> -pix_fmt yuv420p10
[00:12:22 CEST] <dorvan> BtbN: does not answer 2bits :-)
[00:12:28 CEST] <c_14> Peste_Bubonica: 2 bits
[00:12:39 CEST] <dorvan> c_14: ahahaha
[00:12:44 CEST] <Peste_Bubonica> LOL
[00:12:48 CEST] <c_14> Peste_Bubonica: more bits per pixel
[00:13:06 CEST] <Sgeo__> Does YouTube use ffmpeg or other code to convert incoming videos?
[00:13:31 CEST] <dorvan> Cracki: are you there?
[00:13:56 CEST] <c_14> Peste_Bubonica: 8bit means each color channel has 255 values, 10bit has 1023 values per color channel
[00:14:18 CEST] <c_14> Eh, 256 and 1024 obviously
[00:14:25 CEST] <c_14> the range is 0-255 and 0-1023
[00:14:32 CEST] <JEEB> Sgeo__: they have a custom code base based on FFmpeg libraries
[00:14:33 CEST] <dorvan> c_14: this seems the 10bit it's more lossless then 8bit?
[00:14:39 CEST] <BtbN> Sgeo__, they are supposedly using some heavily modified, _ancient_ version of ffmpeg.
[00:15:00 CEST] <Sgeo__> Oh. So it's not likely to be good at converting videos that ffmpeg chokes on?
[00:15:29 CEST] <c_14> dorvan: depends on how many colors your input chip can detect, but it usually doesn't matter
[00:15:37 CEST] <c_14> It just helps with quantization loss and compression
[00:16:04 CEST] <dorvan> c_14: the first clear and self closing answer of the day: thanks :-)
[00:26:52 CEST] <dorvan> ffserver it's alive in the ffmpeg development?
[00:27:01 CEST] <BtbN> no
[00:27:05 CEST] <BtbN> it's dragged along
[00:27:08 CEST] <BtbN> don't use it
[00:28:03 CEST] <dorvan> BtbN: thanks, I haven't used it.
[00:28:19 CEST] <BtbN> nginx-rtmp is a commonly used alternative
[00:28:39 CEST] <dorvan> I see....
[00:29:34 CEST] <dorvan> but I'm unsure to have another server behind the streamer...
[00:30:29 CEST] <dorvan> same problem: realtime,live streaming.... with nginx-rtmp i can have an api as single source...
[00:31:03 CEST] <dorvan> fragments seems are not a solution...
[00:31:30 CEST] <dorvan> mjpeg can be, I searching for right params...
[00:32:38 CEST] <BtbN> If you want to stream to a browser, there really is no solution for low latency
[00:32:50 CEST] <BtbN> use two second segments HLS/DASH, that's the best you'll get
[00:32:55 CEST] <dorvan> exactly....
[00:34:55 CEST] <dorvan> BtbN: i've already used... i can't make it works correctly, after some time video stop, or show same segments in a loop...
[00:35:23 CEST] <Cracki> I haven't looked into it yet... are ffmpeg libs sufficient to write a program that generates RTP packets?
[00:36:05 CEST] <Peste_Bubonica> dorvan, 70fps in a h264 to h265 yuv420p
[00:36:08 CEST] <Cracki> (so, I'm interested in a custom RTP/RTSP/RTCP server/source)
[00:36:08 CEST] <Peste_Bubonica> 4k
[00:36:35 CEST] <dorvan> Peste_Bubonica: seems good...
[00:36:57 CEST] <dorvan> Peste_Bubonica: calc Mb/s : FPs
[00:37:25 CEST] <dorvan> Cracki: welcome to my problem :-)
[00:37:36 CEST] <Cracki> actually no
[00:37:50 CEST] <dorvan> Cracki: https://trac.ffmpeg.org/wiki/StreamingGuide#Latency but same start point :-)
[00:38:14 CEST] <dorvan> Cracki: https://trac.ffmpeg.org/wiki/StreamingGuide#StreamingasimpleRTPaudiostreamf…
[00:38:19 CEST] <Cracki> I'm actually interested in sticking to standards and I can control both endpoints, I don't have to mess with what browsers can do or not do
[00:38:38 CEST] <dorvan> Cracki: "FFmpeg can stream a single stream using the RTP protocol. In order to avoid buffering problems ...."
[00:38:40 CEST] <Cracki> but thanks for the links, that tells me ffmpeg is enough
[00:39:22 CEST] <Cracki> "single stream" is bad, I'd want 1+ video and 1+ audio
[00:39:35 CEST] <dorvan> exactly :-) right question, right answer..... (in that wiki there is the options to stream an mp4 :-) )
[00:43:13 CEST] <Fenrirthviti> WriteN, RTMP send error 10054 <-- anyone have a resource handy for those error codes perchance?
[00:43:22 CEST] <Fenrirthviti> I used to have one, but can't for the life of me find it again
[00:45:18 CEST] <Cracki> 10054 is reset by peer, iirc
[00:45:22 CEST] <Cracki> windows error codes
[00:45:47 CEST] <Fenrirthviti> ah, hmm.
[00:52:33 CEST] <dorvan> BtbN: so how to force the refresh of segments sequence?
[01:39:48 CEST] <dorvan> What about on splitting and concatenating the ffmpeg input streams to provide filter elaboration? any tips & tricks?
[01:40:03 CEST] <dorvan> always for realtime/live elaboration
[01:40:29 CEST] <dorvan> always for realtime/live processing*
[02:38:02 CEST] <ZeroWalker> well now i can build ffmpeg with libx264, but not using msvc for some reason, it never detects libx264
[04:43:22 CEST] <Cracki> looking for hardware H.264 _decode_ performance comparisons for current amd and nvidia GPUs. anyone got links? I'm still searching
[09:02:03 CEST] <m4t> hi, i'm using ffmpeg 3.3 to record an rtsp stream. it's pretty simple; -vcodec copy, and -acodec aac, since the rtsp stream is pcm_mulaw. i'm seeing occasionally the output .mp4 files will be sizeable (hundreds of MB), but fail to play (with mpv) with "[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found". i can reproduce the corrupted .mp4 by doing something like 'killall -9 ffmpeg' while it's
[09:02:06 CEST] <m4t> recording the rtsp stream.
[09:02:31 CEST] <m4t> i'm thinking it's because ffmpeg didn't write a valid header to the stream, which the mediainfo command seems to indicate as well.
[09:03:00 CEST] <m4t> is there a way to have ffmpeg periodically write a valid header mid-stream, so that if the stream suddenly dies, the video will still be mostly intact and playable?
[09:04:09 CEST] <furq> use a different muxer
[09:04:51 CEST] <furq> mpegts is specifically designed for this sort of thing
[09:04:54 CEST] <furq> mkv should work as well
[09:05:11 CEST] <m4t> furq: cool, seems simple enough
[09:05:28 CEST] <m4t> currently they're shown (per file) as "ISO Media, MP4 Base Media v1 [IS0 14496-12:2003]"
[09:10:04 CEST] <m4t> just changing the output from .mp4 to .m2ts seems to have done the trick. thanks furq.
[09:26:35 CEST] <Cracki> m4t, incomplete mp4, if the moov atom is missing, is hard/impossible to recover. for mp4, there's a segmented/fragmented muxing mode. that helps
[09:26:47 CEST] <Cracki> (if you must use mp4)
[09:27:12 CEST] <Cracki> I'd go with mpeg transport streams too
[09:43:21 CEST] <m4t> Cracki: thanks. i think i'm going to stick with either mkv or m2ts regardless. i noticed that i can actually get a smaller audio track by using flac instead of aac or raw pcm_mulaw.
[09:43:40 CEST] <m4t> m2ts seems to be OK with flac...not sure if that's proper though
[09:45:34 CEST] <m4t> actually nvm. it pretended to but mediainfo shows no audio track and mpv is silent :|
[09:45:37 CEST] <m4t> mkv it is :-)
[10:04:04 CEST] <Cracki> aac *can* be higher bitrate than flac, but then I'd say that was overkill
[10:13:13 CEST] <m4t> i was turning the 64kbit/s 8000hz mono pcm_mulaw to -acodec aac -b:a 32k. flac seems to be ~26kbit/s
[10:13:46 CEST] <m4t> ¯\_(Ä)_/¯
[10:20:01 CEST] <Cracki> omg that's very compressed
[10:20:23 CEST] <Cracki> I'm not aware of ever having handled pcm_mulaw
[10:24:08 CEST] <furq> it's usually used for speech
[10:24:08 CEST] <Cracki> oh if you're compressing speech, play with opus
[10:24:08 CEST] <furq> you could probably use 8kbps aac or something
[10:24:08 CEST] <furq> but at that bitrate you might as well just use flac
[10:24:14 CEST] <Cracki> aye
[10:24:30 CEST] <m4t> i might play with opus. i'd rather have it lossless tbh though.
[10:24:41 CEST] <m4t> it sounds crappy enough as it is :|
[10:24:42 CEST] <furq> yeah there's not much point going from 26kbps to 6kbps
[10:25:09 CEST] <furq> or however low opus will go for 8khz mono
[10:26:54 CEST] <Cracki> if the source is 8khz 8bit mulaw... ¯\_(Ä)_/¯
[10:26:54 CEST] <m4t> yep
[10:26:54 CEST] <Cracki> more bits for the video
[10:27:06 CEST] <furq> he's copying the video stream anyway
[10:27:44 CEST] <m4t> unrelated, is anyone familiar with a *cheap* way to do h.264 -> h.265 transcoding in real time? i spent many hours looking at the specs of all the raspberry pi like boards, and a bunch of barebones cameras etc. from aliexpress. couldn't come up with anything that seemed suitable.
[10:28:03 CEST] <Cracki> I have this image in my head of an elephant and a mouse being squeezed in a box and they together take the cube shape
[10:28:15 CEST] <furq> there's certainly nothing that'll do it well
[10:28:16 CEST] <Cracki> how cheap?
[10:28:16 CEST] <m4t> some of the chips *did* have h.265 hw encode, but the sdk is under nda and/or unusable
[10:28:31 CEST] <m4t> i dunno. like < $50
[10:28:32 CEST] <Cracki> repacking quantized coefficients maybe
[10:28:40 CEST] <furq> there's definitely nothing that will actually reduce the bitrate and keep the same quality
[10:28:46 CEST] <furq> unless your h264 encoder is really awful
[10:29:15 CEST] <Cracki> why even transcode to 265?
[10:29:23 CEST] <m4t> limited bandwidth
[10:29:30 CEST] <m4t> & disk space
[10:29:42 CEST] <Cracki> that's only gonna save you half the data rate, or give you better quality
[10:29:46 CEST] <furq> x264 will outperform all of the consumer hevc hardware encoders
[10:29:50 CEST] <Cracki> ^
[10:29:58 CEST] <furq> it's much better than nvenc hevc, which is one of the better ones
[10:30:18 CEST] <m4t> x265 you mean?
[10:30:21 CEST] <furq> no i mean x264
[10:30:25 CEST] <m4t> oh
[10:30:47 CEST] <m4t> when you say outperform, you mean quality per bitrate? really?
[10:30:50 CEST] <furq> yeah
[10:30:52 CEST] <m4t> hah
[10:30:53 CEST] <Cracki> recent graphics cards have hevc encode in hw that's supposed to be realtime for 2-4k res
[10:31:05 CEST] <furq> bear in mind this is x264, not any other h264 encoder
[10:31:35 CEST] <furq> but if you're thinking about credit card sized boards, the hw encoding on those is generally awful
[10:31:38 CEST] <m4t> i don't really know enough about the subject, just the marketing of h.265 being same quality in half the bitrate
[10:31:45 CEST] <m4t> which apparently is more hype than truth
[10:31:50 CEST] <m4t> yeah...
[10:31:54 CEST] <furq> well it's somewhat true if you compare the reference encoders
[10:31:56 CEST] <Cracki> it's *possible* with hevc
[10:32:07 CEST] <Cracki> but it requires lots of crunch during encode
[10:32:08 CEST] <m4t> and, there is likely no out of the box transcoding utility that can handle an rtsp stream, like i need to
[10:32:09 CEST] <furq> but the reference encoders are a very long way from the state of the art
[10:32:30 CEST] <furq> and also the gap is necessarily less if you have realtime constraints
[10:33:05 CEST] <Cracki> afaik the raspi has h.264 hw encode, but I'm not aware of 265 ip being in there
[10:33:12 CEST] <furq> at the same encoding speed, x264 is roughly as good as x265
[10:33:28 CEST] <furq> x265 only pulls out in front when it's running slower than x264 -preset veryslow
[10:33:29 CEST] <Cracki> :P 265 is a kind of superset of 264
[10:33:55 CEST] <Cracki> larger allowed blocks and such
[10:34:36 CEST] <Cracki> I wonder when they'll just encode optical flow pyramids rather than blocks of a limited size...
[10:35:29 CEST] <furq> also yeah the pi doesn't do hevc encode
[10:35:38 CEST] <furq> but if it did it would probably be terrible
[10:35:45 CEST] <furq> the avc encoder is barely better than a joke
[10:35:53 CEST] <bencoh> it's better off without it yeah
[10:36:07 CEST] <m4t> a lot of the newer android set top boxes coming out of china have soc's with hevc encode
[10:36:15 CEST] <bencoh> people would start using otherwise :p
[10:36:16 CEST] <m4t> but without an sdk or utility it's worthless to me
[10:36:26 CEST] <Cracki> a bunch of single board computers also gained hevc encode...
[10:36:42 CEST] <Cracki> it's added to a lot of arm cortex A processors
[10:36:44 CEST] <furq> i wouldn't worry too much about it
[10:36:47 CEST] <m4t> hmm do you know of any off the top of your head? it was several months ago when i looked into this
[10:36:56 CEST] <Cracki> all the mobile phone stuff wants it
[10:36:59 CEST] <furq> that kind of thing generally just does the bare minimum to create some kind of hevc compliant bitstream
[10:37:06 CEST] <m4t> yea
[10:37:10 CEST] <Cracki> I was searching the net just now
[10:37:12 CEST] <Cracki> nothing conclusive
[10:37:20 CEST] <furq> it won't come close to what a well-optimised encoder can do
[10:37:41 CEST] <Cracki> decoders are trivial. encoders... silicon is hard.
[10:37:43 CEST] <m4t> i bet the ambarella chips are decent. https://www.ambarella.com/news/105/122/Ambarella-Introduces-H22-a-4K-Ultra-…
[10:37:45 CEST] <bencoh> just like h264 back 5~7 years ago
[10:37:48 CEST] <BtbN> nvenc is probably near the top-end of hardware encoders
[10:37:51 CEST] <BtbN> and it's still bad
[10:37:58 CEST] <m4t> those are what's in the gopro iirc
[10:38:04 CEST] <furq> yeah and nvenc hevc is barely better than nvenc h264
[10:38:09 CEST] <Cracki> hw-accelerated compression is an option
[10:38:14 CEST] <m4t> (well, same brand)
[10:38:19 CEST] <Cracki> hw does the motion estimation, sw uses that
[10:38:36 CEST] <Cracki> a large part of the cpu time is spent on ME
[10:39:31 CEST] <Cracki> companies like mainconcept make codecs for video production and those are gpu (opencl?) accelerated
[10:40:07 CEST] <BtbN> GPUs are generally pretty useless for video encoding
[10:40:52 CEST] <Cracki> well they're massively parallel and can do the ME part
[10:41:14 CEST] <Cracki> not saying to use the fixed function encoders
[10:41:56 CEST] <m4t> what does ME stand for?
[10:42:05 CEST] <furq> motion estimation
[10:42:15 CEST] <BtbN> Isn't that what x264 uses opencl for? It's useless there as well, and sometimes even slower/worse quality.
[10:42:19 CEST] <m4t> oh ok, thx
[10:43:17 CEST] <Cracki> x264 doesn't use opencl at all
[10:43:18 CEST] <Cracki> afaik
[10:43:25 CEST] <bencoh> there was a project
[10:43:32 CEST] <furq> it can use it for lookahead
[10:43:36 CEST] <Cracki> dealing with gpus means dealing with latency during the transfer.
[10:43:41 CEST] <Cracki> gpu programming is no magic bullet.
[10:43:44 CEST] <bencoh> I'm not sure it has been merged (?)
[10:43:50 CEST] <Cracki> it has to be worth it to move data off-ram
[10:43:56 CEST] <furq> opencl lookahead has been upstream for ages
[10:44:00 CEST] <bencoh> ah
[10:44:13 CEST] <furq> there was a gsoc project ages ago for opencl ME
[10:44:20 CEST] <furq> i don't think that ever made it though
[10:44:33 CEST] <Cracki> if you have an integrated GPU, one that shares main memory, it can be lots faster for small operations
[10:44:44 CEST] <Cracki> ME isn't trivial
[10:45:12 CEST] <furq> i'm happy enough just using my gpu for denoising
[10:45:21 CEST] <Cracki> and imho way out of most gsoc's applicants' competence
[10:45:34 CEST] <Cracki> basically optical flow.
[10:45:48 CEST] <Cracki> typical encoders seem to be doing block matching.
[10:46:02 CEST] <Cracki> on a single scale.
[10:47:03 CEST] <Cracki> if you throw state of the art optical flow estimation algorithms at it, you get quite good results and you can use those trivially for video compression
[10:47:19 CEST] <Cracki> even shit algos are good enough for video compression
[10:50:55 CEST] <Cracki> ah so lookahead is supposed to compute a downscaled version of input frames?
[10:53:10 CEST] <m4t> Cracki: btw out of curiousity i just looked into -help muxer=mp4 and tried the original .mp4 but with '-movflags frag_keyframe'. seems to immediately write a header and kill -9'ing it results in a watchable video. but i like mkv+flac better anyways...
[10:53:25 CEST] <Cracki> ^^
[10:53:31 CEST] <furq> afaik lookahead does a low-resolution encode and uses that to determine how many bframes to use
[10:53:39 CEST] <BtbN> fragmented mp4 doesn't have the most widespread support
[10:53:43 CEST] <Cracki> it's just something we use for screencaptures that get killed abruptly
[10:54:05 CEST] <furq> and yeah fmp4 is a hack to allow streaming mp4 to browsers
[10:54:31 CEST] <furq> because it was easier than getting browsers to add one of the many existing formats which does the same thing
[10:54:36 CEST] <furq> because browser vendors are subhuman scum
[10:54:39 CEST] <Cracki> we're stuffing qtrle+aac in a mov container...
[10:55:07 CEST] <Cracki> any better option for lossless rgb888 that compresses synthetic video quite well?
[10:55:16 CEST] <furq> ffv1?
[10:55:37 CEST] <Cracki> how stable and fast is it? qtrle is dumb as heck and thus quite fast
[10:55:49 CEST] <furq> it's very stable
[10:55:57 CEST] <furq> you'll have to find out how fast it is
[10:55:59 CEST] <Cracki> oh also it should be readable by adobe premiere :P
[10:56:02 CEST] <furq> oh
[10:56:07 CEST] <Cracki> *g* yeah
[10:56:13 CEST] <furq> yeah that was worth mentioning up front
[10:56:20 CEST] <furq> there's no dshow or quicktime components for ffv1 afaik
[10:56:26 CEST] <furq> the best thing that does have those is probably ut video
[10:56:41 CEST] <Cracki> it can read qtrle using quicktime codecs, it's supposed to read everything Windows knows in terms of installed codecs... but who knows
[10:57:08 CEST] <furq> "everything windows knows" is dshow
[10:57:23 CEST] <Cracki> i've used lagarith for a while but then I read someone claim the floating point math makes it not quite lossless or unpredictable
[10:57:35 CEST] <Cracki> yes vfw/dshow/media foundation
[10:57:42 CEST] <Cracki> depending on what api premiere knows :P
[10:57:54 CEST] <furq> utvideo should work anyway
[10:57:57 CEST] <furq> and utvideo is very fast
[10:58:05 CEST] <furq> but it's not as good as ffv1 in my experience
[10:58:07 CEST] <Cracki> hmhm gotta try that
[10:58:26 CEST] <Cracki> I'm really looking for lossless non-subsampled non-colorspace-converted if possible
[10:58:48 CEST] <Cracki> ut video, ah good
[10:58:54 CEST] <furq> utvideo and ffv1 both do rgb24
[10:58:54 CEST] <Cracki> says it does what I want
[10:59:03 CEST] <furq> x264 lossless will do it as well
[10:59:09 CEST] <furq> although the compression isn't amazing in rgb iirc
[10:59:28 CEST] <Cracki> h.264 in anything other than yuv420 will choke (older) premiere
[10:59:45 CEST] <Cracki> and my folks cba to pay for monthly/yearly subscriptions
[10:59:56 CEST] <furq> these are all general-purpose codecs, so qtrle might smash them all if you have a source that it does well on
[11:00:07 CEST] <Cracki> something about "owning" software that's obsolete a year after you bought it
[11:00:28 CEST] <Cracki> qtrle explodes if you give it "sensor data"
[11:00:32 CEST] <Cracki> it's just RLE after all
[11:00:50 CEST] <furq> yeah qtrle is generally either amazingly good or unusable
[11:00:51 CEST] <Cracki> so sometimes we knowingly use x264 444 lossless
[11:01:28 CEST] <furq> ffv1 is the best general-purpose lossless codec in my experience, but obviously the compatibility is an issue
[11:01:35 CEST] <furq> someone should really just make qt/dshow components for it
[11:01:36 CEST] <Cracki> is the qtrle codec in ffmpeg optimized much? I was thinking maybe it'd benefit from some love
[11:01:40 CEST] <furq> no idea
[11:01:44 CEST] <Cracki> hm ok
[11:01:56 CEST] <Cracki> maybe I should bother someone to wrap ffv1 into a dshow filter
[11:01:58 CEST] <furq> it doesn't seem like there's a huge amount there to optimise
[11:02:12 CEST] <Cracki> well, you can parallelize encoding of rows
[11:02:53 CEST] <Cracki> since it just does rle and compares to the previous frame, this could even be sent to opencl... but again, latency, likely not worth it
[11:03:15 CEST] <furq> i guess it would benefit from frame threading if it doesn't already have it
[11:03:19 CEST] <Cracki> loop autovectorization or a bunch of arcane intrinsics probably do better
[11:03:33 CEST] <Cracki> afaik it doesn't do frame threading.
[11:03:35 CEST] <furq> Threading capabilities: none
[11:03:36 CEST] <furq> fun
[11:03:39 CEST] <dorvan> hi all
[11:03:41 CEST] <furq> yeah i guess that's an easy win then
[11:03:51 CEST] <Cracki> heh ok maybe I should look into that then
[11:05:04 CEST] <Cracki> qtrle doesn't have a notion of keyframes, at least not a flag for it. a frame could update all pixels, or none, and you'll only know after at least superficially decoding the frame.
[11:05:12 CEST] <furq> i assume using shotcut or some other NLE that uses ffmpeg's codecs is out of the question
[11:05:20 CEST] <Cracki> mostly
[11:05:45 CEST] <Cracki> it's either premiere or hardcoding all we do in a custom program
[11:06:32 CEST] <Cracki> it's bad enough premiere up to recently had really bad color correction facilities.
[11:06:47 CEST] <Cracki> physically incorrect ones even.
[11:06:53 CEST] <furq> nice
[11:07:04 CEST] <Cracki> the lumetri stuff works correctly.
[11:07:28 CEST] <Cracki> what the old stuff did was work in yuv (ok so far) but added a fixed uv to everything, irrespective of y
[11:07:41 CEST] <Cracki> so black gets turned into *strongly hued* black
[11:08:24 CEST] <Cracki> so the way to avoid that was ignore the color correctors and tweak gains in a levels/curves filter
[11:08:42 CEST] <dorvan> Cracki: when you have time, i need to discuss something with you about concatenate many ffmpeg processes for filtering
[11:09:00 CEST] <Cracki> no, discuss that with the channel.
[11:09:07 CEST] <dorvan> Cracki: if you are available
[11:09:18 CEST] <dorvan> Cracki: thanks :-)
[11:09:19 CEST] <Cracki> I am unavailable.
[11:09:42 CEST] <Cracki> I'm deeply averse to being asked things personally that have nothing to do with me.
[11:09:48 CEST] <dorvan> Cracki: thanks :-)
[11:16:42 CEST] <dorvan> hi all, I need to concatenate many ffmpeg processes for filtering from a realtime/live source (rtmp) (level1), and then output stream to a web streamable format (level2). between level1 and level2 I need to use the stream with opencv or with a neural network software for object detection, face recognition. I'm evaluating the process structure to be more "realtime as possible"
[11:17:04 CEST] <dorvan> thanks for help.
[11:18:01 CEST] <Cracki> ah now I know why I discarded all those other lossless codecs... they have insane bitrates, or I don't know what to tweak...
[11:22:15 CEST] <Cracki> so utvideo (and huvyuv) don't suit me because they encode intra-only. my videos rarely change at all, they're screen caps of powerpoint karaoke. I need either null frames (absolutely no change) or p-frames. qtrle and lagarith can do that, if I tell them to.
[11:25:34 CEST] <furq> yeah ffv1 will do much better on that
[11:25:51 CEST] <furq> but if it's screen captures then qtrle will probably still beat it
[11:26:52 CEST] <Cracki> ugh... if someone's willing to pay me for work on qtrle, I'm game. otherwise I'll maybe get to it eventually maybe... maybe
[11:28:41 CEST] <Cracki> I think I'll have to kick my people to upgrade premiere. they need to using H.264 4:4;4
[11:37:18 CEST] <furq> apparently ffv1 will work in premiere on windows through lav filters
[11:37:41 CEST] <furq> and i found some quicktime component that does the same thing but it seems to be discontinued now
[11:37:48 CEST] <furq> http://perian.org/#download
[11:39:18 CEST] <Cracki> yay
[11:40:40 CEST] <Cracki> lots of what's in the trac wiki might have a better place in the actual docs
[11:40:47 CEST] <Cracki> such as https://trac.ffmpeg.org/wiki/Encode/FFV1
[11:42:11 CEST] <JEEB> furq: perian is discontinued and you should take a look at how the Ut Video guy makes components
[11:42:43 CEST] <JEEB> since he made components for all of the major multimedia frameworks
[11:43:50 CEST] <JEEB> if FFV1 had something similar I could be recommending it to the NLE people. unfortunately currently that's not the case :/
[11:44:06 CEST] <JEEB> also a lot of editors still seem to be utilizing VFW (or moved to MF) so I'm surprised LAV can be used in some cases
[11:45:25 CEST] <ritsuka> quicktime is discontinued too, and the replacement doesn't have a public api for video components yet. But I guess premiere on mac might still use the old quicktime framework
[11:45:46 CEST] <JEEB> yes, everything is atm using the QT stuff
[11:45:50 CEST] <JEEB> on MacOS
[11:46:05 CEST] <ritsuka> mm no, final cut x doesn't for example
[11:46:08 CEST] <bencoh> QT is discontinued? ohmy
[11:46:17 CEST] <JEEB> bencoh: like VFW is discontinued :D
[11:46:25 CEST] <JEEB> ritsuka: so it has completely its own stuff
[11:46:29 CEST] <JEEB> even for export?
[11:46:31 CEST] <bencoh> uhuh
[11:46:40 CEST] <ritsuka> it uses avfoundation/videotoolbox/coremedia and friends
[11:47:03 CEST] <ritsuka> but there isn't a public api for videotoolbox components
[11:50:34 CEST] <Cracki> btw, ffv1 doesn't seem to react to -g... bit rate stays the same with -g 0, 1 or 100, even for static video content...
[11:50:48 CEST] <Cracki> (about 15 Mbps for 1280x960 input)
[12:42:20 CEST] <ZeroWalker> what's zlib used for in ffmpeg?
[12:43:30 CEST] <JEEB> zlib is used for png encoding I think? among some other minor things
[12:43:56 CEST] <JEEB> z.lib (commonly known as zimg) is used for a scaling/colorspace conversion filter
[12:50:18 CEST] <ZeroWalker> wait so does zimg use zlib, why would that be needed for scaling/converting colorspaces?
[12:52:00 CEST] <furq> no
[12:52:04 CEST] <JEEB> the author of zimg is a known troll, the "official name" of the library is z-dot-lib
[12:52:07 CEST] <JEEB> because of course
[12:52:10 CEST] <furq> zimg is actually called "z.lib" because the guy who made it is some kind of ratfucker
[12:52:19 CEST] <furq> but nobody calls it that because of course they don't
[12:52:40 CEST] <furq> the actual zlib is used for png, yeah
[12:52:43 CEST] <JEEB> yup
[12:52:56 CEST] <JEEB> there might have been some other things it was used in, but png encoding is the one I noticed
[12:53:12 CEST] <furq> yeah i've seen a few people with builds that can't encode png because of no zlib
[12:54:35 CEST] <JEEB> well to be honest even the pkg-config file is "zimg" https://github.com/sekrit-twc/zimg/blob/master/zimg.pc.in
[12:54:53 CEST] <JEEB> so it's not that bad, he did understand that if he made his library called "z" it would be a bit too much of a troll :P
[12:54:56 CEST] <furq> yeah i think even he realised calling it z.lib outside of the github readme was a real shit idea
[13:16:34 CEST] <ZeroWalker> how can you link libopus statically
[13:16:51 CEST] <BtbN> build a static version of it and use it
[13:18:01 CEST] <ZeroWalker> i did --enable-static on libopus configure, guess that wasn't the command
[13:21:07 CEST] <BtbN> If the shared libs are still there, they will be prefered.
[13:21:31 CEST] <ZeroWalker> ah
[13:21:31 CEST] <BtbN> You might be able to do some magic with pkg-config, by forcing it to return the static version
[13:21:58 CEST] <ZeroWalker> well never got pkg-config to work so i use extra flags to specify the locations
[13:22:20 CEST] <BtbN> configure requires pkg-config for a lot of things.
[13:22:39 CEST] <ZeroWalker> but i will clear the libopus, that was probably the issue, think i had the same with libx264, it required the dll for some reason, but i think after clearing and remaking it it works
[13:22:54 CEST] <ZeroWalker> well i have it, but i mean, it doesn't auto detect libx264 etc
[13:37:00 CEST] <furq> ZeroWalker: --extra-ldflags="-static"
[13:37:07 CEST] <furq> will tell the linker to prefer static libs
[13:37:47 CEST] <furq> you'll probably need --pkg-config-flags="--static" as well
[13:54:54 CEST] <bencoh> err, -static isn't just a "preference" (?)
[14:44:30 CEST] <dystopia_> how come i loose the subtitles when catting vobs together with -copy ?
[14:44:45 CEST] <dystopia_> ffmpeg.exe -i "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB" -c copy movie.vob
[14:45:03 CEST] <dystopia_> each vob has subs before concat, output does not
[14:46:13 CEST] <JEEB> I think you're putting a bit too much expectations on the workings of the concat features that come before decoding
[14:46:21 CEST] <JEEB> but you can open a bug report on the trac if you want
[14:46:41 CEST] <dystopia_> nah it's not a big deal, i just thought maybe i did somthing wrong
[14:47:12 CEST] <furq> dystopia_: you probably want to use tccat for that
[14:47:43 CEST] <JEEB> I don't remember if MPEG-PS could be just concatenated like MPEG-TS
[14:48:00 CEST] <dystopia_> ok i will give tccat a go
[14:48:09 CEST] <JEEB> (VOBs are MPEG-PS)
[14:48:16 CEST] <dystopia_> hmm
[14:48:36 CEST] <furq> i'm pretty sure it'll work with ffmpeg if you bump analyzeduration/probesize
[14:48:44 CEST] <dystopia_> basically i want to encode the dvd to x264 with subs, maybe i don't need to cat, i can just encode the vobs, then merge them at the end
[14:48:50 CEST] <furq> subtitle streams often don't show up within the first 5MB
[14:48:59 CEST] <furq> but honestly, if you're working with dvds at all then you want to use tccat
[14:49:06 CEST] <furq> and/or tcdemux
[15:27:15 CEST] <nikon> Hello
[15:27:19 CEST] <nikon> anyone can help me?
[15:29:05 CEST] <nikon> i'm trying stream with http to rtmp and i get this error all time
[15:29:06 CEST] <nikon> av_interleaved_write_frame(): Broken pipeB time=00:00:25.44 bitrate=1192.6kbits/s [flv @ 0xc35680] Failed to update header with correct duration. [flv @ 0xc35680] Failed to update header with correct filesize.
[15:29:10 CEST] <nikon> anyone know why?
[15:30:42 CEST] <BtbN> you're writing it somewhere that's not seekable.
[15:31:00 CEST] <BtbN> and "with http to rtmp" makes no sense
[15:32:08 CEST] <nikon> how so?
[15:32:20 CEST] <nikon> i'm trying to restream from http to rtmp using this command
[15:32:46 CEST] <nikon> screen ffmpeg -i "http://serveronline.io:6969/live/user01/Y1pktR5KiP/7051.ts" -async 30 -c:v libx264 -preset veryfast -ab 64k -ar 11025 -ac 2 -c:a aac -strict experimental -s 640x360 -r 30 -vb 1200k -f flv "rtmp://up.widestream.io/wideorigin?token=kqznfic/lafbm6j"
[15:32:56 CEST] <nikon> and they work but after some seconds process close
[15:33:06 CEST] <nikon> and i see this error in ssh
[15:33:12 CEST] <nikon> av_interleaved_write_frame(): Broken pipeB time=00:00:25.44 bitrate=1192.6kbits/s [flv @ 0xc35680] Failed to update header with correct duration. [flv @ 0xc35680] Failed to update header with correct filesize.
[15:33:37 CEST] <furq> you probably want to change your rtmp token
[15:34:40 CEST] <nikon> furq why?
[15:34:52 CEST] <BtbN> Because you just pasted it here.
[15:34:54 CEST] <furq> because you just pasted it in a public irc channel
[15:35:16 CEST] <furq> also if you still need -strict experimental then you're on an old ffmpeg
[15:35:31 CEST] <BtbN> "Broken Pipe" also indicates a network issue
[15:35:44 CEST] <nikon> what type of issue?
[15:35:54 CEST] <nikon> no upstream avaliable?
[15:35:59 CEST] <furq> it usually means the connection was closed
[15:36:20 CEST] <nikon> [14:35] <furq> also if you still need -strict experimental then you're on an old ffmpeg
[15:36:29 CEST] <nikon> yes i have oldest version of ffmpeg
[15:36:35 CEST] <nikon> i don't know how to update
[15:36:51 CEST] <furq> if your distro ffmpeg is old then https://www.johnvansickle.com/ffmpeg/
[15:37:19 CEST] <furq> it's worth upgrading anyway because the builtin aac encoder is massively improved in 3.x
[15:38:02 CEST] <nikon> i'm not a linux expert can you please help me update my ffmpeg?
[15:38:11 CEST] <nikon> [root@ns345064 ~]# ffmpeg ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
[15:38:13 CEST] <nikon> this is my version
[15:38:14 CEST] <furq> download that and put the binaries in /usr/local/bin
[15:38:25 CEST] <BtbN> Or just use it from whereever
[15:38:38 CEST] <furq> also stop running as root
[15:39:07 CEST] <nikon> download x86_64 build: ffmpeg-git-64bit-static.tar.xz - md5 ? for /usr/local/bin folder?
[15:39:42 CEST] <furq> ?
[15:40:23 CEST] <nikon> [14:38] <furq> download that and put the binaries in /usr/local/bin
[15:40:29 CEST] <nikon> i don't understand what i need to do
[15:40:42 CEST] <furq> tar xvf ffmpeg-git-64bit-static.tar.xz
[15:41:04 CEST] <nikon> ok, and now?
[15:41:04 CEST] <furq> will give you a directory with ffmpeg, ffprobe etc binaries
[15:41:21 CEST] <nikon> yes
[15:41:26 CEST] <furq> either call them directly or move them into /usr/local/bin and delete your distro's ffmpeg package
[15:41:27 CEST] <nikon> https://i.gyazo.com/8cac984de818d512f6ed6d4c5b47f968.png
[15:41:58 CEST] <nikon> "delete your distro's ffmpeg package"
[15:42:02 CEST] <nikon> how can i do this?
[15:42:38 CEST] <JEEB> just call your ffmpeg directly
[15:42:38 CEST] <nikon> yum remove ffmpeg ?
[15:42:49 CEST] <furq> probably
[15:42:51 CEST] <nikon> how? like ./ffmpeg ?
[15:42:54 CEST] <furq> i haven't used centos in 10+ years
[15:42:57 CEST] <JEEB> or full path
[15:43:04 CEST] <furq> and yeah you can just call it directly
[15:43:07 CEST] <JEEB> if you're in the same directory then ./ffmpeg will work
[15:43:10 CEST] <furq> or put it in ~/bin or something
[15:43:13 CEST] <nikon> ok
[15:43:16 CEST] <nikon> let me try
[15:43:17 CEST] <furq> idk if that's in the path on centos, especially not if you're logged in as root
[15:48:35 CEST] <nikon> I definitely do not understand any of this, I'm going to have to look for some expert, does anyone here give paid support about it?
[20:33:52 CEST] <cryptodechange> Been playing with the nlmeans feature to reduce grain, where it's reduced the grain and kept the quality, it has kind of made a heat distortion/mirage effect on backgrounds
[20:34:11 CEST] <cryptodechange> I suppose it's the frame shaking but is hidden by the grain itself
[20:48:11 CEST] <cryptodechange> https://imgur.com/a/jCamo
[00:00:00 CEST] --- Mon Aug 14 2017
1
0
[00:21:43 CEST] <ars> Hello guys. I have problem. error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory. Looks like it not linked statically. But i compile like: configure --enable-libmfx --enable-nonfree --enable-gpl --disable-shared --enable-static
[00:23:18 CEST] <nevcairiel> those options controls what kind of ffmpeg libraries you build, not how things are linked in
[00:24:45 CEST] <ars> nevcairiel, how can make static build ?
[00:25:09 CEST] <nevcairiel> static linking against libva is probably generally not possible
[00:25:39 CEST] <ars> :( ooo, thank you
[11:13:46 CEST] <ZeroWalker> trying to understand Bicubic, if i get things right, cubic means that it samples all the surrounding pixels of a a pixel, merge the values with that pixel, but there's a weight parameter that tells how much that center pixel should be prioritized
[11:17:26 CEST] <nevcairiel> simplified, cubic means it samples two data points in every direction, and bicubic means it does that in 2 dimensions (for 16 data points in total)
[11:18:36 CEST] <ZeroWalker> so it's a "cross" + , not every surrounding pixel "square"?
[11:19:20 CEST] <ZeroWalker> at least if i get every direction correctly. (x and y)
[11:19:46 CEST] <nevcairiel> for bicubic you take the 4x4 pixel grid around your desired point
[11:20:23 CEST] <ZeroWalker> hmm
[11:21:25 CEST] <ZeroWalker> feels a bit weird, so, if you don't have 4x4 pixels (near the edge), does it just make do with that it has?
[11:22:47 CEST] <nevcairiel> typical approach is just to just extend the edge (or clamp the index, but thats the same result different implementation), so you just pretend that the last pixel row/col extends like that outwards
[11:23:23 CEST] <ZeroWalker> ah
[11:24:47 CEST] <ZeroWalker> hmm, but confused that it's 4x4, does it affect 4 pixels accordingly to the surrounding ones, or is it 1 pixels that's affected by all of those:s
[11:25:52 CEST] <nevcairiel> one pixel is created based on those 16 pixel
[11:26:04 CEST] <nevcairiel> with proper weighting based on its position, of course
[11:27:28 CEST] <ZeroWalker> okay then i get that part. hmm, didn't know the weightning was based on the position, thought it was constant, like "value the original pixel 75% and have 25% of the surrounding samples" or something
[11:32:54 CEST] <nevcairiel> what if you dont hit the position of an original pixel
[11:33:38 CEST] <nevcairiel> if you upscale by a variable factor, the grids wont match up
[11:34:01 CEST] <ZeroWalker> ah yeah was thinking about that
[11:34:57 CEST] <nevcairiel> if you do something simple like doubling the size, then stuff gets easier
[11:43:22 CEST] <ZeroWalker> yeah, hmm, where i am interested it's mostly varying
[12:53:06 CEST] <BtbN> I actually did a BIOS reset to default values. Still crashing. So it's not my RAM "OC" or anything I played around with too much
[12:53:14 CEST] <BtbN> now waiting for AMD to reply to me asking for a new CPU
[13:01:22 CEST] <wm4> just go and pick some intel GPU from a heap of discarded old computers /troll
[13:01:27 CEST] <wm4> *CPU
[13:04:49 CEST] <BtbN> Intel has nothing that remotely compares
[13:05:13 CEST] <BtbN> And Intel also had bad day-one batches of CPUs
[13:05:16 CEST] <BtbN> Broadwell was a disaster
[13:05:20 CEST] <wm4> I'm sure they do for $$$
[13:05:40 CEST] <BtbN> I won't pay 3x the money for a similar CPU from Intel, which then also uses twice as much power
[13:05:44 CEST] <wm4> but yeah Intel seems to be dropping the ball
[13:06:04 CEST] <BtbN> The i9 CPUs are a disaster
[13:06:11 CEST] <BtbN> if you want to actually use them, you are forced to delid them
[13:06:35 CEST] <BtbN> Threadripper is going to steamroll them in that segment
[13:07:03 CEST] <nevcairiel> thats not really a big problem if there is shops that sell them delidded with 2 year warranty =p
[13:07:10 CEST] <BtbN> for 1000$ you either get 10 overheating Intel cores, or 16 actually working Threadripper cores
[13:07:35 CEST] <BtbN> It just boggles my mind that intel cheaps out on soldering on the lid for a 1k$ CPU
[13:09:42 CEST] <wm4> CPUs have a lid?
[13:13:14 CEST] <J_Darnley> The metal heatspreader that is stuck over the bare silicon
[13:14:13 CEST] <J_Darnley> BtbN: Do you use unbuffered ECC ram with your Ryzen? (A question unrelated to the crashing issues)
[13:14:42 CEST] <BtbN> My mainboard does not support ECC anyway
[13:14:49 CEST] <BtbN> It's not a RAM issue
[13:15:15 CEST] <BtbN> I can run the Prime95 RAM-Test for a full day, and it's perfectly happy
[13:15:23 CEST] <J_Darnley> I know. It wasn't supposed to be related to the crashing issue
[13:15:36 CEST] <BtbN> but building gcc for a few minutes throws segfaults and invalid opcodes left and right
[13:15:39 CEST] <J_Darnley> I just wanted to know
[13:16:02 CEST] <BtbN> I heard reports of ECC actually working though
[13:16:10 CEST] <BtbN> but there is no fast ECC ram, and i don't overly care
[13:16:23 CEST] <BtbN> Ryzen really profits from running RAM at high clock rates
[13:16:31 CEST] <J_Darnley> Yes, there are sporadic reports from users and some talk of support from AMD.
[13:16:41 CEST] <BtbN> Ryzen does support ECC
[13:16:46 CEST] <BtbN> it just comes down to the mainboard
[13:16:57 CEST] <BtbN> There are some that actually support it
[13:17:07 CEST] <J_Darnley> A few motherboards claim to support ECC orr atleast a couple of ECC ram products
[13:17:24 CEST] <BtbN> you always have ECC for the CPU caches though, which is super nice
[13:28:59 CEST] <durandal_1707> how do one frame accurate seek with lavf?
[13:30:47 CEST] <nevcairiel> you dont
[13:32:47 CEST] <durandal_1707> nevcairiel: thats not very helpful
[13:32:56 CEST] <nevcairiel> but the truth
[13:33:17 CEST] <nevcairiel> lavf is not setup for that
[13:33:28 CEST] <durandal_1707> but mpv can
[13:33:52 CEST] <ubitux> you set the seek time and upper boundary to the ts, the lower to 0 (or intmin?)
[13:33:57 CEST] <ubitux> then you decode til your reach the ts
[13:34:35 CEST] <ubitux> (and then someone will tell you it won't work in case X, Y and Z at least)
[13:35:26 CEST] <ubitux> avformat_seek_file(ctx->fmt_ctx, -1, INT64_MIN, seek_to, seek_to, 0);
[13:35:29 CEST] <ubitux> i'm using this
[13:35:44 CEST] <ubitux> and decode til expected
[13:37:51 CEST] <wm4> accurate seek obviously requires you to skip decoded frames too until the target timestamp
[13:37:57 CEST] <wm4> also that seek API sucks
[14:21:25 CEST] <durandal_1707> how one can convert from pts to frame number?
[14:57:52 CEST] <BtbN> There's no direct conversion
[14:57:58 CEST] <BtbN> only way to get frame number is to actually count
[15:07:40 CEST] <djgl> Hi, I noticed that the libswscale yuv2rgb routines on x86 need stride/8 >= (width+7)/8. Otherwise they will drop pixels on the right. What is a safe stride value across all architectures?
[15:11:10 CEST] <jkqxz> The av_malloc alignment will always be sufficient.
[15:11:35 CEST] <atomnuker> BtbN: didn't you already order a new CPU?
[15:12:21 CEST] <djgl> jkqxz, it's not about the alignment of the buffer. It's about having more space than needed for the pixels in a line.
[15:13:03 CEST] <wm4> libav has a function to get the required alignment
[15:13:09 CEST] <wm4> not sure if it got ported to ffmpeg
[15:13:25 CEST] <jkqxz> For this purpose they are the same thing.
[15:14:14 CEST] <BtbN> atomnuker, a cheap intermediate-one
[15:14:21 CEST] <wm4> yeah, basically every first pixel of a line has to have the minimum alignment
[15:14:35 CEST] <wm4> which is normally achieved by aligning the start pointer and the line size
[15:14:47 CEST] <BtbN> I need a working PC. Not going to send them my CPU and then just not have a working PC for a month or however long they take
[15:15:04 CEST] <wm4> hardware problems suck
[15:15:08 CEST] <iive> BtbN: have you talked to the shop?
[15:16:19 CEST] <djgl> But it's not documented which alignment to use. The doc/examples/scaling_video.c example does it wrong and uses av_image_alloc(..., 1) for the output frame.
[15:16:56 CEST] <BtbN> iive, yes, but they have no idea about the issue at hand, and would probably just grab another random CPU off the shelf.
[15:17:05 CEST] <BtbN> And it would take way longer with them
[15:17:18 CEST] <BtbN> So going directly via AMD seems the better option
[15:17:31 CEST] <wm4> djgl: our examples are often buggy and bad
[15:17:49 CEST] <wm4> generally, all API functions expect aligned data, except if documented otherwise
[15:17:56 CEST] <BtbN> And the shop would most likely just forward the CPU to AMD first, and not give me anything until they confirm the issue
[15:18:28 CEST] <wm4> libswscale can revert to unoptimized code if alingment is not satisfied - not sure if this is documented - it probably should, because other APIs can just crash on unaligned data
[15:20:47 CEST] <djgl> As I said, on x86 it instead drops pixels.
[15:54:24 CEST] <beauty> If I know nginx server's bandwidth and every channel video's bitrate, could I get the maxnum supported video stream?
[17:30:41 CEST] <ZeroWalker> when you make or make install with mingw32, can you select a destination folder instead of it compiling in the same folder as the source
[17:32:34 CEST] <JEEB> most things let you configure a prefix
[17:32:52 CEST] <thebombzen> including ffmpeg
[17:32:54 CEST] <JEEB> autoconf and a lot of shell-script based things have a --prefix parameter
[17:33:01 CEST] <JEEB> yes, naturally :P
[17:33:05 CEST] <thebombzen> lol
[17:33:19 CEST] <JEEB> also the weird part is that he's talking about "compilation"
[17:33:26 CEST] <JEEB> never tried out-of-tree compilation?
[17:33:42 CEST] <ZeroWalker> well, probably worded it wrong
[17:33:43 CEST] <JEEB> and you shouldn't be using the headers and libraries from the build tree anyways, make install to a prefix and then utilize them from there
[17:33:52 CEST] <ZeroWalker> just meant that the .exe files end up in another folder
[17:34:16 CEST] <JEEB> --prefix and then binaries will go under <prefix>/bin and libraries under <prefix>/lib etc
[17:35:00 CEST] <ZeroWalker> ah
[18:27:26 CEST] <ZeroWalker> do you have to do anything special to make libx264 appear in pkg-config when configuring/compiling it?
[18:29:04 CEST] <JEEB> if your prefix is custom you have to override PKG_CONFIG_PATH (appends to the search path) or PKG_CONFIG_LIBDIR (clears the search path)
[18:29:35 CEST] <JEEB> latter is useful if you're building on, say, system with 64bit libraries in the default path and you want to build 32bit
[18:31:53 CEST] <ZeroWalker> hmm, i do use the the latter, will do some testing
[18:32:55 CEST] <JEEB> remember that it should be set to <prefix>/lib/pkgconfig
[18:33:01 CEST] <JEEB> not just <prefix>/lib
[18:33:12 CEST] <JEEB> also do check that you actually enabled the libraries with x264 :P
[18:33:21 CEST] <JEEB> (it defaults to command line encoder only)
[18:46:29 CEST] <ZeroWalker> well firstly i guess it might be good to actually be able to compile the thing, noticed it failed and my stuff were from a very old compilation i did -_--
[18:47:26 CEST] <ZeroWalker> i just get complains that no working C compiler can be found. I can compile with CC=cl, but it fails on some stuff later
[18:47:52 CEST] <ZeroWalker> not sure why it can't find any working c compiler. gcc --version shows: gcc.exe (Rev2, Built by MSYS2 project) 7.1.0
[18:48:41 CEST] <RiCON> you sure you installed and are using mingw gcc and not msys gcc?
[18:49:41 CEST] <ZeroWalker> well i would hope so, isn't Msys the CLI for it
[18:49:59 CEST] <RiCON> not necessarily
[18:50:18 CEST] <ZeroWalker> i got folders for mingw32 and mingw64 which does seem to have the compilers etc
[18:50:34 CEST] <RiCON> `which gcc` should return /mingw64/bin/gcc, not /usr/bin/gcc
[18:50:40 CEST] <ZeroWalker> ah
[18:50:55 CEST] <ZeroWalker> /mingw32/bin/gcc
[18:51:23 CEST] <RiCON> check config.log then
[18:52:09 CEST] <RiCON> though this conversation is way offtopic, this is neither #ffmpeg nor #x264
[18:52:56 CEST] <ZeroWalker> oh, the plan is to just compile ffmpeg with it so thought it was ok, my bad
[18:56:22 CEST] <thebombzen> ZeroWalker: #ffmpeg-devel is for development of ffmpeg itself, not just compiling it or using it
[18:57:06 CEST] <ZeroWalker> does programming with the ffmpeg API count?
[18:57:38 CEST] <JEEB> no
[18:57:39 CEST] <thebombzen> "Questions about using FFmpeg or developing with libav* libs should be asked in #ffmpeg" - the title
[18:57:42 CEST] <JEEB> that's #ffmpeg
[18:58:26 CEST] <ZeroWalker> ah, well thing is everytime i have asked there, it's always about the CLI, so thought it wasn't for API at all
[19:17:28 CEST] <durandal_1707> https://transfer.sh/CUFkZ/ffedit.png
[19:53:51 CEST] <durandal_1707> perhaps i should use libmpv
[20:09:41 CEST] <wm4> durandal_1707: I could make lavfi filters runtime changeable lol
[20:10:28 CEST] <durandal_1707> how?
[20:11:04 CEST] <wm4> I mean you could set it as option/property while video is loadd
[20:11:07 CEST] <wm4> *loaded
[20:28:27 CEST] <ubitux> durandal_1707: feel free to use sxplayer :p
[20:28:41 CEST] <ubitux> it has exact seek support
[20:28:45 CEST] <ubitux> it's monostream though
[20:28:59 CEST] <ubitux> (so you pick only video typically)
[20:29:11 CEST] <durandal_1707> sxplayer?
[20:29:23 CEST] <ubitux> https://github.com/stupeflix/sxplayer
[20:30:36 CEST] <ubitux> not sure it fits your needs
[20:34:38 CEST] Action: wm4 sees messy VT code
[20:56:33 CEST] <ubitux> wm4: yeah...
[20:56:56 CEST] <ubitux> could get rid of it if ffmpeg did support async
[20:57:09 CEST] <ubitux> which is not possible due to hwaccel model
[20:57:14 CEST] <ubitux> same story over again
[21:00:26 CEST] <wm4> should bring this up again in libav-devel
[21:00:31 CEST] <wm4> how do you handle reordering btw.?
[21:10:52 CEST] <ubitux> i use packet pts
[21:15:20 CEST] <wm4> that's almost the only thing that stops us from having a vt full stream decoder
[00:00:00 CEST] --- Sun Aug 13 2017
1
0
[00:00:52 CEST] <c_14> where are you putting the option?
[00:02:08 CEST] <c_14> should go before -i apparently
[00:02:15 CEST] <c_14> changed from global options to demuxer-private options
[00:02:28 CEST] <alexpigment> oh really?
[00:02:32 CEST] <alexpigment> lemme try that
[00:02:45 CEST] <c_14> since 2011 apparently
[00:03:14 CEST] <alexpigment> same deal
[00:03:17 CEST] <alexpigment> unrecognized option
[00:05:09 CEST] <alexpigment> https://pastebin.com/B1NQPyCp
[00:09:41 CEST] <c_14> That doesn't look like DV1394
[00:09:44 CEST] <c_14> What are you trying to do?
[00:10:06 CEST] <alexpigment> ?
[00:10:13 CEST] <alexpigment> this is atsc
[00:10:20 CEST] <alexpigment> not dv
[00:10:54 CEST] <c_14> yeah, that option just doesn't do what you want it to do?
[00:10:59 CEST] <c_14> What's the problem you're trying to solve?
[00:11:21 CEST] <alexpigment> i'm trying to make sure this video is tagged to match exactly a specification
[00:11:33 CEST] <alexpigment> and the "standard" is being reported as Component by MediaInfo
[00:11:37 CEST] <alexpigment> I'd like it to say NTSC
[00:12:04 CEST] <alexpigment> sure, it's metadata, but there's an option for ffmpeg to set that, and that option is currently unrecognized
[00:12:22 CEST] <alexpigment> on top of that, there's a deprecated option (tvstd), which explicitly tells you to use that option instead
[00:12:52 CEST] <c_14> the only thing that comes close to that is -target, but I'm not sure you want that
[00:13:03 CEST] <alexpigment> yeah i think target is pretty limited
[00:13:17 CEST] <c_14> Everything other than that you'll have to do manually
[00:13:19 CEST] <JEEB> it can't be before -i because it's an option for mpegtsenc
[00:13:27 CEST] <JEEB> if you mean the standard thing
[00:13:44 CEST] <c_14> Is it?
[00:13:48 CEST] <JEEB> yes
[00:13:55 CEST] <JEEB> mpegts_flags system_b
[00:13:56 CEST] <c_14> I can only find -standard as an option for the dv thingy
[00:13:57 CEST] <JEEB> it seems
[00:14:07 CEST] <JEEB> https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/mpegtsenc.c#L1923
[00:14:24 CEST] <JEEB> no wait
[00:14:26 CEST] <JEEB> ATSC is default
[00:14:38 CEST] <JEEB> alexpigment: then you might want to check WTF mediainfo is reading from its source
[00:14:56 CEST] <JEEB> otherwise it's hard to know what the flying fuck you want to match
[00:15:39 CEST] <ars> hello guys
[00:16:00 CEST] <alexpigment> JEEB: so I guess I'm going to have to dig through the MediaInfo source code? I'm pretty green on any sort of programming
[00:16:04 CEST] <JEEB> yes
[00:16:12 CEST] <JEEB> that's the problem with mediainfo
[00:16:13 CEST] <JEEB> :P
[00:16:27 CEST] <alexpigment> for what it's worth, i'm able to set this option easily with x264
[00:16:37 CEST] <JEEB> so what exactly is it that you want
[00:16:42 CEST] <JEEB> I understood you wanted ATSC MPEG-TS?
[00:16:46 CEST] <alexpigment> yeah
[00:16:55 CEST] <JEEB> well that you're already getting so it's something else
[00:17:00 CEST] <JEEB> esp. if you're talking about x264
[00:17:06 CEST] <JEEB> which doesn't do MPEG-TS to begin with
[00:17:13 CEST] <alexpigment> but those are usually flagged with a tv standard which is the generic NTSC/PAL etc, even though those are technically innacurate
[00:17:32 CEST] <JEEB> the moment you said you could set it with x264 it is not MPEG-TS level
[00:17:47 CEST] <JEEB> please switch over and say what you actually want to set. "constant frame rate"?
[00:17:49 CEST] <JEEB> in libx264
[00:18:09 CEST] <alexpigment> I'm not understanding what you're saying
[00:18:20 CEST] <alexpigment> I'd like mediainfo to report my file as "NTSC" for the Standard
[00:18:22 CEST] <ars> I have problem. error while loading shared libraries: libva.so.1: cannot open shared object file: No such file or directory. Looks like it not linked statically. But i compile like: configure --enable-libmfx --enable-nonfree --enable-gpl --disable-shared --enable-static
[00:18:26 CEST] <alexpigment> there is a parameter to specify this in FFMPEG
[00:18:28 CEST] <alexpigment> it is called -standard
[00:18:34 CEST] <alexpigment> it is unrecognized
[00:18:38 CEST] <alexpigment> according to ffmpeg
[00:18:39 CEST] <JEEB> no, that is something else specific to a certain input module
[00:18:56 CEST] <JEEB> 1) you just said you could set whatever you want with x264 easily
[00:19:04 CEST] <alexpigment> yes
[00:19:10 CEST] <JEEB> 2) "if 1), then it is not MPEG-TS"
[00:19:16 CEST] <JEEB> because x264 doesn't do MPEG-TS
[00:19:22 CEST] <JEEB> thus, most likely waht you need is a libx264 parameter
[00:19:25 CEST] <alexpigment> i'm not using MPEG-2 in an MPEG-TS container. I'm unable to set the equivalent flag
[00:19:34 CEST] <alexpigment> *now using
[00:19:54 CEST] <JEEB> ok, unfortunately I don't know the flying fuck about the mpeg2 encoder
[00:20:05 CEST] <JEEB> nor do I know which flag mediainfo is looking for then
[00:20:09 CEST] <JEEB> since each video format is different
[00:20:21 CEST] <alexpigment> fair enough. happy friday JEEB :)
[00:20:31 CEST] <JEEB> in any case, look for parameters in the mpeg2 video encoder
[00:20:41 CEST] <JEEB> while looking at what the flying fuck mediainfo is looking for
[00:20:54 CEST] <JEEB> that way you can find out what you need and if the mpeg2 video encoder can write that
[00:21:10 CEST] <alexpigment> source code is all gibberish to me. i come in here because you guys are good at knowing what that gibberish usually means
[00:21:25 CEST] <alexpigment> JEEB: sounds good. thanks for your time
[00:21:31 CEST] <JEEB> we can't know what Random Application X wants exactly
[00:21:34 CEST] <alexpigment> go have a beer and forget this conversation happened
[00:33:39 CEST] <JEEB> ok, quickly scrolled through examples of strings "frame" and "time" in libavcodec/mpegvideo_enc.c
[00:33:46 CEST] <JEEB> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/mpegvideo_enc.c;h…
[00:34:13 CEST] <JEEB> and a few other usages of time base
[00:34:17 CEST] <JEEB> that's all one gets
[00:34:35 CEST] <JEEB> so I recommend looking up whatever the fuck mediainfo is reading :D
[00:35:38 CEST] <JEEB> if you can override the time base, I recommend trying that in case that helps for the video encoder (in the weird case where it will utilize the time base for some header field in another mpegvideo related file)
[00:36:03 CEST] <JEEB> alexpigment: also do you even know if you can get this field shown with MPEG-2 Video?
[00:36:14 CEST] <JEEB> or are you basing on the fact that it is showing it with AVC
[00:36:24 CEST] <JEEB> and don't even knwo if it will show up with MEPG-2 Video at all
[00:36:56 CEST] <thousand> Hi folks, Sorry for jumping to question. I'm seeking a one liner command for quickly adding some start and end music to my video podcast. I have music.mp3 and video.mp4. How can I do this? Thanks in advance.
[00:38:35 CEST] <JEEB> well it may be fucked with a rusty spork http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/mpeg12enc.c;h=f45…
[00:40:41 CEST] <JEEB> alexpigment: so if you were setting --fps XX with x264, the closest is to make sure the video encoder's time base is correct. that should write the frame rate value as per that file I linked
[00:41:58 CEST] <JEEB> but yea, check mediainfo source code to make sure what you're hunting
[00:42:38 CEST] <JEEB> and now, I've wasted enough time and effort into this bullshit of "I want to see this thing exactly this way in mediainfo" without having the slightest idea of what the fuck mediainfo is showing
[00:59:32 CEST] <jkqxz> alexpigment: Sounds like you want to set video_format in the sequence display extension. Edit <http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/mpeg12enc.c;h=f45…> to write 2 rather than 0.
[00:59:55 CEST] <alexpigment> sorry, was away for a few minutes
[01:00:01 CEST] <jkqxz> (<https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-H.262-200002-S!!PDF…> table 6-6 for possible values.)
[01:00:44 CEST] <alexpigment> JEEB: I appreciate your efforts, but seriously, there's no need to get angry about it. I know it's a field that other MPEG-2 videos have and show in MediaInfo
[01:01:33 CEST] <alexpigment> jkqxz: OK, is there a way to specify that in the command line parameters for FFMPEG while encoding with mpeg2video?
[01:02:54 CEST] <JEEB> jkqxz: so that's different from the frame rate header the encoder is already writing?
[01:03:17 CEST] <alexpigment> it's definitely decoupled from the frame rate
[01:03:19 CEST] <jkqxz> Yes, it's unrelated to the framerate.
[01:03:22 CEST] <JEEB> ok
[01:03:23 CEST] <alexpigment> because i have the correct rate
[01:03:45 CEST] <alexpigment> it's just showing "Component" in mediainfo because it's not being explicitly specified as NTSC
[01:03:48 CEST] <jkqxz> It's a single field which ffmpeg hardcodes, which you can edit the line I linked above to change.
[01:04:11 CEST] <JEEB> if it has various parameters I think if someone cares enough it should be an AVOption or something like that
[01:04:15 CEST] <alexpigment> ok, so it has to be done in the source code as a global change?
[01:04:19 CEST] <jkqxz> No, it's showing component because it's hardcoded to that. No idea who thought that was a good idea (maybe because it's zero) - five is "unspecified", which it should be.
[01:04:31 CEST] <JEEB> alexpigment: anyways I just fucking hate mediainfo because it ends up with people like you coming up and having no idea of what they actually want
[01:04:44 CEST] <JEEB> other than "it shows up like that in mediainfo"
[01:04:55 CEST] <alexpigment> JEEB: apologies. I tried to be clear in stating that I want it to say NTSC instead of Component
[01:05:15 CEST] <alexpigment> so that it matches the *other MPEG-2 videos I'm using as references*
[01:05:17 CEST] <JEEB> yes, but that doesn't tell anyone on which level that field is
[01:05:22 CEST] <JEEB> or where it is
[01:05:37 CEST] <JEEB> jkqxz just happened to know MPEG-2 Video headers I guess
[01:05:46 CEST] <JEEB> and that the field was there
[01:05:53 CEST] <JEEB> which mediainfo might be parsing for that
[01:06:16 CEST] <JEEB> anyways if the default is a weird value please raise a bug on trac
[01:06:20 CEST] <alexpigment> I would hope they're parsing something :) there's nothing "component" about my command line
[01:06:45 CEST] <alexpigment> JEEB: defaulting to anything else is not ideal either
[01:06:46 CEST] <jkqxz> I only know it off-hand because it was an obvious thing to make settable with the mpeg2_metadata bsf, but that isn't merged anywhere yet.
[01:07:04 CEST] <alexpigment> it needs to be a feature request, I believe
[01:07:05 CEST] <JEEB> oh right, you did that one :P
[01:07:22 CEST] <JEEB> that makes sense then for you to know the fields in memory
[01:07:45 CEST] <JEEB> now the real question is whether that field actually does anything in actual use
[01:07:50 CEST] <JEEB> most likely: not
[01:07:53 CEST] <alexpigment> JEEB: i agree
[01:07:59 CEST] <alexpigment> most likely not
[01:08:32 CEST] <alexpigment> but when you're putting a file out there with an unknowable amount of destinations and combinations of hardware and software, it's a good idea to have your bases covered in case something *does* care
[01:08:54 CEST] <alexpigment> which is my general rule with encoding videos. be as explicit as possible just in case
[01:09:05 CEST] <JEEB> then fucking start learning those header values at some point
[01:09:19 CEST] <alexpigment> JEEB: your attitude is seriously caustic
[01:09:38 CEST] <alexpigment> i appreciate your efforts. please calm down about this
[01:09:40 CEST] <JEEB> maybe, I'm just tired of people like you coming with only "mediainfo shows me X"
[01:09:57 CEST] <JEEB> and that seriously burns me down and even knowing that I still go through code because I'm a fucking idiot
[01:10:05 CEST] <alexpigment> JEEB: then consider me "one of those people" and set your client to block my posts
[01:11:05 CEST] <JEEB> but seriously, if you are working with this shit you should have a basic understanding of this stuff better than me if you're working with MPEG-2 Video
[01:11:12 CEST] <JEEB> in broadcast
[01:11:31 CEST] <alexpigment> JEEB: i know video encoding. i know *nothing* about source code, programming, development, anything
[01:11:38 CEST] <alexpigment> consider the fact that my skillset doesn't align with yours
[01:11:51 CEST] <JEEB> where did I say coding
[01:11:52 CEST] <alexpigment> consider that i'm not being lazy, but that I'm ignorant
[01:11:53 CEST] <JEEB> I said goddamn fields
[01:12:01 CEST] <JEEB> in your goddamn video stream
[01:12:11 CEST] <alexpigment> please let me know how i can find such fields
[01:12:12 CEST] <JEEB> unless you were just uanble to tell me that it was a mpeg-2 video header called X
[01:12:19 CEST] <alexpigment> open my video up in a text editor?
[01:12:41 CEST] <alexpigment> again, consider my ignorance here. i don't know where to look to provide the information you're talking about
[01:12:42 CEST] <JEEB> if nothing else, hex editor. there are multiple stream parsers for video formats as well
[01:12:48 CEST] <alexpigment> like?
[01:12:58 CEST] <JEEB> elecard etc
[01:12:59 CEST] <alexpigment> i'm interested in learning
[01:13:13 CEST] <JEEB> also there's the patch set jkqxz is making that's on the libav-devel ml
[01:13:14 CEST] <alexpigment> ok, i'll look into that on monday
[01:13:17 CEST] <JEEB> which can print header values
[01:13:23 CEST] <jkqxz> The standard is by far the best reference for this sort of thing.
[01:13:27 CEST] <JEEB> yes
[01:13:33 CEST] <JEEB> having the spec on hand is the nr1 thing
[01:13:41 CEST] <JEEB> it even was linked by jkqxz
[01:14:16 CEST] <alexpigment> noted
[01:14:35 CEST] <alexpigment> anyway, i appreciate your help
[01:15:19 CEST] <alexpigment> JEEB: seriously, i don't want to make an enemy here. I don't know if I'm actually that annoying or if you're having a bad day. But if it helps ease things over, I'll gladly paypal you a beer (as 2017 as that sounds)
[01:16:45 CEST] <JEEB> unless I have a vivid memory of you each case of me herping a derp is separate. I just saw a person who didn't even look at encoder/muxer options and poked random parameters and couldn't specify what field he wanted to set where.
[01:17:48 CEST] <alexpigment> JEEB: you're right. i'm googling for answers when I can't find them in the encoder/muxer options. it's my fault for assuming that there are more parameters that what's there
[01:18:08 CEST] <JEEB> there was a help thing to list options for demuxers, muxers etc
[01:18:21 CEST] <JEEB> I don't remember it by heart so you'll have to find it out :P
[01:18:29 CEST] <alexpigment> yes, i'm familiar with it
[01:18:29 CEST] <JEEB> it listed all the module-specific AVOptions
[01:18:35 CEST] <alexpigment> -h encoder=mpeg2video
[01:18:52 CEST] <JEEB> in this case there was no such thing, and you will want to make a ticket to make that field so you long for to be an avoption
[01:19:00 CEST] <JEEB> and then you will have to hope that someone cares enough :)
[01:19:19 CEST] <alexpigment> right. i'm going to log a feature request
[01:19:20 CEST] <JEEB> (or you make an additional option yourself which shouldn't be too hard)
[01:19:42 CEST] <jkqxz> JEEB: <http://sprunge.us/fFgX>?
[01:19:44 CEST] <alexpigment> I just don't even know where to begin with that
[01:20:08 CEST] <JEEB> jkqxz: that comment is fucking weird. what does components even mean there
[01:20:19 CEST] <JEEB> maybe one would understand by reading the spec
[01:20:31 CEST] <JEEB> but yes, unless components means something funky that looks like a better default value
[01:20:32 CEST] <jkqxz> Yep, one does!
[01:20:57 CEST] <alexpigment> component i think means that it comes from component video. i don't know why that's useful though...
[01:21:11 CEST] <JEEB> well ye, but what's the meaning of that in the context of mpeg-2 video
[01:21:19 CEST] <JEEB> if there is such a special meaning
[01:21:24 CEST] <JEEB> if not, then "unknown" is better
[01:21:39 CEST] <alexpigment> yeah, although one better is just being able to specify NTSC or PAL
[01:21:49 CEST] <alexpigment> which are the only two meaningful options
[01:21:57 CEST] <alexpigment> (to me, anyway)
[01:22:11 CEST] <JEEB> alexpigment: I recommend looking into a patch that adds another AVOption into another module, which should be a small thing
[01:22:18 CEST] <JEEB> and then trying to mimic that :P
[01:22:56 CEST] <alexpigment> JEEB: that sits with my brain better. I guess I need to get an IDE though?
[01:23:01 CEST] <JEEB> nope
[01:23:03 CEST] <jkqxz> Only NTSC or PAL? You forgot SECAM!
[01:23:05 CEST] <JEEB> just a sane text editor is enough
[01:23:28 CEST] <alexpigment> jkqxz: yes, secam. good old secam. is that even a thing anymore??? :)
[01:23:37 CEST] <JEEB> in VHS at least
[01:23:46 CEST] <JEEB> and you still find TVs sold with SECAM support
[01:23:51 CEST] <alexpigment> yeah, i have an NTSC/PAL/SECAM VCR actually
[01:24:10 CEST] <alexpigment> i have a lot of VCRs, as weird as that sounds
[01:24:15 CEST] <voip_> Hi guys i have error: error while loading shared libraries: libva.so.1: cannot open shared object file. Can i copy libva.so.1 from PC where i compiled ffmpeg ?
[01:25:32 CEST] <jkqxz> voip_: Possibly, and it will likely need some of the other libva-foo libraries as well. But, libva is just a dynamic loading shim, so you won't be able to actually load any driver without more stuff as well.
[01:26:23 CEST] <voip_> jkqxz, thnk you. Because i dont want compile one more time and setup Intel DSk
[01:26:30 CEST] <voip_> sdk
[01:26:52 CEST] <alexpigment> JEEB: your suggestion about finding something similar and copying it is actually quite helpful. i know it probably seems dumb, but to a non-developer, the idea of submitting a patch seems like something that would take some training to do.
[01:26:56 CEST] <Sgeo> I have some Indeo3 videos whose dimensions are not divisible by 4. Why does ffmpeg have that restriction on Indeo3?
[01:27:16 CEST] <Sgeo> And are there any non-ffmpeg based viewers I can try?
[01:27:17 CEST] <alexpigment> Sgeo: that's pretty common for video encoders
[01:27:37 CEST] <alexpigment> or are you talking about decoding the video?
[01:27:42 CEST] <Sgeo> Decoding
[01:27:52 CEST] <JEEB> Sgeo: file a bug report on the trac and post a sample if only possible
[01:28:10 CEST] <JEEB> clearly someone had the idea that there was a limitation like that
[01:28:20 CEST] <JEEB> but if valid files exist that are like that then that's a bug
[01:28:25 CEST] <Sgeo> Um, my samples might be a copyright violation. I took them from a game.
[01:28:44 CEST] <JEEB> almost any sample is under some sort of copyright :P
[01:28:55 CEST] <JEEB> that's why people tend to try to cut them as much as possible
[01:29:11 CEST] <JEEB> as it is specifically for sample
[01:29:14 CEST] <JEEB> reasons
[01:30:55 CEST] <Sgeo> If I use video codec and audio codec copy on something ffmpeg considers invalid, will it still copy the video data?
[01:31:49 CEST] <Sgeo> If not, then I might not really have a valid sample unless I upload a 300MB file
[01:35:09 CEST] <JEEB> what container is it in?
[01:35:45 CEST] <Sgeo> .mov
[01:35:47 CEST] <JEEB> if it's AVI or something and it errors out on the first frame you might be able to use virtualdub to copy things over if ffmpeg doesn't support it (it should be able to with -c copy)
[01:35:56 CEST] <JEEB> ok, but it should still be able to :)
[01:36:10 CEST] <JEEB> (if it can write that format altogether)
[01:36:55 CEST] <Sgeo> So, the game stores its video data in one large .MOV file which apparently contains many movies. What I did was repeatedly write a skip atom at the beginning to make the .mov effectively one or another movie inside it, then use ffmpeg
[01:41:01 CEST] <mfg> Hi. Does anyone here know about HLS encryption? If I wanted to have a go at sample encryption is there anyone that can help get me started. I've done fixes to the http and hls demuxers before but I don't know anything about h264. I'm trying to asses if this is within my capabilities.
[01:51:34 CEST] <Sgeo> JEEB, thank you, created ticket
[01:55:45 CEST] <Sgeo> Aww, virtualdub doesn't speak .mov
[08:12:30 CEST] <froyo1> Is there a free online video encoding service that lets you input custom ffmpeg commands?
[08:14:54 CEST] <Cracki> froyo1, it's probably faster to encode your videos on your own computer
[08:15:40 CEST] <Cracki> cpu time is never free. you either pay for it with money or with other things.
[08:16:25 CEST] <froyo1> @Cracki Not when it's a netbook with an Intel Atom CPU...
[08:16:47 CEST] <froyo1> CloudConvert lets you do exactly this for free, except it's limited to 25 conversion mins
[08:16:59 CEST] <froyo1> So I was wondering if alternatives existed
[08:17:19 CEST] <froyo1> It's fine if it's paid too, if I can't find free ones
[08:18:09 CEST] <Cracki> any vserver or shell provider, if you can handle ffmpeg yourself
[08:19:02 CEST] <Cracki> in any case, I wouldn't know of a web service that takes custom parameters
[15:50:02 CEST] <beauty> hello
[15:52:24 CEST] <beauty> How get supported video stream of bitrate X in an Nginx server? Nginx server's network bandwidth is Y.
[15:52:36 CEST] <BtbN> what?
[15:53:45 CEST] <beauty> If I know nginx server's bandwidth and every channel video's bitrate, could I get the maxnum supported video stream?
[15:55:04 CEST] <BtbN> Not sure what you're asking. Just calculate how many parallel streams fit in its available bandwidth
[15:55:14 CEST] <beauty> yes
[15:55:56 CEST] <beauty> I want to calculate the maxmum parallel video stream in an nginx server
[15:56:10 CEST] <BtbN> so... divide the total bandwidth by the one of a single stream?
[15:56:34 CEST] <beauty> how to calculate????
[15:57:06 CEST] <BtbN> uhm. With any calculator of your choice, if it's that hard to not do it manually.
[15:58:01 CEST] <beauty> I can't understand you
[15:58:08 CEST] <beauty> could you make it clear
[15:58:47 CEST] <BtbN> It's just two numbers. Can't be that hard to do a division.
[15:59:37 CEST] <beauty> but practice, it's not bandwith/bitrate
[15:59:50 CEST] <BtbN> It is
[16:01:01 CEST] <beauty> the distance between bandwith/bitrate and practice value is large
[16:01:34 CEST] <BtbN> Make sure you use proper units
[16:03:02 CEST] <beauty> what's proper unit
[16:03:41 CEST] <BtbN> the same ones on both sides
[16:04:42 CEST] <beauty> ?????????
[16:05:02 CEST] <beauty> every ts is the same bitrate and size
[16:05:27 CEST] <BtbN> I'm not able to make any sense out of what you're saying. Good luck.
[16:07:24 CEST] <beauty> en
[19:36:22 CEST] <thebombzen> does libvpx-vp9 not thread?
[19:36:33 CEST] <thebombzen> Apparently using -threads:v 8 doesn't work
[19:39:23 CEST] <thebombzen> neither does -threads 8
[19:39:28 CEST] <JEEB> the encoder if new enough should have some threading
[19:39:36 CEST] <JEEB> decoder I have no idea
[19:40:01 CEST] <thebombzen> I built ffmpeg this morning, the encoder is from the Arch repos (1.6.1 I think)
[19:40:24 CEST] <thebombzen> now, the video is small spacially (400x300), so should that affect it?
[19:40:31 CEST] <thebombzen> because it should still have frame-based threading
[19:41:19 CEST] <JEEB> now that is something I don't know if libvpx has or enables by default
[19:41:24 CEST] <thebombzen> it looks like this should work: ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 0 -crf:v 31 -deadline best -c:a libopus -b:a 128k -threads 8 output.webm
[19:41:25 CEST] <JEEB> for some reason a lot of vendors hate frame threading
[19:41:52 CEST] <thebombzen> it's only 404x336 so if that's one slice, I can see it ignoring threading if it has no frame threading
[19:42:01 CEST] <thebombzen> and the grapevine tells me that libvpx's threading is terrible
[19:42:28 CEST] <thebombzen> but I feel it should still use more than one thread, especially if I turn the "extrEEEEEme" setting on (i.e. -deadline best)
[19:42:47 CEST] <thebombzen> this is a 40 second 404x336 video, that took several minutes to encode
[19:50:16 CEST] <Easyfab> and with -row-mt 1 did libvpx-vp9 have better threading ?
[19:55:30 CEST] <Easyfab> thebombzen, for me with -row-mt 1 -threads 8 threading is enabled
[19:56:23 CEST] <thebombzen> I get "unrecognized option -row-mt"
[19:57:06 CEST] <Easyfab> how old is your libvpx / ffmpeg version ?
[19:58:42 CEST] <thebombzen> libvpx is 1.6.1, ffmpeg was built this morning
[19:58:58 CEST] <thebombzen> row-mt is in the documentation, it just complains about it
[20:05:17 CEST] <thebombzen> Easyfab: so this is true if I test with git master, and also with 3.3.3
[20:05:23 CEST] <thebombzen> both using libvpx v1.6.1
[20:05:54 CEST] <thebombzen> in case you want a log, http://sprunge.us/KKcK
[20:06:34 CEST] <thebombzen> if you want a nightly build log, http://sprunge.us/QcPU
[20:11:56 CEST] <Easyfab> row-mt was added after 1.6.1 so you must build libvpx with recent source and not using the 1.6.1 default package.
[20:15:47 CEST] <JEEB> Easyfab: let me guess, that feature is in a version that they used for a recent chromium ;)
[20:16:00 CEST] <JEEB> so it is tagged as a version used in chromium but has no official release
[20:18:06 CEST] <Easyfab> v1.6.1 was tagged in january and row-mt was added in february -> https://github.com/webmproject/libvpx/commit/5881601488ef4278d7ca2b06e2ad4d…
[20:18:39 CEST] <Easyfab> no new stable version since january
[20:18:40 CEST] <JEEB> yea, I would just guess taht the code is already in production in chromium ;)
[20:18:51 CEST] <JEEB> since that's the classic way google operates
[20:19:06 CEST] <JEEB> it tags things for stability for chromium, but doesn't really care about "external" releases
[20:19:11 CEST] <JEEB> even though it might as well make one the other
[20:19:26 CEST] <JEEB> since if you're pushing libvpx to millions with chromium you might as well call it a release :D
[20:19:44 CEST] <JEEB> and then those who don't know about these tendencies in google end up using funky old versions :)
[20:33:19 CEST] <Easyfab> for me (i7-2600k) without row-mt speed=0.0437x and with row-mt speed=0.168x not quite the same speed :)
[21:07:46 CEST] <Ingvix> If I burn subtitles to hevc ffmpeg turns it to h264. How do I get it to keep it as hevc?
[21:09:03 CEST] <JEEB> the default it picks is some default set for the container format, you generally shouldn't be trusting that selection but rather specifying what you want
[21:09:21 CEST] <JEEB> as in, you should be picking one of the encoders that encodes HEVC, libx265 probably being the most popular
[21:09:45 CEST] <Ingvix> I see
[21:11:01 CEST] <Ingvix> so I add "-c:v libx265" to the command and that should do it?
[21:11:11 CEST] <JEEB> after the input, yes
[21:11:22 CEST] <JEEB> that will then use whatever are the default parameters for that encoders
[21:11:22 CEST] <Ingvix> yes, thanks
[21:11:24 CEST] <JEEB> *encoder
[21:15:13 CEST] <Cracki> don't rely on default parameters, they're supposed to suck
[21:15:24 CEST] <Cracki> at least bitrate is supposed to.
[21:15:40 CEST] <JEEB> at least x264 and x265 have their defaults IIRC what the libraries' defaults are
[21:16:12 CEST] <JEEB> for x264 while CRF 23 is a bit on the higher compression side, I've seen a lot of people be just happy with it (which is why it's the default in the library)
[21:16:43 CEST] <JEEB> oh, and you get people asking for "best settings" while there is no magical number that's "best"
[21:17:15 CEST] Action: JEEB just ends up recommending encoding ~2500 frames or so with different parameters and picking the highest CRF that still looks good
[21:17:53 CEST] <JEEB> but yes, going back to that comment, if it was any of the internal encoders - totally :D 200kbps default generally doesn't end up good. at least with video. that said, libx264 and libx265 wrappers should be OK in that sense
[21:19:32 CEST] <Cracki> i love 200 kbps
[21:19:41 CEST] <Cracki> it tells you when someone didn't pay attention
[21:20:02 CEST] <Cracki> 200k also applies to audio, didn't it... at least for one audio encoder, I once got 200k
[21:20:13 CEST] <JEEB> yes, it probably is just a global avcodec default
[21:20:16 CEST] <Cracki> <3
[21:24:46 CEST] <Ingvix> um, is 200kbps high or low in this case? It wasn't until recently that I got together with ffmpeg and video converting
[21:25:36 CEST] <JEEB> depends on various things but don't worry - libx264 and libx265 override that default :P
[21:25:48 CEST] <JEEB> so they're not affected by the global default thingamajig
[21:26:09 CEST] <paperManu> bnnyyyy
[21:30:20 CEST] <Ingvix> just to be sure: if I want to specify which audio track to use in the output file I need to add "-map 0:[audio stream I want]" and "-c:a copy"?
[21:31:40 CEST] <Ingvix> and I only want one in the output
[21:41:28 CEST] <Ingvix> and then I have to define the video stream too, it seems
[21:41:38 CEST] <Ingvix> map it, I mean
[22:16:54 CEST] <dorvan> hi all, I have to stream as "live view" an rtsp/rtmp input to an html visualization output, at moment I'm using a mp4 without problems for input but i can't make a good "live view" to be viewed by web, hsl and dash are excluded due big lags, ffserver seems it's no more maintened, so can be a problem adopt it. I'm here after month of tests and research on internet, now I'm searching for a...
[22:16:56 CEST] <dorvan> ...definitive solution. tips to make a dinamic socket file as output are also welcome.
[22:22:05 CEST] <BtbN> HLS and DASH is the best you'll get for viewing a live stream in a browser.
[22:22:13 CEST] <BtbN> everything else needs Flash
[22:24:59 CEST] <JEEB> in theory you could utilize an mpeg-ts parser or something from HLS.js and fuck around with HTTP if XHR lets you access the data while the connection is still going
[22:25:48 CEST] <BtbN> using fragmented mp4 would be more natural
[22:25:57 CEST] <BtbN> but then you essentially have DASH anyway
[22:26:41 CEST] <JEEB> sure, you could just be feeding segments into this thing. and since DASH segments don't require to start with an IRAP you could even make the latency small'ish
[22:26:44 CEST] <BtbN> The MediaSourceExtensions only take in mp4. So even if you managed to stream mpeg-ts to JavaScript. You'd have to make up chunks there, and end up with the same delay that causes.
[22:27:39 CEST] <JEEB> but yea, this all bases upon XHR being able to feed you data while you keep the connection going
[22:27:43 CEST] <JEEB> which I'm not sure is something doable
[22:31:09 CEST] <BtbN> you can, but it's not overly efficient
[22:31:30 CEST] <BtbN> As it will keep everything it downloaded so far in a buffer until the request finishes
[22:33:34 CEST] <dorvan> JEEB: I've already used hls/ts with hls.js... but lag is high...
[22:33:45 CEST] <JEEB> that's not what I was talking about
[22:34:03 CEST] <JEEB> also your latency in MPEG-DASH/HLS depends on a whole lot of things in your chain to be honest
[22:34:09 CEST] <JEEB> such as length of segments etc
[22:34:27 CEST] <JEEB> esp. DASH lets you do funky stuff because segments don't have to start with random access samples
[22:34:51 CEST] <JEEB> so you can still keep your compression efficiency, but not have as long latency
[22:35:19 CEST] <JEEB> but not talking about that - some sort of streaming input is the least bad lag-wise
[22:35:26 CEST] <JEEB> s/lag/latency/
[22:35:33 CEST] <JEEB> you will still have lag even if you don't have latency
[22:35:57 CEST] <JEEB> (for example if you have a random access sample every ~10s then at most you have to wait for that much to get a picture but your latency can still be much lower)
[22:36:57 CEST] <dorvan> ok, excluding the destination media (html), the problem it make a "remote source" input to a "local source" dinamic file as output...
[22:38:11 CEST] <dorvan> where on a h264 file the needs are header format and content format (content format can be dynamic through keyframs, but header will be static)
[22:38:30 CEST] <dorvan> this usually it's solved by a server....
[22:39:39 CEST] <dorvan> the best, i think, can be trasform a remote streaming in an local streaming device like /dev/video with v4l (as intermediate output)
[22:39:48 CEST] <dorvan> or something like this
[22:41:03 CEST] <dorvan> rstsp/rtmp -> local device/socket <- read to output
[22:41:31 CEST] <dorvan> BtbN: what do you think about?
[22:41:41 CEST] <dorvan> JEEB: what do you think about?
[22:42:51 CEST] <BtbN> what?
[22:43:07 CEST] <dorvan> the process need to be the same to make more complex operation in a chain, like motion detection, or face recognition
[23:02:15 CEST] <dorvan> https://github.com/bkw/node-dronestream
[23:03:47 CEST] <dorvan> BtbN: what is not clear?
[23:04:27 CEST] <Cracki> I think you're unaware of the complexity of your task
[23:04:49 CEST] <Cracki> there are several technologies that can be a part of the solution
[23:05:26 CEST] <BtbN> in short, you're not going to be able to do low-latency streaming to a webbrowser, without utilizing either flash or WebRTC, which both is a giant mess
[23:05:47 CEST] <Cracki> (I advised to use webrtc in #opencv)
[23:06:19 CEST] <Cracki> I also advised to try mjpeg, since it's only happening locally anyway
[23:06:26 CEST] <BtbN> streaming to a browser via WebRTC is... not exactly straight forward
[23:06:41 CEST] <BtbN> I haven't figured out how to even do it at all
[23:06:47 CEST] <Cracki> I've seen "content replacement" repeated jpeg "streams"
[23:07:35 CEST] <dorvan> yes, mjpeg seem the less complex way, but it's not the best performance solution.
[23:07:56 CEST] <Cracki> try it
[23:08:16 CEST] <Cracki> unless you've tried it, you have no performance numbers
[23:08:23 CEST] <dorvan> Cracki already tried.
[23:08:28 CEST] <Cracki> and?
[23:09:02 CEST] <kerio> mjpeg is the best
[23:09:07 CEST] <kerio> you <img>
[23:09:09 CEST] <kerio> and it works
[23:09:11 CEST] <dorvan> Cracki: i had performance problem... so now since 3 weeks I'm on a mp4 output file take by ffmpeg
[23:09:18 CEST] <BtbN> if you don't care about the massive bandwidth
[23:09:21 CEST] <Cracki> be more specific please
[23:09:32 CEST] <Cracki> "performance problem"
[23:09:33 CEST] <BtbN> mp4 cannot be streamed
[23:10:03 CEST] <Cracki> "bandwidth" on localhost is relative
[23:10:11 CEST] <dorvan> kerio: 4mp frames at 30fps on many input streams... have you tips to tuning mjpeg?
[23:10:19 CEST] <Cracki> downsample
[23:10:36 CEST] <dorvan> BtbN: yes with some ffmpeg flags and a buffer
[23:10:55 CEST] <BtbN> that's fragmented mp4
[23:11:01 CEST] <BtbN> essentially a lot of very short mp4 files
[23:11:02 CEST] <Cracki> if you display multiple streams, no person viewing that is gonna profit from 30 fps. use 15 fps.
[23:11:15 CEST] <dorvan> BtbN: no, monolithic. not fragmented
[23:11:34 CEST] <BtbN> "monolithic" mp4 cannot be streamed due to the nature of the format
[23:11:52 CEST] <kerio> do browsers support fragmented mp4
[23:11:53 CEST] <BtbN> well, it can be stream-played when the moov atom already exists
[23:12:00 CEST] <BtbN> DASH is fragmented mp4
[23:12:08 CEST] <kerio> without all that bullshit machinery
[23:12:14 CEST] <kerio> :^)
[23:12:17 CEST] <dorvan> BtbN: can be streamed, there is a specific page on ffmpeg docs to make it..
[23:12:30 CEST] <BtbN> dorvan, you mean the page about fragmented mp4?
[23:12:50 CEST] <Cracki> dorvan, you need to be a lot more specific in your statements.
[23:13:09 CEST] <dorvan> BtbN: we have used 3 different solution in tests... HLS, DASH, a a trick with mp4 supported by some ffmpeg flags
[23:13:19 CEST] <BtbN> fragmented mp4 can still be a single file. Basically a lot of short mp4 files stitched together
[23:13:33 CEST] <dorvan> BtbN: no non the page about fragmented mp4?
[23:13:42 CEST] <dorvan> BtbN: no non the page about fragmented mp4!
[23:13:57 CEST] <Cracki> well which one then?
[23:14:32 CEST] <dorvan> Cracki: about what?
[23:14:36 CEST] <Cracki> nevermind
[23:14:58 CEST] <Cracki> you've been given several alternatives.
[23:15:39 CEST] <Cracki> and I still think jpeg/mjpeg can work for your application, but unless you become more forthcoming with details, you can't be helped.
[23:15:40 CEST] <dorvan> Cracki: I've no real answers... only tips about already tried solutions... without considering my answers..
[23:16:25 CEST] <Cracki> if it didn't work, maybe that didn't have anything to do with the technology, but with how it's been configured
[23:16:38 CEST] <dorvan> Cracki: if you read me i can provide my position about. not like BrbN position..
[23:17:30 CEST] <Cracki> ¯\_(Ä)_/¯
[23:17:34 CEST] <dorvan> Cracki: you know how to use a local device with v4l in ffmpeg like a usb cam? dev /dev/video0 for example...
[23:18:10 CEST] <dorvan> Cracki: do you know what happen in /dev/video0 ?
[23:18:54 CEST] <dorvan> Cracki: I need to have the same pointer for a remote stream.
[23:19:17 CEST] <dorvan> input format it's not a problem... conversion it's not a problem...
[23:20:17 CEST] <dorvan> output it's a problem... and it's the like Mjpeg stream with <img> like say kerio
[23:20:55 CEST] <Peste_Bubonica> Hi folks. I'm trying to encode x264 to x265, using ffmpeg 3.3.3 and hevc_nvenc
[23:21:10 CEST] <BtbN> *h
[23:21:23 CEST] <Peste_Bubonica> this is the command line: ffmpeg -i input.mkv -vcodec hevc_nvenc -pix_fmt yuv420p10 -preset hq -2pass 1 -vb 8000k -acodec copy output.mkv
[23:21:27 CEST] <BtbN> x264/4 is not a codec
[23:21:36 CEST] <Peste_Bubonica> and this is the error: [hevc_nvenc @ 0xc18e20] Cannot init CUDA
[23:22:01 CEST] <BtbN> Is this on Windows or Linux?
[23:22:03 CEST] <kerio> your issue is that ffmpeg can't init CUDA
[23:22:03 CEST] <dorvan> BtbN: probably you are a Bot! :-)
[23:22:08 CEST] <Peste_Bubonica> Linux
[23:22:22 CEST] <BtbN> Is your nvidia driver working properly otherwise?
[23:22:29 CEST] <dorvan> Peste_Bubonica: h264 h265 ..... are the codec
[23:22:49 CEST] <Peste_Bubonica> BtbN, I think so. I can play games here for example
[23:22:57 CEST] <Diag> on linux?
[23:22:57 CEST] <Diag> psh
[23:23:02 CEST] <Peste_Bubonica> driver version is: 381.22
[23:23:07 CEST] <Cracki> games don't mean cuda/nvenc can be used
[23:23:22 CEST] <BtbN> Well, them working means the driver is working
[23:23:27 CEST] <JEEB> esp. since some distros even separate the packages
[23:23:30 CEST] <Cracki> should...
[23:23:31 CEST] <JEEB> against nvidia's wishes
[23:23:32 CEST] <Cracki> what GPU is it?
[23:23:38 CEST] <Peste_Bubonica> a GTX 1070
[23:23:45 CEST] <JEEB> so you might have the drivers installed, but not the CUDA stuff
[23:23:53 CEST] <Cracki> ok recent enough :P
[23:23:55 CEST] <BtbN> It's most likely something with your driver installation, yeah
[23:24:09 CEST] <BtbN> The cuda library is not missing, that would throw a diffrent error
[23:24:20 CEST] <BtbN> It just fails on the most basic thing it can do
[23:24:30 CEST] <JEEB> ok
[23:24:41 CEST] <Peste_Bubonica> I can check for something specific to my distro about cuda support.
[23:24:46 CEST] <Cracki> see if you can find a tool to "detect cuda devices"
[23:24:59 CEST] <BtbN> ffmpeg can be such a tool
[23:25:03 CEST] <Cracki> ah good
[23:25:05 CEST] <BtbN> https://github.com/FFmpeg/FFmpeg/blob/release/3.3/libavcodec/nvenc.c#L442
[23:25:09 CEST] <BtbN> this is where the error comes from
[23:25:37 CEST] <BtbN> cuInit is like... by far the most basic CUDA function. I can't think of a good reason for it to ever fail, other than the driver or the system being massively messed up
[23:25:52 CEST] <Cracki> can I assume this code will always grab a device? there are env vars that direct which devices/classes to use...
[23:26:09 CEST] <BtbN> cuInit is way before it even cares about devices.
[23:26:13 CEST] <Cracki> ah
[23:26:52 CEST] <Peste_Bubonica> I need to install some specific to use hevc_nvenc?
[23:26:56 CEST] <dorvan> Peste_Bubonica: you need 3 components, nvidia video codec and encoder, and cuda
[23:27:04 CEST] <BtbN> Usually just the nvidia-driver is enough
[23:27:13 CEST] <BtbN> But who knows what your specific distro did to it
[23:27:19 CEST] <BtbN> maybe they split it up and something is missing
[23:27:19 CEST] <JEEB> because nvidia distributes it all in a single package
[23:27:23 CEST] <Peste_Bubonica> I see. I'm using Gentoo.
[23:27:26 CEST] <JEEB> BtbN: or mismatching versions
[23:27:32 CEST] <BtbN> you're safe on Gentoo.
[23:27:39 CEST] <BtbN> There only is one monolithing nvidia-driver
[23:28:09 CEST] <BtbN> can I see lsmod | grep nvidia please
[23:28:12 CEST] <dorvan> Peste_Bubonica: me also, if you need i've the pkg list you need..
[23:28:22 CEST] <Peste_Bubonica> course, one moment
[23:28:53 CEST] <Peste_Bubonica> BtbN, https://pastebin.mozilla.org/9029569
[23:29:09 CEST] <BtbN> modprobe nvidia_uvm
[23:29:15 CEST] <BtbN> and then try again with ffmpeg/nvenc
[23:29:42 CEST] <Peste_Bubonica> BtbN, this module don't exists here
[23:29:52 CEST] <Peste_Bubonica> modprobe: FATAL: Module nvidia_uvm not found in directory /lib/modules/4.9.34-gentoo
[23:30:07 CEST] <dorvan> Peste_Bubonica: .... you have compiled ffmpeg with nvenc? and followed by emerge -uDN --with-bdeps=y @world ?
[23:30:10 CEST] <BtbN> you're missing the uvm useflag on the nvidia-drivers then
[23:30:14 CEST] <BtbN> Pretty sure CUDA needs that
[23:30:23 CEST] <Peste_Bubonica> nice, let me check
[23:30:47 CEST] <dorvan> Peste_Bubonica: dev-util/nvidia-cuda-sdk dev-util/nvidia-cuda-toolkit media-gfx/nvidia-cg-toolkit media-video/nvidia-video-codec sys-firmware/nvidia-firmware x11-drivers/nvidia-drivers
[23:31:00 CEST] <dorvan> Peste_Bubonica: check USE with eix....
[23:31:11 CEST] <BtbN> you don't need any of those, except the nvidia-drivers
[23:31:32 CEST] <Peste_Bubonica> BtbN, you are right, the i'm not using uvm useflag
[23:31:33 CEST] <dorvan> Peste_Bubonica: check the requirements on rebuilds
[23:31:56 CEST] <Peste_Bubonica> dorvan, thanks, I will try it right after rebuild the driver
[23:31:57 CEST] <dorvan> BtbN not true with cuda, but probably it's like the question of mp4
[23:32:28 CEST] <BtbN> yes, it is true. ffmpeg bundles all the needed dependencies. It only needs the runtime libraries from the driver.
[23:32:50 CEST] <dorvan> Peste_Bubonica: check the version alignement are changing something on that side..
[23:33:51 CEST] <Peste_Bubonica> not it works BtbN
[23:33:59 CEST] <Peste_Bubonica> its the uvm module
[23:34:01 CEST] <BtbN> *now?
[23:34:09 CEST] <dorvan> Peste_Bubonica: media-video/nvidia-video-codec it's aligne with latest CUDA toolkit, check it with nvenc use flags, if you have problem, check it through opencv.
[23:34:27 CEST] <Peste_Bubonica> i've recompiled the driver and loaded nvidia_uvm and its running
[23:34:34 CEST] <Peste_Bubonica> 154 fps
[23:34:42 CEST] <BtbN> yeah, CUDA needs the unified memory thing
[23:34:48 CEST] <ZeroWalker> been trying to compile ffmpeg with libx264 for ages now, why is it so hard:(
[23:35:16 CEST] <Peste_Bubonica> dorvan, this codec is from 6.0.1 version on gentoo
[23:35:32 CEST] <Peste_Bubonica> i've read that ffmpeg bundles the 8x version in 3.3 version, its right?
[23:35:55 CEST] <BtbN> yes, ffmpeg has no external build time dependencies for cuvid and nvenc
[23:36:17 CEST] <BtbN> It only loads cuda/nvenc at runtime. And those libs come from the driver
[23:36:21 CEST] <BtbN> no need for all those SDKs at all
[23:36:47 CEST] <Peste_Bubonica> very good
[23:36:50 CEST] <BtbN> Except if you need/want scale_npp or scale_cuda
[23:36:57 CEST] <BtbN> those actually require the CUDA SDK
[23:37:22 CEST] <Peste_Bubonica> I will check now, if mpv can use hardware decoding for x265
[23:37:26 CEST] <Peste_Bubonica> after loading this module
[23:37:37 CEST] <BtbN> probably not on its own
[23:37:57 CEST] <Peste_Bubonica> BtbN, I think that they use ffmpeg to decode
[23:38:14 CEST] <BtbN> Yeah, but hw accelerate decoding is not automatic
[23:38:35 CEST] <dorvan> Peste_Bubonica: what's you use case for this?
[23:39:09 CEST] <Peste_Bubonica> dorvan, right now, only encode my files fast
[23:39:19 CEST] <dorvan> ah ok...
[23:39:20 CEST] <Peste_Bubonica> with my CPU, it was producing 25fps
[23:39:37 CEST] <Peste_Bubonica> x264 to x265
[23:39:52 CEST] <BtbN> it's still h264/5
[23:39:57 CEST] <Peste_Bubonica> its not a professional usage. Only noob things :)
[23:39:57 CEST] <BtbN> x264 and x265 are applications
[23:39:59 CEST] <dorvan> ffmpeg with nvenc call as dependency media-video/nvidia_video_sdk-6.0.1::gentoo so it's not "including alll it self"
[23:40:12 CEST] <dorvan> i've compiled it now...
[23:40:14 CEST] <BtbN> That's a wrong dependency then.
[23:40:18 CEST] <JEEB> ^this
[23:40:23 CEST] <dorvan> BtbN
[23:40:23 CEST] <kerio> hardware encoding has worse results tho
[23:40:26 CEST] <dorvan> ahahah
[23:40:30 CEST] <JEEB> it requires it if you want to use it
[23:40:33 CEST] <JEEB> not a build-time dep
[23:41:28 CEST] <BtbN> it would also be way too old to build a current ffmpeg
[23:41:50 CEST] <dorvan> ffmpeg +nvenc, needs media-video/nvidia_video_sdk-6.0.1::gentoo, without -nvenc, media-video/nvidia_video_sdk-6.0.1::gentoo it's not called in...
[23:42:00 CEST] <BtbN> That dependency is plain wrong.
[23:42:09 CEST] <BtbN> Or you're looking at a really old ffmpeg version.
[23:42:19 CEST] <dorvan> 3.3.3
[23:42:25 CEST] <BtbN> wrong dependency then
[23:42:31 CEST] <BtbN> ffmpeg 3.3 has the video sdk bundled.
[23:42:31 CEST] <Peste_Bubonica> dorvan, are you sure? I've installed 3.3.3 version here, without install nvidia video sdk
[23:42:54 CEST] <dorvan> Peste_Bubonica: done it now, let's try...
[23:42:57 CEST] <BtbN> well, "video sdk". It's a single header file.
[23:43:55 CEST] <dorvan> BtbN: yes probably but it need it... not "no, it's wrong" ....
[23:44:03 CEST] <BtbN> the ebuilds needs it
[23:44:06 CEST] <BtbN> ffmpeg does not need it
[23:44:13 CEST] <dorvan> :-)
[23:44:17 CEST] <BtbN> It can plain be removed from the ebuild, it's wrong.
[23:44:45 CEST] <dorvan> BtbN say to ebuild maintainer, but, pls, check it before...
[23:45:03 CEST] <BtbN> You realize I'm the author and maintainer of all the nvenc/cuda stuff in ffmpeg?
[23:45:13 CEST] <BtbN> I'm very well aware of what I'm saying.
[23:45:27 CEST] <BtbN> well, most of it by now.
[23:46:44 CEST] <dorvan> BtbN not I don't now... but I know your approach as irc user... and this suggest me to verify everything you wrote.. like you don't.
[23:47:20 CEST] <Cracki> thanks for all that nvenc/cuda stuff :D
[23:47:37 CEST] <dorvan> BtbN so if you are the maintainer, and as I reported to you, say to ebuild maintainer
[23:47:39 CEST] <Peste_Bubonica> Before come here to ask you guys, i've installed manually the video sdk, thinking that their lack could be the cause, so I've checked that this old version, does not support hvec (6.0.1). I will need de 8x. Then I found this page: https://developer.nvidia.com/ffmpeg
[23:47:49 CEST] <Peste_Bubonica> that says that ffmpeg 3.3 bundles it
[23:47:59 CEST] <BtbN> dorvan, I'm not responsible for the ebuilds in Gentoo. Not a Gentoo dev.
[23:48:00 CEST] <Cracki> btw, tips for making decode really fast on a gtx 560? I'm not getting beyong 160 fps (24 Mbps H.264 video from a camera)
[23:48:37 CEST] <Peste_Bubonica> so I removed this codec package. Its not a dependency for ffmpeg, even with the nvenc useflag
[23:48:56 CEST] <dorvan> BtbN: ok, you can simply reduce you "no" here, can be good enough :-)
[23:49:11 CEST] <BtbN> 160 fps might be the best that card can do
[23:49:18 CEST] <BtbN> Those older cards weren't overly fast.
[23:49:35 CEST] <BtbN> But not sure, never used anything older than a 760 with nvenc/cuvid
[23:50:07 CEST] <shayr> hello all, I have a small question (at least I hope it's small)
[23:50:41 CEST] <Peste_Bubonica> nice. MPV is working with cuda for decoding now
[23:50:42 CEST] <Peste_Bubonica> Using hardware decoding (cuda).
[23:50:42 CEST] <Peste_Bubonica> VO: [opengl] 1920x816 cuda[p010]
[23:50:46 CEST] <Peste_Bubonica> goood :)
[23:50:46 CEST] <dorvan> BtbN: so nvenc in ffmpeg 3.3.3 does not have deps also on cuda or X ?
[23:50:52 CEST] <shayr> if i want to lower the bitrate of a file to get a smaller size, what can I do to guarantee as best quality as possible? the original file is 15Mb and I really need it smaller
[23:51:14 CEST] <BtbN> It has no deps on the CUDA sdk. It does depend on the cuda runtime libraries, but those come with the nvidia-driver.
[23:51:43 CEST] <Peste_Bubonica> it takes 20 minutes to "recode" a 4.7GB h264 file
[23:54:18 CEST] <dorvan> BtbN: dev-util/nvidia-cuda-sdk dev-util/nvidia-cuda-toolkit x11-drivers/nvidia-drivers ....seems toolkit 8.0.61, it's not included in nvidia-drivers, only libs?
[23:54:50 CEST] <dorvan> Peste_Bubonica: what about I/O, hdd speed?
[23:54:51 CEST] <BtbN> libcuda.so.1 and libnvidia-encode.so.1 are the only things ffmpeg needs for nvenc
[23:55:21 CEST] <BtbN> Everything else it needs to compile is bundled, so no need for external dependencies at build time.
[23:55:43 CEST] <Peste_Bubonica> dorvan, i've reading the file from a magetic disk, Sata 3, with 180MB/s of read speedy, and writing to an SSD that can handle about 450MB/s at max
[23:57:02 CEST] <dorvan> Peste_Bubonica: how many RAM? your bottleneck it's the source..
[23:57:25 CEST] <BtbN> you can use nvidia-smi to see the video engine load
[23:57:31 CEST] <BtbN> if it's at 100%, you have your bottleneck right there
[23:57:52 CEST] <dorvan> BtbN: true, but on a 1070....
[23:58:02 CEST] <BtbN> he's encoding h265
[23:58:12 CEST] <BtbN> that's not that crazy fast after all
[23:58:57 CEST] <Peste_Bubonica> dorvan, 32GB DDR3 1866
[23:59:34 CEST] <dorvan> BtbN: h265 does not more cpu friendly respect h265?
[23:59:57 CEST] <BtbN> h265/hevc uses _a lot_ more resources to encode than h264
[00:00:00 CEST] --- Sun Aug 13 2017
1
0
[00:05:44 CEST] <iive> why on the topic of ryzen - http://i.imgur.com/KPE7E0s.jpg
[00:06:37 CEST] <iive> while
[00:06:52 CEST] <Compn> lol that graph
[00:07:00 CEST] <Compn> such a big difference for 1 fps more LOLOLOL
[00:07:07 CEST] <iive> :}
[00:07:14 CEST] <jamrial> is that a parody?
[00:07:18 CEST] <Compn> who made that, hilarious
[00:07:18 CEST] <iive> no
[00:07:26 CEST] <Compn> fractional fps hahahaha
[00:07:31 CEST] <TD-Linux> I'm really interested to see some windows vs linux benchmarks of threadripper. the one I was able to find makes threadripper look a little better https://www.computerbase.de/2017-08/amd-ryzen-threadripper-test-1950x-1920x…
[00:07:33 CEST] <jamrial> someone published that as part of a review?
[00:07:49 CEST] <TD-Linux> I suspect it's going to be heavily reliant on the NUMA scheudler
[00:07:55 CEST] <iive> it's from Techradar article, and they have changed it already.
[00:08:45 CEST] <nevcairiel> thats what happens if you let your tools generate the images for you :p
[00:26:37 CEST] <rcombs> iive: Compn: gdi truncated bar graphs ought to be illegal
[00:27:05 CEST] <iive> yeh
[00:27:33 CEST] <rcombs> at the very least ones without an indication of the truncation
[00:27:48 CEST] <rcombs> you know the thing I'm talking about, the wavy-line mark on the graph axis near the bottom
[00:27:53 CEST] <nevcairiel> that one has the range clearly mentioned!
[00:28:16 CEST] <rcombs> in text, though, not graphically
[00:28:59 CEST] <iive> some time ago there was an article, that showed all kinds of graph tricks. not starting from zero, or using 2 different scales in the same image...
[00:29:21 CEST] <iive> all things to mislead the eye, before the brain can get the raw data.
[04:30:30 CEST] <cone-065> ffmpeg 03Davinder Singh 07master:1939b9030642: avcodec/mjpegenc: disable unused code with AMV
[04:30:30 CEST] <cone-065> ffmpeg 03Davinder Singh 07master:4116b2b136f5: avcodec/mjpegenc: cosmetic changes
[11:01:05 CEST] <JEEB> interesting
[11:01:14 CEST] <JEEB> so AVFrame doesn't have AVMEDIA_TYPE set to it?
[11:01:20 CEST] <JEEB> you have to find it out from the context?
[11:05:26 CEST] <nevcairiel> usually AVFrames don't really mix in the same API so you should really always know
[11:06:47 CEST] <nevcairiel> avutil checks width/height for video frames, a nd nb_samples for audio frames
[11:06:56 CEST] <nevcairiel> if you really want some rule to check =p
[11:09:58 CEST] <JEEB> :D
[11:10:06 CEST] <JEEB> thankfully I have the AVCodecContext around
[11:10:10 CEST] <JEEB> or well, nearby
[11:11:57 CEST] <wm4> av_frame functions "infer" the media type by checking certain fields
[11:12:21 CEST] <wm4> see av_frame_get_buffer()
[11:12:56 CEST] <wm4> but yeah, that's slightly annoying... media type and the time base would probably be the only fields that are missing for truly independent AVFrames
[11:13:11 CEST] <JEEB> right, it misses that one as well :)
[11:19:54 CEST] <BtbN> well, I'm not getting a replacement CPU until AMD confirms the defect on mine. Have to somehow wait 4-6 weeks without a CPU in my PC
[11:20:18 CEST] <nevcairiel> time for a vacation
[11:20:45 CEST] <wm4> should have bought Intel
[11:23:51 CEST] <BtbN> I'm just gonna buy a replacement R5
[11:24:01 CEST] <BtbN> R3 is on backorder, so can't do that -_-
[11:29:20 CEST] <BtbN> Ordered an R5 1500X. Guess I have better chances to re-sell those anyway
[13:06:26 CEST] <kurosu_> Are people in here actually experiencing the ryzen crashes?
[13:07:04 CEST] <kurosu_> Not the phoronix one(s) (conftest for PHP build), but on actual work
[13:07:16 CEST] <BtbN> kurosu_, yes.
[13:07:21 CEST] <BtbN> My 1800X is affected
[13:07:44 CEST] <BtbN> Just building gcc is pretty much guaranteed to crash
[13:07:57 CEST] <kurosu_> what does it crash on then? ffmpeg compilation/running?
[13:08:00 CEST] <BtbN> gcc
[13:09:31 CEST] <BtbN> sometimes bash, it's not deterministic at all
[13:09:38 CEST] <BtbN> But mostly gcc just segfaults
[13:09:39 CEST] <kurosu_> ok
[13:10:21 CEST] <kurosu_> that sounds far worse then, but then the platform seems rushed (cf memory issues)
[13:11:22 CEST] <wm4> and the underlying cause is unknown? does amd at least claim that it's fixed on newer revs?
[13:11:34 CEST] <JEEB> yes
[13:11:48 CEST] <JEEB> it claims TR/Epyc and possibly even newer lot Ryzens are unaffected
[13:12:03 CEST] <BtbN> Pretty much only the people who bought Ryzen on day one are affected
[13:12:24 CEST] <BtbN> chips with a UA date after week 25 of 2017 have not been found to be affected
[13:12:43 CEST] <BtbN> It's not even a new stepping. Just the same one, manufactured later
[13:13:19 CEST] <kurosu_> the situation is quite muddy
[13:13:46 CEST] <kurosu_> BtbN case on the other hand is far more concerning, at it's nowhere near artificial
[13:14:01 CEST] <kurosu_> not like I was planning to upgrade anyway
[13:14:13 CEST] <BtbN> To me it seems like AMD knows they fucked up, as they agree to RMA with anyone who asks. But do not publicly announce it, which would cause thousands of CPUs to come back at them
[13:20:06 CEST] <kurosu_> the issue is that the bug is likely companded with generic instability issues due to the platform (motherboard+voltage+memory)
[13:20:26 CEST] <BtbN> The system is not unstable at all
[13:20:38 CEST] <BtbN> I can run Prime95 and other stresstests for hours on end without a single failure
[13:20:57 CEST] <BtbN> And I can also compile huge things like webkit or libreoffice without a single failure
[13:21:05 CEST] <BtbN> it's just a selected few packages that fail reliably
[13:21:15 CEST] <BtbN> most prominently gcc and mesa
[13:21:33 CEST] <kurosu_> yeah, but those are artificial: even if it indicates possible realword issues, if you're not affected... you have issues with compilation, that's no good at all
[13:21:48 CEST] <kurosu_> those = prime&co
[13:21:59 CEST] <BtbN> I can imagine certain games to be affected as well
[13:22:18 CEST] <BtbN> the Benchmark of Ashes of Singularity crashes as well. So the game itself likely does as well when enough is going on
[13:23:02 CEST] <kurosu_> btw, why 1800X? no wish to fiddle with o/c to get the same performance level, or attempt at higher quality cpu sample ?
[13:24:02 CEST] <kurosu_> (i5820k @ conservative 4.1GHz here)
[13:24:04 CEST] <BtbN> best binning, and no point in OCing that for 200~300 extra MHz
[13:24:22 CEST] <BtbN> It runs at 3.7GHz pretty much all the time
[13:24:30 CEST] <BtbN> and Ryzen caps out at around 4GHz
[13:24:58 CEST] <kurosu_> yeah, but I mean the 1700 is the same physical cpu, except for the clock
[13:25:08 CEST] <BtbN> But a lower quality die
[13:25:16 CEST] <kurosu_> so 1700 oc ~ 1800X (oc or not)
[13:25:32 CEST] <BtbN> And I'd have to OC it, don't feel like fiddling with that just to void my waranty on things
[13:26:11 CEST] <kurosu_> yeah, my point (oc'ing can be a hassle), but then warranty issues seems unlikely if you are conservative
[13:27:47 CEST] <kurosu_> anyway, were I at a point I wanted to renew my cpu, I'd still go with AMD (even as a ricer that cares about that avx2 performance)
[13:28:48 CEST] <BtbN> avx2 on Ryzen is not that much slower than on Intel
[13:28:57 CEST] <BtbN> as it doesn't have to underclock itself to run it
[13:29:23 CEST] <kurosu_> yeah, if you are not oc'ing/not overriding power usage limitations
[13:30:23 CEST] <kurosu_> I'm just thinking of the architectural limitations, eg avx2 has half the ressources compared to intel newest chips (aka 2x128, like sse in the old k7 days)
[13:30:43 CEST] <nevcairiel> if you don't OC in the first place, then desktop intels dont really need to downclock for avx2
[13:30:58 CEST] <nevcairiel> there is plenty headroom to use
[13:31:15 CEST] <nevcairiel> servers typically do because they adhere to rather strict standards
[13:31:29 CEST] <kurosu_> they still do? like voltage and clocks are forced to be reduced ?
[13:31:52 CEST] <kurosu_> (whatever the clock. I mean enforced offsets, unless edited)
[13:32:18 CEST] <nevcairiel> in desktop space it mostly depends what your mainboard comes with as a default
[13:33:18 CEST] <nevcairiel> but its no problem to just disable that, makes temps go slightly up, but desktop platforms have plenty headroom for that
[13:35:42 CEST] <kurosu_> anyway, that's an interesting point with avx512 arriving but also increasing the power usage - I'm not completely sure architecture is nowadays the limit, rather than power usage (~ OC frequency reachable within a stability margin)
[13:36:27 CEST] <nevcairiel> avx512 is a lot more demanding, cant really do that without downclocking
[13:36:56 CEST] <nevcairiel> but doubling the throughput again also gives a lot of FLOPS
[13:37:03 CEST] <kurosu_> ryzen seems really spec'ed like haswell, and so the architectural benefits (10-20% more instruction per cycle for 7/8th gen over ryzen?) seem almost completely offset by "more cores"
[13:37:26 CEST] <kurosu_> yeah, my point is the combination is not such a huge improvement
[13:37:52 CEST] <nevcairiel> if the algorithm scales well, then 10-15% less clock still yields a huge improvement
[13:37:57 CEST] <kurosu_> (offset within comparable power usage)
[13:38:31 CEST] <nevcairiel> and recent cpus can change their clock quite rapidly
[13:40:48 CEST] <kurosu_> btw, gb seems to have completely fallen off the radar - I know intel@France got a pretty rough downsizing but that seemed more "intense" than that
[13:43:10 CEST] <atomnuker> kurosu_: intel cpus have 2 256 bit units capable of addition and multiplication, amd has 4 128bit of them (though IIRC 2 of them handled multiplication and 2 did addition)
[13:43:13 CEST] <atomnuker> at least for FPU
[13:43:28 CEST] <atomnuker> *floats
[13:44:06 CEST] <kurosu_> yeah, FMA with avx2 has twice the throughput on intel compared to amd
[13:44:11 CEST] <atomnuker> so its not that different but you still need to avoid doing the standard thing when writing code to not stack 2 256bit identical ops
[13:44:30 CEST] <kurosu_> avx512 seems segmented though in intel hedt (10+ vs below)
[13:55:05 CEST] <wm4> kurosu_: gb?
[14:18:21 CEST] <kurosu_> Gwenole
[14:19:24 CEST] <kurosu_> we had a discussion, I and BBB, around some of those avx2 insn "shortcomings", but he's more a gpu guy
[14:19:32 CEST] <cone-862> ffmpeg 03Michael Niedermayer 07master:86cbffdc4db2: avcodec/tests/dct: Add peak mean error check
[14:19:33 CEST] <cone-862> ffmpeg 03Michael Niedermayer 07master:84786e928f9e: avcodec/tests/dct: Add Mean square error test
[14:19:34 CEST] <cone-862> ffmpeg 03Michael Niedermayer 07master:511e10f673a6: avformat/avidec: Move packet skip after prefix and related checks
[14:19:35 CEST] <cone-862> ffmpeg 03Michael Niedermayer 07master:7735ed29741d: avcodec/mpeg4videodec: Clear mcsel before decoding an image
[14:20:07 CEST] <kurosu_> *a discussion with him
[14:20:07 CEST] <wm4> kurosu_: AFAIK he stopped working at Intel a long time ago
[14:21:10 CEST] <kurosu_> ok, basically what I was expecting, but with a lot less silence
[14:21:51 CEST] <kurosu_> (privately or not)
[15:19:38 CEST] <kierank> kurosu_: wb
[15:20:42 CEST] <kurosu_> not really back (if that's the meaning), just on holidays at home :)
[15:20:57 CEST] <kierank> ok
[15:39:03 CEST] <ZeroWalker> hmm, when interpolating YUV2 (422), you are supposed to interpolate the first and second UV with the second Y right? so, YUVY YUVY , would be (Y+UV), (Y + (UV + UV /2)). Okay horrible math, not sure why i tried showing it like that -_-
[15:56:37 CEST] <iive> ZeroWalker: you mean (Y1, (U0+U1)/2, (V0+V1)/2) ?
[15:57:27 CEST] <ZeroWalker> yeah, is that how the interpolation is supposed to be, and if so, what happens on the last pixel of the line?
[15:59:53 CEST] <iive> just use the same value
[16:01:43 CEST] <ZeroWalker> so the last pixel does no interpolation basically?
[16:03:42 CEST] <iive> what choice do you have :D
[16:04:11 CEST] <J_Darnley> extrapolation!
[16:04:33 CEST] <ZeroWalker> yeah i duno xD. But i haven't there been said something like "center interpolation" or maybe it was Chroma offset/position etc? so didn't know if that had something to do with it
[16:04:49 CEST] <ZeroWalker> haha yeah, ultrapolation is the next step
[16:34:24 CEST] <JEEB> so what was the current plan with the getters and setters for a lot of the values in AVFrames?
[16:34:46 CEST] <JEEB> like av_frame_get_color_range()
[16:35:45 CEST] <nevcairiel> basically dont use them
[16:36:14 CEST] <JEEB> yea, that was what I had gathered before
[16:36:34 CEST] <JEEB> I just wanted to double-check as I happened to look at the AVFrame documentation :)
[16:37:14 CEST] <wm4> we changed it so that you don't need to use them anymore
[20:35:54 CEST] <J_Darnley> LOL. The people flipping ThreadRippers have appeared.
[20:36:55 CEST] <BtbN> hm?
[20:37:20 CEST] <JEEB> J_Darnley: it also got some boogs_
[20:37:20 CEST] <JEEB> ?
[20:37:24 CEST] <J_Darnley> I'm seeing "second hand" ones being put up for sale.
[20:37:36 CEST] <JEEB> oh, in that sense
[20:37:38 CEST] <JEEB> gotcha
[00:00:00 CEST] --- Sat Aug 12 2017
1
0
[04:09:49 CEST] <djgl> Hi, I noticed that the yuv2rgb routines on x86 need (width+7)/8 <= stride/8. Otherwise they will drop pixels on the right. Is this documented somewhere?
[09:30:02 CEST] <Fyr> guys, can FFMPEG utilize NVIDIA Tesla?
[09:43:37 CEST] <squ> some encoders can use cuda
[09:44:26 CEST] <Fyr> squ, so h264_nvenc?
[09:44:47 CEST] <squ> yes
[09:46:10 CEST] <furq> nvenc doesn't use cuda
[09:46:18 CEST] <furq> some filters can use opencl
[09:46:31 CEST] <furq> and nvdec will use cuda if your card doesn't have the asic for it
[09:47:47 CEST] <Fyr> furq, is there a list of the filters that support openCL?
[09:47:55 CEST] <Fyr> I can't google them out.
[09:48:11 CEST] <Fyr> >>OpenCL is currently only used for filtering (deshake and unsharp filters)
[09:48:21 CEST] <Fyr> hwaccelintro says.
[09:48:36 CEST] <Fyr> I'm sure there is more.
[10:53:42 CEST] <furq> those are the only ones with opencl parameters
[10:54:10 CEST] <furq> there are definitely more filters which could potentially use it if you want to contribute patches
[10:54:31 CEST] <furq> i know there are some good opencl denoisers out there
[14:47:47 CEST] <under9000> hi guys, I have a problem here. normally I don't resort to asking people but 30 minutes of googling, docs searching and stackexchange browsing resulted in nothing. the question is: is there an ffmpeg command line argument that tells it to REMOVE output file if it failed to convert from one container to another?
[14:48:46 CEST] <furq> || rm out.mkv
[14:51:39 CEST] <under9000> would it work on windows?
[14:51:56 CEST] <DHE> in a batch file or powershell, you could make it work
[14:56:49 CEST] <under9000> ffmpeg is being launched from youtube-dl which tells it the output filename, and I don't know of a way to tell the output filename to rm command
[14:57:29 CEST] <under9000> since I can only pass additional arguments to youtube-dl which passes them on to ffmpeg
[14:58:05 CEST] <under9000> am I correct to assume that ffmpeg DOESN'T have a specific command switch that tells it to remove output file on error?
[15:13:49 CEST] <DHE> I can't find one in ffmpeg-all.html
[15:19:02 CEST] <under9000> ok thank you
[15:23:38 CEST] <dynek> hello!
[15:24:45 CEST] <dynek> I'm running 3.3.3-1 and trying to use va-api with h.264 video as source
[15:25:26 CEST] <dynek> I end up with a video split in two full or pinkness, let me upload a screenshot
[15:26:47 CEST] <dynek> ffmpeg output: https://pastebin.com/9LmR2EHW
[15:27:44 CEST] <BtbN> vaapi is pretty much untested with anything but intel
[15:29:26 CEST] <dynek> screenshot: https://cloud.bs-network.net/index.php/s/zcDb3R9CC1r4xAd
[15:29:50 CEST] <dynek> wanted to try vdpau but I need x11 to be running and wasnt successful using LXC
[15:39:24 CEST] <jkqxz> dynek: That's made by the encoder on AMD? Read the AMD section of <https://trac.ffmpeg.org/wiki/Hardware/VAAPI>, particularly the last paragraph.
[15:39:55 CEST] <dynek> jkqxz: it is - thank you I'll have a look
[15:41:45 CEST] <dynek> jkqxz: I owe you a beer :-)
[15:59:31 CEST] <dynek> is it possible to use va-api on the decoding side only (to avoid using cpu cycles) and only extract jpegs every seconds?
[15:59:45 CEST] <dynek> trying to do so but it's as consuming with or without hwaccel flags
[16:09:50 CEST] <jkqxz> Should be. What is your command line at the moment?
[16:21:57 CEST] <truexfan81> so why does the ffmpeg configure script take so long?
[16:22:10 CEST] <c_14> because it tests a bunch of things
[16:23:52 CEST] <truexfan81> i wonder if there is an argument i can give it, to make it show what its checking, cause with it giving no output it makes it look like its frozen
[16:24:07 CEST] <c_14> tail -f ffbuild/config.log
[16:25:32 CEST] <truexfan81> my cpu is pegged at the moment, cause make is running with -j6
[16:39:51 CEST] <Guest80657> Hi there, does anybody have an example of transmuxing X to fragmented MP4? (it'd be better if it was ffmpeg/lib example but I'll be happy with ffmpeg command line as well).
[16:40:30 CEST] <Guest80657> I found a remuxing example (using the lib) https://ffmpeg.org/doxygen/trunk/doc_2examples_2remuxing_8c-example.html but then I realize I also need to understand how to mux to fragmented mp4 not only mp4.
[16:42:55 CEST] <dreampeppers99> I found some samples in the Internet telling to use `-movflags empty_moov+default_base_moof+omit_tfhd_offset` in order to obtain such fmp4
[16:44:16 CEST] <dreampeppers99> I think I found the info I need to make it through ffmpeg command line https://ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv
[16:44:51 CEST] <JEEB> yup
[16:45:05 CEST] <dreampeppers99> anyway, if anybody still has a link to an example of remuxing to fragmented mp4 using the ffmpeg lib it'd be great!
[17:24:52 CEST] <Fenrirthviti> Hmm, does VBR for NVENC actually use CQP at all?
[17:40:04 CEST] <leemox> Which is the best deinterlace filter right now? In the ffmpeg documentation I see that it is 5 different - bwdif, kerndeint, nnedi, w3fdif and yadif. Which one I will get the best results?
[17:40:15 CEST] <leemox> https://ffmpeg.org/ffmpeg-filters.html
[17:42:37 CEST] <furq> you forgot mcdeint
[17:43:03 CEST] <furq> nnedi is probably the best but it's also too slow to be usable in ffmpeg
[17:43:19 CEST] <furq> maybe mcdeint is good but when i tried it it was even slower than nnedi and looked terrible
[17:43:28 CEST] <furq> so the answer is probably bwdif=1
[17:46:02 CEST] <leemox> Thank you very much. What about yadif? In various forums it was quite often recommended.
[17:47:03 CEST] <furq> bwdif is supposedly better than yadif
[17:47:06 CEST] <furq> it's worth trying both though
[17:47:14 CEST] <furq> they looked basically the same last time i tested them
[17:47:42 CEST] <furq> just make sure you use them both in mode 1
[17:49:38 CEST] <leemox> Why is it so important? The default settings are different (mode 0 in bwdif). I thought to trust them :-)
[17:50:41 CEST] <furq> mode 1 is double framerate
[17:50:44 CEST] <furq> it looks much better
[17:57:31 CEST] <pgorley> hi, how do i get the number of samples in an AVStream?
[17:57:52 CEST] <leemox> Have you tested w3fdif?
[17:58:50 CEST] <JEEB> w3fdif is one of the two that bwdif uses (together with yadif)
[17:58:52 CEST] <JEEB> IIRC
[18:01:41 CEST] <leemox> Yes, indeed. Before asking previous questions, I wondered if the combination of several different methods works better than one. But as the @furq wrote, bwdif is reportedly very good.
[18:01:46 CEST] <leemox> So propably yes.
[18:04:07 CEST] <furq> does anyone know how to actually use mcdeint properly
[18:04:14 CEST] <furq> the results were so bad when i tried it that i suspect i did it wrong
[18:04:42 CEST] <iive> you need yadif included before mcdeint
[18:04:46 CEST] <furq> yeah i did that
[18:05:00 CEST] <furq> it ran at like 2fps on pal dvd and looked absolutely awful
[18:05:09 CEST] <furq> and also spat out a ton of warnings
[18:05:22 CEST] <iive> hum... haven't tried it recently.
[18:06:06 CEST] <furq> i think i was just doing yadif=1,mcdeint=slow,tff
[18:06:34 CEST] <furq> it's gone from my bash history now
[18:28:09 CEST] <crot> Anyone have any experience trans-coding content from an hdhomerun
[18:30:14 CEST] <DHE> I do. the device I have is an OTA to ethernet converter
[18:33:15 CEST] <crot> Did you have any problems getting an acceptable quality overall the the streams look good but have intermittent pixelation
[18:34:40 CEST] <DHE> have you watched the raw streams? antenna quality and location matters quite a bit. use the tools to measure the signal quality
[18:35:14 CEST] <DHE> the other thing to watch for is that CPU isn't maxed out. this is a realtime stream. if your quality settings are too high you may be dropping packets
[18:35:19 CEST] <crot> Yeah raw is good. signal levels all look great.
[18:36:28 CEST] <crot> udp://235.71.0.4:1234?overrun_nonfatal=1 -vcodec libx264 -tune zerolatency -preset veryfast -profile:v high -x264opts nal-hrd=cbr:force-cfr=1 -b:v 2500k -minrate 1500k -maxrate 3500k -bufsize 3500k -a53cc 1 -acodec ac3 -ab 448000 -af 'volume=5' -vbsf h264_mp4toannexb -f mpegts 'udp://239.91.0.4:1234?
[18:37:49 CEST] <DHE> I disapprove of zerolatency mode here. I know it adds another ~1-2 seconds of playback delay but the effect is has on quality is very substantial.
[18:38:27 CEST] <DHE> also there's a chance the audio you're receiving is already AC3. do you need the volume boost here?
[18:39:05 CEST] <crot> yeah for what ever reason the audio is coming across lower than other channels on average.
[18:39:36 CEST] <crot> Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bottom first), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 448 kb/s
[18:40:40 CEST] <crot> that is the ffprobe of the source stream. Would you recommend deinterlacing?
[18:43:40 CEST] <Plebber> When speciifying bitrates, does 512k means the same thing as 512K?
[18:44:02 CEST] <Plebber> as in is k kilobits/s and K kilobytes/s?
[18:44:13 CEST] <Plebber> I can't find documentation for these abbreviations
[18:45:39 CEST] <c_14> I think K is bytes and k is bits
[18:46:33 CEST] <Blubberbub_> isnt the difference that one is 1000 and the other is 1024?
[18:47:12 CEST] <Blubberbub_> (thats what wikipedia says - no clue how that is implemented in ffmpeg)
[18:48:46 CEST] <Plebber> But what about ffmpeg?
[18:49:46 CEST] <Plebber> If I said make a video with a 1 megabyte per second bitrate, what would you write down for -b:v ?
[18:50:00 CEST] <Plebber> Same for a half a megabyte
[18:51:44 CEST] <c_14> use 1MiB just to be safe
[18:53:11 CEST] <drv> for ffmpeg, -b:v is always in bits, and k == K
[18:54:10 CEST] <c_14> * @param numstr a string representing a number, may contain one of the International System number postfixes, for example 'K', 'M', 'G'. If 'i' is appended after the postfix, powers of 2 are used instead of powers of 10. The 'B' postfix multiplies the value by 8, and can be appended after another postfix or used alone. This allows using for example 'KB', 'MiB', 'G' and 'B' as postfix.
[18:54:54 CEST] <drv> ah, you're right - didn't know about the B suffix
[18:56:02 CEST] <drv> the k/K/M/... multipliers are listed in libavutil/eval.c - si_prefixes array
[19:54:20 CEST] <alexpigment> I was working with a TV station today (albeit indirectly) and they accepted 720i MPEG-PS files
[19:54:28 CEST] <alexpigment> I had long thought that 720i was a myth
[19:54:38 CEST] <alexpigment> Am I wrong? Is this a real standard?
[20:09:35 CEST] <kepstin> north america? I don't think it's permitted in ATSC broadcast standards, so they're probably just upscaling it to 1080i
[20:12:35 CEST] <kerio> interlaced video is evil
[20:21:05 CEST] <leemox> Which mode is better to use for deinterlacing? In bwdif is 2 modes - send_frame and send_field. With the second option, the frame rate is doubled. This is great, but there is not any minuses on image quality?
[20:21:31 CEST] <leemox> *video quality
[20:21:41 CEST] <leemox> In second option
[20:29:03 CEST] <kepstin> leemox: the mode that doesn't double the framerate is basically equivalent to using the mode which does, and then dropping half the frames.
[20:29:34 CEST] <kepstin> I think it might be faster, but that's it. no improvement to quality.
[20:31:12 CEST] <leemox> So if I understand correctly, it is definitely to take a chance with doubling the number of frames. Thank you :-)
[20:31:39 CEST] <kepstin> keep in mind that 30frames per second interlaced video is actually 60 fields per second
[20:31:53 CEST] <kepstin> so if you deinterlace and output 30 frames per second, you're losing temporal information
[20:33:49 CEST] <leemox> Is there another, better than bwdif deinterlacer in your opinion?
[20:33:59 CEST] <leemox> in ffmpeg?
[20:34:30 CEST] <kepstin> bwdif is probably the best in ffmpeg, excluding nnedi
[20:35:15 CEST] <kepstin> if you want to try nnedi, it might be better to use a different implementation (not ffmpeg) that e.g. supports multithreading, asm optimizations, or even gpu compute.
[20:36:55 CEST] <leemox> Nnedi is much better? I know that based on neural networks, but probably not everything that uses something with AI is the best ;-)
[20:38:44 CEST] <kepstin> nnedi is an interpolator only, it just guesses what the missing lines are from the current field only. It does do a really good job of this, though. But in some cases, bwdif will give better results.
[20:39:29 CEST] <kepstin> state of the art is probably in some of the avisynth scripts/plugins people have done which combine nnedi with motion compensation :/
[20:41:08 CEST] <kepstin> (like furq I've tried mcdeint, but haven't actually seen it do anything useful, and I dunno if I'm doing it right)
[20:42:27 CEST] <kepstin> I tend to deal with stuff that's telecined more often than interlaced, tho, so I haven't played around with deinterlacing all that much.
[20:43:28 CEST] <leemox> What about nlmeans?
[20:44:30 CEST] <leemox> Oups, this is denoise :-)
[20:46:39 CEST] <alexpigment> i always use the yadif deinterlacer for what it's worth
[20:47:14 CEST] <alexpigment> i haven't done a whole lot of scientific comparisons between bwdif, yadif, or nnedi, but I know that yadif is nowhere near as good as whatever DXVA2 on Windows uses to deinterlace during playback
[20:47:34 CEST] <alexpigment> I deal with mostly true interlaced content fwiw, rather than telecined material
[20:49:20 CEST] <BtbN> dxva2 uses the hardware deinterlacer of the card
[20:50:37 CEST] <alexpigment> BtbN, i thought that might the be case, but I wasn't entirely sure
[20:50:44 CEST] <alexpigment> I've always used Nvidia cards for the most part
[20:50:57 CEST] <alexpigment> but I've got one HTPC using Intel HD 4600
[20:51:01 CEST] <BtbN> nvidias motion adaptive deinterlacing is quite nice
[20:51:13 CEST] <alexpigment> yeah, you can tell they're doing more than just a simple bob
[20:51:23 CEST] <alexpigment> (as you'd expect them to)
[20:51:45 CEST] <alexpigment> but yeah, I don't think there's anything as nice in ffmpeg to my knowledge
[20:51:55 CEST] <alexpigment> I hear that qtgmc is good in avisynth, but I haven't yet tried it
[21:12:50 CEST] <harvhat> hello. I'm having some trouble using the amerge filter
[21:15:49 CEST] <harvhat> trying to mos 2 stereo sources down to 1 steteo source (ie. -filter_complex "[0][1] amerge" ) but the second source always comes through as mono. I can swap the sources but its always the second source
[21:16:25 CEST] <harvhat> *mix 2 stereo sources down to 1 stereo source.. that is
[21:22:29 CEST] <kepstin> harvhat: that's not what the amerge filter is for, you probably want to use amix instead.
[21:31:24 CEST] <Ingvix> Hey, I've been trying to convert mp4 to mkv while keeping all of the multiple subtitles and audio tracks intact and also adding an additional external sub to the package. It seems that I'm always doing something wrong so could someone just end my suddering and provide an example command where I could learn from?
[21:38:33 CEST] <harvhat> kepstin: Okay yes that worked, thanks! I was basing my attempt off the second example under "2 × stereo stereo" on this page in the wiki: https://trac.ffmpeg.org/wiki/AudioChannelManipulation. (the first example works but seems convoluted). "amix" worked perfect a though :)
[21:40:04 CEST] <kepstin> Ingvix: can you pastebin the output of "ffmpeg -i file.mp4" on your input? And what format is the external sub file?
[21:42:51 CEST] <Ingvix> kepstin, https://pastebin.com/ZMvRKMj7 and the subtitle is in ass format
[21:44:21 CEST] <kepstin> Ingvix: alright, something like "ffmpeg -i kimi.mp4 -i kimi.ass -map 0 -map 1 -c copy kimi.mkv" will probably do it, then.
[21:45:12 CEST] <kepstin> Ingvix: the "-map" options here say to copy all the streams from input files 0 and 1 respectively, and -c copy means to not attempt re-encoding streams (so the dvd subs will be copied as-is; without that it would probably give an error)
[21:49:49 CEST] <Ingvix> kepstin, https://pastebin.com/b9pYFEte I've been getting this error with my previous attempts too
[21:50:41 CEST] <kepstin> oh, huh, ffmpeg doesn't want to copy those mp4 'dvd_subtitle' tracks into the mkv eh.
[21:52:19 CEST] <Ingvix> I think it'd be okay to convert them if that could make it work
[21:52:24 CEST] <Ingvix> to ass of what ever
[21:52:27 CEST] <Ingvix> or*
[21:52:48 CEST] <kepstin> you could try adding "-c:s:0 dvd_subtitle -c:s:1 dvd_subtitle -c:s:2 dvd_subtitle -c:s:3 dvd_subtitle" to get ffmpeg to run those through its encoder chain, might fix it
[21:52:59 CEST] <kepstin> dvd subtitles are images, you can't just "convert" them to a text format :)
[21:53:21 CEST] <Ingvix> oh, okay, I try that then
[21:56:18 CEST] <Ingvix> does it matter where in the command I add that string? Should it be before -c copy?
[21:56:47 CEST] <kepstin> I'd put it after that, but I don't think it would make a difference
[21:56:58 CEST] <kepstin> has to be after all the input files and before the output file
[21:57:19 CEST] <Ingvix> I see
[21:58:04 CEST] <Ingvix> Well now it's processing it. Thanks for your help and explanation
[22:05:39 CEST] <Ingvix> Though can I somehow define the language of the new sub? it didn't seem to take it from the file name
[22:08:30 CEST] <Ingvix> I found that in documentation. Let's see if I can succesfully use it
[22:09:05 CEST] <cbsrobot> Ingvix: should be something like -metadata:s:0 language=eng
[22:09:23 CEST] <Ingvix> yes, that's what I found out
[22:13:10 CEST] <Dan__> Hi there, I'm having some problems converting DNXHD QT into PNGs. Does anyone here have any experience with this?
[22:15:02 CEST] <cbsrobot> Dan__: be more specific
[22:24:12 CEST] <Dan__> ffmpeg -i "/Users/Moody/Desktop/PLATES/movieclip.mov" -y -r 24 -vf setsar=1:1 -start_number 1001 "/Users/Moody/Desktop/PLATES/output.%04d.png"
[22:25:14 CEST] <Dan__> I'm trying to convert a DNXHD QT into a PNG sequence - the PNGs are coming out looking more crushed than the QT - does anyone know what codec or present I could use to stop this happening, and export a truer PNG representation of the original source file?
[22:33:37 CEST] <kepstin> Dan__: please pastebin the *output* of that ffmpeg command
[22:33:51 CEST] <kepstin> it has info that we need to know in order to help you (stuff like video codecs, etc)
[22:34:07 CEST] <Dan__> Sorry kepstin, how do I do that?
[22:34:42 CEST] <kepstin> run the command, copy/paste the text from the terminal onto a pastebin site
[22:39:09 CEST] <cbsrobot> Dan__: try: ffmpeg -i "/Users/Moody/Desktop/PLATES/movieclip.mov" -y -start_number 1001 "/Users/Moody/Desktop/PLATES/output.%04d.png"
[22:39:27 CEST] <cbsrobot> no need to set sar
[22:40:04 CEST] <Dan__> https://pastebin.com/xRpKQq86
[22:41:59 CEST] <Dan__> That didn't seem to work cbsrobot, I got the following error: av_interleaved_write_frame(): Input/output error
[22:46:09 CEST] <Mateon1> Hi, is it possible to output a wav file without metadata? I need to pass it into another program, but it has hardcoded offsets and bails out on metadata chunks
[22:46:32 CEST] <Mateon1> AKA, the file should only contain the "fmt " and "data" chunks
[22:50:05 CEST] <drv> Mateon1: '-fflags +bitexact' should turn off most of the extra metadata chunks, if I remember correctly
[23:03:57 CEST] <kepstin> Dan__: are you sure the problem isn't just that your image viewing application doesn't handle 16bit per channel png correctly? :/
[23:05:43 CEST] <Dan__> It's possible, but a colleague who I am working with exported the same QT in PNG format, and the blacks look less lifted than in the version I've managed to get from ffmpeg
[23:05:43 CEST] <kepstin> you could try adding -pix_fmt rgb24 so it outputs 8bit per channel png instead, just for comparison
[23:06:21 CEST] <Dan__> I had -pix_fmt rgb24 in the code before, but it still generates the same looking QT
[23:06:32 CEST] <Dan__> *sorry, the same looking PNG
[23:07:03 CEST] <kepstin> note that according to the ffmpeg output, it claims that the input is "tv" (aka limited) range, that could cause issues if it's incorrect.
[23:08:24 CEST] <kepstin> if that's wrong, you would see crushed blacks and whites due to clipping on the conversion to rgb.
[23:09:38 CEST] <alexpigment> oh man, i've dealt with color/gamut/etc issues in the past. it's a nightmare. sometimes the video card settings are at play, sometimes the application is at play, sometimes (often) it's because the monitor is a wide gamut monitor with a ProPhoto or Adobe 98 color profile. good luck on this one guys :)
[23:10:16 CEST] <alexpigment> and yes, full 0-255 vs limited 16-235 is confusing
[23:10:27 CEST] <Dan__> I see - is there a way to stop the input being limited?
[23:10:52 CEST] <kepstin> this is 10bit, so it's even more confusing (i dunno what the exact ranges are there)
[23:10:57 CEST] <alexpigment> yep
[23:11:08 CEST] <alexpigment> especially considering most monitors don't actually support 10-bit
[23:11:16 CEST] <alexpigment> (or anything above it, obviously)
[23:11:26 CEST] <kepstin> Dan__: the issue is that metadata on the input is wrong. I think this can be overridden in ffmpeg, but I forget exactly how, might have to look it up.
[23:11:38 CEST] <alexpigment> -color_range full ?
[23:11:44 CEST] <alexpigment> i think i remember using that in the past
[23:12:10 CEST] <alexpigment> actually, i'm going to do as i said and stay out of this one
[23:12:23 CEST] <kepstin> -color_range pc (or -color_range jpeg) as an input option yeah
[23:12:42 CEST] <kepstin> have to try and see if it's actually accepted, it says it's just a "hint to the decoder"
[23:14:04 CEST] <kepstin> if adding that fixes the issue, then the problem is that whatever made your qt file to start with did it incorrectly :/
[23:20:02 CEST] <Dan__> hmm, it doesn't appear to be working, but I'm still tinkering
[23:20:20 CEST] <Dan__> pc or jpeg weren't being accepted, so I had a quick google and think it needs to be either -color_range 1, or -colour_range 2
[23:20:36 CEST] <Dan__> > The source says: > > 0 == unspecified > 1 == "MPEG" range > 2 == "JPEG" range > > Therefore, I'd expect 1 to be "broadcast" 16-235, and 2 to be "full" > 0-255. I haven't tested this, just grepped through the source.
[23:20:49 CEST] <kepstin> it should accept those values
[23:21:05 CEST] <kepstin> you've only got ffmpeg 2.8 tho, you might want to grab a newer version...
[23:21:37 CEST] <Dan__> yes I will do, thanks for your help kepstin
[23:21:42 CEST] <kepstin> and what do you mean by "weren't being accepted" - did it actually give an error saying so?
[23:21:57 CEST] <Dan__> [png @ 0x7fe2d6802a00] [Eval @ 0x7fff59df6470] Undefined constant or missing '(' in 'pc' [png @ 0x7fe2d6802a00] Unable to parse option value "pc" [png @ 0x7fe2d6802a00] Error setting option color_range to value pc.
[23:22:34 CEST] <kepstin> that doesn't make sense...
[23:22:51 CEST] <kepstin> are you sure you used it as an *input* option (before the -i)?
[23:24:43 CEST] <Dan__> Sorry Kepstin you're absolutely right
[23:24:46 CEST] <Dan__> I've just done that and it's worked!
[23:24:50 CEST] <Dan__> Thank you so much.
[23:25:27 CEST] <Dan__> This will save me hours
[23:26:16 CEST] <kepstin> but yeah, this option is just a hack, it says "ignore what the input file claims to be, and treat it as if it was this instead" - it shouldn't be needed on most file.
[23:26:47 CEST] <viric> kepstin: I'm aligning things fine and correcting drift. with octave + fftconv + ffmpeg.
[23:26:50 CEST] <iive> Dan__: why do you want them as png?
[23:30:50 CEST] <Dan__> It's an export from the Avid and we need to work on image sequences in the software we use
[23:35:41 CEST] <Dan__> Well as a hack it does exactly what I need - thanks kepstin!
[23:36:07 CEST] <Ingvix> Can I convert ass to some image format with ffmpeg?
[23:36:27 CEST] <c_14> You con burn it onto a possibly transparent background
[23:36:44 CEST] <c_14> so, yeah I guess
[23:37:08 CEST] <c_14> You'll lose all timestamp info though (with image output)
[23:37:24 CEST] <c_14> use the ass filter (or the subtitles filter) onto a color source with 100% alpha or so
[23:38:47 CEST] <Ingvix> it's just that my smart tv does not like to use fonts, colors or positions determined in the ass file so I thought that it they could work if it was in some image based sub format
[23:40:20 CEST] <alexpigment> does anyone know why the -standard parameter doesn't work (or what its replacement is)?
[23:40:32 CEST] <alexpigment> if i use -tvstd ntsc , it tells me to use -standard instead
[23:40:42 CEST] <c_14> Ingvix: you can just burn it onto the video
[23:40:56 CEST] <c_14> I'm not entirely sure ffmpeg can convert text subs to video subs though
[23:41:03 CEST] <Ingvix> c_14, yes but I don't want to lose the quality
[23:41:14 CEST] <Ingvix> of the video
[23:41:23 CEST] <c_14> an x264 encode at decent bitrates should be (visually) lossless
[23:41:27 CEST] <c_14> unless your source is terrible
[23:41:54 CEST] <Ingvix> my source is 16gb hevc 4k
[23:42:18 CEST] <Ingvix> uh, the 16gb is just size of the video file but anyway
[23:43:12 CEST] <alexpigment> not that it matters really, but content is key here. 16gb for 1 minute of 4k = great quality, 16gb for 2 hours 4k = ok quality
[23:43:21 CEST] <alexpigment> er, *context* is key
[23:44:09 CEST] <alexpigment> still, c_14's point about being able to encode at something visually lossless is certainly possible, as long as you don't mind large file sizes
[23:44:46 CEST] <Ingvix> well it's anime and it's hevc so if I've understood it correctly it got almost twice the bitrate to h264
[23:44:49 CEST] <alexpigment> that said, encoding from hevc to hevc sounds like a bitch
[23:44:52 CEST] <Ingvix> or something like that
[23:45:00 CEST] <Ingvix> yes, I've done it once
[23:45:10 CEST] <Ingvix> and I have those other subs also that I would like to preserve, which are already dvd subtitles
[23:46:20 CEST] <c_14> I'm just going to throw this out there,
[23:46:28 CEST] <c_14> but just connect an HDMI cable from your computer to the TV?
[23:46:57 CEST] <alexpigment> i was just thinking the same thing. or invest in an HTPC that supports Kodi. worth it in the long run imho
[23:47:00 CEST] <Ingvix> well, the thing here is that my laptop does not offer 4k over hdmi
[23:47:27 CEST] <alexpigment> ingvix does it offer 4k over displayport?
[23:47:39 CEST] <Ingvix> it does not have displayport
[23:47:43 CEST] <alexpigment> k
[23:48:27 CEST] <Ingvix> so creating a good vobsub or what ever out of ass it not possible?
[23:48:37 CEST] <c_14> It's technically possible
[23:48:58 CEST] <c_14> You could maybe give SubtitleEdit a try
[23:49:08 CEST] <Ingvix> I shall
[23:49:27 CEST] <c_14> >Export to PNG images (+bdn xml), Adobe Encore FAB image script, VobSub, Blu-ray sup, EBU stl, PAC, and plain text
[23:49:36 CEST] <c_14> so should be able to export to VobSub and PGS
[23:50:24 CEST] <Ingvix> and ffmpeg is able to attach them to the movie?
[23:50:30 CEST] <c_14> yeah
[23:50:34 CEST] <c_14> that's the easy part
[23:50:39 CEST] <Ingvix> yes, probably
[23:51:28 CEST] <Ingvix> also I tried to burn the subs to the file before on this journey to get things right but the output file was only something over 6gb
[23:51:48 CEST] <alexpigment> Ingvix: what did you set the crf or bitrate to?
[23:51:59 CEST] <alexpigment> and did the quality look noticeably different?
[23:52:18 CEST] <alexpigment> sometimes you reach saturation at a lower bitrate. that's especially true with animation
[23:52:32 CEST] <Ingvix> I don't think I set anything like that. I didn't even bother to check the quality...
[23:52:38 CEST] <Ingvix> but I guess I'm a bit smarter now then
[23:52:43 CEST] <c_14> crf 23 probably then
[23:53:19 CEST] <Ingvix> but I try the subtitleedit for starters
[23:56:31 CEST] <alexpigment> throwing this out there again:
[23:56:38 CEST] <alexpigment> does anyone know why -standard doesn't work in FFMPEG? if I use -tvstd ntsc, it tells me to use -standard. if i use -standard ntsc, it says standard is an unrecognized option
[00:00:00 CEST] --- Sat Aug 12 2017
1
0
[03:10:56 CEST] <liyou> hi,all
[03:27:39 CEST] <cone-632> ffmpeg 03Sasi Inguva 07master:e7e1fbc49bf6: lavf/movenc.c: Set sgpd and sbgp atoms to represent decoder delay for AAC.
[04:21:29 CEST] <cone-632> ffmpeg 03James Almer 07master:c100330a8ff4: avformat/movenc: reindent after the previous commit
[10:50:38 CEST] <ubitux> durandal_1707: http://www.ipol.im/pub/art/2017/192/
[10:50:41 CEST] <ubitux> -vf addgrain?
[10:52:25 CEST] <durandal_1707> we have noise which is pretty fast
[10:53:00 CEST] <durandal_1707> im afraid their algo is sloow
[10:53:40 CEST] <ubitux> afaict it's depending on the input contrary to noise
[10:53:59 CEST] <ubitux> also, does noise have transparency so it's "overlayable" onto an input?
[10:54:46 CEST] <ubitux> not all filters are designed for real time anyway
[11:13:05 CEST] <atomnuker> proposal: how about making decoder pre-skip being handled by utils.c
[11:13:09 CEST] <atomnuker> cc wm4
[11:13:35 CEST] <atomnuker> so the data pointers in avframe would be offset by however many samples the pre-skip is
[11:14:15 CEST] <atomnuker> and nb_samples would be reduced by the preskip as well
[11:15:34 CEST] <atomnuker> thata way users wouldn't need to do anything special for audio formats
[11:17:33 CEST] <wm4> it already does that by default if the side data is used
[11:21:26 CEST] <atomnuker> wm4: ah, nevermind, its because opus is special
[11:21:52 CEST] <atomnuker> where your initial preskip can be arbitrary
[11:30:13 CEST] <wm4> we still should reduce it to 1 mechanism
[11:30:19 CEST] <wm4> instead of having 2 or 3
[11:34:43 CEST] <ZeroWalker> btw is I420 actually planar?
[11:35:00 CEST] <wm4> ffmpeg has no concept of I420
[11:35:39 CEST] <ZeroWalker> will see what ffmpeg translates it to
[11:36:52 CEST] <ZeroWalker> ah yeah it's AV_PIX_FMT_YUV420P, forgot i actually learned that before lol
[11:37:22 CEST] <ZeroWalker> so confusing when the format is called i420 from the source and then it's actually planar -_-
[11:38:39 CEST] <wm4> that's not confusing at all
[11:39:06 CEST] <ZeroWalker> lucky you;p
[11:39:16 CEST] <wm4> I420 usually refers to what ffmpeg calls YUV420P (just that I420 is often used on contexts where the planes are sequential in memory or so)
[11:39:38 CEST] <nevcairiel> not sure what the I is actually supposed to mean, if it means anything at all
[11:41:07 CEST] <ZeroWalker> but wait, isn't planar basically, you have the entire picture in Y, then U then V, it's not sequential, or well i guess it depends what you mean with that
[11:41:36 CEST] <ZeroWalker> yeah the 'i', we will never know what it means
[11:42:00 CEST] <nevcairiel> planar means that each plane is separate, but they might as well be in continous memory
[11:42:22 CEST] <jkqxz> It's perfectly valid with YUV420P for the chroma planes to be line-interleaved, say. Some definitions of I420 might ban that.
[11:44:39 CEST] <ZeroWalker> so wait, how would one determine if it's line interleaved or not?
[11:45:37 CEST] <jkqxz> Look at the pointers and linesizes. It doesn't matter to any software implementation, but hardware might care.
[11:46:06 CEST] <ZeroWalker> yeah well as i am working on shader conversion, that's probably kinda important xd
[11:49:10 CEST] <ZeroWalker> looking at the linesize it seems to be, 640,320,320 in this case. so i guess it's line interleaved, or:s?
[11:49:21 CEST] <nevcairiel> its not.
[11:49:34 CEST] <nevcairiel> that wouldnt really happen on software frames that avcodec outputs
[11:49:40 CEST] <nevcairiel> but it is in theory possible
[11:49:58 CEST] <ZeroWalker> this is an input, sorry about that
[11:50:13 CEST] <ZeroWalker> so it's produced by a webcam in this case
[11:50:41 CEST] <ZeroWalker> and i got the linesize by filling it out with the format
[11:50:43 CEST] <J_Darnley> Stop confusing the poor bastard. Treat planes as planes in separate areas of memory.
[11:51:04 CEST] <ZeroWalker> :(
[11:52:37 CEST] <ZeroWalker> but that doesn't tell me that much, i mean, isn't it completely different if it's per line compared to the entire picture being split into 3 parts
[11:52:58 CEST] <J_Darnley> No.
[11:53:12 CEST] <J_Darnley> The data pointer points to the first byte of each plane
[11:53:28 CEST] <J_Darnley> the linesize tells youhow many bytes to the next row.
[11:54:02 CEST] <bencoh> you just end up with a different stride, that's all
[11:54:17 CEST] <J_Darnley> You don't care where exactly the data is relative to each other.
[11:54:39 CEST] <ZeroWalker> yeah well i am going to convert it in a shader, so i would need to be able to determine how it's structure myself. So the data being at different places makes all the difference
[12:11:30 CEST] <cone-103> ffmpeg 03Martin Storsjö 07master:9042402ec78a: d3d11va: Check WINAPI_FAMILY instead of HAVE_LOADLIBRARY
[12:40:11 CEST] <BtbN> I don't get that guys problem. The spec clearly says it has to be greater or equal. So being 1 second greater is perfectly fine and might safeguard for some broken players
[12:40:42 CEST] <BtbN> Never seen him state anything that breaks, except for maybe his sense for aesthetics
[12:44:16 CEST] <JEEB> lol
[12:44:23 CEST] <JEEB> usual case of derp
[12:44:39 CEST] <wm4> has anyone ever seen this assert trigger when building ffmpeg with mingw? https://github.com/bminor/binutils-gdb/blob/master/bfd/cofflink.c#L2341
[12:55:46 CEST] <BtbN> Trac detected an internal error: OperationalError: database is locked
[12:55:47 CEST] <BtbN> hm
[12:59:12 CEST] <Compn> that cant be good
[13:07:13 CEST] <JEEB> that probably means that there was a transaction that required a certain area that another request was trying to poke to be locked
[14:34:29 CEST] <J_Darnley> Do any of you know a good binary diff program? I want to investigate the differences between two files I'm making.
[14:47:01 CEST] <RiCON> J_Darnley: https://github.com/dwbuiten/bxd ?
[14:47:58 CEST] <atomnuker> J_Darnley: vimdiff
[14:48:40 CEST] <atomnuker> best of all, you already have it
[15:17:55 CEST] <J_Darnley> bxd isn't too bad. does exactly what I need from it. It would benefit from knowing page up/down, home, and end keys. Oh and maybe Ctrl-Z to suspend it.
[16:06:37 CEST] <cone-103> ffmpeg 03Vittorio Giovara 07master:8c34a2024da7: h264: Add support for alternative transfer characterics SEI
[16:06:38 CEST] <cone-103> ffmpeg 03Vittorio Giovara 07master:f3571048669b: pixfmt: Support chroma-derived and ictcp color matrices
[16:29:00 CEST] <durandal_1707> http://i.imgur.com/SyoFhJb.png
[17:15:49 CEST] <durandal_1707> nobody likes my demo?
[17:21:15 CEST] <durandal_1707> ok, no reason to continue its developement
[17:22:01 CEST] <ubitux> it's a screenshot of a textarea&
[17:24:05 CEST] <cbsrobot> ffedit - an editor for filtergraph escaping
[17:26:55 CEST] <durandal_1707> lol , coding gui app from sctrach for first time is demanding
[17:28:36 CEST] <ubitux> alias ffedit='ffplay -f lavfi "$(zenity --entry --text=filtergraph:)"'
[17:35:17 CEST] <durandal_1707> ubitux: ffplay does not allow frame accurate seeking
[17:35:46 CEST] <ubitux> lavfi doesn't allow seeking
[17:36:17 CEST] <durandal_1707> but one can seek to certain point
[17:36:41 CEST] <ubitux> you can replace ffplay with mpv if you prefer :p
[17:36:56 CEST] <ubitux> mpv has a lavfi input, no?
[17:37:28 CEST] <durandal_1707> mpv is mplayer offspring
[17:38:36 CEST] <durandal_1707> besides idea is not playback, but real gui
[18:41:59 CEST] <thebombzen> the patch I just sent (replacing --full-help with --fullhelp) fixes a typo in the documentation
[18:42:48 CEST] <thebombzen> I assume this is not controversial but if I missed some conventions I can resend
[19:08:54 CEST] <atomnuker> durandal_1707: is it going to be like a non-linear editor?
[19:09:42 CEST] <atomnuker> or is it just going to do basic trimming/picking a segment and applying effects on it (which change over time)?
[19:09:43 CEST] <kierank> avfilter can't seek so no
[19:10:34 CEST] <atomnuker> k, there are dozens of nles anyway
[19:12:34 CEST] <atomnuker> (lavfi doesn't really need to handle seeking imo, its up to the user to skip and feed it frames from another time)
[19:18:23 CEST] <durandal_1707> yes thats main idea, also what ubitux said providing nice 2D filtergraph view
[19:20:44 CEST] <thebombzen> you mean we're going to stop saying "get an NLE" whenever someone wants to do some really complicated non-sequential splice-and-edit
[20:24:38 CEST] <atomnuker> huh, an rpi 1 boots up fine with a 64 gig sd card
[20:25:12 CEST] <atomnuker> an overkill considering how slow it is, might as well make it run fate twice a day
[20:25:35 CEST] <atomnuker> fact: an rpi 1 consumes as much current under load as it does idling
[20:33:35 CEST] <kierank> atomnuker: lol rpi1
[21:00:46 CEST] <rcombs> can I use a Pi3 as an aarch64 dev board yet
[21:01:07 CEST] <rcombs> if not, what should I buy
[21:01:19 CEST] <rcombs> I need to get off my ass and learn ARM
[21:01:54 CEST] <BtbN> An actual arm64 android phone I guess?
[21:02:20 CEST] <rcombs> something with a real OS
[21:02:42 CEST] <rcombs> I mean, I once did get gcc running on android
[21:02:46 CEST] <rcombs> but it was hellish
[21:03:10 CEST] <rcombs> and I lost it all in an OS update (turns out those wipe the root partition)
[21:03:57 CEST] <BtbN> you can setup a debian chroot on android
[21:04:10 CEST] <BtbN> the root partition is usually wiped on reboot
[21:04:15 CEST] <BtbN> as it's only a tmpfs
[21:05:11 CEST] <BtbN> I might have to RMA my Ryzen...
[21:05:34 CEST] <BtbN> It's affected by the "crash while compiling gcc or mesa"
[21:08:04 CEST] <ubitux> rcombs: no you can't, unless you don't want PMU counters, wifi, or anything gpu related
[21:08:10 CEST] <ubitux> odroid is still okish
[21:08:22 CEST] <atomnuker> rcombs: I have an rpi3 running archlinux arm in 64 bit mode
[21:08:32 CEST] <BtbN> where did you get the firmware?
[21:08:35 CEST] <ubitux> atomnuker: with perf counters? :)
[21:08:55 CEST] <rcombs> that reminds me that I really need to learn to use linux's perf system
[21:08:56 CEST] <ubitux> rcombs: i'm currently waiting for the nanopi neo 2, for which i have some relatively high expectation
[21:09:00 CEST] <rcombs> I'm spoiled by Instruments on macOS
[21:09:05 CEST] <atomnuker> with absolutely nothing needing firmware, so only a CPU and an ethernet port, that's it
[21:09:07 CEST] <ubitux> (it might be available already depending on your country)
[21:09:12 CEST] <atomnuker> no wifi, bluetooth or even temperature sensor
[21:09:28 CEST] <rcombs> is there anything like that for perf
[21:09:31 CEST] <atomnuker> usb was unstable too I think when I tried it
[21:09:40 CEST] <rcombs> (Instruments is a GUI for dtruss, basically)
[21:10:32 CEST] <atomnuker> I can't imagine writing simd without the conveniences of x86_64 has
[21:10:48 CEST] <atomnuker> s/has//
[21:11:17 CEST] <J_Darnley> An operating system that works is now a convenience?
[21:11:44 CEST] <atomnuker> sure you have more registers than you know what to do with but the very last thing you do when writing simd is using more regs than you can skimp with
[21:12:32 CEST] <rcombs> ubitux: it is!
[21:12:42 CEST] <ubitux> you sure?
[21:12:50 CEST] <rcombs> yeah, it's on Amazon
[21:12:57 CEST] <ubitux> url?
[21:13:06 CEST] <ubitux> you checked it's the h5 cpu?
[21:13:09 CEST] <rcombs> https://www.amazon.com/Allwinner-High-performance-Quad-Core-Running-UbuntuC…
[21:13:16 CEST] <ubitux> sounds like it
[21:13:26 CEST] <ubitux> i have to wait for end of september for my country, but well
[21:13:36 CEST] <atomnuker> allwinner is junk
[21:13:48 CEST] <ubitux> anyway, i can't give any guarantee, though there are a lot of mainline effort for these boards
[21:13:55 CEST] <ubitux> atomnuker: mainline support is good :)
[21:13:56 CEST] <J_Darnley> BtbN: Is there any Ryzen that isn't affected by that bug? I have heard that EPYC and ThreadRipper might not be
[21:14:17 CEST] <BtbN> From the looks of it, only the very first few production runs are affected
[21:14:18 CEST] <ubitux> atomnuker: basically, only sunxi boards give me mainline support
[21:14:28 CEST] <BtbN> so just getting a replacement that was manufactured later fixes it
[21:14:29 CEST] <ubitux> which is a shame given the shady company, but the community does a good work
[21:14:50 CEST] <J_Darnley> Ah that's good no know. The longer I delay in buying one myself the better my chances.
[21:14:54 CEST] <ubitux> damnit, that nanopi form factor is cute
[21:14:55 CEST] <atomnuker> I've had nothing but bad experiences with allwinner, though that was 4 years ago now
[21:15:02 CEST] <rcombs> so, what, ODROID-C2 if I want something that performs well for testing?
[21:15:05 CEST] <atomnuker> they were also very hardcore android-centric
[21:15:15 CEST] <BtbN> buying one right now is pretty much safe
[21:15:25 CEST] <BtbN> week 25 of 2017 is confirmed fine
[21:15:38 CEST] <BtbN> I have no idea what week mine is, as I'd have to disassemble the PC to check
[21:15:40 CEST] <ubitux> any news on mainline for the odroid?
[21:15:58 CEST] <atomnuker> ubitux: yeah, armbian works
[21:16:10 CEST] <ubitux> patched kernel?
[21:16:17 CEST] <atomnuker> nope, though its ubuntu based junk and not debian
[21:16:25 CEST] <ubitux> 4.12?
[21:16:27 CEST] <J_Darnley> Even better. I'm still delaying because I am cheap
[21:16:28 CEST] <atomnuker> (why did these idiots call it armbian then)
[21:16:30 CEST] <atomnuker> yes
[21:16:30 CEST] <BtbN> The problem is, to RMA it, I'd have to send it back to AMD
[21:16:42 CEST] <BtbN> And they don't give me an intermediate replacement
[21:16:44 CEST] <ubitux> 4.12 doesn't have mmc support iirc
[21:16:46 CEST] <BtbN> and it takes 4-6 weeks
[21:16:52 CEST] <ubitux> sdcard* support
[21:17:17 CEST] <atomnuker> ubitux: I guess, I only ran it from the 1 emmc I had
[21:17:40 CEST] <ubitux> how are you booting the first time?
[21:17:46 CEST] <rcombs> is there any particular advantage of the NanoPi over the Odroid
[21:17:50 CEST] <rcombs> other than it being cheap and tiny
[21:18:23 CEST] <ubitux> i'd say the nanopi is faster, but you need to check
[21:18:31 CEST] <ubitux> again, haven't bought it yet
[21:18:41 CEST] <atomnuker> ubitux: normally? I tried that 2 months ago and it worked fine until the polyfuse blew, I thought it broke and ordered another c2
[21:18:49 CEST] <ubitux> :D
[21:20:16 CEST] <rcombs> they're both A53s
[21:20:30 CEST] <BtbN> I might just buy a 100¬ R3 quad core for the mean time and try to sell it off later :(
[21:21:14 CEST] <ubitux> rcombs: ah, yeah well, go for odroid
[21:21:19 CEST] <rcombs> Odroid at 2GHz, NanoPi at& apparently 1.2GHz?
[21:21:47 CEST] <rcombs> presumably for thermal reasons
[21:21:58 CEST] <rcombs> I had trouble finding a clock figure for the NanoPi
[21:22:31 CEST] <ubitux> nanopi is recent
[21:22:43 CEST] <rcombs> well Odroid had it in their product description
[21:22:45 CEST] <ubitux> you'll have to dig your way to get it work
[21:23:09 CEST] <rcombs> alright, going with the Odroid; wish me luck
[21:23:19 CEST] <jamrial> BtbN: that crash can't be fixed with microcode update?
[21:45:49 CEST] <iive> BtbN: are you in europe?
[21:46:02 CEST] <BtbN> yes
[21:46:32 CEST] <iive> i think that the the one you bought the part takes all the troubles
[21:46:41 CEST] <iive> i mean, the shop
[21:47:19 CEST] <BtbN> I already asked the shop. They hadn't heard from the issue at all so far. And most news articles about it tell you to contact AMD directly
[21:47:38 CEST] <iive> by law. they MUST do one of the following: 1. repair in 1 month; 2. replace 3. return your money.
[21:48:01 CEST] <BtbN> Yeah, but even then, I'd be one month without CPU :D
[21:48:26 CEST] <BtbN> I'm gonna call them tomorrow
[21:48:29 CEST] <BtbN> and ask
[21:48:36 CEST] <iive> ask them fore replacement.
[21:48:39 CEST] <iive> for
[21:48:54 CEST] <BtbN> I want a replacement that is known good though. And AMD can provide that. the shop can't
[21:49:03 CEST] <BtbN> Even though pretty much all their R7 stock they have now should be good
[21:49:31 CEST] <iive> BtbN: they should be OK with replacement, because the part you return would be replaced by AMD
[21:50:06 CEST] <BtbN> Yeah, but it'd still take a while
[21:51:30 CEST] <iive> BtbN: it might be good idea to read the law of your country. a lot of shops like to bulshit their customers ;)
[21:51:43 CEST] <BtbN> I can return it with them just fine
[21:51:53 CEST] <BtbN> it's just that I don't want to. Because I have only that one CPU
[21:52:21 CEST] <iive> just ask for replacement. The shop is not taking a financial hit
[21:52:37 CEST] <iive> they will sell the replacement they get from AMD as a new CPU to somebody else.
[21:52:47 CEST] <BtbN> Yeah, but the way it works is I send them the old one, they check it, maybe send it to AMD for a check, and when it's confirmed, I get the replacement
[21:53:13 CEST] <iive> no, you ask the shop for replacement.
[21:53:17 CEST] <iive> you don't care about AMD
[21:53:28 CEST] <iive> that's problem of the shop, not yours
[21:55:38 CEST] <BtbN> I also can't find the small plastic holder thing the CPU belong into anymore
[21:55:50 CEST] <BtbN> so without a replacement, I absolutely can't safely package it
[21:56:18 CEST] <iive> you'll find it. when you don't need it anymore ;)
[21:56:35 CEST] <BtbN> I might have actually thrown it away
[21:57:06 CEST] <iive> that's bad
[21:57:09 CEST] <wm4> <BtbN> It's affected by the "crash while compiling gcc or mesa" <- what's this about anyway?
[21:57:35 CEST] <iive> yeh, i was about to ask if the problem has been ... explained
[21:57:36 CEST] <BtbN> compiling gcc and mesa randomly crashes gcc on early Ryzen CPUs
[21:57:47 CEST] <iive> it should have been diagnosed and fixed.
[21:58:05 CEST] <BtbN> They only said they could reproduce it and are investigating it
[21:58:14 CEST] <BtbN> and they said it only affects the very first few batches of ryzen CPUs
[21:58:20 CEST] <iive> so, no microcode update that fixes it?
[21:58:27 CEST] <BtbN> not yet at least
[21:58:32 CEST] <J_Darnley> I haven't seen talk about a fix yet (but I haven't been looking)
[21:58:44 CEST] <BtbN> and if it's actually bad silicon, I don't want a CPU that has that
[21:59:22 CEST] <iive> can you reproduce it yourself?
[21:59:26 CEST] <BtbN> yes, easily
[21:59:34 CEST] <BtbN> just building gcc crashes after a few minutes
[21:59:48 CEST] <BtbN> gcc just randomly segfaults
[22:00:54 CEST] <BtbN> to make things more weird, it's only when compiling specific things
[22:01:00 CEST] <BtbN> like, I can build webkit or libreoffice just fine.
[22:01:07 CEST] <BtbN> It's specifically gcc that always crashes
[22:01:09 CEST] <BtbN> and sometimes mesa
[22:01:24 CEST] <BtbN> The system is also not unstable otherwise
[22:01:29 CEST] <BtbN> I can run Prime95 for hours on end
[22:13:40 CEST] <iive> it's probably something wierd, like the i7 mov ah/al collision
[22:14:12 CEST] <BtbN> On Windows, the DX12 CPU Benchmark of Ashes of Singularity also crashes every time
[22:14:18 CEST] <BtbN> So it's not something linux exclusive
[22:14:29 CEST] <BtbN> and building stuff in bash-for-windows also shows the same crashes
[22:15:27 CEST] <iive> it might be cache related, e.g. if there is some access pattern that loads and replaces cache entries.
[22:16:42 CEST] <BtbN> Disabling OpCache does mostly mitigate it
[22:16:45 CEST] <BtbN> as does disabling SMT
[22:16:49 CEST] <BtbN> As does not using Core 0
[22:17:00 CEST] <BtbN> But all just "almost mitigate" it
[22:17:07 CEST] <BtbN> it still happens, just not as frequently
[22:17:10 CEST] <iive> opcache, is that instruction cache?
[22:17:13 CEST] <J_Darnley> :)
[22:17:25 CEST] <BtbN> No idea, the bios calls the option just "OpCache Enable/Disable"
[22:17:29 CEST] <BtbN> with no further explanation
[22:18:14 CEST] <iive> micro-op cache.
[22:19:20 CEST] <BtbN> Disabling all but one core makes it happen even faster
[22:19:32 CEST] <BtbN> Read some people speculating about interrupt handlers being involved
[22:20:27 CEST] <JEEB> at least it seems like the ryzen segfaults do not happen with threadripper/epyc
[22:20:45 CEST] <JEEB> so while it sucks, it seems to have been taken care of
[22:21:27 CEST] <iive> BtbN: does it happen if you never use core0 ?
[22:21:57 CEST] <BtbN> yes
[22:22:06 CEST] <BtbN> but less frequently
[22:22:28 CEST] <BtbN> JEEB, they supposedly also don't happen with later production batches
[22:22:37 CEST] <BtbN> basically only the people who got it on day 1 are affected
[22:22:53 CEST] <BtbN> So just getting any replacement will most likely be good
[22:23:01 CEST] <JEEB> ouch
[22:23:32 CEST] <BtbN> It's most likely just a bad batch
[22:25:21 CEST] <cone-618> ffmpeg 03Marton Balint 07master:493f637d1e93: ffplay: add support for rendering yuv images with negative line size
[22:25:22 CEST] <cone-618> ffmpeg 03Marton Balint 07master:7004ac5eeb8e: ffplay: add support for displaying rgb images with alpha
[22:25:23 CEST] <cone-618> ffmpeg 03Marton Balint 07master:3bd2228d05a0: ffplay: add support for more SDL pixel formats when rendering video
[22:30:45 CEST] <rcombs> atomnuker: btw, which x86_64 conveniences are you referring to?
[22:30:57 CEST] <rcombs> the nasm macro engine and x86inc?
[22:32:01 CEST] <rcombs> or other features of the nasm assembly syntax over GNU (labels, etc)?
[22:37:28 CEST] <atomnuker> rcombs: being able to add a multiple of a register plus a constant as an offset to memory for free
[22:37:42 CEST] <rcombs> 0.o ARM doesn't have that?
[22:37:53 CEST] <rcombs> I guess it'd take up too much space in the instruction encoding
[22:38:25 CEST] <rcombs> as much as people hate x86's variable-length encoding& I suppose it's there for a reason
[22:39:57 CEST] <iive> yeh
[22:40:01 CEST] <JEEB> ugh, https://github.com/mozilla/rr/issues/2034#issuecomment-304445368
[22:40:16 CEST] <JEEB> seems like Ryzen has some other issues?`unless these are also limited to first gen
[22:43:40 CEST] <cone-618> ffmpeg 03Marton Balint 07master:498c90c70844: avfilter/vf_overlay: fix alpha blending for planar formats with a transparent background
[22:45:13 CEST] <BtbN> I don't even understand what that stuff is about
[22:46:56 CEST] <atomnuker> hard to replicate, one in a thousand runs bugs
[22:47:24 CEST] <JEEB> I think they did deduce the bug to an easily replicate'able case
[22:47:38 CEST] <BtbN> Wonder if it's related
[22:47:46 CEST] <BtbN> should try on a known-good CPU
[23:55:38 CEST] Action: kepstin has one of the affected ryzen chips, and something in the code generation from gcc 6 makes the segfaults happen a lot less often than with older gcc versions, it seems
[23:55:52 CEST] <kepstin> kinda weird, really.
[23:56:46 CEST] <Compn> or someone fixed gcc6...
[23:56:49 CEST] <Compn> more likely
[23:57:02 CEST] <Compn> a workaround for a buggy proc
[00:00:00 CEST] --- Fri Aug 11 2017
1
0
[00:28:14 CEST] <durandal_1707> ultrav1olet: what version?
[00:30:17 CEST] <argoneus> hello
[00:30:36 CEST] <ultrav1olet> durandal_1707: I copy-pasted -ss 00:XX:XX - obviously the result became shorter. Sorry, I'm an idiot ;-)
[00:30:56 CEST] <argoneus> I have a .mkv file with english subtitles and I'm using ffmpeg -i file.mkv -filter_complex "[0:v][0:s]overlay[v]" -map "[v]" -map 0:a:1 output.mp4
[00:31:09 CEST] <argoneus> but for some reason the resulting mp4 is missing the hardcoded subtitles?
[00:33:26 CEST] <dl2s4> are you sure they are hardcoded? i guess hardcoded subtitles does not disappear just so
[00:33:35 CEST] <argoneus> well
[00:33:42 CEST] <argoneus> when I open the .mkv in my video player I can choose them
[00:33:54 CEST] <argoneus> but when I open the mp4 there's no subtitles anymore nor are there any in the video
[00:36:09 CEST] <notdaniel> any tips on nvenc optimization? missing some of the x264 parameters :/ been setting a max bitrate and buffer size but otherwise just using -cq
[00:36:09 CEST] <dl2s4> yeah they are not hardcoded then. you should be able to mux in the subtitles maybe ass, srt or whatever format into your mp4 i guess... i guess mp4 allows most subtitles format, could be wrong, not sure how to fix your problem exactly though, i mean how the ffmpeg command would look like.
[00:36:25 CEST] <argoneus> hmm
[00:36:40 CEST] <iive> dl2s4: it supports only its own format(s) for subtitles
[00:37:29 CEST] <ultrav1olet> mp4 is quite picky in regards to subtitles formarts
[00:37:31 CEST] <dl2s4> iive, ok, thanks. argoneus then you would need subtitle format which are supported for mp4
[00:37:47 CEST] <ultrav1olet> you cannot just copy e.g. srt subs to it as far as I remember
[00:39:12 CEST] <argoneus> it doesn't work with .mkv either
[00:40:55 CEST] <iive> mkv should take srt, ass and vobsub
[00:42:19 CEST] <argoneus> it's dvd subtitles
[00:42:30 CEST] <argoneus> not sure if that changes anything
[00:44:22 CEST] <iive> vobsub are dvd subtitles, and they are bitmap based ones
[00:44:35 CEST] <iive> so no easy conversion to text based ones, like srt/ass
[00:45:50 CEST] <argoneus> I just need to take a mkv file
[00:46:06 CEST] <argoneus> and produce a mp4 or similar with the subtitles already in it
[00:46:11 CEST] <argoneus> because where I'm playing these you can't choose subs
[00:46:13 CEST] <argoneus> is there no easy way to do this?
[00:57:23 CEST] <relaxed> you can hard sub them, but it requires encoding
[01:12:08 CEST] <bhuey> Hi, I'd like some help with confguration files
[01:12:45 CEST] <bhuey> I got a .swf URL working with a combination of ffmpeg and ffserver configurations but I really don't understand what's going on there
[01:12:58 CEST] <bhuey> I'd like to eventually get it to work with .mpg format
[01:13:08 CEST] <bhuey> and abandon .swf
[01:13:26 CEST] <bhuey> this a Raspberry Pi 3 btw
[01:13:32 CEST] <bhuey> it's got omx acceleration
[04:03:06 CEST] <LABcrab> Hello room. I have a finnicky .AVI file. It's almost 5 GB and it will only play well in WMP. I made it using Virtual VCR. What should I do to make this a more convenient file? ffmpeg and related tools misrender the file.
[04:04:11 CEST] <dystopia_> misrender how?
[04:04:30 CEST] <dystopia_> x264 is probably the best codec to use atm
[04:04:48 CEST] <LABcrab> It will spit out a random frame from time to time. WMP doesn't do that.
[04:05:49 CEST] <dystopia_> ffmpeg -i in.avi -c:v libx264 -c:a copy out.mkv
[04:06:11 CEST] <dystopia_> or add in -t 60 to test a small sample like
[04:06:19 CEST] <dystopia_> ffmpeg -t 60 -i in.avi -c:v libx264 -c:a copy out.mkv
[04:06:34 CEST] <LABcrab> Yes, but won't this still give me a problem?
[04:07:10 CEST] <dystopia_> test it
[04:07:12 CEST] <dystopia_> then report back
[04:07:21 CEST] <dystopia_> also a pastebin of your media info
[04:07:28 CEST] <dystopia_> and a pastebin of your ffmpeg log
[04:07:33 CEST] <dystopia_> would help diagnose issues
[04:08:34 CEST] <LABcrab> Still doing it. :-(
[04:13:13 CEST] <LABcrab> https://pastebin.com/MrmD8iER
[04:17:23 CEST] <LABcrab> The audio portion (PCM) works just fine. It's the video (RAW) that is giving me a problem.
[04:30:11 CEST] <LABcrab> Can anyone help me with the raw file, please?
[05:14:44 CEST] <dystopia_> sorry i was afk LABcrab
[05:14:54 CEST] <dystopia_> it's 4:2:2
[05:15:01 CEST] <dystopia_> you should probably make it 4:2:0
[05:15:14 CEST] <LABcrab> How can I do this?
[05:15:35 CEST] <LABcrab> I've extracted all the frames as BMP.
[05:16:41 CEST] <dystopia_> add -pix_fmt yuv420p
[05:17:05 CEST] <dystopia_> ffmpeg -t 30 -i in.avi -c:v libx264 -pix_fmt yuv420p -c:a copy out.mkv
[05:18:09 CEST] <LABcrab> Should I change something in my Virtual VCR settings?
[05:18:27 CEST] <dystopia_> i don't know
[05:18:39 CEST] <dystopia_> it's up to you what your capturing and how you want to do it
[05:59:31 CEST] <LABcrab> I redid the capturing and almost all errors are gone. No more indexing and so forth. I still need to fix a small part at the end of the music video, but it shouldn't be a big deal.
[06:40:20 CEST] <HoPollo> Hello there, can someone help me about ndi pls ?
[11:17:14 CEST] <ultrav1olet> I'm trying to mux my video with UTF-8 subs and ffmpeg doesn't like that
[11:17:50 CEST] <ultrav1olet> Unable to recode subtitle event "Meet my fiancý," from UTF-8 to UTF-8
[11:17:52 CEST] <ultrav1olet> Error while decoding stream #1:0: Invalid or incomplete multibyte or wide character
[11:18:26 CEST] <ultrav1olet> this doesn't work: "-sub_charenc UTF-8 -i subs.srt"
[11:18:41 CEST] <ultrav1olet> the subtitles file is a valid UTF-8 file
[11:18:44 CEST] <BtbN> that does not look like they are in UTF-8. The error means it encountered a character that's not UTF-8
[11:19:19 CEST] <ultrav1olet> the file is indeed UTF-8 :(
[11:19:29 CEST] <ultrav1olet> "Meet my fiancée"
[11:19:51 CEST] <ultrav1olet> 7-bit ascii -> Meet my fianc.e
[11:20:22 CEST] <ultrav1olet> ooops, 8859-1 "Meet my fiancée" also works
[11:20:26 CEST] <ultrav1olet> strange
[11:21:36 CEST] <ultrav1olet> BtbN: thanks, ISO 8859-1 works :-)
[13:35:08 CEST] <flok420> I get "int avcodec_copy_context(AVCodecContext*, const AVCodecContext*) is deprecated" what is the alternative? the examples in google show something that uses a codec member of a structure but apparently that codec-member is deprecated as well?
[13:37:16 CEST] <JEEB> you create your own avcodec context and if you want to initialize it from the codec parameters of a stream you use avcodec_parameters_to_context
[13:37:26 CEST] <JEEB> for the input that is
[13:37:43 CEST] <JEEB> for output you should be creating your own lavc context in any case
[13:43:33 CEST] <flok420> so, AVCodecContext *codec_ctx = avcodec_alloc_context3(codec); avcodec_parameters_to_context(codec_ctx, format_ctx->streams[video_stream_index]->codecpar); ? (I'm trying to adapt an example I found on stackoverflow to reflect the deprecation changes: https://stackoverflow.com/questions/10715170/receiving-rtsp-stream-using-ff… )
[13:46:15 CEST] <flok420> oh, no, something fails now: [swscaler @ 0xf3b9a0] bad src image pointers
[13:51:51 CEST] <JEEB> flok420: I recommend just looking at the examples under docs/examples :P
[13:51:57 CEST] <JEEB> those take you through demuxing
[13:52:07 CEST] <JEEB> and to be honest "receiving RTSP" is nothing special
[13:52:52 CEST] <JEEB> the only thing you have to keep in mind that you want to look at an example that uses the avcodec_send_packet | avcodec_receive_frame
[13:52:58 CEST] <JEEB> new decoding APIs
[13:53:09 CEST] <JEEB> (encoding side has the same thing, where the API consists of two end points)
[13:53:16 CEST] <JEEB> feed with one, receive from another
[13:53:28 CEST] <JEEB> and both can tell you to try again after poking the other
[13:56:54 CEST] <flok420> JEEB: ok, I will. thank you for your time!
[14:38:46 CEST] <flok420> 1 warning left! \o/
[16:02:52 CEST] <T-K1> hi i'm trying to have ffmpeg read from an existing stream but it's complaining about the port, am I doing something wrong? ffmpeg -i udp://127.0.0.1:41234 thestream.mp4
[16:03:44 CEST] <T-K1> [udp @ 0x3131800] bind failed: Address already in use
[16:34:14 CEST] <dystopia_> hello
[16:34:33 CEST] <dystopia_> using concat to join 2 .m2ts files, but my output no longer has audio
[16:34:35 CEST] <dystopia_> https://pastebin.com/raw/QEiwYH9L
[16:34:52 CEST] <dystopia_> anyone know why ? it looks like it's catting the audio in the log
[16:40:50 CEST] <alexpigment> dystopia: what if you just do a stream copy on one into a new m2ts container?
[16:41:02 CEST] <alexpigment> in my experience, the ts muxer in ffmpeg sucks, and i've gotten the same result many time
[16:41:04 CEST] <alexpigment> *times
[16:41:13 CEST] <alexpigment> completely unrelated to concat in my experience
[16:42:32 CEST] <dystopia_> how would i do that alexpigment?
[16:42:32 CEST] <atomnuker> ts sucks period, you can't make it not suck
[16:42:42 CEST] <dystopia_> this is my first time working with m2ts
[16:43:17 CEST] <alexpigment> dystopia: just do ffmpeg -i [input] -c copy -f mpegts [output.m2ts]
[16:43:29 CEST] <alexpigment> atomnuker: i disagree with this whole-heartedly, but to each his own ;)
[16:43:58 CEST] <alexpigment> i mean, sure, it may not be as robust as MKV, but it's supported natively by more systems, both in the user and commercial world
[16:44:10 CEST] <alexpigment> and with a good muxer like Tsmuxer, everything works fine
[16:44:15 CEST] <dystopia_> so "ffmpeg -i 1.m2ts -1 2.m2ts -c copy -f mpegts out.m2ts" ?
[16:45:17 CEST] <atomnuker> alexpigment: its not robust, its very wasteful and it doesn't support new technologies
[16:45:18 CEST] <alexpigment> yeah
[16:45:24 CEST] <dystopia_> it's running now, will see how it ends up :)
[16:45:36 CEST] <alexpigment> dystopia: sorry, no
[16:45:39 CEST] <alexpigment> i meant just one video
[16:45:41 CEST] <dystopia_> when i get the files joined atomnuker it will be going to x264 :)
[16:45:52 CEST] <dystopia_> then how do i add the second video alexpigment?
[16:46:00 CEST] <dystopia_> i already have 2x 1 video :p
[16:46:13 CEST] <alexpigment> this is not a 'fix'; this is verifying that the problem just exists in general, regardless of concat
[16:46:38 CEST] <alexpigment> if you get audio when just doing a stream copy for one file, then you can ignore the concat part of the issue
[16:46:54 CEST] <alexpigment> i said that backwards, but hopefully you get my point ;)
[16:48:02 CEST] <alexpigment> atomnuker: i get that it's not the newest technology. it was created a very long time ago and has been slow to update. but it's a professional standard and works very well on more systems than MKV does
[16:48:18 CEST] <alexpigment> like, for instance, a fresh install of Windows 7
[16:49:28 CEST] <alexpigment> MKV only works if you install a bunch of crap. the average person will install VLC, which is a horrible piece of shit, and probably end up watching improperly deinterlaced content (480i and 1080i are common in ts files)
[16:50:18 CEST] <dystopia_> no audio doing that alexpigment
[16:50:25 CEST] <alexpigment> that's what i figured
[16:50:26 CEST] <dystopia_> but again it looks like it's copying the audio
[16:50:30 CEST] <alexpigment> ok, so ffmpeg is not your tool :)
[16:50:36 CEST] <alexpigment> is it PCM audio, by chance?
[16:50:46 CEST] <dystopia_> yeah 24bit
[16:50:51 CEST] <alexpigment> yep
[16:51:17 CEST] <dystopia_> i can encode in segments and then cat afterwards
[16:51:22 CEST] <dystopia_> but thats meh
[16:51:29 CEST] <dystopia_> would like to just set it going and leave it
[16:51:38 CEST] <alexpigment> that's a long-standing issue that I would someone would fix, but there are too many people out there who naively think that TS is a format not worth working on, rather than, you know, a huge international standard ;)
[16:51:40 CEST] <furq> no audio in what
[16:51:48 CEST] <furq> in what player
[16:51:54 CEST] <dystopia_> [15:34:35] <dystopia_> using concat to join 2 .m2ts files, but my output no longer has audio
[16:51:54 CEST] <dystopia_> [15:34:36] <dystopia_> https://pastebin.com/raw/QEiwYH9L
[16:51:59 CEST] <dystopia_> no audio in the file furq
[16:52:03 CEST] <alexpigment> furq: it's a problem with streams not getting copied into TS files in general
[16:52:12 CEST] <dystopia_> looking in media info, and playing in mpc
[16:52:15 CEST] <dystopia_> no audio is present
[16:53:14 CEST] <alexpigment> dystopia_ do you *need* ffmpeg for this? I know tsmuxer should be able to do it
[16:53:29 CEST] <furq> if you're reencoding anyway then don't mux to ts
[16:53:39 CEST] <furq> you might as well just use the concat filter if you're reencoding
[16:53:58 CEST] <dystopia_> so go to which container then?
[16:54:06 CEST] <furq> probably mkv
[16:54:08 CEST] <alexpigment> MKV doesn't have the same issue
[16:54:15 CEST] <dystopia_> ok :)
[16:54:16 CEST] <dystopia_> testing now
[16:54:48 CEST] <dystopia_> [matroska @ 0000000002c22f00] No wav codec tag found for cod
[16:54:48 CEST] <dystopia_> av_interleaved_write_frame(): Invalid argument
[16:54:48 CEST] <dystopia_> Error writing trailer of Red.Night.mkv: Invalid argument
[16:54:51 CEST] <atomnuker> alexpigment: "professional" is a bad word when talking about multimedia
[16:54:53 CEST] <dystopia_> yeah it didn't like that
[16:54:59 CEST] <atomnuker> professional things suck
[16:55:00 CEST] <dystopia_> i will give ts muxer a shot
[16:55:16 CEST] <alexpigment> atomnuker: all television. all blu-ray. is that a better description?
[16:55:33 CEST] <furq> try adding -c:a pcm_s24le
[16:55:38 CEST] <dystopia_> ok
[16:55:39 CEST] <furq> mkv should definitely support 24-bit pcm
[16:55:53 CEST] <alexpigment> furq: it might not support 24be maybe?
[16:56:07 CEST] <furq> maybe
[16:56:07 CEST] <alexpigment> assuming this is coming from a blu-ray disc, i'm pretty sure they use 24-bit big endian
[16:56:11 CEST] <furq> yeah
[16:56:13 CEST] <dystopia_> it's running furq
[16:56:15 CEST] <furq> pcm_bluray is big endian
[16:56:45 CEST] <furq> i doubt the endianness makes a difference, it probably just can't find the codec tag
[16:56:59 CEST] <alexpigment> fair point
[16:57:07 CEST] <furq> but going to pcm_s24[bl]e is lossless anyway
[16:57:09 CEST] <atomnuker> alexpigment: not all television, only compressed one and uncompressed is already pretty much taking over
[16:57:21 CEST] <atomnuker> for studio-studio stuff
[16:57:36 CEST] <alexpigment> atomnuker: what television system do you know of that doesn't use TS?
[16:57:56 CEST] <atomnuker> uncompressed internal stuff
[16:58:13 CEST] <alexpigment> yeah, mxf and mov are big for intermediate stuff
[16:58:17 CEST] <alexpigment> i'm talking about deliverables
[16:58:29 CEST] <JEEB> raw streams over IP is what atomnuker is talking about
[16:58:39 CEST] <JEEB> within the broadcast studio to feed into encoders
[16:58:51 CEST] <JEEB> well, "studio"
[16:58:55 CEST] <alexpigment> that's fine; i just said that all television and all blu-ray use TS
[16:59:20 CEST] <alexpigment> which is really just to say that TS is a HUGE standard. it's not some weird format
[16:59:53 CEST] <atomnuker> it is a weird format
[16:59:57 CEST] <alexpigment> as a person who authors blu-ray discs regularly, i deal with it every single day
[16:59:59 CEST] <atomnuker> what sane format uses 188 byte packets
[17:00:20 CEST] <alexpigment> atomnuker: your opinions on this are really just misinformed. i'm done with this conversation
[17:01:02 CEST] <JEEB> (note: he works in broadcast so he has most definitely worked with the internals of MPEG-TS :D)
[17:01:07 CEST] <JEEB> or well, he *used* to work
[17:02:02 CEST] <dystopia_> that worked furq
[17:02:13 CEST] <dystopia_> but the output mkv is 800mb smaller than the source files
[17:02:23 CEST] <dystopia_> did i just loose meta data and stuff like that?
[17:02:25 CEST] <alexpigment> dystopia: you're probably missing some streams
[17:02:26 CEST] <furq> no
[17:02:32 CEST] <furq> that's normal for mpegts to mkv
[17:02:33 CEST] <alexpigment> unless it's a REALLY long file
[17:02:41 CEST] <dystopia_> ok
[17:02:46 CEST] <dystopia_> tyvm :)
[17:02:53 CEST] <furq> video:16784092kB audio:1292961kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.315392%
[17:02:59 CEST] <alexpigment> ah, nm then
[17:03:05 CEST] <furq> note the muxing overhead
[17:03:07 CEST] <alexpigment> lots of null packets i suppose
[17:20:58 CEST] <El_Porro> hello
[17:24:57 CEST] <El_Porro> is there any way to redirect output stream to an audio-video player like can do RTMPdump or other streaming tools ?
[17:32:23 CEST] <El_Porro> is there any link i can follow ?
[17:42:53 CEST] <porro> is there any way to redirect an output ffmpeg stream to an audio-video player ?
[17:48:06 CEST] <markmedes2> Friends, I'm trying to set the number of threads on ffmpeg, but it's not working. Do you know why?
[17:48:36 CEST] <alexpigment> markmedes2 - are you using the libx264 encoder?
[17:48:43 CEST] <markmedes2> yes
[17:48:49 CEST] <alexpigment> and i presume you're specifying -threads [#]
[17:48:54 CEST] <markmedes2> yes
[17:49:04 CEST] <alexpigment> no clue, then. that should work
[17:49:34 CEST] <markmedes2> I want to use less cores so I can keep using the machine, but it's always using all of them
[17:49:41 CEST] <alexpigment> oh
[17:49:50 CEST] <alexpigment> i don't think those two things necessarily correlate
[17:50:45 CEST] <alexpigment> having said that, how many threads are you specifying, how many logical cores do you have, and what CPU % is ffmpeg taking up?
[17:51:34 CEST] <markmedes2> I have 4 logical cores, intel i5. I'm asking ffmpeg to use 3 or less, I've specified 1 thread, 2 and 3, but it keeps using all four
[17:51:57 CEST] <markmedes2> pretty much 100% usage
[17:51:58 CEST] <alexpigment> is ffmpeg taking up 25% CPU when you specify 1 thread?
[17:52:08 CEST] <markmedes2> no, full 100%
[17:54:06 CEST] <alexpigment> i just verified i'm getting ~14% with 1 thread on my Core i7
[17:54:11 CEST] <alexpigment> what version are you using?
[17:54:52 CEST] <DHE> threading may be used in other ways than you specified. filtering, decoding, and encoding can all be threaded and each takes different args for how to specify the thread counts
[17:55:08 CEST] <markmedes2> version 3.3.2
[17:55:34 CEST] <markmedes2> oh, that's new info for me
[17:55:40 CEST] <alexpigment> DHE makes a good point. decoding shouldn't generally account for the rest of the 100%
[17:55:50 CEST] <alexpigment> but do you have any filtering going on?
[17:56:01 CEST] <markmedes2> yes, I'm scalling
[17:56:04 CEST] <alexpigment> libx264 itself will generally respect the thread count
[17:56:31 CEST] <markmedes2> is there a doc on how to use all those different args?
[17:57:23 CEST] <alexpigment> can you check to make sure it's sitting at around 25% when you take out the scaling?
[17:57:43 CEST] <markmedes2> no right, now, I'm currently encoding, should take some time
[17:58:37 CEST] <alexpigment> and just to be clear, ffmpeg itself is taking up nearly 100%, right? i want to make sure you're not looking at the overall CPU usage for your system
[17:58:50 CEST] <markmedes2> nope, it's ffmpeg alright
[17:58:54 CEST] <alexpigment> k
[17:58:59 CEST] <alexpigment> are you using lanczos scaling?
[17:59:02 CEST] <alexpigment> or bilinear?
[17:59:18 CEST] <markmedes2> -filter:v scale="640:trunc(ow/a/2)*2"
[17:59:29 CEST] <markmedes2> I'm on freebsd if that matters...
[18:00:36 CEST] <alexpigment> it very well could. that same filter on my brings my CPU usage up above 20% on average, so there is a penalty, but it's nowhere near what you're seeing
[18:00:54 CEST] <alexpigment> i'm on Windows. I can't test freebsd unfortunately
[18:01:01 CEST] <markmedes2> k
[18:02:03 CEST] <markmedes2> well, I'll test it again without scalling when econding is done. I have to go now. Thank you for tips.
[18:02:13 CEST] <thebombzen> DHE: how does one specify multiple threads for a filtergraph :O
[18:03:12 CEST] <jkqxz> There are a lot of things in ffmpeg that might create threads, including external libraries like libx264. If the specific CPU use matters, you are probably better off controlling it externally by the tools your OS offers.
[18:03:37 CEST] <markmedes2> k
[18:03:53 CEST] <jkqxz> The internet suggests that taskset exists on freebsd.
[18:04:15 CEST] <markmedes2> cool
[18:04:20 CEST] <markmedes2> thank you
[18:04:27 CEST] <jkqxz> So set CPU affinity to the first three CPUs and no ffmpeg thread will ever run on the fourth one.
[18:05:50 CEST] <markmedes2> nice thx
[18:25:44 CEST] <relaxed> the power to serve
[18:54:41 CEST] <pgorley> hi, swr_convert's second parameter (in) is a decoded AVFrame's data, right?
[19:17:45 CEST] <LABcrab> Hi! I'm looking to use ffmpeg to output a Theora file, as ffmpeg2theora doesn't work with RAW files for me.
[19:18:33 CEST] <BtbN> Why do you want to use theora? It's... not good
[19:18:48 CEST] <LABcrab> BtbN, it works well on PowerPC.
[19:19:07 CEST] <BtbN> and h264 or vp9 doesnt?
[19:19:19 CEST] <LABcrab> Namely, the G4 Mac. The quality is fine for me. I'm converting from a raw VHS recording in any case.
[19:19:45 CEST] <LABcrab> It's for use with TenFourFox, which doesn't natively support H264.
[19:20:21 CEST] <BtbN> no idea how software decode compares there
[19:21:01 CEST] <LABcrab> It works wonders on 360p.
[19:21:25 CEST] <thebombzen> LABcrab: if you have ffmpeg compiled with libtheora support, you can use the standard ffmpeg syntax
[19:22:09 CEST] <thebombzen> ffmpeg -i input_file -c:v libtheora -b:v VIDEO_BITRATE -c:a libvorbis -q:a 5 output.ogv
[19:22:32 CEST] <LABcrab> Is there such a thing as -q:v? If so, is there something around 3Mbit/s?
[19:22:47 CEST] <LABcrab> 3Mbytes/s is what I meant.
[19:22:52 CEST] <thebombzen> Only if the video encoder supports VBR encoding. I have no idea if libtheora does
[19:23:26 CEST] <thebombzen> You might be able to get away with some -qp:v N, but I recommend just setting the bitrate to 3M if you want that
[19:23:40 CEST] <thebombzen> You can use 2-pass encoding to make it better
[19:23:57 CEST] <LABcrab> ffmpeg -i 1.avi -vcodec libtheora -acodec libvorbis -q:a 6 -b:v 3072k -vf "scale=640:480, crop=640:360, yadif" ~/Desktop/Movie.ogv
[19:24:26 CEST] <thebombzen> You should use -c:v or -codec:v, and -c:a or -codec:a
[19:24:33 CEST] <thebombzen> simply because vcodec and acodec are deprecated
[19:24:44 CEST] <thebombzen> they're not wrong, but good habits are to use new syntax
[19:24:51 CEST] <LABcrab> Yeah. Shorter, too.
[19:24:55 CEST] <thebombzen> also, ffmpeg supports -b:v 3M
[19:25:09 CEST] <LABcrab> How would I add two-pass?
[19:25:10 CEST] <thebombzen> Also, if you're going to deinterlace it, you should do that first
[19:25:26 CEST] <LABcrab> Thus yadif, scale, crop.
[19:25:33 CEST] <BtbN> you deinterlace last.
[19:25:36 CEST] <BtbN> after scaling
[19:25:37 CEST] <thebombzen> really what
[19:25:44 CEST] <thebombzen> but doesn't ffmpeg smudge the scanlines together
[19:26:03 CEST] <BtbN> iirc scale is interlacing aware. But you still do it first, for better quality
[19:26:17 CEST] <BtbN> I meant in that commandline, not how to to it properly
[19:26:21 CEST] <thebombzen> OH
[19:26:24 CEST] <thebombzen> okay I was really confused
[19:26:32 CEST] <BtbN> It should work though
[19:26:38 CEST] <thebombzen> yea LABcrab we mean Yes, you should yadif, scale, crop
[19:26:40 CEST] <BtbN> but the other way around is better
[19:27:23 CEST] <thebombzen> LABcrab: Also, consider using zscale instead of scale if your FFmpeg has zimg support compiled in
[19:27:34 CEST] <thebombzen> otherwise just use scale
[19:27:44 CEST] <LABcrab> It's the ffmpeg in OS X on Intel.
[19:27:56 CEST] <BtbN> OSX has ffmpeg?
[19:27:59 CEST] <BtbN> like, on its own
[19:28:09 CEST] <thebombzen> the easiest way to check is to try using -vf zscale and if it complains that it can't find the filter, then go back to scale
[19:28:20 CEST] <thebombzen> ffmpeg -f lavfi -i testsrc -vf zscale -f null -
[19:28:23 CEST] <thebombzen> what does this say?
[19:29:02 CEST] <thebombzen> either way, to answer your earlier question on how to do 2-pass, you should try this:
[19:29:27 CEST] <LABcrab> It seems like a lot of work to convert an AVI from a VHS.
[19:29:42 CEST] <thebombzen> Not quite, we just don't know what you have available to you
[19:30:19 CEST] <LABcrab> I added ffmpeg. :-)
[19:30:36 CEST] <LABcrab> I installed it from the binaries online. Same with ffmpeg2theora.
[19:31:35 CEST] <thebombzen> for two-pass, do this: ffmpeg -i input -vf yadif,scale=640:480,crop=640:360 -c:v libtheora -b:v 3072k -an -pass 1 -f null -
[19:31:37 CEST] <thebombzen> that's the first pass
[19:32:13 CEST] <thebombzen> then: ffmpeg -i input -vf yadif,scale=640:480,crop=640:360 -c:v libtheora -b:v 3072k -c:a libvorbis -q:a 5 -pass 2 output.ogv
[19:45:06 CEST] <LABcrab> [libtheora @ 0x7f8a53010200] theora_encode_YUVin failed (encoder is not ready or is finished) [-10]
[19:45:06 CEST] <LABcrab> Video encoding failed
[19:45:06 CEST] <LABcrab> [libvorbis @ 0x7f8a53011400] 36 frames left in the queue on closing
[19:45:06 CEST] <LABcrab> Conversion failed!
[19:45:15 CEST] <LABcrab> However, the video plays just fine.
[19:52:19 CEST] <applepi> Hi all.. I am using node-rtsp-stream to stream an RTSP stream over a websocket (it uses ffmpeg behind the scenes.) When letting it run on my server, the size= output continues to grow and grow, it starts at about 2000KB and eventually starts causing issues around 6.5GB.
[19:52:28 CEST] <thebombzen> LABcrab: what version of FFmpeg are you using?
[19:52:30 CEST] <applepi> Any thoughts on what could be causing this?
[19:52:32 CEST] <thebombzen> what version of libtheora?
[19:53:24 CEST] <BtbN> that sounds like exactly what I'd expect to happen?
[19:53:36 CEST] <BtbN> If you keep streaming video, the size just gets bigger and bigger
[19:53:38 CEST] <thebombzen> applepi: size= ist he total number of bytes encoded
[19:53:51 CEST] <thebombzen> it's not the bitrate
[19:54:11 CEST] <thebombzen> it growing nonstop is expected behavior. if it stopped growing that would be essentially a freeze
[19:54:43 CEST] <thebombzen> LABcrab: that sounds like a bug in the theora encoder or wrapper. what version are you using of FFmpeg?
[19:55:37 CEST] <applepi> Ahh, hm, I haven't had time to start it again but I was concerned it was actually just growing continuously in RAM, not just keeping track of how much it's encoded over time.
[19:55:57 CEST] <applepi> * well, I've started it again, but it was just a few minutes ago
[20:00:07 CEST] <thebombzen> yea, ffmpeg doesn't keep track of the total amount of ram it uses in various places
[20:00:32 CEST] <thebombzen> but it's only a single process, so you can figure that out elsewhere
[20:01:05 CEST] <LABcrab> I have 3.3.2
[20:03:18 CEST] <Mista_D> Hi, is there any filter to mark audio encoding, identifying audio btrates when streaming adaptive audio please?
[20:09:03 CEST] <thebombzen> LABcrab: do the last 36 frames of the video play just fine? just wondering. if you dont' care then yay!
[20:09:13 CEST] <thebombzen> but otherwise we'll have to debug that
[20:09:33 CEST] <LABcrab> I concatenate two files together anyway. The video plays just fine. I'm sure the 36 last frames are black.
[20:09:51 CEST] <thebombzen> alright cool
[20:09:58 CEST] <LABcrab> If you're interested, I can send you a link. It's about 95 MB, though.
[20:22:12 CEST] <thebombzen> not worth it enough to me
[20:23:10 CEST] <LABcrab> Okay.
[20:23:45 CEST] <LABcrab> In HTML5, does the video only download when "Play" is clicked, or is it cached when my page loads?
[20:23:57 CEST] <BtbN> that's entirely up to your browser
[20:23:58 CEST] <LABcrab> I'm assuming the former.
[20:24:08 CEST] <BtbN> Firefox and Chrome alone behave vastly different
[20:36:26 CEST] <LABcrab> Thanks for the help. Have a nice day.
[22:23:54 CEST] <c7j8d9> when I copy a vp9.2 webm video to a mkv container the file size reduces in half. Is this normal?
[22:24:25 CEST] <JEEB> can you play it and get exact same amount of pictures out?
[22:24:31 CEST] <JEEB> s/play/decode/
[22:26:24 CEST] <c7j8d9> hadn't tried that. was just curious if it was normal. it was the same with mp4
[22:28:57 CEST] <kerio> when you say "copy"...
[22:29:53 CEST] <c7j8d9> -c copy
[22:29:56 CEST] <c7j8d9> remuxing
[22:36:36 CEST] <JEEB> c7j8d9: it's not normal for any track to go down in size significantly unless the bit rate is very very small. which is why I recommend doing something like `ffmpeg -i input -f null -` for both input and output clips
[22:36:45 CEST] <JEEB> which will decode them and do nothing with the output
[22:36:52 CEST] <JEEB> (throw them to "null")
[22:44:26 CEST] <paveldimow> Hi, does anyone here know how timecodes (timestamps) actually work? It's not specific ffmpeg question but I don't know a better place to ask
[22:45:09 CEST] <JEEB> paveldimow: you have PTS and DTS and a time base
[22:45:22 CEST] <JEEB> time base is how many ticks is one thing (second)
[22:45:40 CEST] <JEEB> and PTS and DTS are the presentation and decoding time stamp on that time base
[22:45:41 CEST] <JEEB> that's it
[22:46:06 CEST] <paveldimow> well that's it for someone who knows much more then me :)
[22:46:17 CEST] <paveldimow> but let me ask you a more direct question
[22:47:28 CEST] <paveldimow> what I would like to do is to have one incoming stream (let it be rtmp) that contains both audio and video that are in sync.
[22:47:48 CEST] <c7j8d9> JEEB: of course when I tried remuxing again they were the same size. thanks for the help
[22:48:32 CEST] <paveldimow> now, I have another incoming audio stream which for example is 5 sec late and I want to mix AND sync that audio with video coming in the first stream
[22:48:51 CEST] <paveldimow> is something like this technically possible?
[22:49:25 CEST] <JEEB> yes, you just have to adjust the timestamps accordingly on one or the other source's tracks
[22:49:36 CEST] <JEEB> if you know the actual difference it's all possible :P
[22:50:20 CEST] <paveldimow> heh ok, fair enough ;)
[22:51:35 CEST] <paveldimow> thank you JEEB I will take a closer look at this since I am coming from cisco network space :)
[22:51:45 CEST] <paveldimow> I will have a lot to learn
[22:51:51 CEST] <paveldimow> thank you once again
[22:52:50 CEST] <paveldimow> almost to forgot the main question
[22:54:01 CEST] <paveldimow> beside ffmpeg are there any tools that are low level with gui which I can you to inspect mpeg2, mpeg4 and mpeg ts ? something like wireshark for mpeg
[22:55:01 CEST] <JEEB> I don't think a GUI is needed if the output is good enough and fits a less buffer :) but for MPEG-TS I am using https://sourceforge.net/projects/dvbinspector/files/?source=navbar
[22:55:34 CEST] <JEEB> for MPEG-4 Part 12 I utilize L-SMASH's boxdumper with the --box parameter (and output to a less buffer which I can scroll through)
[22:56:12 CEST] <JEEB> for very basic inspection ffmpeg/ffprobe are already quite useful
[22:57:12 CEST] <c7j8d9> mediainfo works well and looks good too
[22:57:42 CEST] <JEEB> that's similar to ffprobe, as in it doesn't go on the format specifics
[22:57:59 CEST] <paveldimow> thank you guys, much appreciated!
[22:58:03 CEST] <JEEB> also ffprobe can output data on all demuxed packets' general data, unlike mediainfo (and output as json)
[22:58:42 CEST] <JEEB> also mediainfo can tell you things that are not necessarily true more often. and then when someone asks why mediainfo shows something all I can reply is "I don't know, read the source code of mediainfo"
[22:59:06 CEST] <paveldimow> any book(s) you can recommend for newbie like me?
[22:59:28 CEST] <JEEB> I hear http://lurkertech.com/lg/video-systems/ is OK for a basic guide
[23:00:07 CEST] <paveldimow> you reply fast like google :)
[23:00:32 CEST] <JEEB> and then after you get through basics you can go for stuff like https://tech.ebu.ch/circles-of-confusion
[23:01:31 CEST] <JEEB> of course each format (container, video, audio, subtitle etc) is different
[23:02:23 CEST] <paveldimow> thank you!
[23:03:06 CEST] <JEEB> but the basics on what YCbCr is (in general terms), and that 99%+ of all video is YCbCr goes a long way
[23:03:18 CEST] <JEEB> you'd be surprised how many people think that video comes as RGB and just needs to be scaled or so ;)
[23:03:22 CEST] <JEEB> (After decoding)
[23:03:56 CEST] <JEEB> oh, and that limited (aka "TV") range is the de facto standard in video for YCbCr
[23:06:53 CEST] <paveldimow> hmmmm that's to much info for me I will start to cry :) I never heard of YCbCr or something similar
[23:07:13 CEST] <paveldimow> I am network guy, you know packets everywhere ;)
[23:07:28 CEST] <JEEB> think of Y as the greyscale version of your image, and Cb is chroma (color) blue, Cr is chroma (red)
[23:08:15 CEST] <paveldimow> and Y?
[23:08:20 CEST] <JEEB> luminance
[23:08:25 CEST] <JEEB> "greyscale version of your image"
[23:08:27 CEST] <paveldimow> oh a gray scale
[23:08:32 CEST] <paveldimow> grey
[23:08:33 CEST] <paveldimow> :)
[23:08:41 CEST] <JEEB> ugh, sorry about that
[23:08:44 CEST] <JEEB> getting late :P
[23:08:50 CEST] <paveldimow> np :)
[23:09:17 CEST] <paveldimow> hmmmm do you know if time codes are present in mpeg4 container?
[23:09:25 CEST] <paveldimow> or it's just in mpeg ts?
[23:09:33 CEST] <JEEB> timecodes or timestamps?
[23:09:47 CEST] <JEEB> timecodes usually mean SMPTE timecodes
[23:09:59 CEST] <JEEB> timestamps are just timestamps (PTS/DTS)
[23:10:21 CEST] <paveldimow> what confuses me from wikipedia
[23:10:23 CEST] <paveldimow> Transport Stream had been originally designed for broadcast. Later it was adapted for usage with digital video cameras, recorders and players by adding a 4-byte timecode (TC) to standard 188-byte packets, which resulted in a 192-byte packet.[11][12] This is what is informally called M2TS stream. The Blu-ray Disc Association calls it "BDAV MPEG-2 transport stream".[11] JVC called it TOD (possibly an abbreviation for "Transport stre
[23:11:33 CEST] <JEEB> non-standard stuff can call itself how it wants. I haven't checked what the 4 extra bytes in the 192 byte MPEG-TS contain :)
[23:11:44 CEST] <JEEB> some sort of timestamp, but if it's SMPTE timecode or not is E_NO_IDEA
[23:11:55 CEST] <paveldimow> :)
[23:12:07 CEST] <paveldimow> so it's non standard thing
[23:12:29 CEST] <JEEB> might be standardized in blu-ray specifications but I don't think it's in the MPEG-TS specification
[23:12:45 CEST] <JEEB> as long as it doesn't contain 0x47 it's compatible ;)
[23:12:55 CEST] <JEEB> (MPEG-TS packets start with 0x47)
[23:14:33 CEST] <paveldimow> and I can get a packet level view with dvb inspector?
[23:15:02 CEST] <JEEB> yes, MPEG-TS packet view
[23:15:21 CEST] <JEEB> ffprobe actually gets you each packet contained within the container with -show_packets option
[23:15:29 CEST] <JEEB> it's on a different level of abstraction :)
[23:15:54 CEST] <JEEB> *each stream packet contained within the container
[23:16:12 CEST] <JEEB> because you don't get each MPEG-TS packet, but then the data chunks within those packets
[23:17:22 CEST] <paveldimow> hmmmm so one data chunk contains multiple packets?
[23:17:44 CEST] <JEEB> MPEG-TS packets are 188 byte so you kind of have to often span multiple MPEG-TS packets :D
[23:18:02 CEST] <JEEB> and of course all the metadata is passed in MPEG-TS packets as well
[23:19:03 CEST] <paveldimow> understand
[23:20:33 CEST] <JEEB> like usually a few times a second you get a PAT, which explains what programs (think: separate sets of streams - "TV channels") there are in the stream, each of which will then also have a PMT coming (which then tells you how many streams there are in a specific program ("channel"))
[23:20:55 CEST] <paveldimow> what?
[23:21:02 CEST] <paveldimow> PAT?
[23:21:09 CEST] <JEEB> Program Association Table
[23:21:17 CEST] <paveldimow> is that in mpeg packets too?
[23:21:39 CEST] <JEEB> it's a type of MPEG-TS packet, yes
[23:21:41 CEST] <JEEB> :)
[23:21:49 CEST] <JEEB> I think it's the one that has ID 0x00 or so
[23:22:07 CEST] <paveldimow> type? what that means that there are multiple MPEG-TS packet types?
[23:22:33 CEST] <JEEB> ayup. they are all 188 byte long and start with 0x47, but the contents differ
[23:22:49 CEST] <JEEB> (and some contents span multiple packets)
[23:23:07 CEST] <paveldimow> wait
[23:23:57 CEST] <paveldimow> you said that all are 188 bytes and start with 0x47 but why did you say that PAT starts with 0X00 then?
[23:24:02 CEST] <JEEB> no
[23:24:06 CEST] <JEEB> the *id* is 0x00
[23:24:16 CEST] <JEEB> it's a field in an mpeg-ts packet ;)
[23:24:23 CEST] <JEEB> "pid"
[23:24:27 CEST] <paveldimow> aha that makes sense!
[23:24:29 CEST] <paveldimow> :)
[23:27:16 CEST] <JEEB> so you start reading data, wait until you get the 0x47 start code. then you try parsing the MPEG-TS packet, and ignore them until you find one with PID 0x00. then you will know the PIDs of PMT (Program Mapping Table) packets for all the currently registered programs in the stream. then you can wait for packets with that PID :D
[23:27:42 CEST] <JEEB> and it goes further like that
[23:28:06 CEST] <JEEB> PMT contains the PIDs for the tracks of a program, and their types if I recall correctly
[23:28:19 CEST] <paveldimow> hmmmm
[23:28:40 CEST] <paveldimow> it's pretty late here but I must ask you one more stupid question
[23:29:07 CEST] <paveldimow> ready steady go!
[23:29:10 CEST] <paveldimow> :)
[23:29:36 CEST] <paveldimow> how any decoder knows which pakets are in one "frame"
[23:30:07 CEST] <paveldimow> every frame has some kind of header?
[23:30:24 CEST] <paveldimow> how about timestamps? are they used for synchronization?
[23:30:39 CEST] <JEEB> do you mean decoder as in parser or an actual decoder?
[23:31:03 CEST] <paveldimow> actual decoder let's say player vlc for example ffplay or so
[23:31:37 CEST] <JEEB> usually decoders will take in full packets only so you have a parser before hand to build them up for you
[23:32:04 CEST] <paveldimow> how they know, hey here is the MPEG-TS packets that belongs to the same I frame?
[23:32:31 CEST] <paveldimow> but still how parser knows?
[23:33:04 CEST] <JEEB> well, in case of MPEG-TS there most likely is a field that says that the packet contains a part of a coded video/audio/subtitle packet
[23:33:32 CEST] <JEEB> and then you have a parser that parses raw coded frames and usually there's some way of knowing where the coded frame ends
[23:33:58 CEST] <JEEB> so the demuxer feeds the parser data and then the parser follows the standard to cut those into actual packets that you can feed into a decoder
[23:34:19 CEST] <paveldimow> and how/when synchronization jumps in place?
[23:34:35 CEST] <JEEB> every MPEG-TS packet I think has a 33 bit timestamp field
[23:35:04 CEST] <JEEB> and then a counter so you know if you had packet loss
[23:36:37 CEST] <JEEB> the timestamps in MPEG-TS were DTS if I recall correctly, so with less simple formats you have to decode the stream (or at least parse it) to start getting proper PTS.
[23:37:30 CEST] <paveldimow> rocket since for me for now ;)
[23:38:49 CEST] <JEEB> something like matroska or ISOBMFF (mpeg-4 container) have variable length packets (samples)
[23:38:53 CEST] <JEEB> which is simpler
[23:39:04 CEST] <JEEB> since you get <LENGTH><DATA>
[23:39:20 CEST] <JEEB> so if it's a coded video sample you just grab the data and pass it to a decoder
[23:41:41 CEST] <paveldimow> I'll take a look at matroska since I like that name :)
[23:41:58 CEST] <paveldimow> I can't understand anymore without sleep
[23:42:01 CEST] <paveldimow> :)
[23:42:22 CEST] <paveldimow> Thank you JEEB, it was a pleasure to chat with you!
[23:42:56 CEST] <paveldimow> you gave me a lot of explanations
[23:44:08 CEST] <paveldimow> it's still blurry to me, but much less for sure after this chat
[00:00:00 CEST] --- Fri Aug 11 2017
1
0
[01:39:23 CEST] <ZeroWalker> can someone help me understand YUV422, a bit confused as to how it's packed. From my understanding it's something like YUVY, which turns into 2 pixels?
[01:45:21 CEST] <iive> kind of,
[01:45:35 CEST] <iive> do you know how yuv444 works is?
[01:51:05 CEST] <ZeroWalker> isn't that YUV = 1 pixel?
[01:51:16 CEST] <ZeroWalker> so 24bit
[02:03:38 CEST] <Mista_D> Ticket #6575 added bounty if anyone's interested
[02:14:46 CEST] <J_Darnley> ZeroWalker: Yes, 444 has one luma, one Cb, and one Cr sample per pixel.
[02:15:14 CEST] <J_Darnley> 422 has it's chroma scaled to half the width.
[02:15:50 CEST] <ZeroWalker> which means, 4 bytes = 2 pixels right?
[02:16:05 CEST] <J_Darnley> For 8-bit samples, yes
[02:16:29 CEST] <ZeroWalker> so, y0 + uv and y1 +uv? (not that math, but yeah)
[02:16:43 CEST] <J_Darnley> Not nessecarily
[02:16:45 CEST] <ZeroWalker> the luma use the same chroma samples?
[02:16:45 CEST] <ZeroWalker> oh
[02:16:58 CEST] <J_Darnley> Chroma can be placed almost anywhere
[02:17:08 CEST] <J_Darnley> it is tricky
[02:17:31 CEST] <ZeroWalker> do you mean like, planar vs interleaved, and all the weird YUVY UVYU etc
[02:18:00 CEST] <J_Darnley> the chroma could be aligned with the first luma sample, or aligned with the second luma sample, or between the two.
[02:18:22 CEST] <ZeroWalker> but isn't that format specific?
[02:18:30 CEST] <J_Darnley> Generally yes.
[02:18:33 CEST] <ZeroWalker> thought YUV2 was, YUVY (like that in the address)
[02:18:46 CEST] <ZeroWalker> meaning Luma0, Chroma, Luma2
[02:18:54 CEST] <ZeroWalker> Luma1*
[02:18:55 CEST] <J_Darnley> But ffmpeg isn't going to realign everything when it reads video.
[02:19:21 CEST] <ZeroWalker> yeah it's not specific to ffmpeg, i am wondering about the format as i am learning to convert it via shaders
[02:19:46 CEST] <ZeroWalker> and well it's not super clear how the format works for me, hence me asking here
[02:21:23 CEST] <J_Darnley> If you just want to know how a pixel format (in ffmpeg's language) is laid out in memory then you probably need to read the relevant header.
[02:21:42 CEST] <J_Darnley> avutil/pixel*something*.h
[02:21:48 CEST] <ZeroWalker> ah
[02:22:05 CEST] <iive> ZeroWalker: sorry i went away
[02:22:18 CEST] <ZeroWalker> ah no worries;d
[02:22:47 CEST] <ZeroWalker> packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
[02:22:48 CEST] <iive> yuv444 has 3 planes, where each plane represents one component, Y U V (U V are shorts for Cr Cb)
[02:23:14 CEST] <iive> so you can think of Y plane like grayscale bitmap
[02:23:26 CEST] <ZeroWalker> yeah that's kinda what i see it as, black/white
[02:23:57 CEST] <iive> to calculate rgb. you take the samples from the same positions.
[02:24:30 CEST] <iive> yuv422 has the U and V plane resized, so they have half width compared to the Y
[02:25:03 CEST] <iive> so if you have to calucate rgb, you'd have to interpolate (at least) half the values.
[02:25:36 CEST] <ZeroWalker> but if Y0 and Y1 basically share UV
[02:25:36 CEST] <iive> or you can say, that 2 horizontal Y pixels share same UV samples
[02:26:04 CEST] <ZeroWalker> yeah so, how would one interpolate it, there's nothing to interpolate is there?
[02:26:49 CEST] <iive> ?
[02:27:11 CEST] <iive> you do that with the next pixel, just like you would if you upscale an image
[02:27:41 CEST] <ZeroWalker> so, Y1 would interpolate UV0 and UV1 ?
[02:28:03 CEST] <iive> yes
[02:28:12 CEST] <iive> or you can not interpolate at all
[02:28:54 CEST] Action: J_Darnley shudders at the thought of nearest neighboring the chroma.
[02:28:57 CEST] <ZeroWalker> oh phew, well the only scaling experience i have is point resize if you will, so no fancy stuff, but i guess even that would work here?
[02:29:08 CEST] <ZeroWalker> haha, what timing to write that
[02:30:48 CEST] <iive> well, to complicate matters more, it is possible a standard to define UV sample centers that are off compares to the Y samples, so you never have an exact match.
[02:31:07 CEST] <iive> s/compares/compared
[02:32:28 CEST] <ZeroWalker> oh, yay xd
[02:33:15 CEST] <ZeroWalker> well at least i get the default structure of it. basically i could take YUY2 (YUVY) and produce 2 pixels with it. Ugly but it Would work right?
[02:33:46 CEST] <iive> yes
[02:34:21 CEST] <iive> most video codecs however expect planar formats, so they will want to convert. (swscale)
[02:36:34 CEST] <ZeroWalker> well in my case this is for converting from YUY2 or probably other interleaved YUV to RGB for displaying. So i can probably get away from the planar part there. For encoding i use swscale
[04:28:27 CEST] <jamrial> atomnuker: the af_compand compilation issue on gcc trunk is fixed
[07:35:59 CEST] <ZeroWalker> well yuv to rgb with shaders was harder than expected cause of it being more pixels per package. it's simple to just turn the YUV to RGB, but YUVY to RGBRGB, not so much xd
[07:51:40 CEST] <thebombzen> YUVY? is that a thing?
[07:51:50 CEST] <thebombzen> isn't it usually yuyv
[10:12:33 CEST] <wm4> death to packed yuv
[10:12:57 CEST] <wm4> 4 byte non-subsampled packed yuv can stay
[10:22:29 CEST] <cone-063> ffmpeg 03Andy 07master:448c88e1a586: avfilter/dynaudnorm: increment input outside of the FFMIN macro so it doesn't get double incremented
[16:55:19 CEST] <J_Darnley> Does ffmpeg have a helper function to copy a rectangle from one AVFrame to another?
[17:03:43 CEST] <JEEB> J_Darnley: av_frame_move_ref or so?
[17:03:58 CEST] <JEEB> unless you actually mean a memcpy
[17:04:14 CEST] <JEEB> although that's moving the buffer to another AVFrame instead of copying it
[17:05:28 CEST] <J_Darnley> I do mean a memcpy, yes.
[17:09:49 CEST] <wm4> av_frame_copy or so
[17:18:35 CEST] <JEEB> yea, I think that
[17:19:26 CEST] <nevcairiel> thats for full frames tho, not sub-rectangles, if thats what you wanted
[17:20:25 CEST] <wm4> you could use the new crop function, although that's pretty roundabout
[17:20:54 CEST] <J_Darnley> Thanks for the suggestions but I'll just do it myself
[17:24:01 CEST] <kierank> J_Darnley: why do you need to copy rectangles?
[17:24:35 CEST] <J_Darnley> To copy slices of the picture drawn in encode_video
[17:25:28 CEST] <durandal_1707> vf_swaprect
[17:25:56 CEST] <wm4> we're getting way too many vf_veryspecific
[17:25:59 CEST] <kierank> J_Darnley: why?
[17:26:11 CEST] <wm4> (it would be ok if those were functions)
[17:26:16 CEST] <J_Darnley> So I can see whether I do anything correctly in the encoder
[18:19:12 CEST] <BtbN> Coverity has some issues with the new vf_premultiply patches
[21:11:19 CEST] <durandal_1707> wm4: what filters must be very generic?
[21:20:02 CEST] <durandal_1707> would ffedit using qt be accepted in repo?
[21:20:50 CEST] <ubitux> tools/ffedit.c?
[21:21:07 CEST] <wm4> I don't think it's going to be .c
[21:21:18 CEST] <ubitux> with qt, yeah i guess so
[21:21:28 CEST] <ubitux> durandal_1707: what does it do?
[21:21:37 CEST] <ubitux> construct lavfi graph with a gui?
[21:21:52 CEST] <durandal_1707> similar as vsedit
[21:22:13 CEST] <ubitux> i don't know vsedit
[21:22:20 CEST] <durandal_1707> preview filtergraph output
[21:23:17 CEST] <ubitux> how are you going to cumulate them?
[21:23:39 CEST] <durandal_1707> what?
[21:24:08 CEST] <ubitux> how are you going to represent multiple filters and their settings in the UI?
[21:24:40 CEST] <ubitux> https://cloud.githubusercontent.com/assets/8057201/9976995/e81ac04a-5ef7-11…
[21:24:43 CEST] <ubitux> something like this?
[21:25:09 CEST] <ubitux> (source: github/vurtun/nuklear)
[21:25:24 CEST] <durandal_1707> maybe
[21:25:39 CEST] <ubitux> you'll be forced to use C for that
[21:25:45 CEST] <durandal_1707> but first simple script
[21:25:48 CEST] <ubitux> or a binding to ffmpeg
[21:26:04 CEST] <ubitux> (because some filters have dynamic inputs so you need to have some exec)
[21:26:12 CEST] <ubitux> inputs+outputs*
[21:26:53 CEST] <durandal_1707> why ? i cant call c from c++?
[21:27:04 CEST] <ubitux> if you make a simple py+qt script that parses ffmpeg -h filter=xxx, that may be good enough for tools/ sure
[21:27:17 CEST] <ubitux> i meant use C versus scripts
[21:27:44 CEST] <ubitux> like, you'll have trouble calling lavfi API with scripting languages
[21:27:53 CEST] <ubitux> unless you make some cython bindings or whatever
[21:28:14 CEST] <durandal_1707> i plan to call api
[21:28:44 CEST] <durandal_1707> and do it in C++
[21:30:19 CEST] <durandal_1707> idea is to provide seeking in filtergraph
[21:32:57 CEST] <FishPencil> What's a decent way to find a group of pixels that match a certain criteria? Right now I loop through the image and add each of the pixels that match to an array. I then loop through that array and look for p[x+1][y+1] to see if there's another in an adjacent spot. Is there a better way?
[21:35:22 CEST] <durandal_1707> give more details, does it need to be all pixels with certain criteria?
[21:36:07 CEST] <FishPencil> I'm looking for bright pixels and using summed RGB values over some threshold
[21:37:34 CEST] <durandal_1707> i doubt there is faster way
[21:38:08 CEST] <FishPencil> I guess I could also go row by row, recording the bright "group" start and end and then compare that to groups in y+/-[1-n]
[21:38:41 CEST] <FishPencil> [1+n]
[21:40:58 CEST] <FishPencil> I was thinking I would start at the first pixel that's bright (top left) and go x+1 and y+1 until no match is found diagonally. Then record the center x,y and remove the surround pixels in the radius so the next row doesn't look for them too
[21:42:22 CEST] <FishPencil> All I care about in the end is x and y's of the center point for groups and the radius of the group
[21:46:33 CEST] <atomnuker> durandal_1707: sure, I'd like for it to be part of the repo
[21:47:11 CEST] <durandal_1707> even in c++ with qt?
[21:47:17 CEST] <atomnuker> yep
[21:47:19 CEST] <atomnuker> (having some lua scripting interface would probably make it replace anything else)
[21:47:54 CEST] <atomnuker> just make sure to use qt 5 and not rely on kde stuff, its not very heavy then
[22:05:06 CEST] <FishPencil> Should the 2D array of "found" pixels contain all pixels in the image, and a 1 for "found", 0 for not? something like if (p[1234][123]) for x = 1234, y = 123, so that I can do y + 1 to get the next row?
[22:06:23 CEST] <FishPencil> or should it only contain those that are found, so that p[n][0] = 1234 and p[n][1] = 123
[22:09:07 CEST] <cone-035> ffmpeg 03Nicolas Sugino 07master:df884e038f5d: avcodec/aacdec: Fix PCE channel_layout verification
[22:09:22 CEST] <iive> FishPencil: i think opencv might already have something that does it.
[22:13:28 CEST] <FishPencil> it has a threshold feature but I don't see grouping
[22:15:54 CEST] <atomnuker> FishPencil: you do know ffmpeg doesn't deal with 2d arrays any code dealing with images, right?
[22:17:07 CEST] <durandal_1707> FishPencil: i did floodfill filter recently which may come handy
[22:19:20 CEST] <FishPencil> is there something wrong with multidim arrays that FFmpeg doesn't like?
[22:20:06 CEST] <durandal_1707> they consume memory
[22:20:23 CEST] <atomnuker> FishPencil: an extra dereference per row
[22:20:52 CEST] <atomnuker> memory too
[22:20:53 CEST] <FishPencil> so pseudo-2d is needed?
[22:21:16 CEST] <atomnuker> we use a single large buffer with dimensions stride*height
[22:21:33 CEST] <atomnuker> where stride is generally width aligned to some amount of bytes for simd
[22:21:52 CEST] <atomnuker> so to address arbitrary pixels you use buffer[y*stride + x]
[22:23:28 CEST] <FishPencil> interesting
[22:23:29 CEST] <atomnuker> (never noticed this until now but this neatly fits with how x86 does addressing)
[00:00:00 CEST] --- Thu Aug 10 2017
1
0
[00:00:04 CEST] <JEEB> it should tell you the output SAR/DAR
[00:00:09 CEST] <furq> Stream #0:0: Video: wrapped_avframe, yuv420p, 720x300 [SAR 1:1 DAR 12:5],
[00:00:33 CEST] <JEEB> anyways, if you just want to force a 1:1 SAR ",setsar=sar=1" at the end of the filter chain should work (not sure if the internal sar is needed)
[00:00:35 CEST] <ultrav1olet> blurry as hell and matches my results
[00:00:39 CEST] <furq> er
[00:00:40 CEST] <furq> Stream #0:0: Video: wrapped_avframe, yuv420p, 768x320 [SAR 1:1 DAR 12:5],
[00:00:48 CEST] <BtbN> It's your player then
[00:00:56 CEST] <BtbN> There is absolutely no blur in there at all
[00:01:23 CEST] <ultrav1olet> mpv 0.8.3/MPlayer 1.3.0
[00:01:36 CEST] <JEEB> wow, that's some old stuff
[00:02:15 CEST] <BtbN> 0.26.0 here, and VLC 3.0.0
[00:02:32 CEST] <JEEB> also just make sure that whatever your checking has SAR 1:1
[00:02:37 CEST] <JEEB> you're
[00:02:37 CEST] <ultrav1olet> thank you all!
[00:02:45 CEST] <ultrav1olet> My mplayer setup is f*cked up
[00:02:51 CEST] <ultrav1olet> trying to see what's wrong here
[00:03:05 CEST] <JEEB> kind of guessed that :P
[00:03:34 CEST] <ultrav1olet> mplayer has this: vo = gl:lscale=1,cscale=1
[00:03:58 CEST] <JEEB> I mean, at the point where zscale was doing stuff "wrong" I was pretty much sure that it was your stuff
[00:03:58 CEST] <ultrav1olet> why it gets applied when I don't resize the video for f*ck's sake?
[00:04:13 CEST] <JEEB> because zimg is pretty dang good
[00:04:15 CEST] <BtbN> because it's an ancient version
[00:04:22 CEST] <JEEB> also mplayer is mplayer
[00:05:58 CEST] <furq> ultrav1olet: because it's stretching the video to correct the aspect ratio
[00:06:11 CEST] <furq> actually nvm i forgot you fixed that now
[00:06:36 CEST] <ultrav1olet> thank you all
[00:06:41 CEST] <ultrav1olet> I'm closing the bug report
[00:07:29 CEST] <JEEB> ultrav1olet: to be honest I was trying to get you make an angry bug report @ zimg (and then getting told off by the FFmpeg-unrelated author)
[00:07:56 CEST] <JEEB> because you were so fixated on FFmpeg
[00:07:57 CEST] <JEEB> lol
[00:08:03 CEST] <flaxo> hi is there a way to grab random chapters from DVDs?
[00:08:12 CEST] <furq> not with ffmpeg
[00:08:15 CEST] <furq> tcdemux/tccat will do it
[00:08:38 CEST] <flaxo> jup that was just dumped from debian...
[00:08:38 CEST] <ultrav1olet> JEEB: great many thanks!
[00:08:50 CEST] <flaxo> so my workflow is fucked right now
[00:09:00 CEST] <furq> lol what
[00:09:08 CEST] <furq> that's fucking stupid
[00:09:22 CEST] <flaxo> transcode is not deemed cool anymore with the kids... it seems
[00:09:26 CEST] <furq> i guess you're building transcode yourself then
[00:09:38 CEST] <flaxo> yeah great
[00:09:58 CEST] <furq> there's probably something else that does it, but i couldn't tell you what
[00:10:02 CEST] <flaxo> like cdrecord.. and all the other stuff that got kicked out
[00:10:27 CEST] <flaxo> arch seems more promising each day...
[00:10:38 CEST] <furq> someone should really split tccat out into a separate package
[00:10:51 CEST] <furq> tccat and tcdemux are the only useful bits of transcode
[00:11:02 CEST] <flaxo> well
[00:11:19 CEST] <JEEB> flaxo: what was teh reason for removal? usually it's related to lack of maintenance
[00:11:21 CEST] <flaxo> thats what i was using all the time :/
[00:11:31 CEST] <flaxo> dead upstream
[00:11:33 CEST] <flaxo> they tell my
[00:11:34 CEST] <furq> yeah
[00:11:35 CEST] <flaxo> me
[00:11:48 CEST] <furq> no updates since wheezy
[00:11:48 CEST] <flaxo> it was not dead it was feature-complete
[00:11:50 CEST] <furq> and probably before that
[00:11:54 CEST] <furq> that's a dumb reason though
[00:12:08 CEST] <ultrav1olet> JEEB: speaking of preserving or omitting DAR ratio - what's the best way to encode in the future? By specifying -2 as the second dimension?
[00:12:27 CEST] <ultrav1olet> I don't want my future encodes to have the wrong DAR
[00:12:30 CEST] <JEEB> ultrav1olet: that sets the height automatically to the closest mod2
[00:12:34 CEST] <furq> ultrav1olet: -2 will keep the original aspect ratio
[00:12:41 CEST] <flaxo> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817199
[00:12:43 CEST] <JEEB> to make sure after that that you have 1:1 SAR you then force the sar
[00:12:50 CEST] <JEEB> as I noted, ",setsar=sar=1"
[00:12:54 CEST] <JEEB> at the end
[00:13:11 CEST] <JEEB> (esp. if you're scaling to smaller sizes the aspect ratio might not be exact with the closest mod2)
[00:13:22 CEST] <JEEB> but the difference might be really small
[00:13:31 CEST] <ultrav1olet> furq: I just thought that if I properly scale manually (e.g. divide each dimension by the same number) everything should work :(
[00:13:33 CEST] <JEEB> and thus it might make sense set forcibly set sar to 1
[00:14:00 CEST] <ultrav1olet> looks like I was wrong
[00:14:05 CEST] <BtbN> ultrav1olet, that's how it works. You just miscalculated
[00:14:14 CEST] <BtbN> But using -2 is easier anyway
[00:14:23 CEST] <ultrav1olet> BtbN: I will use -2 then
[00:14:30 CEST] <BtbN> You can use it for either of the two
[00:14:31 CEST] <ultrav1olet> sound like an easier solution
[00:14:43 CEST] <ultrav1olet> less chance for mistakes
[00:14:48 CEST] <BtbN> if you want a specific height, just put -2 for the width
[00:14:54 CEST] <ultrav1olet> will do
[00:15:21 CEST] <ultrav1olet> I guess ffmpeg's manual should mention what you've all just said
[00:15:35 CEST] <JEEB> yes
[00:15:43 CEST] <JEEB> ffmpeg-all.html
[00:15:50 CEST] <JEEB> is the thing you want to ctrl+F through
[00:15:59 CEST] <ultrav1olet> I looked at https://trac.ffmpeg.org/wiki/Scaling%20(resizing)%20with%20ffmpeg
[00:16:11 CEST] <furq> !filter scale
[00:16:11 CEST] <nfobot> furq: http://ffmpeg.org/ffmpeg-filters.html#scale-1
[00:16:13 CEST] <furq> it's in there
[00:16:22 CEST] <ultrav1olet> and it happily offers me to use "ffmpeg -i input.avi -vf scale=320:240 output.avi"
[00:16:30 CEST] <furq> If one and only one of the values is -n with n >= 1, the scale filter will use a value that maintains the aspect ratio of the input image, calculated from the other specified dimension. After that it will, however, make sure that the calculated dimension is divisible by n and adjust the value if necessary.
[00:16:31 CEST] <ultrav1olet> yeah I see
[00:17:12 CEST] <ultrav1olet> it's just "its most basic form:" has no mention that it might completely break things ;)
[00:17:14 CEST] <BtbN> you want -2 because of YUV420 needing multiples of two
[00:19:19 CEST] <ultrav1olet> Ideally I would love a scale option which allows me to specify a divisor, so that I was free not to specify the resulting dimensions at all, say -vf scale 3/5,3/5 or something like that
[00:20:00 CEST] <furq> you can do that
[00:20:07 CEST] <ultrav1olet> so for 1920x1080 source I'd get 1920*3/5,1080*3/5 - is that possible?
[00:20:20 CEST] <furq> -vf scale=iw*(3/5):ih*(3/5)
[00:20:32 CEST] <ultrav1olet> and it'll preserve DAR?
[00:20:40 CEST] <furq> should do
[00:20:52 CEST] <BtbN> that's highly uncommon though
[00:20:56 CEST] <BtbN> you usually want a specific height or width
[00:20:57 CEST] <furq> that's simplified because that'll end up giving you some non-mod2 sizes
[00:21:04 CEST] <furq> and also yeah you normally want a target size
[00:21:47 CEST] <ultrav1olet> I do understand that the resulting dimensions should be at least divisible by 2 and better yet 4
[00:21:57 CEST] <furq> 4/8/16 aren't really any better than 2
[00:22:07 CEST] <furq> iirc x264 encodes mod16 regardless
[00:22:09 CEST] <ultrav1olet> cause x264 works best for 4x4 and higher
[00:22:10 CEST] <BtbN> for h264, you ideally want multiples of 8. But it doesn't overly matter
[00:22:23 CEST] <BtbN> it will just add padding and crop it away on playback
[00:22:26 CEST] <furq> right
[00:22:32 CEST] <furq> is it mod8 or mod16
[00:22:45 CEST] <JEEB> more like multiples of 16 internally since macroblocks, but the padding is so effective you shouldn't care
[00:22:46 CEST] <BtbN> hm, 1080p is actually 1088p. So it might even be 16
[00:22:51 CEST] <JEEB> it is 16
[00:22:54 CEST] <JEEB> and HEVC is 64
[00:22:58 CEST] <furq> nice
[00:23:00 CEST] <JEEB> coding tree unit size
[00:23:26 CEST] <BtbN> as long as the padding isn't filled with randomness
[00:23:38 CEST] <BtbN> if it's a permanent static color, it should compress into nothingness
[00:23:52 CEST] <JEEB> the padding basically is done in a way that lets the encoder optimize the hell out of it :P
[00:23:55 CEST] <JEEB> so you don't have to care
[00:24:06 CEST] <JEEB> thus you actually care more about the playback devices' issues
[00:24:13 CEST] <JEEB> like renderers failing with mod2
[00:24:17 CEST] <JEEB> or something like that
[00:24:28 CEST] <ultrav1olet> ffmpeg -i source.mkv -vf 'scale=iw*(2/5):ih*(2/5)' -c:v utvideo result.mkv works beautifully!
[00:24:48 CEST] <BtbN> if it happens to end up with multiples of two, yes
[00:24:53 CEST] <BtbN> if not, it will explode
[00:24:59 CEST] <ultrav1olet> source: Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
[00:25:04 CEST] <JEEB> with 4:2:0, yes
[00:25:07 CEST] <ultrav1olet> result: Stream #0:0: Video: utvideo (ULY0 / 0x30594C55), yuv420p, 768x320 [SAR 1:1 DAR 12:5], q=2-31, 200 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default
[00:25:12 CEST] <furq> but yeah you'd actually want something like -vf scale=floor(iw*(3/5)/2)*2
[00:25:17 CEST] <furq> to force mod2
[00:25:24 CEST] <cq1> I presume that any reasonable encoder is more sophisticated than simply "padding with some value", and instead when it does any form of rate-distortion optimization that errors in the padded region count for nothing...
[00:25:32 CEST] <JEEB> cq1: yes
[00:28:11 CEST] <ultrav1olet> One problem I've always wondered but never actually tried: when encoding for the same bitrate target, what's better 1) encoding the source with lower quality or 2) slightly downscaling it (e.g. from 1080p to 720p) and using a higher quality?
[00:28:37 CEST] <furq> depends on the bitrate and target device
[00:28:41 CEST] <ultrav1olet> Of course when you're ready to sacrifice a wee bit of visual fidelity
[00:28:53 CEST] <ultrav1olet> just what I thought
[00:28:54 CEST] <furq> downscaling will make a big difference to quality/size though
[00:29:11 CEST] <ultrav1olet> exactly, so the answer is not really obvious
[00:29:15 CEST] <furq> right
[00:29:25 CEST] <furq> as usual when it comes to video, there's no right or wrong answer
[00:29:33 CEST] <kepstin> this is the sort of thing where netflix does big studies over massive video libraries to try to decide what to do :/
[00:29:39 CEST] <ultrav1olet> "trust your eyes" ))
[00:30:10 CEST] <furq> and as usual when it comes to there being no right or wrong answer, there is someone who keeps asking us what the right answer is
[00:30:21 CEST] <furq> and then JEEB starts swearing at them because they won't just encode a test sample like he keeps telling them
[00:31:12 CEST] <ultrav1olet> are there any plans to make ffmpeg compatible with avisynth filters or that's not even theoretically possible?
[00:31:12 CEST] <furq> it's been a while since we've had one of those guys tbf
[00:31:20 CEST] <furq> ultrav1olet: it can already load .avs on windows
[00:31:24 CEST] <furq> and you can pipe vapoursynth into it
[00:31:50 CEST] <furq> if you mean incorporating avisynth filters into lavfi then that isn't directly possible
[00:31:59 CEST] <furq> some have been ported though
[00:32:06 CEST] <ultrav1olet> I for one dream of having MDegrain2 in ffmpeg
[00:32:19 CEST] <ultrav1olet> probably the best denoiser I've seen in my entire life
[00:32:20 CEST] <furq> yeah it'd be nice to have qtgmc in ffmpeg
[00:32:30 CEST] <furq> but it's not that much effort to go through vs
[00:32:38 CEST] <ultrav1olet> works wonder and I have to boot into windows to use it :(
[00:32:46 CEST] <furq> it's probably been ported to vapoursynth
[00:33:36 CEST] <ultrav1olet> my workflow is to use it in windows to encode to x264 losslessly, then I encode once again in Linux
[00:33:42 CEST] <ultrav1olet> that's kinda awful
[00:33:47 CEST] <furq> that's extremely awful
[00:34:01 CEST] <JEEB> avisynth works under wine since 2004 or so
[00:34:12 CEST] <JEEB> so when I was (ab)using university workstations it was 2009
[00:34:18 CEST] <JEEB> to encode stuff in parts
[00:34:21 CEST] <ultrav1olet> I'm too stupid to use it without MeGUI :(
[00:34:51 CEST] <furq> ultrav1olet: https://github.com/dubhater/vapoursynth-mvtools
[00:34:52 CEST] <ultrav1olet> last time I tried MeGUI doesn't work under wine
[00:35:06 CEST] <furq> vs has free multithreading as well
[00:35:14 CEST] <q66> hi furq
[00:35:27 CEST] <furq> hi there little buddy
[00:35:44 CEST] <furq> how can i help you today
[00:35:50 CEST] <q66> idk
[00:35:55 CEST] <q66> i just came to idle and stick around for a while
[00:36:04 CEST] <ultrav1olet> Hopefully someone with an itch will port MDegrain to ffmpeg :-)
[00:36:08 CEST] <q66> just #mpv isn't enough multimedia madness
[00:36:31 CEST] <furq> you will be pleased to hear that nobody talks about animes in here
[00:36:40 CEST] <q66> that's nice
[00:36:48 CEST] <q66> do they talk about perl
[00:36:53 CEST] <furq> not that i've seen
[00:36:57 CEST] <q66> that's also nice
[00:37:10 CEST] <JEEB> #ffmpeg is just dumb lusers
[00:37:21 CEST] <JEEB> and random people saying they will build the next major video site
[00:37:22 CEST] <furq> ultrav1olet: vapoursynth is easy enough to use
[00:37:23 CEST] <q66> sounds fun
[00:37:28 CEST] <JEEB> or people asking how to do their porn site
[00:37:33 CEST] <furq> it's easier than rebooting into windows every time you want to encode anything
[00:38:21 CEST] <ultrav1olet> furq: looking at it, thanks
[00:40:00 CEST] <ultrav1olet> my needs are very basic actually: https://pastebin.com/raw/dn1RicLD
[00:40:15 CEST] <ultrav1olet> copied straight from mdegrain manual
[00:41:25 CEST] <q66> it's pretty much the same with vapoursynth except in python
[00:41:49 CEST] <ultrav1olet> looks like this will work as is with vapoursynth
[00:42:04 CEST] <furq> yeah just install mvtools and that's all basically the same
[00:42:23 CEST] <ultrav1olet> great, will definitely try that
[00:43:59 CEST] <q66> yeah though convert are not separate funcs in vs
[00:46:28 CEST] <furq> http://vpaste.net/zIKCc
[00:46:29 CEST] <furq> something like that
[00:46:45 CEST] <q66> yeah like that
[00:47:27 CEST] <ultrav1olet> you're amazing, guys!
[00:55:55 CEST] <ultrav1olet> great many thanks!
[01:02:11 CEST] <iive> so, I see people complain that there is not enough talking about anime.
[01:02:49 CEST] <iive> maybe somebody would be kind enough to recommend me something to watch.
[01:03:20 CEST] <iive> i do prefer to be recent title and to be a complete.
[01:04:25 CEST] <JEEB> shouwa genroku rakugo shinjuu
[01:05:31 CEST] <iive> this is about the actors, isn't it?
[01:05:39 CEST] <furq> i would like to assure you that i was not complaining
[01:05:41 CEST] <JEEB> yes, the traditional comedy thing
[01:06:10 CEST] <JEEB> as in, about comedians in that genre
[01:06:21 CEST] <JEEB> two seasons out now, which nicely brought it to an end
[01:06:31 CEST] <ultrav1olet> it even has a trailer ... in Japanese
[01:06:37 CEST] <ultrav1olet> https://www.youtube.com/watch?v=rMWOuwFpF-g
[01:06:59 CEST] <iive> i've seen it recommended before, I'll take a look.
[01:07:08 CEST] <klaxa> i apparently have shit taste, but my favorite show last season was zero kara hajimeru mahou no sho
[01:07:31 CEST] <JEEB> klaxa: it's OK, it was one of the shows I was kind of going through
[01:07:40 CEST] Action: JEEB watches way too much crap
[01:08:10 CEST] <klaxa> i cut back on watching crap shows
[01:08:29 CEST] <klaxa> meaning i watch fewer crap shows
[01:09:09 CEST] <klaxa> i was surprised by how much i liked renai boukun even though the genre and tropes have already been used to death
[01:13:40 CEST] <iive> JEEB: there seem to be ova too, and it is marked as prequel, so I guess I should start with it first.
[01:14:10 CEST] <JEEB> I skipped that and I don't think I lost anything
[01:14:17 CEST] <JEEB> I have a feeling it's something that was done before, separately
[01:14:32 CEST] <iive> ok.
[01:14:45 CEST] <JEEB> because (spoiler alert) the two seasons go through pretty much the whole life of those folk
[01:15:38 CEST] <iive> it's marked as prequel, not alternative version.
[01:16:15 CEST] <JEEB> let's just say I ignored it and missed seemingly nothing
[01:16:21 CEST] <JEEB> of course I don't know what I missed but still :P
[01:16:28 CEST] <iive> :D
[01:16:59 CEST] <iive> klaxa: sometimes there are show that are not highly prised, but I find a lot more meaningful, that the highly rated ones.
[01:17:44 CEST] <JEEB> the thing I bought the whole set of discs for was shirobako, and you can think of that at 60eur a pop and about eight discs
[01:17:56 CEST] <JEEB> one of my favourites for 2014
[01:17:58 CEST] <klaxa> >p.a. works
[01:18:01 CEST] <JEEB> inorite
[01:18:05 CEST] <klaxa> although i heard it was good for a change
[01:18:17 CEST] <JEEB> yea, I skipped a lot of PA stuff before that
[01:18:29 CEST] <klaxa> all the other p.a. works shows i dropped after a few eps (except for angel beats)
[01:18:30 CEST] <JEEB> shirobako hit me as a nice thing
[01:25:27 CEST] <CounterPillow> anime sucks
[01:31:01 CEST] <iive> CounterPillow: i wonder, what is your most hated anime :E
[01:42:01 CEST] <CounterPillow> Spongebob
[01:44:22 CEST] <iive> that's not anime
[01:44:58 CEST] <klaxa> in japan it is :x
[01:48:48 CEST] <klaxa> okay autoconf 2.13 is too old
[01:58:27 CEST] <klaxa> ah whoops, wrong buffer, lol
[03:42:29 CEST] <Harzilein> hi
[03:45:27 CEST] <Harzilein> i made a 'still frame video' like this: ffmpeg -ss 1209.041000 -i defiance303.mkv -an -c copy -vframes 1 defiance303.thumb.mkv # https://pastebin.com/C9eTrh6A
[03:48:58 CEST] <Harzilein> and i now want to make a video with that still frame looped and the audio from the complete file: ffmpeg -i defiance303.mkv -stream_loop -1 -r 2 -i defiance303.thumb.mkv -map 0:a:0 -map 1:v:0 -c copy -fflags +genpts defiance303.mp4 # https://pastebin.com/vneMrWQn
[03:52:07 CEST] <Harzilein> when i look at the output of mediainfo the video stream is only a couple of ms long, but playback seems to work fine (with mpv) ... the only problem is that when i try to seek, playback aborts with an 'end of file' message: https://pastebin.com/xTMrTFJh
[09:55:06 CEST] <yong> I want to encode frames received through a network socket. These frames are sent as individual .bmp files. Currently I'm trying it like this:
[09:55:09 CEST] <yong> ffmpeg -f bmp_pipe -framerate 10 -i tcp://localhost:4444 -vframes 20 -an -c:v libx264 -preset veryfast test.mp4
[09:55:42 CEST] <yong> but ffmpeg doesn't even create a test.mp4, and when the sender closes the socket (after sending 40 frames), all ffmpeg outputs is "tcp://localhost:4444: Unknown error"
[09:55:49 CEST] <yong> What do I have to specify to make this work?
[09:56:58 CEST] <furq> you probably want image2pipe
[10:11:00 CEST] <bencc> why the releases in the branches aren't in sync?
[10:11:22 CEST] <bencc> I see random 3.1.x, 3.2.x, 3.3.x releases
[10:11:27 CEST] <bencc> https://github.com/FFmpeg/FFmpeg/releases
[10:11:38 CEST] <bencc> I would expect all the branches to release on the same day
[10:15:52 CEST] <thebombzen> furq: that almost certainly is not the issue, assuming that they're receiving bmp images
[10:16:28 CEST] <thebombzen> png_pipe, jpeg_pipe, bmp_pipe etc. have all been split off from image2pipe. image2pipe still works but those are better
[10:16:51 CEST] <yong> furq: Actually I'm stupid, I can't even connect to ffmpeg, it doesn't matter when I close the socket, ffmpeg just times out with "tcp://localhost:4444: Unknown error" no matter what (even if I'm not doing anything) - which is kind of weird, since it should just listen on a socket which doesn't really have a timeout? Does ffmpeg not support network input like this?
[10:18:21 CEST] <yong> Or do I have to use UDP? I was going to use TCP for testing purposes so I can be sure ffmpeg at least gets data
[10:20:50 CEST] <yong> Alright I guess I have to just specify it to listen, like this:
[10:20:53 CEST] <yong> ffmpeg -f image2pipe -framerate 10 -i tcp://localhost:4444?listen=1 -vframes 20 test.mp4
[10:20:59 CEST] <yong> still can't connect to it though :D
[10:21:38 CEST] <yong> at least it doesn't timeout anymore
[10:29:46 CEST] <yong> ohhhhhhh solved it lol
[10:30:11 CEST] <yong> localhost = ipv6, you have to specify tcp://127.0.0.1 for ipv4
[14:04:05 CEST] <cableguy> hey team
[14:04:40 CEST] <cableguy> i converted a sample file to yuv color with this
[14:04:42 CEST] <cableguy> ffmpeg -i test.mkv -c:v rawvideo -pix_fmt yuv420p test.yuv
[14:04:51 CEST] <cableguy> the test.mkv source is 50mb
[14:04:58 CEST] <cableguy> and the output test.yuv is 2gb size
[14:05:05 CEST] <cableguy> video is 60 second long
[14:05:29 CEST] <cableguy> i tried doing this to a 2h long video, i ran out of hdd space
[14:05:34 CEST] <cableguy> i dont think this is right
[14:05:50 CEST] <dystopia_> morning
[14:06:00 CEST] <furq> what part of that doesn't seem right
[14:06:18 CEST] <cableguy> why output becomes so big?
[14:06:19 CEST] <c_14> the -c:v rawvideo probably
[14:06:25 CEST] <furq> because it's rawvideo
[14:06:25 CEST] <dystopia_> raw makes every frame an i frame
[14:06:27 CEST] <dystopia_> and is massive
[14:06:31 CEST] <furq> it's uncompressed
[14:07:04 CEST] <furq> 60 seconds of 1080p30 yuv420p rawvideo is 5.5GB
[14:07:23 CEST] <cableguy> my input is 60 seconds of 720x576 dvd vob sample
[14:07:39 CEST] <dystopia_> why go to raw?
[14:07:59 CEST] <dystopia_> it's mpeg2, go to whatever end format is desired
[14:08:10 CEST] <furq> use ffv1 in nut if you want a lossless intermediate format
[14:08:18 CEST] <furq> but you could just use -c copy
[14:09:44 CEST] <cableguy> because x265 encode only from yuv dystopia_
[14:09:44 CEST] <dystopia_> i have a 1920x1080 video, that i want to encode to 4:3 to fit in 640x480
[14:09:56 CEST] <dystopia_> but i don't want to loose any of the picture
[14:10:03 CEST] <dystopia_> what resolution can i scale to ?
[14:10:07 CEST] <furq> cableguy: you know ffmpeg supports libx265, right
[14:10:21 CEST] <furq> dystopia_: you can't
[14:10:31 CEST] <furq> unless you want to fuck up the aspect ratio
[14:10:33 CEST] <dystopia_> furq im happy with black bars top and bottom
[14:10:34 CEST] <dystopia_> yeah
[14:10:36 CEST] <furq> oh right
[14:10:37 CEST] <dystopia_> i do :p
[14:10:44 CEST] <dystopia_> but im not sure what res will fit
[14:10:55 CEST] <cableguy> furq, do i look like someone who knows anything at all
[14:11:14 CEST] <furq> 640*360 with black bars to preserve ar
[14:11:17 CEST] <dystopia_> you can go to x265 from mpeg2 with ffmpeg cableguy
[14:11:26 CEST] <cableguy> so how is it different
[14:11:27 CEST] <dystopia_> thanks
[14:11:29 CEST] <dystopia_> will test
[14:11:30 CEST] <cableguy> from converting to yuv with ffmpeg
[14:11:33 CEST] <furq> 640 / (16/9)
[14:11:34 CEST] <cableguy> and then encoding with x265
[14:11:57 CEST] <furq> it means you don't need to store two hours of rawvideo and kill your hard disk
[14:12:08 CEST] <cableguy> oh
[14:12:18 CEST] <cableguy> can you write an example of command line
[14:12:30 CEST] <furq> granted you don't need to do that anyway because you can pipe ffmpeg's output into x265
[14:12:44 CEST] <furq> ffmpeg -i foo.vob -c:v libx265 [options] out.mkv
[14:13:08 CEST] <furq> https://trac.ffmpeg.org/wiki/Encode/H.265
[14:14:02 CEST] <furq> or ffmpeg -i foo.vob -c:v rawvideo -f yuv4mpegpipe - | x265 [options]
[14:14:12 CEST] <furq> there's no real reason to do that though
[14:15:02 CEST] <cableguy> how do i incorporate avs script into this
[14:15:08 CEST] <cableguy> if i need to deinterlace or crop
[14:15:14 CEST] <furq> you can do both of those with ffmpeg
[14:15:17 CEST] <dystopia_> don't
[14:15:18 CEST] <dystopia_> yeah
[14:15:27 CEST] <furq> unless you're using some super fancy deinterlacing script like qtgmc
[14:15:38 CEST] <cableguy> what about yadif
[14:15:44 CEST] <furq> -vf yadif=1
[14:15:45 CEST] <cableguy> cuz its just some old dvd
[14:16:14 CEST] <cableguy> how about running something like SelectRangeEvery()
[14:16:16 CEST] <cableguy> for testing
[14:16:34 CEST] <dystopia_> -vf yadif=0:0,crop=720x576:0:0
[14:16:38 CEST] <furq> i assume that's the same as -t 60
[14:16:56 CEST] <furq> ffmpeg will just load avs scripts if you're more comfortable with that
[14:16:58 CEST] <furq> -i foo.avs
[14:17:14 CEST] <cableguy> wait so
[14:17:42 CEST] <dystopia_> crop values - crop=width_after_crop:height_after_crop:left_crop:top_crop
[14:17:46 CEST] <cableguy> how do you load avs and convert mpeg2 to yuv and encode to x265 all with ffmpeg
[14:17:58 CEST] <furq> you don't do the middle bit
[14:18:08 CEST] <furq> ffmpeg -i foo.avs -c:v libx265 [options] out.mkv
[14:18:22 CEST] <furq> assuming your avisynth.dll is in the right place
[14:18:24 CEST] <cableguy> so the avs must contain the input src that is already yuv format
[14:18:29 CEST] <furq> yes
[14:18:39 CEST] <cableguy> so you dont save any space
[14:18:46 CEST] <furq> what
[14:18:56 CEST] <cableguy> in order to use avs script
[14:19:05 CEST] <cableguy> you end up converting the mpeg2 to yuv burning hdd space
[14:19:07 CEST] <furq> let me revise my answer: no
[14:19:19 CEST] <furq> you load the d2v or whatever in your avs and have avisynth output yuv
[14:19:23 CEST] <cableguy> so you could include that new uncompressed yuv in avs
[14:19:39 CEST] <furq> at no point in this process does rawvideo get saved to your disk
[14:20:00 CEST] <furq> honestly though if you're just cropping and running yadif, you should ditch avisynth
[14:20:20 CEST] <furq> it's an unnecessary complication when ffmpeg will do both of those things identically
[14:20:41 CEST] <cableguy> but how you prepare it for encoding
[14:20:45 CEST] <furq> you don't
[14:21:06 CEST] <cableguy> if you use megui or something it writes a avs script that sets crop values, etc its easy to follow
[14:21:48 CEST] <dystopia_> ffmpeg -i in.vob -vf yadif=0:0,crop=720:576:0:0 -c:v libx265 out.mkv
[14:21:57 CEST] <dystopia_> ^ this imo
[14:22:15 CEST] <dystopia_> you can do -t 60 to test, will save you a lot of hasstle
[14:22:22 CEST] <furq> yeah basically that
[14:22:42 CEST] <furq> 13:18:08 ( furq) ffmpeg -i foo.avs -c:v libx265 [options] out.mkv
[14:22:49 CEST] <furq> this will work with the avisynth script megui produces though
[14:22:58 CEST] <furq> you don't need to create any intermediate files
[14:23:29 CEST] <cableguy> dystopia_, so what do you use to count how many pixels you need to crop e.g. for black bars
[14:24:17 CEST] <cableguy> so does including libx265 automatically solves the mpeg2 to yuv part
[14:25:06 CEST] <dystopia_> cableguy i script my stuff
[14:25:16 CEST] <dystopia_> basically i use ffmpeg to dump a frame of video
[14:25:22 CEST] <dystopia_> then open that frame in paint
[14:25:32 CEST] <dystopia_> and enable grid lines, zoom into max
[14:25:43 CEST] <dystopia_> and every square on the grid = 1 pixel
[14:25:50 CEST] <dystopia_> so i just count what needs to be cropped
[14:25:56 CEST] <dystopia_> then set it in my script
[14:27:04 CEST] <cableguy> do you also wear a fedora
[14:29:58 CEST] <dystopia_> i do not
[14:30:23 CEST] <dystopia_> %PATHC2%\ffmpeg -ss 58 -i 01.ts -r 1 %PATHC4%\%houtput%.bmp
[14:30:23 CEST] <dystopia_> mspaint %PATHC4%\%houtput%.bmp
[14:32:06 CEST] <dystopia_> https://paste.ofcode.org/3aAPytUMRDstAvFFmjGCjCd my old crop code if you want it
[14:32:23 CEST] <cableguy> ffmpeg -i foo.avs -c:v libx265 [options] out.mkv
[14:32:34 CEST] <cableguy> what do you include in [options] part
[14:32:45 CEST] <cableguy> it doesnt recognize x265 options
[14:32:58 CEST] <cableguy> e.g. --preset fast
[14:34:26 CEST] <dystopia_> it should
[14:34:31 CEST] <iive> cableguy: man ffmpeg-codecs "/" to search "libx265"
[14:35:13 CEST] <iive> it says that therea are: -preset, -tune, -forced-idr and -x265-params
[14:35:37 CEST] <cableguy> ur right
[14:35:43 CEST] <cableguy> its one dash not two
[14:36:18 CEST] <dystopia_> any idea why this drops tons of frames :)
[14:36:23 CEST] <dystopia_> ffmpeg.exe -i "in.mp4" -sws_flags spline -s 640x360 -c:v mpeg1video -c:a mp2 -q:a 224 test.mpg
[14:36:31 CEST] <dystopia_> Past duration 0.823357 too large 8754kB time=00:01:37.78 bitrate= 733.4kbits/s dup=37 drop=32 speed=12.2x
[14:37:49 CEST] <dystopia_> drops 77 frames over 5mins of video
[14:38:25 CEST] <relaxed> dystopia_: maybe a change in framerate
[14:38:38 CEST] <dystopia_> hmm
[14:39:11 CEST] <dystopia_> yes
[14:45:54 CEST] <cableguy> but how do you know which x265 version ffmpeg is using
[14:46:01 CEST] <cableguy> how do you know its latest
[14:46:20 CEST] <cableguy> the encoding result says its x265 2.4+87
[14:46:39 CEST] <iive> it uses the one it is linking to
[14:46:58 CEST] <iive> that's why it is a lib<codec>, because it is an external library
[14:46:59 CEST] <cableguy> but latest is 2.5+6
[14:47:15 CEST] <iive> well... what version do you have installed on your system?
[14:47:18 CEST] <cableguy> how do you change where its linking
[14:47:24 CEST] <relaxed> cableguy: https://www.johnvansickle.com/ffmpeg/
[14:47:39 CEST] <iive> windows?
[14:47:46 CEST] <cableguy> ye
[14:47:48 CEST] <viric> Do you know if all formats start the streams at time 0? I have MTS files and I think they may start after 0
[14:47:51 CEST] <cableguy> i guess my ffmpeg is out of date
[14:47:52 CEST] <viric> between 0 and 1s
[14:48:21 CEST] <iive> well, then it depends what version has been linked by the one who built ffmpeg for you.
[14:48:25 CEST] <cableguy> can you update ffmpeg through terminal
[14:48:41 CEST] <cableguy> im just using some windows build available from public
[14:49:24 CEST] <cableguy> hey maybe the shared version is what i need
[14:50:30 CEST] <cableguy> no, it doesnt have any x265 exe files,although it says linking
[14:59:13 CEST] <cableguy> wait so
[14:59:24 CEST] <cableguy> where is ffmpeg pulling the x265 lib from on windows
[14:59:36 CEST] <cableguy> is it compiled into ffmpeg.exe
[14:59:40 CEST] <BtbN> wherever you told it to
[14:59:59 CEST] <cableguy> but i diddnt tell it anything
[15:00:04 CEST] <BtbN> You did while building it
[15:00:24 CEST] <cableguy> i didnt build it
[15:00:26 CEST] <cableguy> its windows
[15:00:33 CEST] <cableguy> you just snatch it from here https://ffmpeg.zeranoe.com/builds/
[15:00:35 CEST] <BtbN> Then whoever built it did.
[15:00:55 CEST] <cableguy> so its inside ffmpeg.exe
[15:01:23 CEST] <cableguy> would be nice if you could point ffmpeg.exe to some external x265.exe
[15:01:46 CEST] <BtbN> it does not use an exe.
[15:51:22 CEST] <kepstin> viric: various formats can start at pts other than 0 yes, mpegts is a good example of that. Note that the ffmpeg cli tool (by default) rewrites input timestamps to start at 0.
[15:55:18 CEST] <viric> kepstin: aaah good to know. I never understood what happened with that number.
[15:55:30 CEST] <viric> kepstin: what about concatenating two MTS?
[15:55:59 CEST] <viric> kepstin: do you know any case where that number is used?
[15:56:29 CEST] <viric> By conatenating MTS, I mean two consecutive MTS that a camcorder created for continuous shot
[15:57:01 CEST] <kepstin> viric: not enough info, it depends what the camcorder did with the timestamps
[15:58:39 CEST] <kepstin> when concatenating arbitrary mpeg-ts, there's often a timestamp discontinuity - they'll jump backwards or far forwards. I think there's some code somewhere (in ffmpeg cli?) to notice these with heuristics and make timestamps continuous.
[15:59:41 CEST] <kepstin> but on a camcorder, if they're only been split because of max file size limits? it might be a single continuous mpegts stream, so concatenating them would give you... a single continuous stream
[16:00:10 CEST] <viric> kepstin: only max size limits.
[16:00:16 CEST] <viric> ah ok.
[16:00:39 CEST] <kepstin> depends on the camcorder, I don't know what yours does.
[16:00:46 CEST] <viric> ok.
[16:00:49 CEST] <viric> How can I know? :)
[16:00:59 CEST] <viric> what to look at, with ffprobe?
[16:01:46 CEST] Action: kepstin isn't great with ffprobe, so there's probably an easier way to do this, but...
[16:02:34 CEST] <kepstin> if you look at the output of 'ffprobe -show_frames', which includes the frame timestamps, you can see if the timestamps at the start of one file follow from the timestamps at the end of another
[16:03:32 CEST] <kepstin> ffprobe shows the timestamps as they are in the file, it doesn't do any cleanup/rewriting like the ffmpeg cli tool.
[16:38:01 CEST] <Bear10> anyone knwo why: av_image_copy(frame->data, frame->linesize, data, linesize, pix_fmt, w, h); could be causing my memory to increase drastically (it's called on every frame in my custom filter) however I'm changing the data on the frame which I understand should be freed later on
[16:38:26 CEST] <Bear10> i do av_frame_free(&in) and av_freep(&data[0]) to ensure that the originals are freed up
[16:39:59 CEST] <atomnuker> your input is refcounted and you don't unref it
[16:40:13 CEST] <Bear10> atomnuker: isn't that what the av_frame_free(&in) does?
[16:41:19 CEST] <Bear10> just trying to learn :)
[16:41:45 CEST] <atomnuker> custom filter?
[16:41:56 CEST] <Bear10> yeah
[16:41:59 CEST] <atomnuker> couldn't you just make the frame writeable?
[16:42:10 CEST] <atomnuker> and then write to it
[16:43:24 CEST] <Bear10> well i've tried with ff_load_image(frame->data, frame->linesize, ....) but had the same issue, and the w/h/pixfmt might be different since I'm reading a different image
[16:43:57 CEST] <Bear10> correction: ff_load_image (in->data, in->linesize, ...)
[16:45:27 CEST] <atomnuker> ff_ stuff is private
[16:46:35 CEST] <Bear10> how would you recommend reading a jpg from a file and putting it into the frame?
[16:47:10 CEST] <Bear10> I was pointed to https://github.com/jnicklas/ffmpeg_test/blob/master/test.c
[16:47:29 CEST] <atomnuker> its already a frame
[16:48:13 CEST] <Bear10> I understand that in is a frame, but it has a lot of information from the original frame which I want to completely replace with the information I read from a new jpg
[16:49:00 CEST] <Bear10> hence I was pointed to that link
[16:49:04 CEST] <Bear10> I have all of it working as desired a part from the memory issue
[16:50:20 CEST] <atomnuker> trace all allocations you make then, ffmpeg internals make sure to NULL any freed pointers
[16:50:52 CEST] <atomnuker> if you're working with 2 jpeg images then you'll need to make sure both avframes are unref'd
[16:51:40 CEST] <atomnuker> (if you have a filter doing frame_a + frame_b -> frame_c, otherwise for something like frame_a + frame_b -> frame_a/frame_b make sure whatever you leave behind gets unreffd somehow)
[16:55:31 CEST] <Bear10> atomnuker: hmm I thought that's what I was doing here's a pastebin https://pastebin.com/U2waqUqX of the filter_frame function
[16:55:40 CEST] <Bear10> not sure if you see me missing anything you mentioned
[16:56:11 CEST] <Bear10> I've also attempted adding av_frame_unref(...) before the av_free_frame(...)
[16:57:56 CEST] <atomnuker> oh wait, its an internal filter?
[16:58:05 CEST] <atomnuker> I thought it was external
[16:58:19 CEST] <atomnuker> Bear10: ask durandal_1707 in this case
[16:58:19 CEST] <Bear10> atomnuker: yeah it's a filter based on the writing_filters.txt
[16:59:12 CEST] <Bear10> thanks atomnuker for the help :)
[16:59:29 CEST] <Bear10> hello durandal_1707 if you get the chance could you lend me a quick hand?
[17:01:42 CEST] <atomnuker> are you planning to put the patch on the ml?
[17:03:45 CEST] <Bear10> ml?
[17:04:08 CEST] <atomnuker> mailing list so the filter gets upstreamed?
[17:04:15 CEST] <durandal_1707> Bear10: what about freeing data[1] and so on?
[17:04:33 CEST] <Bear10> durandal_1707: I tried freeing data[1] [2] and [3] and still had the same issue oddly enough
[17:04:51 CEST] <Bear10> atomnuker: if it turns out there's an actual issue and it's not me being a noob of course
[17:04:55 CEST] <Bear10> :)
[17:05:59 CEST] <durandal_1707> Bear10: are you on unix, use valgrind
[17:06:47 CEST] <Bear10> durandal_1707: the odd thing also is on a mac OS X it doesn't seem to have this memory issue but on Linux Mint it's where it's happening
[17:06:54 CEST] <Bear10> haven't heard of it i'll give it a look now
[17:07:14 CEST] <JEEB> valgrind is awesomesauce
[17:07:27 CEST] <JEEB> I would not be able to code as well as I do without the help of valgrind and static analyzers
[17:07:43 CEST] <Bear10> in that case installing it now :)
[17:08:47 CEST] <atomnuker> Bear10: you need to do it properly then and make the filter take 2 inputs rather than a frame and a name, look how e.g. vf_premultiply does it
[17:10:59 CEST] <Bear10> ok will have a look, it's going to be a bit to look into but i'll try and come back with some results / information
[17:11:01 CEST] <Bear10> thanks again guys :)
[17:12:48 CEST] <durandal_1707> Bear10: what filter actually do?
[17:13:09 CEST] <Hello_> Hi, I need help
[17:13:25 CEST] <Hello_> pls
[17:13:27 CEST] <Bear10> durandal_1707: it ignores the frame that's being input (it's in an overlay) and replaces it with a jpg of my choosing
[17:13:58 CEST] <Bear10> but I can't do it with normal cli commands or existing filters because it needs to be dynamic (changing on queue)
[17:14:10 CEST] <Bear10> like a news anchor talking about the weather a sun shows up
[17:14:55 CEST] <Bear10> when he/she talks about economic crisis a chart jpeg would show up
[17:14:55 CEST] <Bear10> etc etc
[17:15:08 CEST] <Bear10> on cue*
[17:15:26 CEST] <atomnuker> Bear10: vf_overlay already does that
[17:16:05 CEST] <durandal_1707> but overlay isnt dynamic
[17:16:21 CEST] <atomnuker> define dynamic?
[17:16:29 CEST] <atomnuker> you can change its input
[17:16:42 CEST] <atomnuker> you can even toggle it using the timeline since its supported by it
[17:17:01 CEST] <Bear10> atomnuker: does it? i tried looking everywhere and couldn't find information anywhere
[17:17:18 CEST] <Bear10> i don't mean timeline
[17:17:26 CEST] <Bear10> because an offset isn't the same as "on cue"
[17:17:36 CEST] <durandal_1707> you would need to just write filter which would take inputs as commands and copy it to output
[17:17:53 CEST] <atomnuker> Bear10: what offset?
[17:18:06 CEST] <durandal_1707> Hello_: help what?
[17:18:33 CEST] <Bear10> atomnuker: I've heard of -itoffset or something like that, can't find it right now
[17:18:41 CEST] <Bear10> for an overlay to appear / disappear after X seconds
[17:19:03 CEST] <atomnuker> vf_overlay does that
[17:19:09 CEST] <Bear10> that's not what I want
[17:19:11 CEST] <atomnuker> you just need to use the api
[17:19:16 CEST] <durandal_1707> overlay approach looks to complicated
[17:19:23 CEST] <atomnuker> and feed in the second source as you need
[17:19:39 CEST] <atomnuker> why do you feel you need to cram everything into the ffmpeg command line tool?
[17:20:05 CEST] <Bear10> atomnuker: I'm new to ffmpeg and the documentation available isn't the easiest in the world to understand the sourcecode :)
[17:20:09 CEST] <atomnuker> the API is there if it doesn't do what you need it to do
[17:21:07 CEST] <durandal_1707> atomnuker: he would need to create new filtergraph for every new image
[17:21:18 CEST] <atomnuker> durandal_1707: not necessary
[17:22:12 CEST] <durandal_1707> there is no filter which concat various overlays over video
[17:22:22 CEST] <atomnuker> just make vf_overlay's second input the same as the first input and do compositing on it using some toolkit
[17:22:42 CEST] <atomnuker> using the alpha channel to mask stuff out of the second input
[17:22:57 CEST] <atomnuker> *same size that is
[17:23:04 CEST] <durandal_1707> yes that what im saying for overlay input
[17:23:51 CEST] <durandal_1707> filter would just load images dynamically and create transparent pixels when needed
[17:24:07 CEST] <Bear10> durandal_1707: that's what I'm attempting to do
[17:24:11 CEST] <atomnuker> not filter, the user himself needs to do that
[17:24:25 CEST] <atomnuker> a filter would be too inflexible
[17:24:53 CEST] <durandal_1707> well not really, there are commands for filters
[17:25:36 CEST] <atomnuker> yes, but "show this logo for 10 seconds" and then "show another for 4 seconds" is not something a filter needs to do
[17:26:32 CEST] <atomnuker> its something users need to do
[17:27:33 CEST] <Bear10> when you say "using some toolkit" could you give an example of one?
[17:27:36 CEST] <durandal_1707> but they want too use cli and not c
[17:28:01 CEST] <Bear10> or where in the code I should be looking at if not a custom filter
[17:41:19 CEST] <atomnuker> durandal_1707: the cli gets far too inflexible for something like this, not to mention you can't do frame-perfect sync
[17:41:51 CEST] <atomnuker> its not the proper way of doing things
[17:44:24 CEST] <atomnuker> depending on what you need to do you might want to run 2 filter instances in your program
[17:44:53 CEST] <atomnuker> so one filter to produce what you want to overlay and another to overlay it onto your main image
[17:46:35 CEST] <atomnuker> so to load an image you can either do it the standard way and use lavc + lavf to get a frame or vf_movie to do it for you
[17:47:09 CEST] <Bear10> well that's basically what we have isn't it? 1) we have our filter named "news" where we grab the frame, place the image etc, and then our output goes 2) into the overlay filter
[17:47:23 CEST] <atomnuker> then if you needed to draw some text somewhere you'd use the drawtext filter on the resulting frame
[17:47:33 CEST] <Bear10> I mean we have the desired output, the problem is in the memory
[17:47:34 CEST] <atomnuker> Bear10: that's not the issue
[17:47:40 CEST] <atomnuker> the issue is control
[17:47:48 CEST] <atomnuker> how do you control what shows up and when?
[17:48:18 CEST] <Hello_> aaa
[17:48:28 CEST] <atomnuker> you have no way of controlling this via the command line
[17:48:39 CEST] <Hello_> duranda1_1707
[17:48:45 CEST] <Bear10> atomnuker: we're not trying to control the image via the command line though
[17:49:06 CEST] <Bear10> but there are options and I saw there was a way to dynamically change options
[17:49:06 CEST] <atomnuker> what, you just load some random files from a directory whenever they crop up?
[17:50:04 CEST] <Bear10> currently for testing and prototype purposes we're doing it with a txt file, but I saw we could maybe use zmq
[17:50:09 CEST] <atomnuker> you can't change any options via the command line
[17:50:19 CEST] <atomnuker> after you run it, that's it, its done
[17:50:31 CEST] <atomnuker> if you need to change options you need to use the API
[17:51:04 CEST] <atomnuker> during runtime that is
[17:51:13 CEST] <Bear10> when you say API to what are you referring to?
[17:51:23 CEST] <atomnuker> the libavfilter API
[17:51:42 CEST] <Bear10> I linked you to the frame_filter code we have, we're using the API
[17:52:27 CEST] <Bear10> as mentioned we have the desired output, everything is working as we want, we're just having an issue with a memory leak with the frame and buffer with the av_image_copy
[17:52:55 CEST] <Bear10> it happens on Linux Mint but not OS X
[17:52:58 CEST] <atomnuker> fine, you can sort it out yourselves, though if you try to upstream it I'll object to having it in the codebase
[17:53:41 CEST] <atomnuker> its in no way something that should be encouraged, writing filters because you can't do things via the command line
[17:54:05 CEST] <Bear10> you have a doc that says writing_filters.txt
[17:55:01 CEST] <Bear10> you're contradicting yourself by saying "it shouldn't be done", "use the API", "don't write a filter" "you have to use CLI", "you can't change options via CLI"
[17:55:28 CEST] <atomnuker> I never said you have to use the cli, I said the opposite of that
[17:55:45 CEST] <Bear10> so I have a filter... so what's the issue?
[17:55:49 CEST] <atomnuker> it sucks
[17:55:59 CEST] <Bear10> and you have proposed nothing to fix it
[17:56:00 CEST] <atomnuker> its a hack
[17:56:18 CEST] <atomnuker> nevermind that it doesn't work, its conceptually wrong
[17:58:34 CEST] <Bear10> it does work though
[17:59:25 CEST] <Bear10> on OS X it works fine, Linux Mint it has a leak from an av_image_copy which is part of the API, I'm attempting to use av_frame_free (part of the API) and av_freep (also part of the API) but perhaps I'm missing something else
[18:00:38 CEST] <bencoh> considering you're running the very same code on both platform, I'd try with another memory allocator on linux (say, jemalloc) just to make sure
[18:02:28 CEST] <Bear10> ok will give that a try thanks bencoh
[18:07:19 CEST] <Blubberbub_> is file-metadata(interpret,title,...) for audio only included in the first or in every frame?
[19:06:54 CEST] <markmedes2> Fellas, I need to scan some files for errors, I'm using ffmpeg -v error -i ... Is there a way to include the timestamp of the error in the log?
[20:38:10 CEST] <pgorley> to convert an audio file to an array of samples (int16_t), do i need to decode the audio using the send_packet/receive_frame api?
[21:52:21 CEST] <viric> kepstin: thank you
[21:52:32 CEST] <viric> kepstin: in fact I want to program an audio track aligner
[21:52:36 CEST] <viric> does that exist at all?
[21:52:59 CEST] <kepstin> I'm not sure what you mean by "audio track aligner"
[21:55:00 CEST] <Blubberbub_> so you have like a similar sound at the beginning and want to mix all audio tracks together and shift them, so the signal is aligned?
[21:56:25 CEST] <Blubberbub_> for example when recording something with multiple cameras people often "clap" before doing anything, so they can synchronize everything later?
[21:59:31 CEST] <viric> kepstin: I have two recording devices for the same scene, and I want them under same pts
[22:00:20 CEST] <viric> kepstin: they have slightly different clock, additionaly.
[22:00:52 CEST] <viric> kepstin: about 1s drift per hour
[22:00:56 CEST] <kepstin> sounds annoying to deal with, if they're on different clocks :/
[22:01:36 CEST] <viric> right.
[22:01:41 CEST] <viric> only slightly different
[22:02:12 CEST] <Blubberbub_> Do you want to do that live?
[22:02:55 CEST] <kepstin> but yeah, aligning those tracks in post really wouldn't be that hard as long as you have some identifiable synchronization points near the start and near the end of each track, so you can find what pts in each track the synch points are at
[22:03:01 CEST] <pgorley> does "ffmpeg -i <file> -f s16le -acodec pcm_s16le output.raw" extract the raw audio samples from the file?
[22:03:15 CEST] <kepstin> then just resample to fix the length, and apply an offset to align them
[22:04:03 CEST] <viric> kepstin: right. But usually the identifiable points are hard to find too. I hope I can write something that will find the correlations/offsets/atempo factors for me
[22:04:23 CEST] <Blubberbub_> there is a python script on github somewhere that does something like that
[22:04:40 CEST] <viric> Blubberbub_: can you find it?
[22:04:45 CEST] <kepstin> getting into some fun audio analysis stuff for that, yeah. Out of my area of experience :)
[22:05:20 CEST] <Blubberbub_> viric, https://github.com/bbc/audio-offset-finder
[22:05:34 CEST] <Blubberbub_> it only works on python2, though
[22:05:51 CEST] <viric> https://github.com/protyposis/AudioAlign ?
[22:06:00 CEST] <kepstin> the bbc one only appears to do the offset, not the scaling to compensate for clock drift
[22:06:10 CEST] <viric> what bbc?
[22:06:20 CEST] <viric> ah bbc. ok
[22:14:08 CEST] <viric> mh that AudioAlign would be hard to beat
[22:14:12 CEST] <viric> but it's for Windows.
[22:14:59 CEST] <ultrav1olet> I cannot seem to find any documentation on video stream framerate information. Could someone please document all the values because Googling hasn't netted anything interesting.
[22:15:14 CEST] <ultrav1olet> I'm talking about: " 25 fps, 25 tbr, 1k tbn, 50 tbc (default)"
[22:15:35 CEST] <ultrav1olet> these things are absolutely cryptic and 1k looks like 1000 which doesn't make any sense
[23:08:30 CEST] <markmedes2> Is there a way to scan a file for error and print the timestamp of the error when ffmpeg finds one?
[23:40:19 CEST] <Mista_D> can a format of the source file be passed to output, regardless of file extension?
[23:57:55 CEST] <ultrav1olet> The source video which contains 135475 frames became a video with 132725 frames. What gives?
[23:58:30 CEST] <ultrav1olet> I've just reencoded video - that's all - no fancy options/parameters/anything
[00:00:00 CEST] --- Thu Aug 10 2017
1
0
[02:16:47 CEST] <thebombzen> it looks like they're linking in Libav, not ffmpeg
[02:17:16 CEST] <thebombzen> given the whole --enable-avserver --enable-avplay
[02:17:39 CEST] <thebombzen> kierank: this doesn't look like an issue with FFmpeg
[02:17:58 CEST] <thebombzen> so yea it's an GPL violation but shouldn't this by taken up with Libav?
[02:18:00 CEST] <kierank> hmm probably yes
[02:18:13 CEST] <kierank> but there's definitely ffmpeg code in there so whatever
[02:22:33 CEST] <thebombzen> IANAL /shrug
[03:07:01 CEST] <rcombs> any GPL violation is generally going to be violating the copyright of both projects
[03:07:12 CEST] <rcombs> since they share most of their code
[05:34:57 CEST] <ZeroWalker> is there a way to tell ffmpeg that the video frame is upside down?
[06:35:30 CEST] <cone-468> ffmpeg 03James Almer 07master:45759540a559: fate: update ref files for gray pixel formats changes
[09:37:32 CEST] <nevcairiel> how do dropbox mails like that even get to the ML, clearly dropbox isnt subscribed, shouldnt that then be in ML moderation? did someone approve that? :p
[10:02:08 CEST] <durandal_1707> Compn approved it
[11:41:35 CEST] <Compn> [04:02] <durandal_1707> Compn approved it
[11:41:36 CEST] <Compn> lies
[11:52:36 CEST] <Compn> the last time we investigated a similar email, it turned out that the automated mailer (i think it was linkedin....) had spoofed its mail headers
[11:55:56 CEST] <Compn> so shyamaldass001@gmail is a subscriber to the list, and dropbox used that email as its FROM: , while using an reply-to email no-reply(a)dropboxmail.com
[11:56:02 CEST] <Compn> at least thats my guess
[11:56:06 CEST] <Compn> i didnt verify with the logs
[14:18:28 CEST] <kurosu> nasm dependency generation seems broken here (MSYS2/2.13.01)
[14:18:36 CEST] <kurosu> example: libavcodec/x86/simple_idct10.o: <PATH>/libavcodec/x86/simple_idct10.asm
[14:19:14 CEST] <kurosu> correct: libavcodec/x86/simple_idct10.o: <PATH>/libavcodec/x86/simple_idct10.asm config.asm <PATH>/libavutil/x86/x86util.asm <PATH>/libavutil/x86/x86inc.asm <PATH>/libavcodec/x86/simple_idct10_template.asm
[14:19:58 CEST] <kurosu> seems to work correctly if "-MD <FILE>.d -M" is used instead of plain "-MD <FILE>.d"
[14:20:08 CEST] <kurosu> moving the '-M' in front doesn't work
[14:21:25 CEST] <kurosu> (above is content of libavcodec/x86/simple_idct10.d)
[14:23:32 CEST] <kurosu> test: change date of libavcodec/x86/simple_idct10_template.asm and see not being libavcodec/x86/simple_idct10.o recompiled
[14:24:54 CEST] <kurosu> nevermind the solution, doesn't work, but the problem still there
[14:25:08 CEST] <J_Darnley> atomnuker, kierank: do you have any suggestions for removing/working around the buffer allocation for bitstream writing in vc2enc?
[14:26:41 CEST] <atomnuker> J_Darnley: you need a buffer to write to
[14:26:52 CEST] <atomnuker> and its already written to directly, there's nothing to remove
[14:27:18 CEST] <atomnuker> you need to know how many bits it'll take to encode something to you know how much to alloc
[14:27:49 CEST] <nevcairiel> buffer allocation in encoders is an annoying problem
[14:27:54 CEST] <atomnuker> you could always allocate the max possible
[14:28:01 CEST] <atomnuker> then encode to it without knowing the size
[14:28:05 CEST] <J_Darnley> But I can't allocate it without knowing the size needed. I can't know that without doing the transform. I can't do the transform without the whole picture.
[14:28:38 CEST] <atomnuker> then you have a buffer where you write to which is always big enough to store uncompressed coeffs + a bit more
[14:28:41 CEST] <nevcairiel> ffv1enc uses the max size, but the max size is basically uncompressed size, which poses its own sort of problems with high resolution content
[14:28:43 CEST] <atomnuker> you encode to it
[14:28:52 CEST] <J_Darnley> But it seems to allocate 1 buffer for every slice?
[14:28:55 CEST] <atomnuker> and then you copy the amount you wrote to the main one
[14:29:35 CEST] <atomnuker> you could get away without copying but then you'll need to do things serially
[14:30:02 CEST] <atomnuker> so you won't be able to slice thread if you don't memcpy
[14:30:09 CEST] <J_Darnley> I miss the days when I was writing directly to network card buffer.
[14:34:22 CEST] <atomnuker> the only exciting thing about network cards is ipv6
[14:35:02 CEST] <atomnuker> I had to connect to an rpi I flashed, I didn't have a router, I didn't have a dhcp server, I had a cable and 2 ethernet ports
[14:35:26 CEST] <atomnuker> thanks to stateless ipv6 I was able to just hook them up and use the rpi's hostname to ssh
[14:40:55 CEST] <kierank> J_Darnley: if you constrain the encoder to take a slice at a time you can do what you want
[14:41:04 CEST] <kierank> Just allocate and overshoot
[14:41:11 CEST] <kierank> And then write direct to that buffer
[14:56:29 CEST] <kurosu> nevcairiel / jamrial (when and if he shows up): https://bugzilla.nasm.us/show_bug.cgi?id=3392420 for the above issue
[14:59:07 CEST] <iive> can we assume that the encoded picture would always be smaller than the raw input fame size?
[14:59:14 CEST] <iive> frame
[14:59:25 CEST] <atomnuker> iive: nope
[15:00:08 CEST] <iive> ok, but if it gets bigger... maybe we should just dump the raw frame ;)
[15:01:52 CEST] <cone-446> ffmpeg 03wm4 07master:caa12027baf1: lavc, lavu: move frame cropping to a convenience function
[15:01:53 CEST] <cone-446> ffmpeg 03wm4 07master:463b81de2b25: imgutils: add function to clear an image to black
[15:25:58 CEST] <atomnuker> J_Darnley: no one has started working on such a thing on the encoding side, only on the decoding side using draw_horiz_band
[17:15:05 CEST] <durandal_1707> how good is speex aec?
[17:16:35 CEST] <wm4> have merges completely died?
[17:17:35 CEST] <wm4> last one was 3 months ago
[17:18:03 CEST] <atomnuker> durandal_1707: should be pretty good, though ask jmspeex in #opus if he has come up with something better
[17:18:45 CEST] <wm4> philipl: tried to look at libav's cuda hwaccel?
[18:01:15 CEST] <durandal_1707> ubitux is on vacation
[18:55:19 CEST] <cone-446> ffmpeg 03Paul B Mahol 07master:41096904d036: avfilter/vf_separatefields: stop leaking last frame
[18:57:33 CEST] <Compn> wm4 : no one wants merge job
[18:57:49 CEST] <Compn> wm4 : feel free to cherry pick ?
[18:58:11 CEST] <durandal_1707> Compn: are you coming to VDD?
[18:59:06 CEST] <Compn> durandal_1707 : no, dont think so
[18:59:18 CEST] <Compn> durandal_1707 : are you going ?
[18:59:32 CEST] <durandal_1707> no :(
[18:59:35 CEST] <Compn> why not ?
[18:59:41 CEST] <Compn> paris is nice
[18:59:50 CEST] <durandal_1707> im busy and afraid
[19:00:17 CEST] <atomnuker> Compn: okay, you're not there, is you beard going to attend though?
[19:00:40 CEST] <Compn> only if it was in the south france part
[19:00:47 CEST] <Compn> i'd go if it were held in nice :)
[19:01:08 CEST] <Compn> check out monaco again
[19:01:59 CEST] <Compn> atomnuker : buy a beard and wear it around vdd to keep the beard levels up
[19:25:41 CEST] <cone-446> ffmpeg 03Michael Niedermayer 07master:a5380f9c1c46: avcodec/dirac_dwt: Fixes integer overflows in COMPOSE_DAUB97*
[19:32:45 CEST] <kierank> durandal_1707: afraid of whom?
[19:32:59 CEST] <kierank> I know kung fu I can protect you
[19:33:14 CEST] <durandal_1707> kierank: im afraid of paris
[19:33:41 CEST] <kierank> who isn't
[19:34:03 CEST] <atomnuker> I know, right, the metro system can leave you trapped in the tunnels
[19:34:20 CEST] <kierank> i'm afraid of the smell tbh
[19:34:29 CEST] <kierank> everywhere smells of piss
[20:02:12 CEST] <philipl> wm4: No. They added a full one?
[20:02:23 CEST] <wm4> yes
[20:02:36 CEST] <wm4> haven't had the chance to test because I'd need the cuda sdk installed
[20:02:39 CEST] <philipl> Someone loves suffering. nvidia don't document how to use it without their parser
[20:02:53 CEST] <wm4> seems like elenril figured it out
[20:05:11 CEST] <philipl> But still too stubborn to borrow any code from ffmpeg so he didn't use the dynamic loader for cuda
[20:06:52 CEST] <philipl> I think, conceptually, it's better to have a real hwaccel as the nvidia parser is not perfect. It's probably the cause for the glitches that hanna observed.
[20:07:05 CEST] <wm4> I had this discussion with him
[20:07:09 CEST] <philipl> BtbN: You look at this?
[20:07:10 CEST] <wm4> he was all like "just install the sdk"
[20:07:24 CEST] <BtbN> hm?
[20:07:31 CEST] <philipl> real cuvid hwaccel
[20:07:50 CEST] <BtbN> Did they actually merge it in libav?
[20:07:53 CEST] <philipl> Yep
[20:07:58 CEST] <philipl> https://github.com/libav/libav/blob/master/libavcodec/cuvid_hevc.c etc
[20:08:07 CEST] <BtbN> How did they solve the issue of it being horribly slow, because no buffering?
[20:08:21 CEST] <philipl> Of course, only two codecs right now.
[20:08:33 CEST] <philipl> Dunno. I guess it's fast enough for playback even if you do nothing
[20:08:42 CEST] <philipl> Transcode might be garbage, but we'd have to test
[20:09:50 CEST] <philipl> If there are no functional regressions (and performance is the big one I guess), I'd be in favour of adopting it. Of course, we'd need to keep the current one around to cover the other codecs until someone writes the individual hwaccels
[20:10:32 CEST] <philipl> I don't think there's any claim that the nvidia parser is better in any circumstance.
[20:10:55 CEST] <BtbN> It's nice to have it around though
[20:12:13 CEST] <BtbN> https://github.com/libav/libav/blob/master/libavcodec/decode.h#L39
[20:12:33 CEST] <philipl> Assuming we had all the hwaccels and no functional regressions, would you actually want it around?
[20:12:38 CEST] <philipl> That's his solution to buffering?
[20:12:46 CEST] <BtbN> https://github.com/libav/libav/commit/704311b2946d74a80f65906961cd9baaa1868…
[20:12:49 CEST] <BtbN> yes, looks like it
[20:13:10 CEST] <BtbN> https://github.com/libav/libav/commit/badf0951f54c1332e77455dc40398f3512540…
[20:13:28 CEST] <philipl> Yay I guess.
[20:13:43 CEST] <BtbN> Yeah, if it works at the same performance, I'd prefer it
[20:13:53 CEST] <BtbN> Allows for some more obscure stuff to be possible
[20:13:56 CEST] <philipl> In practical terms, I know the nvidia parser prevents us supporting wmv9 and webp.
[20:14:11 CEST] <BtbN> like those weird in-video subtitles
[20:14:51 CEST] <philipl> Aren't those fun...
[20:15:06 CEST] <BtbN> I wonder though, the delay that adds does not seem overly crazy
[20:15:10 CEST] <philipl> Switching would also let me drop the whole fake hwaccel comamnd line thing that we never resolved.
[20:15:35 CEST] <BtbN> I don't think switching is possible without breaking api
[20:17:03 CEST] <philipl> Well, we can keep the current decoder around - the namespace is separate
[20:17:17 CEST] <philipl> So this would be additional until the next break opportunity
[20:17:53 CEST] <BtbN> It does not look like their cuvid stuff is able to output CUDA frames though?
[20:17:59 CEST] <wm4> both cuvid decoder and hwaccel will call get_format
[20:18:03 CEST] <wm4> you're in for some mess
[20:18:12 CEST] <philipl> eh...
[20:18:17 CEST] <BtbN> hm?
[20:18:29 CEST] <BtbN> The new cuvid decoder is a normal hwaccel
[20:18:34 CEST] <BtbN> It will behave like any other one
[20:18:41 CEST] <philipl> wm4: I mean, we'd have give the two hwaccels different names.
[20:19:02 CEST] <wm4> get_format uses _only_ the pixfmt to identify or select the hwaccel
[20:19:22 CEST] <BtbN> Just going to get rid of the dummy hwaccel then
[20:19:25 CEST] <wm4> so a caller using the cuda hwaccel would have to distinguish them in another way
[20:19:26 CEST] <BtbN> it's not needed anymore then anyway
[20:19:36 CEST] <philipl> Well, then we now have an opportunity to change the format to use cuda arrays :-)
[20:19:38 CEST] <wm4> that could work, or would at least reduce the mess
[20:20:17 CEST] <wm4> btw. I wonder if there is cuda/vulkan interop
[20:21:07 CEST] <BtbN> There is a generic extension for VK to use "external memory"
[20:24:13 CEST] <philipl> I keep looking.
[20:24:20 CEST] <philipl> There needs to be a cuda side to the VK extension
[20:24:26 CEST] <philipl> That doesn't exist yet - maybe it's in cuda 9
[20:24:38 CEST] <wm4> it could be that the vulkan side just imports generic memory
[20:24:59 CEST] <wm4> and you use that as an image
[20:25:08 CEST] <wm4> (vulkan is low level enough that this is possible)
[20:25:39 CEST] <wm4> via VK_KHX_external_memory / VK_KHX_external_memory_fd
[20:25:52 CEST] <kurosu> what's the content of libavcodec/x86/simple_idct10.d (build system dependency file included by makefile) for people targeting x86 here?
[20:26:26 CEST] <kurosu> can anyone confirm it has a single dependency <PATH>/libavcodec/x86/simple_idct10.asm
[20:27:34 CEST] <philipl> wm4: it is possible, but it does at least need to be documented as to whether you just pass a cuda pointer, etc.
[20:27:40 CEST] <wm4> yeah
[20:38:29 CEST] <kierank> kurosu: J_Darnley: ping
[20:38:43 CEST] <kierank> maybe you know the answer J_Darnley
[20:38:50 CEST] <J_Darnley> Maybe
[20:41:15 CEST] <cone-446> ffmpeg 03Michael Niedermayer 07master:fea7bc9e7b9a: avcodec/dvenc: Support adjusting the quantizer deadzone
[20:41:16 CEST] <cone-446> ffmpeg 03Michael Niedermayer 07master:abaeeb3ce08d: avcodec/dvenc: Change quantizer dead zone default to 7
[20:41:19 CEST] <J_Darnley> I would expect the deps for an assembly object to be the .asm file, x86inc.asm, x86util.asm
[20:41:37 CEST] <J_Darnley> Oh, and config.asm I guess
[20:42:03 CEST] <kurosu> and also simple_idct10_template.asm in that case
[20:42:17 CEST] <kurosu> that's the output of -M, while -MF is borked
[20:42:56 CEST] <kurosu> for a particular case, until verified on other platforms
[20:43:38 CEST] <J_Darnley> Didn't someone file a bug on nasm's tracker about it?
[20:43:53 CEST] <kurosu> <- you're probably thinking of this guy
[20:44:01 CEST] <J_Darnley> :) maybe I am
[20:46:54 CEST] <ubitux> hello
[20:47:24 CEST] <ubitux> holidays are boring, i'm better at home derping with other nerds
[20:47:50 CEST] <ubitux> hey wm4, not sure if you saw it, i fixed your subrip nesting issue a few days ago
[20:47:56 CEST] <ubitux> you may want to give it a try
[20:48:08 CEST] <ubitux> (i took the opportunity to improve the br handling too)
[20:48:11 CEST] <J_Darnley> kurosu: yes, with nasm 2.13 I have only the asm file as a dependency
[20:48:40 CEST] <ubitux> J_Darnley: nasm deps are broken, i opened a ticket a while ago, but i should probably open it at nasm bug tracker
[20:48:48 CEST] <kurosu> oh
[20:48:49 CEST] <ubitux> i wasn't sure if we messed up options ourselves
[20:48:51 CEST] <kurosu> I just did
[20:49:08 CEST] <wm4> ubitux: saw it, it's nice
[20:49:12 CEST] <kurosu> no, bug confirmed by martsin storsjo & a nasm developper
[20:49:22 CEST] <kurosu> https://bugzilla.nasm.us/show_bug.cgi?id=3392420
[20:49:33 CEST] <ubitux> oh that's great
[20:49:36 CEST] <kurosu> and it now appears to be for several platforms (I suspect all)
[20:49:53 CEST] <kurosu> weird that nobody was bitten by this bug
[20:50:46 CEST] <kurosu> using -M (which doesn't generate the object file) generates the proper output
[20:51:03 CEST] <ubitux> mmh i can't find the ticket again
[20:51:19 CEST] <ubitux> only https://trac.ffmpeg.org/ticket/6516 which is unrelated (but also a nasm bug)
[20:51:27 CEST] <ubitux> maybe i only poke on the ml
[20:52:22 CEST] <J_Darnley> Well, I would only be bitten by it if I were working on the headers.
[20:53:03 CEST] <thebombzen> Who administers the website HTML stuff? There's a deadlink: http://0x0.st/d2f.png
[20:53:07 CEST] <J_Darnley> I might have noticed when working on the idct template but I was usually dealing with both files for that.
[20:53:16 CEST] <thebombzen> This button "Read on Gmane" is a big fat 404
[20:53:45 CEST] <thebombzen> or do I submit a trac bug for website UI issues as well
[20:53:58 CEST] <J_Darnley> kierank: was the nasm thing why you pinged me?
[20:54:53 CEST] <kierank> Yes
[20:54:59 CEST] <ubitux> http://ffmpeg.org/pipermail/ffmpeg-devel/2017-June/212899.html
[20:55:00 CEST] <J_Darnley> thebombzen: if nobody replies then you may submit a ticket
[20:55:05 CEST] <ubitux> kurosu: seems i only reported it here ^
[20:55:14 CEST] <thebombzen> alright
[20:55:21 CEST] <ubitux> (and we had a discussion on irc)
[20:56:12 CEST] <kurosu> "touch libavcodec/x86/simple_idct10_template.asm" doesn't trigger a recompilation of the object file, as expected with the incomplete dependency file
[20:57:04 CEST] <ubitux> yep
[20:57:06 CEST] <kurosu> well, I was likely to have missed all these discussions, but the bug is filed and acknowledged by the nasm authors
[20:57:15 CEST] <ubitux> it took me a while to realize the problem when i was doing regression testing
[21:01:23 CEST] <jamrial> does that affect every nasm version until now, or just the most recent ones?
[21:02:16 CEST] <jamrial> depending on that, we should add a configure check to use the yasm style preprocess-then-assemble in two separate calls based on reported nasm version
[21:06:35 CEST] <durandal_1707> have new chl api been merged into libav?
[21:14:01 CEST] <kurosu> jamrial, no idea, I think I saw a bug report around 2014 because -MF (or -MD) didn't exist
[23:34:58 CEST] <BtbN> 0.6.3?!
[23:35:07 CEST] <nevcairiel> its a very old ticket
[00:00:00 CEST] --- Wed Aug 9 2017
1
0
[00:03:37 CEST] <BtbN> HEVC is h265.
[01:15:14 CEST] <roman_> hello
[01:15:33 CEST] <roman_> are there any ffmpeg binaries out there that contain just the LGPL libs
[01:15:45 CEST] <roman_> and not the GPL libs (i.e. libx264 libx265 etc.)
[01:16:12 CEST] <roman_> im trying to find one for macos without having to compile mine, so it will work on all versions and not just sierraq
[01:17:11 CEST] <thebombzen> roman_: if you're looking for static builds (i.e. the command-line tools) there is minimal practical difference between the GPL and LGPL versions
[01:17:31 CEST] <thebombzen> if you're interested in the dynamic libraries, then you will probably have to compile them yourself
[01:17:55 CEST] <roman_> yes but this is for commercial distribution and in order to keep the product closed source i cant have the gpl
[01:18:09 CEST] <thebombzen> only with linking
[01:18:47 CEST] <roman_> right i know
[01:18:56 CEST] <roman_> im going to do dynamic link
[01:19:17 CEST] <roman_> and include ffmpeg's src as well i just want to see if there's a place where this has been built already
[01:19:24 CEST] <thebombzen> You will probably have to compile it yourself. This is not a bad thing though because compiling it yourself lets you enable exactly what you need
[01:19:40 CEST] <roman_> right, but how do i make it work on all versions though?
[01:19:46 CEST] <roman_> because when i compile it does it for just my environment
[01:20:07 CEST] <thebombzen> for a commercial distribution, compiling your own dynamic LGPL verisons and disalbing components you don't need is probably the best bet
[01:20:15 CEST] <roman_> ok
[01:20:21 CEST] <roman_> how do i ensure backwards compatibility?
[01:20:22 CEST] <thebombzen> as for what compiler flags on macOS you need to ensure compatibility?
[01:20:27 CEST] <thebombzen> it depends on what version you want to target
[01:20:34 CEST] <roman_> like 10.8+
[01:20:39 CEST] <thebombzen> good options are --enable-runtime-cpudetect
[01:20:45 CEST] <roman_> and im building on 10.12
[01:21:07 CEST] <roman_> i mean the problem is that the macos compiler defaults it to minimum sdk version 10.12
[01:21:13 CEST] <roman_> and i need it at 10.8ish
[01:21:18 CEST] <thebombzen> I'm not exactly familiar with macOS's compilers but, if they're GCC compatible you can use -march=x86_64 -mtune=generic
[01:21:32 CEST] <thebombzen> this eliminates the CPU issue
[01:21:51 CEST] <roman_> its not really a cpu issue, but an os version issue
[01:22:10 CEST] <roman_> because the environment its built in = the minimum environment it can run in
[01:22:20 CEST] <roman_> so if i build it in 10.12 then it sets minimum version requirement to 10.12
[01:22:37 CEST] <thebombzen> there is a way to do this, I am certain. I just don't know what it is seeing as I don't use macOS. However someone here does know so you can wait for them to answer
[01:22:56 CEST] <roman_> alright
[01:22:59 CEST] <roman_> thank you thebombzen ;)
[01:41:10 CEST] <JEEB> roman_: yea I definitely recommend you building yourself. and yes, you'll have to build on a VM of 10.8 or so if you want to keep compat with 10.8
[01:41:21 CEST] <JEEB> it's a pain in the arse but you will definitely want to have that knowledge
[01:42:11 CEST] <roman_> ok
[01:42:18 CEST] <roman_> ive done command line and all that stuff before
[01:42:23 CEST] <roman_> i just want to ensure max compatibility
[01:42:33 CEST] <JEEB> and yes, apple doesn't make that simple
[01:42:49 CEST] <roman_> what about downloading the different codecs i.e. libvpx
[01:42:50 CEST] <JEEB> some people even made tools to get old xcodes around to newer macoses
[01:42:59 CEST] <JEEB> roman_: include only what you really need
[01:43:06 CEST] <roman_> yea
[01:43:07 CEST] <JEEB> 99% of all decoders are in FFmpeg itself
[01:43:19 CEST] <JEEB> only include encoders you need
[01:43:27 CEST] <roman_> ok
[01:43:34 CEST] <JEEB> in other words, find out which formats you need to encode to
[01:43:42 CEST] <roman_> right i already know which libs i need
[01:43:48 CEST] <JEEB> ok
[01:44:12 CEST] <roman_> so when i download those libs, do i just get it from homebrew or do i have to compile those too
[01:44:28 CEST] <roman_> in other words i dont want the compiler to target my specific system, but allow compatibility with all macos systems
[01:44:42 CEST] <JEEB> if you are going to distribute those, I definitely recommend not on relying on someone else's binaries
[01:44:58 CEST] <roman_> so the only thing i need to worry about is my os version or do i need to worry about stuff like cpu architecture etc etc
[01:45:01 CEST] <roman_> ok
[01:45:31 CEST] <JEEB> xcode contains the toolchain so I would guess it's actually more about the xcode version installed than macos? no idea though, I have such a limited view into macos :P
[01:45:36 CEST] <kepstin> I think the typical way people do mac os builds like that is find a mac mini or something running the oldest mac os version they want to support :/
[01:45:42 CEST] <JEEB> yes
[01:46:00 CEST] <thebombzen> haha
[01:46:06 CEST] <roman_> ok
[01:46:09 CEST] <thebombzen> can't you create a VM or something as well?
[01:46:12 CEST] <JEEB> yes
[01:46:16 CEST] Action: JEEB has VMs
[01:46:30 CEST] <roman_> so when im compiling
[01:46:35 CEST] <JEEB> so a mac can run an older version of macos/OS X
[01:46:38 CEST] <JEEB> in a VM
[01:46:55 CEST] <JEEB> often the macs just lack the RAM for that, though :P
[01:46:58 CEST] <thebombzen> is this built-in technology or do you need something 3rd party like virtualbox?
[01:47:08 CEST] <furq> JEEB: is that seriously the only way you can target older OSX versions
[01:47:10 CEST] <furq> because that fucking sucks
[01:47:23 CEST] <JEEB> furq: I hear running older xcode *can* work
[01:47:26 CEST] <JEEB> but that requires hacks
[01:47:29 CEST] <furq> i was expecting like a compiler flag or something
[01:47:36 CEST] <furq> not "run the version you want to target in a VM"
[01:47:41 CEST] <thebombzen> furq: apple explicitly and deliberately rejects supporting older versions of the operating systems
[01:47:48 CEST] <JEEB> newer xcode lets you only target newer macos
[01:47:58 CEST] <roman_> so when im compiling i just need to go to the lowest macos version i want to support and compile that way? I don't have to worry about anything else?
[01:48:05 CEST] <JEEB> yes
[01:48:13 CEST] <roman_> ok
[01:48:14 CEST] <JEEB> just test all the versions upwards you care about, of course
[01:48:19 CEST] <roman_> ok
[01:48:27 CEST] <thebombzen> furq: for example if you own an iPhone it's impossible to downgrade your firmware. Because the phone has a call-home feature where Apple has to sign the firmware (gs.apple.com) and if they don't the phone will reject it
[01:48:30 CEST] <JEEB> and some libraries will not be available for you if they were added later
[01:48:54 CEST] <roman_> i just wanted to make sure clang didnt do any other stuff like only target specific chipsets or whatever
[01:49:04 CEST] <JEEB> for macos that generally doesn't happen
[01:49:11 CEST] <JEEB> unless you built for iOS or something
[01:49:16 CEST] <JEEB> but even that is ARM
[01:49:21 CEST] <roman_> so generally when im compiling on macOS, it will work for all the macs that version and above?
[01:49:24 CEST] <thebombzen> furq: you can get around this by requesting a signature from Apple and stashing it, so you can always use the stashed version to downgrade, but that's it
[01:49:26 CEST] <roman_> yeah im just doing macs no iphone
[01:49:37 CEST] <thebombzen> Apple actively rejects supporting older versions of hte OS for new software
[01:50:24 CEST] <roman_> also how do i get xcode
[01:50:27 CEST] <roman_> do i need a developer account
[01:50:33 CEST] <roman_> or do i just download it from the apple store
[01:51:19 CEST] <roman_> or is there an alternative way to get command line tools to save me from downloading the 5gb file
[01:51:39 CEST] <JEEB> it's available from either itunes or the developer downloads (just apple account, though). post-10.6 versions have been free so even if login is required it should be good enough to go
[01:51:57 CEST] <JEEB> anyways, read up the documentation on the OS X/macos version you'll be supporting :P
[01:55:04 CEST] <roman_> ok
[01:55:07 CEST] <roman_> thank you guys
[02:05:16 CEST] <roman_> one last question
[02:05:19 CEST] <roman_> when installing the libs i need
[02:05:21 CEST] <roman_> do i use homebrew
[02:05:25 CEST] <roman_> or do i have to compile them manually too
[02:28:30 CEST] <roman_> also JEEB how do i get xcode on an older version again?
[02:46:49 CEST] <thebombzen> one last question
[02:47:22 CEST] <thebombzen> roman_: it doesn't matter how you install dependencies but if you're planning on shipping builds of dynamic libraries you should probably build them yourself
[02:47:25 CEST] <thebombzen> rather than homebrew them
[02:49:09 CEST] <roman_> ok
[02:49:12 CEST] <roman_> once again thank you
[02:49:17 CEST] <roman_> and i figured out the xcode thank you
[02:49:38 CEST] <roman_> one last thing
[02:50:03 CEST] <roman_> if I am to comply with LGPL, all I have to do is ship binary, ship source tarball, and include a text file saying how I compiled it? thebombzen
[02:50:57 CEST] <thebombzen> I am not sure exactly what is needed. I do know that if you dynamically link to an LGPLed library, your own code doesn't have to be LGPLed
[02:51:47 CEST] <thebombzen> I believe that LGPLed libraries, if you distribute them, a source tarball, and a copy of the LGPL about them, with relevant copyright info that should be enough, but I Am Not A Lawyer and you should not take my word as the final say
[02:52:28 CEST] <thebombzen> Perhaps you don't need to distribute a source tarball with the binaries but host a source tarball and provide a pointer to where a user can download them, but I do not know if this is sufficient.
[02:52:45 CEST] <thebombzen> Before you publish your commerical product you should consult your lawyer about exactly what is necessary
[03:23:07 CEST] <roman_> right
[03:23:08 CEST] <roman_> thank you!
[03:48:48 CEST] <rmbeer> hello
[03:49:07 CEST] <rmbeer> i want playing a stream video in real time, how to playing with ffmpeg?
[03:49:47 CEST] <kiroma> ffplay
[03:58:03 CEST] <rmbeer> ok, i can't view with ffplay...
[03:58:14 CEST] <rmbeer> the link is https://www.youtube.com/c/SolarLune/live
[03:58:42 CEST] <rmbeer> and want view in other format with very low size, like 95 or 94
[04:46:24 CEST] <kittyfoots> hey guys, im seeing memory errors in valgrind in avcodec_decode_video2. Using ffmpeg 3.3.3 on ubuntu 16.04 via apt. Is there a version of ffmpeg where these errors are fixed? My program is occasionally crashing in the decoder and I've been going through it with a fine-tooth comb trying to suss out any potential issues, but the memory errors in ffmpeg are..problematic.
[04:46:57 CEST] <kittyfoots> (im actually using the new decode api, but i guess it uses decode_video2 under the hood)
[05:05:52 CEST] <timofonic> Hello
[05:06:15 CEST] <timofonic> What's this? What advantages does it provide? Is it merged in ffmpeg? https://github.com/qeek-dev/ffmpeg_libyami/
[07:43:48 CEST] <thebombzen> is there any real harm in appending two of the same fps filters in a row
[07:44:00 CEST] <thebombzen> suppose a script ends up producing a filterchain of fps=60,fps=60
[07:44:19 CEST] <thebombzen> similar with format=yuv420p10le,format=yuv420p10le
[07:44:21 CEST] <thebombzen> is this bad?
[07:45:40 CEST] <thebombzen> or is it relatively harmless
[07:55:30 CEST] <timofonic> Anyone is under qemu/kvm/xen and wants GPU virtualization with Intel GPUs? I sent an email to the igvt-g mailing list. Anyone is interested on merging to upstream? https://lists.01.org/pipermail/igvt-g/2017-August/001262.html
[07:55:35 CEST] <timofonic> OOs
[07:55:40 CEST] <timofonic> Wrong channel! hAHA
[07:55:42 CEST] <timofonic> Sorry
[12:26:46 CEST] <ultrav1olet> could anyone comment on bug 6574? I smell something extremely wrong is going on but I don't understand what
[12:30:31 CEST] <ultrav1olet> also since upload.ffmpeg.org is down, what's the best place to upload samples?
[12:47:28 CEST] <ultrav1olet> ffmpeg from GIT exhibits the same problem :(
[13:07:50 CEST] <BtbN> looks fine to me?
[13:34:14 CEST] <nahsi> Anyone used mpdecimate?
[13:36:31 CEST] <kepstin> thebombzen: in the particular cases you mentioned: Extra 'format' filters should be basically no-ops, extra fps filters will add some overhead but do nothing to the video, other filters? depends on the filter...
[13:37:05 CEST] <thebombzen> I thought that this was approximately the case
[13:37:33 CEST] <thebombzen> format requests from the previous filter, but I wasn't sure if libavfilter was smart enough to stack consecutive formats without inserting ,scale, between
[13:37:57 CEST] <thebombzen> as for fps, I assumed there'd be some overhead, but I meant to the actual video
[13:38:03 CEST] <thebombzen> but thanks for clearing that up that it's "safe"
[13:38:43 CEST] <kepstin> if you can avoid the dup filters, i'd recommend doing that, just in case you end up adding one that's not "safe" at some point
[13:39:36 CEST] <thebombzen> I have a segmented script, one of them necessarily spits out 60 fps video and the other one requires 60 fps video
[13:40:02 CEST] <thebombzen> I want to be able to use each scripts independently so the first one just appends ,fps=60 and the second one prepends fps=60,
[13:40:18 CEST] <thebombzen> I wasn't sure if this would actually change the video or just have a minor performance hit
[13:40:21 CEST] <thebombzen> I can live with that
[13:40:27 CEST] <thebombzen> but yea, it appears you cleared that up, thanks
[14:17:16 CEST] <viric> Hello
[14:17:51 CEST] <viric> I think that my camera records to MTS files adding some kind of "void-time" at the beginning, below 1 second
[14:18:01 CEST] <viric> does anybody recall the MTS format having that thing?
[15:27:35 CEST] <disappear> hi! I'm getting "Failed to reload playlist" as per line 1040 here: https://www.ffmpeg.org/doxygen/2.4/hls_8c_source.html when playing HLS m3u8 files that needs to be reloaded to get new chunks
[17:26:33 CEST] <Bear10> I finally have a "workable" solution for my filter, I'm just wondering if someone knows how to create a AVFrame and read an image into it?
[17:27:00 CEST] <Bear10> right now I'm doing AVFrame *out = in; (but I don't want to be referencing the in frame, or if I do I want to be completely removing it's current data and replacing it with a jpeg of my choice)
[17:28:24 CEST] <Bear10> it's "somewhat" working when I use ff_load_image(...) and then copy it to the out with av_image_copy(...) but because it still has a lo of information from the original image it shows up with the wrong masks, and the old image still present
[17:30:17 CEST] <pgorley> hi, is there another way to get the number of frames in an audio file than to count them one by one?
[17:32:14 CEST] <pgorley> Bear10: https://www.ffmpeg.org/doxygen/trunk/group__lavu__frame.html#gaec4e92f6e1e7…
[17:32:49 CEST] <pgorley> you could use av_frame_copy after allocating your output frame
[17:32:59 CEST] <Bear10> pgorley: i tried that to no avail
[17:33:51 CEST] <Bear10> I would actually get a segment fault when using this approach, but even then according to the method it copies the contents of data which is something I'm trying to avoid
[17:35:02 CEST] <pgorley> so you want to replace the frame's image?
[17:35:14 CEST] <Bear10> pgorley: correct
[17:35:44 CEST] <Bear10> pgorley: so here's a pastebin of the idea basically https://pastebin.com/mZNJV9sD
[17:35:49 CEST] <Bear10> line 45 you see the issue
[17:36:00 CEST] <Bear10> with the current "approach"
[17:37:16 CEST] <pgorley> do you want to apply a filter to the frame or do you want to load an image file into the frame? i'm confused
[17:37:22 CEST] <Bear10> the latter
[17:37:45 CEST] <pgorley> so why the filter?
[17:38:00 CEST] <Bear10> it's the only way that occured to me to replace the data in the current overlay filter
[17:38:53 CEST] <pgorley> you're using curl to save the image to disk, right?
[17:39:15 CEST] <Bear10> pgorley: right now yes, in the future it might be memory but let's work off the assumption its on disk
[17:40:47 CEST] <pgorley> https://github.com/jnicklas/ffmpeg_test/blob/master/test.c
[17:41:11 CEST] <pgorley> that shows an example of using ff_load_image to get your file into an AVFrame
[17:41:23 CEST] <Bear10> great! let's give that a shot!
[17:44:43 CEST] <zerodefect> Looking for some help using the C-API. I have some decoded binary video data that I wish to encode. I'm guessing I need to allocate an AVFrame and set the pointers to the original data (instead of making a deep copy). Once I've passed the AVFrame to encoder, I'm concerned about data lifetime. How do I know that the encoder is finished with the input data?
[17:47:46 CEST] <atomnuker> zerodefect: you don't just set the data pointers of each frame to the data you have
[17:48:23 CEST] <atomnuker> avframes have an avbufferref which is what describes the buffer(s) backing the data planes
[17:48:42 CEST] <atomnuker> there you have a callback which gets called once the encoder's done with the frame
[17:49:13 CEST] <atomnuker> so you need to allocate avbufferrefs at each avframe allocation and fill in the structure including the release function pointer
[17:49:36 CEST] <atomnuker> which is what'll get executed with the opaque context you give when making the avbufferref
[17:50:04 CEST] <zerodefect> atomnuker: Terrific. I'll take a look. Thanks!
[17:50:24 CEST] <atomnuker> it'll be from another thread too so make sure its threadsafe
[17:50:58 CEST] <atomnuker> if you've got the file memmapped then the release function should do nothing
[17:52:12 CEST] <atomnuker> (memmapping rules and people with small address space don't know what they're missing)
[17:52:40 CEST] <zerodefect> atomnuker: Yeah, was about to ask about thread safety
[18:01:20 CEST] <zerodefect> atomnuker: so once I've allocated AVFrame, do I set the AVFrame->buf[AV_NUM_DATA_POINTERS] with the allocated AVBufferRefs?
[18:03:08 CEST] <atomnuker> yes, that's up to you
[18:03:19 CEST] <atomnuker> keep in mind you generally only need 1 avbufferref
[18:05:13 CEST] <zerodefect> Out of curiosity, is the size in the AVBufferRefs important?
[18:05:15 CEST] <atomnuker> so you have 1 buffer with either planar or non-planar pixels, and your avbufferref will point to the base and the data planes in the avframe will point to offsets for each plane
[18:05:27 CEST] <atomnuker> zerodefect: not really
[18:06:32 CEST] <zerodefect> Yes, will use single AVBufferRef with planar pixels. Thanks again for your help :)
[18:06:33 CEST] <atomnuker> so you only really need one avbufferref unless you have some crazy crazy file
[18:06:41 CEST] <zerodefect> No, nothing crazy here
[18:07:12 CEST] <atomnuker> (where you have like 30 frames of luma, then thirty frames of u and then 30 frames of v if your file has 30 frames)
[18:07:35 CEST] <zerodefect> yeah, cool.
[18:07:45 CEST] <atomnuker> rather than as standard where you have luma, u and v following (if you have a planar format) or a yuvyuvyuv or something else interleaved
[18:17:27 CEST] <pgorley> could i call av_read_frame in a loop to count the number of frames in an audio file?
[18:23:54 CEST] <DHE> depends what you mean by number of frames
[18:27:58 CEST] <pgorley> DHE: i'm replacing sndfile with ffmpeg and i've got to replace SndfileHandle->frames()
[18:28:53 CEST] <pgorley> .frames() sorry, though it shouldn't make a difference
[18:29:53 CEST] <durandal_1707> yes, just make sure you do not leak frames
[18:30:24 CEST] <DHE> just wondering if, depending on the file format, there's a better way that you could get from the AVFormatContext data after doing a guess-format
[18:30:36 CEST] <DHE> it might lose some accuracy, but may be a lot faster
[18:32:27 CEST] <pgorley> well there's AVStream->nb_frames but it's not always nonzero
[18:32:47 CEST] <pgorley> counting the number of frames one by one is more of a backup method
[18:35:50 CEST] <pgorley> durandal_1707: as long as i free the frame after av_read_frame it should be fine, right?
[18:36:23 CEST] <durandal_1707> yes, i dont see the code though
[18:37:12 CEST] <pgorley> haven't finished writing it yet
[18:44:16 CEST] <pgorley> do i need to call avcodec_open2 before av_read_frame or can i skip that?
[18:53:55 CEST] <DHE> reading a frame (raw data from container) does not require decoding capability
[18:54:21 CEST] <DHE> it's a known misnomer that av_read_frame should probably be called av[format]_read_packet
[19:00:13 CEST] <JEEB> yea
[19:00:38 CEST] <JEEB> it is totally misleading
[19:10:30 CEST] <pgorley> tools/pktdumper.c seems to do exactly what i need
[19:12:09 CEST] <Lirk> hi
[19:12:45 CEST] <Lirk> is there some input bitrate value for building expression?
[19:13:04 CEST] <Lirk> input bitrate variable
[19:21:07 CEST] <alexpigment> Lirk: you're better off using ffprobe to get the bitrate of a source video
[19:21:13 CEST] <alexpigment> having said that, what is your goal?
[19:21:59 CEST] <alexpigment> If you'd like to maintain a certain amount of quality without having to calculate the source bitrate, it's best to use -crf
[20:33:49 CEST] <Mista_D> can FFmpeg add "Bit rate atom" to MP4 (btrt in MOOV https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QT… )
[20:36:20 CEST] <durandal_1707> open bug report
[20:49:41 CEST] <Mista_D> Is there a GMANE alternative for FFmpeg mail list searching please?
[20:50:58 CEST] <c_14> There's the archives, but not sure they're that searchable https://ffmpeg.org/pipermail/ffmpeg-devel/
[20:51:09 CEST] <c_14> You can check if google or whoever indexed them
[20:52:17 CEST] <thebombzen> Mista_D: did you try going to ffmpeg.org/contact.html (which has the mailing list info)
[20:52:48 CEST] <thebombzen> gg, never mind, there's something wrong haha
[20:54:12 CEST] <thebombzen> I was going to suggest this button, but it's a 404. http://0x0.st/d2f.png
[20:54:53 CEST] <Mista_D> Yeah, gmane's broken for last year or two...
[20:57:42 CEST] <pgorley> how do i convert AVStream->duration to seconds?
[20:57:50 CEST] <JEEB> timebase
[20:58:22 CEST] <JEEB> time base is how many ticks is a single (second)
[20:59:46 CEST] <pgorley> JEEB: so AVStream->duration * av_q2d(AVStream->time_base) ?
[21:26:58 CEST] <DarkElement> Is there any way to get the quality of a video made from individual frames to match the quality of the individual frames? With ffmpeg
[21:27:50 CEST] <DarkElement> I've been using this so far `ffmpeg -threads 8 -pattern_type glob -i "*.jpg" -vcodec libx264 -vb 20M 0_predictions.avi` on a bunch of images, however this is the original frame https://gyazo.com/43bdf55b928f946380d315b53b17352b and this is the resulting video https://gyazo.com/6f69c06ba9c78efef3a89789a4652d85, which is just worse enough to be annoying
[21:32:12 CEST] <viric> How can I know what parameters does a codec want from AVCodecContext?
[21:54:24 CEST] <RandomCouch> Hello, can someone tell me the difference between these 2 streams?
[21:54:29 CEST] <RandomCouch> Stream #0:1(eng): Audio: aac (LC), 8000 Hz, mono, fltp
[21:54:34 CEST] <RandomCouch> Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 8000 Hz, mono
[21:59:06 CEST] <alexpigment> RandomCouch - is the second one 16-bit and the first one not?
[21:59:27 CEST] <RandomCouch> I actually don't know lol, that's why I'm asking
[21:59:30 CEST] <JEEB> it just doesn't say and to be honest, AAC doesn't have bitdepth when coding
[21:59:37 CEST] <alexpigment> doesn't fltp (granted, I have no experience with this weird format) mean not 16-bit?
[22:00:00 CEST] <JEEB> AAC is always decoded to float because that's the closest representation you can get from the lossy coding
[22:00:34 CEST] <alexpigment> JEEB: then why does this post (and its reply) exist? https://stackoverflow.com/questions/32392571/how-to-make-sdl-play-fltp-samp…
[22:00:35 CEST] <JEEB> anyways, that just looks like verbosity being different and whether the decoder was initialized or not
[22:01:02 CEST] <JEEB> alexpigment: because not everything that takes in audio takes in floating point numbers
[22:01:09 CEST] <JEEB> which is why you have resamplers
[22:01:38 CEST] <JEEB> the lossily coded audio is decoded into floating point because that's the closest representation. if your next thing requires something else, you resample
[22:02:17 CEST] <alexpigment> ok, well I guess I'll retire back to the shadows. the "FLTP" just stood out to me as being weird
[22:02:58 CEST] <JEEB> my WASAPI audio API in windows takes in floating point numbers just fine (and most likely does a global mix in the end), and maybe some other audio API like SDL doesn't maybe support that? (although it seems like the copypasta'd example code specifically sets the format to AUDIO_S16SYS)
[22:04:31 CEST] <JEEB> RandomCouch: basically according to those lines there's no difference
[22:04:42 CEST] <RandomCouch> hm alright thanks
[22:04:59 CEST] <JEEB> the most likely explanation for the difference in output (if that is the same version of ffprobe or so) is that there's container specific stuff there and that the decoder wasn't started in the latter?
[22:05:11 CEST] <JEEB> but hte profile is the same LC
[22:05:17 CEST] <JEEB> rate is same, 8000Hz
[22:05:23 CEST] <JEEB> mono and mono
[22:06:33 CEST] <BtbN> one is with the extradata info
[22:06:45 CEST] <BtbN> so either the other doesn't have extradata, or it's not parsed yet
[22:06:49 CEST] <JEEB> yes
[22:08:25 CEST] <RandomCouch> hm alright, again, I'm still using ffmpeg on android lol, and on a Nexus 6 specifically, I try to merge 2 videos, when I playback the result video, the second part of it (which is the second video that got concatenated) has no audio, although I am transcoding the whole result video using aac
[22:08:56 CEST] <RandomCouch> also using -bsf:a aac_adtstoasc for the result
[22:10:33 CEST] <RandomCouch> I'm gonna try without the bitstream filter
[22:21:56 CEST] <RandomCouch> Yeah it didn't change anything
[22:51:42 CEST] <RandomCouch> Ahhh I finally fixed it! :D oh man I'm so happy
[22:51:55 CEST] <RandomCouch> and I also realized how dumb I am to not have found the solution sooner
[22:56:26 CEST] <ultrav1olet> I've found out that the scaler in ffmpeg generates very blurry output when downscaling the source. Is there a workaround or I've found an actual bug?
[22:56:44 CEST] <JEEB> try zscale
[22:56:55 CEST] <ultrav1olet> I've filed bug 6574 but perhaps I'm missing something
[22:57:08 CEST] <JEEB> zscale requires https://github.com/sekrit-twc/zimg
[22:57:13 CEST] <JEEB> and --enable-libzimg
[22:57:38 CEST] <JEEB> otherwise it has a very similar command interface filter-wise to the scale filter
[22:57:46 CEST] <BtbN> I still think your downscaled image looks perfectly fine.
[22:58:02 CEST] <ultrav1olet> compare source.png and result.png
[22:58:12 CEST] <ultrav1olet> the difference is staggering
[22:58:38 CEST] <JEEB> if zimg produces something similar, then either zimg is wrong or your expectations are wrong
[22:59:12 CEST] <ultrav1olet> his chain armour is completely destroyed
[22:59:41 CEST] <DHE> you could also compare different algorithms. lazncos (sp?) is worth giving a shot
[22:59:45 CEST] <BtbN> the images are the same size
[22:59:50 CEST] <BtbN> Did you scale it down and back up?
[22:59:57 CEST] <ultrav1olet> also look at his left cheek - the result is smooth and the texture is lost
[23:00:37 CEST] <durandal_1707> nice guy
[23:00:57 CEST] <ultrav1olet> just downscaled
[23:01:09 CEST] <BtbN> oh, both are downscaled
[23:01:11 CEST] <ultrav1olet> did nothing else
[23:01:15 CEST] <ultrav1olet> exactly
[23:01:16 CEST] <BtbN> Yeah, try one of the other scalers
[23:01:29 CEST] <BtbN> zimg is said to be very good
[23:01:40 CEST] <BtbN> no idea what algorithm sws uses
[23:01:42 CEST] <ultrav1olet> I think the problem is not in the type of scaler but in something else
[23:02:02 CEST] <ultrav1olet> mplayer/Xv uses a very basic scaler and it looks miles better
[23:02:06 CEST] <BtbN> https://ffmpeg.org/ffmpeg-scaler.html
[23:02:12 CEST] <BtbN> default is bicubic it seems
[23:02:26 CEST] <BtbN> set it to lanczos for a test
[23:02:43 CEST] <ultrav1olet> I've already tried lanczos
[23:03:01 CEST] <ultrav1olet> In fact I've always used it until yesterday when I discovered this bug
[23:03:28 CEST] <BtbN> lanczos really shouldn't produce results like this
[23:03:57 CEST] <ultrav1olet> does this look correct? -vf scale=768x342 -sws_flags lanczos
[23:05:07 CEST] <ultrav1olet> lanczos looks almost exactly like result.png
[23:05:40 CEST] <JEEB> anyways, I recommend testing with zscale
[23:07:19 CEST] <BtbN> I think it's -vf scale=w=1234:h=1234:flags=lanczos ?
[23:08:27 CEST] <JEEB> -vf "zscale=w=768:h=342,format=gbrp"
[23:08:31 CEST] <JEEB> with zscale, IIRC
[23:09:24 CEST] <JEEB> since you have to hint what you want as output with the format pseudo-filter
[23:09:54 CEST] <ultrav1olet> -vf scale=w=1234:h=1234:flags=lanczos ? => the same result
[23:10:15 CEST] <JEEB> unsurprising
[23:12:30 CEST] <ultrav1olet> JEEB: why "
[23:12:31 CEST] <ultrav1olet> gbrp
[23:12:33 CEST] <ultrav1olet> force planar RGB output
[23:12:34 CEST] <ultrav1olet> ?
[23:13:34 CEST] <ultrav1olet> and it doesn't work: code 3074: no path between colorspaces
[23:14:01 CEST] <JEEB> you don't have colorspace information in your input then
[23:14:09 CEST] <JEEB> for YCbCr at the minimum you need...
[23:14:41 CEST] <JEEB> min
[23:14:52 CEST] <JEEB> if it's bt.709 set min=bt709
[23:15:07 CEST] <ultrav1olet> zscale without options produces the same blurry result
[23:15:08 CEST] <JEEB> if it's 470bg you set min=bt470bg
[23:15:27 CEST] <ultrav1olet> my source is yuv420p
[23:15:29 CEST] <JEEB> ok, then most likely your expectations are wrong. if you truly believe you're right file a bug in zimg
[23:15:46 CEST] <JEEB> ultrav1olet: yes but there's different colorspaces even within YCbCr
[23:15:55 CEST] <ultrav1olet> Why mplayer/Xv works miles better without using any special algorithms?
[23:15:56 CEST] <JEEB> matrix etc
[23:16:16 CEST] <ultrav1olet> I smell something is terribly wrong with ffmpeg
[23:16:34 CEST] <ultrav1olet> like it applies some additional filter after scaling
[23:16:41 CEST] <ultrav1olet> gauss maybe
[23:16:47 CEST] <JEEB> if zscale gives you issues then if there was an issue it'd be in zimg as well
[23:17:01 CEST] <JEEB> feel free to make an issue in zimg if you want, that's used by multiple professional pieces of software
[23:17:24 CEST] <JEEB> (because the license is very liberal etc)
[23:17:37 CEST] <JEEB> in addition to as far as I know Very Correct
[23:17:54 CEST] <JEEB> that's why it doesn't let you convert YCbCr to RGB when you don't have any color metadata, either :P
[23:17:55 CEST] <ultrav1olet> ffmpeg's output is not indicative of using any filters - is this how it works?
[23:18:16 CEST] <JEEB> there most likely are no magical filters in the middle
[23:18:30 CEST] <JEEB> make an issue with zimg if you want a 3rd party opinion unrelated to FFmpeg
[23:18:31 CEST] <JEEB> :P
[23:20:22 CEST] <ultrav1olet> are there any applications using z.lib other than ffmpeg? I cannot find any
[23:20:35 CEST] <JEEB> in open source vapoursynth is one
[23:21:33 CEST] <JEEB> there's also contributions from netflix related people so according to discussions I've had IRL they're using it as well
[23:21:58 CEST] <JEEB> closed source software doesn't have to advertise zimg so (Ž4@)
[23:23:24 CEST] <JEEB> and /34
[23:23:32 CEST] <BtbN> I somehow have doubts about this being a scaling issuer
[23:23:34 CEST] <BtbN> -r
[23:23:45 CEST] <BtbN> I just can't imagine swscale being that bad
[23:23:53 CEST] <BtbN> specially with other algorithms
[23:24:41 CEST] <ultrav1olet> the source is yours
[23:24:47 CEST] <ultrav1olet> the result is all yours
[23:24:53 CEST] <ultrav1olet> I'm using ffmpeg from GIT
[23:24:58 CEST] <ultrav1olet> it is that bad
[23:25:08 CEST] <BtbN> Yes, but I suspect it's not the scaler making it bad
[23:25:12 CEST] <ultrav1olet> I can upload the source PNG if you're interested
[23:25:23 CEST] <ultrav1olet> to make your life easier
[23:25:41 CEST] <JEEB> also when using FFmpeg's API there's a function in libavfilter to dump a "graphical" representation of the libavfilter filter chain, not sure if there's a command line parameter to do it too
[23:26:06 CEST] <JEEB> http://up-cat.net/p/cbfdf4f9
[23:26:09 CEST] <BtbN> Yeah, attach it to the ticket. Would be very handy to have. And once carl finds the ticket, he will demand it anyway.
[23:26:43 CEST] <ultrav1olet> I've posted a link to a source video ;-)
[23:27:05 CEST] <JEEB> avfilter_graph_dump
[23:27:09 CEST] <JEEB> let's see if that's used anywhere
[23:27:42 CEST] <ultrav1olet> https://image.ibb.co/i2XXuv/source1080p.png
[23:28:14 CEST] <JEEB> meh, ok. seems like ffmpeg.c doesn't have a way of calling that dumper
[23:28:25 CEST] <JEEB> that would have just made it 100% clear what sort of filter chain ffmpeg.c is creating
[23:28:30 CEST] <JEEB> although -v debug should also tell you
[23:28:39 CEST] <JEEB> albeit in less straightforward terms
[23:28:49 CEST] <JEEB> (although not like the "dump" is visually well readable)
[23:28:58 CEST] <BtbN> The -f lavfi format as output should be able to do it
[23:29:31 CEST] <JEEB> if it's like the graph I posted then that should be OK
[23:29:31 CEST] <ultrav1olet> I've just used resize in the simplest image editor and the result is better than what ffmpeg generates
[23:29:38 CEST] <BtbN> It calls that function
[23:30:00 CEST] <BtbN> Hm, but it's only the lavfi demuxer
[23:30:06 CEST] <BtbN> Can't act as output
[23:31:04 CEST] <ultrav1olet> -v debug gives it all
[23:31:22 CEST] <ultrav1olet> [Parsed_scale_0 @ 0x93e28c0] Setting 'w' to value '768x342'
[23:31:29 CEST] <ultrav1olet> [Parsed_scale_0 @ 0x93e28c0] Setting 'flags' to value 'lanczos'
[23:31:35 CEST] <ultrav1olet> [Parsed_scale_0 @ 0x93e28c0] w:768 h:342 flags:'lanczos' interl:0
[23:31:52 CEST] <ultrav1olet> what is [graph 0 input from stream 0:0 @ 0x93e10a0] Setting 'sws_param' to value 'flags=2' ?
[23:33:20 CEST] <JEEB> I would guess 2 is "lanczos"
[23:33:44 CEST] <JEEB> internal values, ho
[23:34:15 CEST] <ultrav1olet> this is madness.
[23:34:25 CEST] <ultrav1olet> When I encode an image alone the result is perfect.
[23:34:44 CEST] <ultrav1olet> When I downscale the source video the result is horrible.
[23:34:46 CEST] <JEEB> anyways, I'd be more interested in the dump of the filtering chain with zscale because the role with the automated scale filter should only be doing GBRP to RGB24
[23:36:02 CEST] <JEEB> basically to check if the automated scale filter is doing anything else than bgrp->rgb24 or so, in which case it just packs the planar values
[23:36:16 CEST] <JEEB> (I thought about adding libp2p support into zscale but :eff:)
[23:36:47 CEST] <ultrav1olet> https://pastebin.com/Rus7VAWH
[23:37:12 CEST] <ultrav1olet> raw https://pastebin.com/raw/Rus7VAWH
[23:39:37 CEST] <JEEB> ok, so in this case there shouldn't even be an auto-inserted scale filter since planar 4:2:0 can be gotten from zimg
[23:39:46 CEST] <JEEB> [Parsed_zscale_0 @ 0x59086c0] w:1920 h:800 fmt:yuv420p sar:1/1 -> w:768 h:342 fmt:yuv420p sar:171/160
[23:40:52 CEST] <JEEB> have you by chance tried a resolution that is 1:1 SAR on the output side as well? or setting ",setsar=1" after zscale to tell the encoder to not set aspect ratio data?
[23:41:40 CEST] <JEEB> anyways, if you think this is incorrect then just make a ticket on zimg's side btw
[23:41:50 CEST] <JEEB> this is now 100% zimg
[23:42:21 CEST] <ultrav1olet> JEEB: why there's no bug when encoding a single image?
[23:42:30 CEST] <JEEB> with scaling?
[23:42:33 CEST] <ultrav1olet> yep
[23:42:39 CEST] <JEEB> as image or as H.264?
[23:42:46 CEST] <ultrav1olet> I'm 100% sure the problem is not with zscaler but with some additional filter ffmpeg applies
[23:42:53 CEST] <ultrav1olet> as a PNG image
[23:43:17 CEST] <JEEB> ok, so in that case RGB
[23:43:35 CEST] <JEEB> you can output RGB with libx264 if you want
[23:43:53 CEST] <ultrav1olet> color space or not, blurriness stems from something completely different
[23:44:03 CEST] <ultrav1olet> since I'm encoding at crf=0
[23:44:20 CEST] <ultrav1olet> um
[23:44:33 CEST] <ultrav1olet> that makes me thinking, what if the x264 is the culprit
[23:44:44 CEST] <BtbN> try some other encoder
[23:44:45 CEST] <ultrav1olet> I must try another codec
[23:44:52 CEST] <JEEB> try utvideo for example
[23:45:01 CEST] <JEEB> supports both YCbCr and RGB
[23:45:06 CEST] <JEEB> into, say, avi
[23:45:10 CEST] <ultrav1olet> does MPEG2 have a lossless mode?
[23:45:14 CEST] <JEEB> no
[23:45:29 CEST] <JEEB> -c:v utvideo and check with mpv
[23:45:38 CEST] <JEEB> (least retarded opengl renderer around)
[23:46:21 CEST] <BtbN> might also be the player you used to look at the video
[23:46:29 CEST] <BtbN> x264 with -crf 0 should really not touch the picture at all
[23:47:03 CEST] <ultrav1olet> Stream #0:0: Video: utvideo (ULY0 / 0x30594C55), yuv420p - blurriness persists
[23:47:21 CEST] <JEEB> and ut video doesn't do any bullshit
[23:47:29 CEST] <ultrav1olet> the problem is with ffmpeg itself
[23:47:33 CEST] Action: JEEB wrote the encoder back in the day
[23:47:44 CEST] <ultrav1olet> and only when encoding videos and _not_ single images
[23:47:52 CEST] <JEEB> try with RGB and ut video :P
[23:48:03 CEST] <ultrav1olet> What's the command?
[23:48:18 CEST] <ultrav1olet> I suck at remembering ffmpeg's options
[23:48:36 CEST] <JEEB> "<zscale>,format=gbrp" should be enough I think
[23:48:45 CEST] <JEEB> zscale part being the zscale scaling
[23:49:00 CEST] <ultrav1olet> doesn't work as I said earlier
[23:49:13 CEST] <ultrav1olet> code 3074: no path between colorspaces
[23:49:14 CEST] <JEEB> that's because your input lacks colorspace information then
[23:49:18 CEST] <JEEB> set min as well
[23:49:25 CEST] <JEEB> to either bt709 or bt470bg
[23:49:29 CEST] <ultrav1olet> treat me as a stupid please
[23:49:30 CEST] <JEEB> according to your source's information
[23:49:33 CEST] <JEEB> ok
[23:49:35 CEST] <JEEB> zimg is anal
[23:49:43 CEST] <JEEB> if you don't have required data about what sort of YCbCr it is
[23:49:51 CEST] <JEEB> it will barf at you
[23:49:54 CEST] <ultrav1olet> actually the source is all yours: https://mega.nz/#!bp0jwCoJ!--QLIwVLvDnFfNWdVyYH6zkE0pUApN6tjhVNq0xylPc
[23:49:55 CEST] <JEEB> the one value it at the very least needs
[23:50:00 CEST] <JEEB> is min
[23:50:09 CEST] <JEEB> if it's from blu-ray or something set min=bt709
[23:50:11 CEST] <JEEB> :P
[23:50:27 CEST] <JEEB> which sets the input color matrix to BT.709
[23:51:28 CEST] <JEEB> FFmpeg's swscale is happy to do the guessing for you, while zimg is made to stop you from doing stuff you don't think you're doing
[23:52:16 CEST] <BtbN> ultrav1olet, https://btbn.de/public/scrn/1502229107.png
[23:52:42 CEST] <BtbN> this is generated with: ffmpeg.exe -i source.mkv -vf scale=768:-2 -c:v utvideo result.mkv
[23:53:05 CEST] <ultrav1olet> BtbN: yours looks exactly how it should be
[23:53:19 CEST] <JEEB> just out of interest, which player are you using for preview? :P
[23:54:02 CEST] <BtbN> ultrav1olet, https://btbn.de/public/scrn/1502229220.png this is what I get when using your resolutions
[23:54:04 CEST] <ultrav1olet> MPV
[23:54:04 CEST] <BtbN> same blur
[23:54:16 CEST] <ultrav1olet> sorry, mplayer
[23:54:22 CEST] <BtbN> you are just breaking aspect ratio, and the stretching is what causes the blurr
[23:54:44 CEST] <JEEB> mplayer is completely different, and yes - that's why I noted setsar
[23:54:51 CEST] <JEEB> if the aspect ratio compensation was causing it :P
[23:55:00 CEST] <ultrav1olet> both MPV and mplayer produce the same result here
[23:55:06 CEST] <JEEB> since when you code a picture most image formats don't have a way of coding that in
[23:55:12 CEST] <JEEB> while video formats have aspect ratio flags
[23:55:22 CEST] <JEEB> and your output resolution was 170/160 or so
[23:55:30 CEST] <ultrav1olet> BtbN: I used your command right now - the same blurriness
[23:55:30 CEST] <JEEB> so it asks the player to widen it a wee bit
[23:56:09 CEST] <ultrav1olet> BtbN: could you upload your result.mkv?
[23:56:33 CEST] <BtbN> of what?
[23:56:34 CEST] <BtbN> with -2?
[23:56:37 CEST] <ultrav1olet> yep
[23:56:51 CEST] <ultrav1olet> is the screenshot you've just posted is from it
[23:56:54 CEST] <ultrav1olet> if
[23:57:16 CEST] <JEEB> if you want to ignore input aspect ratio add ",setsar=1" at the end of your filter chain
[23:57:24 CEST] <ultrav1olet> I don't see how I'm stretching anything guys
[23:57:30 CEST] <JEEB> during playback
[23:57:37 CEST] <ultrav1olet> I'm watching the result as is without upscaling it
[23:57:38 CEST] <JEEB> I saw in your logs sar 170/160
[23:57:55 CEST] <JEEB> so the player should automagically scale according to aspect ratio
[23:57:57 CEST] <JEEB> which is a bit wider
[23:58:05 CEST] <BtbN> You're scaling to 768x342
[23:58:15 CEST] <BtbN> the correct downscale is 768x320 though
[23:58:18 CEST] <ultrav1olet> yeah: source: Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
[23:58:22 CEST] <BtbN> if you want to keep aspect ratio
[23:58:24 CEST] <JEEB> that's the input
[23:58:29 CEST] <JEEB> https://pastebin.com/raw/Rus7VAWH
[23:58:31 CEST] <ultrav1olet> result: Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 768x342 [SAR 171:160 DAR 12:5], q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc (default)
[23:58:34 CEST] <JEEB> 768x342 [SAR 171:160 DAR 12:5]
[23:58:47 CEST] <JEEB> yes, so the players will apply aspect ratio fixing
[23:58:54 CEST] <ultrav1olet> so what am I doing wrong and how I can avoid this problem in the future?
[23:58:55 CEST] <BtbN> Just put -2 as one of the parts of the scale, and it will pick the correct one
[23:58:57 CEST] <JEEB> that explains why image formats were OK
[23:59:08 CEST] <JEEB> because those don't have a flag for SAR/DAR
[23:59:09 CEST] <JEEB> usually
[23:59:10 CEST] <ultrav1olet> -2 generates the same blurry file
[23:59:10 CEST] <JEEB> :P
[23:59:25 CEST] <BtbN> https://btbn.de/public/result.mkv
[23:59:32 CEST] <ultrav1olet> (ffmpeg -i source.mkv -vf scale=768:-2 -c:v utvideo result.mkv)
[23:59:45 CEST] <BtbN> That's the exact commandline I used to generate that
[23:59:49 CEST] <BtbN> no blur for me at all
[23:59:58 CEST] <JEEB> check the command line output
[00:00:00 CEST] --- Wed Aug 9 2017
1
0
[12:19:41 CEST] <durandal_1707> is there a flag for fate to automatically update checksums?
[12:26:16 CEST] <J_Darnley> GEN=1
[12:26:41 CEST] <J_Darnley> It will use the results as the new reference values.
[12:40:59 CEST] <J_Darnley> Now on an unrelated topic...
[12:43:41 CEST] <J_Darnley> actually ignore that for now
[12:52:38 CEST] <funman> maybe to test scatter/gather, dunno
[12:52:56 CEST] Action: funman looks for his shell
[13:16:47 CEST] <J_Darnley> Has anyone here ever started work on writing code to allow avcodec to encode anything less than a whole frame?
[13:17:04 CEST] <J_Darnley> Or do you know of similar work elsewhere?
[13:18:47 CEST] <J_Darnley> Perhaps someone had a use for separated fields?
[13:23:52 CEST] Action: J_Darnley thinks he should send an email to the ML
[13:35:51 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:5621a99e2751: avfilter/drawutils: support gbrap10 too
[13:35:51 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:ab6d89d7ee5c: libavutil: add GRAY9 pixel format
[13:35:51 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:de48710c11ce: libswscale: add gray9 support
[13:35:51 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:7bfbc2d787a4: avfilter/vf_extractplanes: add 9 bitdepth support
[13:35:51 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:86222a7ea071: avfilter/vf_waveform: add support for 9 bit depth lowpass
[13:35:52 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:bac508fec1c4: avfilter: add support for GRAY9 and GBRAP10
[13:36:48 CEST] <durandal_1707> J_Darnley: thats bad idea
[13:37:11 CEST] <J_Darnley> :) which bit in particular?
[13:37:29 CEST] <durandal_1707> encoding fields
[13:37:38 CEST] <J_Darnley> It sure is.
[13:37:53 CEST] <JEEB> I don't know, the only problem is that the rest of things don't really check if they're getting a field or frame
[13:37:57 CEST] <JEEB> they just take a picture in/out
[13:38:09 CEST] <JEEB> like I think yadif et al currently fail with HEVC
[13:38:21 CEST] <JEEB> because the HEVC decoder outputs field pictures
[13:38:29 CEST] <JEEB> if the video is field coded
[13:38:34 CEST] <J_Darnley> Forget about the fields then
[13:38:57 CEST] <J_Darnley> I want to pass 16 lines to an encoder and get 16 lines out almost immediately.
[13:39:43 CEST] <J_Darnley> But separated fields would a half-decent, real-world example.
[13:40:26 CEST] <J_Darnley> Anyway, I'm going to lunch
[14:01:49 CEST] <J_Darnley> Maybe I shouldn't mention fields. It always triggers people who hate interlacing, like me.
[14:16:14 CEST] <JEEB> don't worry, it happens to the best of us
[15:11:37 CEST] <kierank> J_Darnley: i would say just see if you can get vc2enc to accept it, forget about other encoders and forget about fate
[15:14:21 CEST] <J_Darnley> Sure, I wouldn't expect to solve it for every encoder
[15:14:39 CEST] <J_Darnley> but I have no idea where to even begin with that "small" task
[15:14:57 CEST] <J_Darnley> I have no idea how data goes from outside to inside the encoder.
[15:15:58 CEST] <J_Darnley> Even some shitty hack will need a minimum of support from the rest of the API otherwise you won't even be able to compile
[15:17:32 CEST] <J_Darnley> ^^ or then how data goes from inside to back outside
[15:22:39 CEST] <kierank> J_Darnley: did you see https://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/examples/encode_video.c…
[15:23:07 CEST] <kierank> try it with vc2 set to encode to 1920x1080
[15:23:13 CEST] <kierank> send avframes of 32x8 or whatever
[15:23:17 CEST] <J_Darnley> No. I have no such file.
[15:23:17 CEST] <kierank> and then see where it gets rejected
[15:23:28 CEST] <kierank> that's the example for encoding video
[15:23:58 CEST] <J_Darnley> Oh dammit. I'm still on atomnuker's ancient dirac branch
[15:25:47 CEST] <J_Darnley> I expect that so call encode_frame of vc2enc many more times than 24
[15:26:04 CEST] <J_Darnley> Which I expect to produce ribbush
[15:26:09 CEST] <J_Darnley> *rubbish
[15:26:24 CEST] <BBB> J_Darnley: about x264, yes at some point it had slice threading
[15:26:31 CEST] <BBB> J_Darnley: it was replaced with frame threading at some point
[15:26:46 CEST] <BBB> J_Darnley: if you read their threading docs theyll point you to the exact commits
[15:28:50 CEST] <J_Darnley> Yes, thank you for helpful comment. /s
[15:29:23 CEST] <J_Darnley> I clearly cannot explain myself
[15:32:25 CEST] <BBB> J_Darnley: about libavcodec, I dont think we have API to input less than a frame; we have decoder API for that (avctx->draw_horiz_band()), but I Dont believe we have encoder API for that
[15:32:34 CEST] <BBB> (assuming you want to reduce latency)
[15:32:54 CEST] <J_Darnley> Yes, that is kierank's goal
[15:32:57 CEST] <BBB> I dont tihnk its particularly hard to model the encoder API to optionally be like avctx->draw_horiz_band
[15:33:15 CEST] <BBB> (in special/limited use cases)
[15:33:39 CEST] <BBB> so this isnt something generic that would be available for all encoders, just a small limited subset that set a special flag and are opened with a special option set etc.
[15:34:34 CEST] <BBB> and then the internal implementation of that in the encoder (in terms of load balancing between threads - or even whether threading is enabled at all) is entirely up to the encoder, i.e. up to you
[15:34:59 CEST] <BBB> (i.e. feed_horiz_band and slice threading are entirely independent of each other, although youd probably want to use both in most typical use cases)
[15:35:14 CEST] <BBB> (or maybe not, hard to say without knowing the use case :) )
[15:36:24 CEST] <J_Darnley> Sounds close enough to me.
[15:38:15 CEST] <J_Darnley> I don't know what I can and can't talk about here but I think I can say that lowering the latency is the goal.
[15:44:20 CEST] <iive> won't it be easier to use an existing codec that already has slices support?
[15:45:38 CEST] <iive> and rtp already has a ton of crap to work on slice level.
[15:46:40 CEST] <J_Darnley> I have no idea.
[15:47:29 CEST] <kierank> I just want to encode slices as they arrive
[15:47:33 CEST] <J_Darnley> Isn't rtp a muxer or protcol? Just how does that relate to an encoder.
[15:48:47 CEST] <kierank> I would ignore those weird ones
[15:49:44 CEST] <iive> if you want to avoid patents, then mpeg1/2 should be ideal, as they should have expired already.
[15:50:12 CEST] <iive> real time protocol, network transmission.
[15:51:18 CEST] <iive> an old one. rtsp is based on top of it.
[16:04:05 CEST] <J_Darnley> Ugh. The encode_video example doesn't appear to work.
[16:04:21 CEST] <J_Darnley> At first it was flat grey so I hiked up the bitrate
[16:04:53 CEST] <J_Darnley> Now ffplay only shows 1 frame.
[16:06:42 CEST] <J_Darnley> I guess I should check whether ffmpeg does it any better.
[16:18:43 CEST] <J_Darnley> No, it isn't.
[16:19:10 CEST] <J_Darnley> Now is that because the bitstream cannot code more than 1 image?
[16:19:25 CEST] <J_Darnley> *raw bitstream
[16:20:00 CEST] <J_Darnley> Does the demuxer just not like it?
[16:33:18 CEST] <BBB> I think encode_video doesnt mux
[16:33:24 CEST] <BBB> so it doesnt work for all use cases
[16:34:05 CEST] <J_Darnley> Yeah, you only give an encoder name.
[16:47:40 CEST] <kierank> raw vc2 should work
[16:52:53 CEST] <J_Darnley> So clear up confusion: Neither ffmpeg or encode_video can produce a raw vc2 bistream that ffplay can play more than just the first frame.
[16:56:41 CEST] <kierank> J_Darnley: it's should work
[16:56:48 CEST] <durandal_170> J_Darnley: no parser?
[16:57:08 CEST] <J_Darnley> I don't know, don't care. I might have to care later.
[18:21:40 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:181c9abd47cb: avfilter/vf_premultiply: add inplace mode
[18:41:15 CEST] <cone-093> ffmpeg 03Paul B Mahol 07master:1bef0088dce7: avfilter/drawutils: add gray9/10/12 support
[18:48:02 CEST] <J_Darnley> Hacking doc/examples/encode_video was not very instructive.
[18:48:48 CEST] <J_Darnley> Allocating full size frames gets gets the encoder encoding zeros after the initial band drawn in the example
[18:49:37 CEST] <J_Darnley> Allocating less than the full frame results in a segfault becauce the encoder doesn't check the height of the given frame.
[18:49:47 CEST] <J_Darnley> The first is hardly surprising.
[18:50:19 CEST] <J_Darnley> I guess the second shows that there isn't some check hidden away somewhere rejecting frames.
[19:03:18 CEST] <kierank> J_Darnley: that's good
[19:03:41 CEST] <kierank> if you add your own x, y position stuff in AVFrame then you can do things
[20:35:39 CEST] <durandal_170> vdd open sauce
[20:35:56 CEST] <BBB> if its free, it must be bad
[20:36:17 CEST] <BBB> you should come though
[20:36:18 CEST] <BBB> :-p
[20:36:22 CEST] <BBB> [tm]
[20:36:38 CEST] <J_Darnley> Open Sores!
[20:37:29 CEST] <durandal_170> what will be presented this year?
[20:39:30 CEST] <BBB> Id like to do something with vp9
[20:39:33 CEST] <BBB> but I dont know what yet
[20:40:21 CEST] <durandal_170> vp9? there is nothing new, everything is known
[20:40:46 CEST] <BBB> one test says its 30% worse than x265, another says its 10% better
[20:40:48 CEST] <BBB> which test is right?
[20:41:00 CEST] <durandal_170> neither
[20:41:03 CEST] <BBB> :-p
[20:42:39 CEST] <durandal_170> yea do vmaf/psnr/ssim comparison of various derf samples, once it finish encoding
[20:46:52 CEST] <kierank> J_Darnley: want to present at VDD like BBB said before?
[20:47:44 CEST] <J_Darnley> Present what? mmpeg2 stuff? Not really.
[20:47:56 CEST] <kierank> k
[20:48:12 CEST] Action: J_Darnley sighs
[20:48:18 CEST] <durandal_170> make some asm workshop with vlc guys
[20:48:33 CEST] <J_Darnley> I still didn't start the third part of the blog post series.
[20:49:55 CEST] <BBB> I can also do something about x86inc.asm/x264asm
[20:50:08 CEST] <BBB> but I fear that it would have very limited interest for most people
[20:50:19 CEST] <BBB> most people like asm as long as someone else writes it
[20:59:36 CEST] <kierank> J_Darnley: no rush
[21:27:38 CEST] <atomnuker> BBB: talk about how its the best puzzle game and its a shame newspapers don't put SIMD problems next to crosswords
[21:28:54 CEST] <kierank> lol
[21:29:00 CEST] <atomnuker> people just need to get hooked up with it once to know its crack cocaine and soon they'll be running out of complex functions to simd
[21:29:28 CEST] <BBB> intel will just come up with wider registers and newer strange instruction names
[21:29:37 CEST] <BBB> vphfksjdnklrelnzxsw
[21:29:42 CEST] <BBB> it does magic things
[21:29:57 CEST] <BBB> how to abuse this magic new instruction to make your function 10% faster?
[21:30:03 CEST] <BBB> read about it next week @ VDD!
[21:30:12 CEST] <RiCON> wouldn't be surprised if that's actually a real name now or in the future
[21:31:01 CEST] <kierank> atomnuker: does that make me your drug dealer?
[21:31:43 CEST] <atomnuker> yep, yes it does
[21:31:48 CEST] <BBB> ...
[21:31:56 CEST] <kiroma> I joined this channel to see how professional programmers write code to a big project
[21:32:09 CEST] <JEEB> welcome to open source
[21:40:24 CEST] <jamrial> BBB: it does magic things, but takes alone 5x as much time to finish than the combination of 10 separate intructions that together do the same thing
[21:41:43 CEST] <jamrial> see sse4 dpps, or avx2 vgather
[21:41:53 CEST] <jamrial> it seems to be the norm for anything past ssse3 :p
[21:42:02 CEST] <BBB> I like avx2
[21:42:13 CEST] <BBB> pmovz/sx* are quite useful
[21:42:18 CEST] <BBB> even if they arent exactly novel
[21:42:51 CEST] <BBB> I wish we had more variants like pmulhrsw
[21:42:57 CEST] <jamrial> it's neat, yes
[21:42:58 CEST] <BBB> e.g. a rounded shift from dword to word would be very useful
[21:43:14 CEST] <atomnuker> jamrial: dpps seems crazy, why is there even a need for a mask argument?
[21:43:30 CEST] <BBB> like paddd a, [something], paddd b, [something], psrad a, something, psrad b, something, packssdw,a, b
[21:43:30 CEST] <atomnuker> this could be just a mulps and an andps
[21:43:45 CEST] <BBB> I bet you could do that in a single call like pmulhrsw
[21:44:07 CEST] <BBB> (in a more limited sense would be fine, e.g. just rounded shift by a fixed integer number without the multiply would be fine)
[21:44:15 CEST] <jamrial> i have no idea, never used it. just read a blog post of someone trying to implement it and finding that it's just too slow compared to using a combination of other instructions. just like vgather on anything pre skl-x
[21:44:47 CEST] <jamrial> BBB: yeah, a instruction like that could be used for example in jpeg2000dsp
[21:44:48 CEST] <atomnuker> is it actually faster than doing it individually on skl-x?
[21:45:02 CEST] <BBB> an instruction like that could be used anywhere
[21:45:03 CEST] <atomnuker> still waiting on agner fog's to see what skl-x does good
[21:45:05 CEST] <BBB> it would be hugely useful
[21:45:08 CEST] <jamrial> gather is fast only in skl-x
[21:45:16 CEST] <BBB> but intel dont listen to me
[21:46:25 CEST] <jamrial> they are busy adding weird instructions for deep learning
[21:47:09 CEST] <BBB> deep learning is the 2020 version of lomoso
[21:48:17 CEST] <BBB> apparently its SoLoMo, not LoMoSo (anyway...)
[22:09:11 CEST] <Gramner> atomnuker: official skl-x instruction latencies and throughput are release. it's missing some stuff and other things are outright wrong, but still
[22:10:07 CEST] <Gramner> the best one is vpconflictd with zmm regs. it's 67/17.5
[22:10:42 CEST] <Gramner> https://software.intel.com/sites/default/files/managed/ad/dc/Intel-Xeon-Sca…
[22:12:29 CEST] <atomnuker> vgathers don't seem much better, they just have halved throughput compared to sklylake
[22:13:30 CEST] <Gramner> gathers have fine throughput. they just have a bunch of extra latency over doing individual loads for who knows what reason
[22:14:25 CEST] <atomnuker> I bet its wasting time doing the mask
[22:15:37 CEST] <atomnuker> the fact it modifies it to return error status is particularly wrong
[22:15:49 CEST] <iive> What?!
[22:16:30 CEST] <Gramner> it's implemented in the most sensible way
[22:17:05 CEST] <Gramner> how else would you do it efficiently in a way that's compatible with x86 fault semantics?
[22:17:50 CEST] <atomnuker> it already triggers a segfault on out of bounds indices
[22:18:50 CEST] <Gramner> page faults are the relevant fault type for gathers
[22:19:13 CEST] <Gramner> segfaults are irrelevant. it can take another million cycles if that happens and nobody would care
[22:20:28 CEST] <atomnuker> page faults? as in the soft faults when the page you need to load from is only on ram atm or something?
[22:20:31 CEST] <Gramner> if you do a gather of 16 elements and hit a page fault on the 15:th, the OS will handle the page fault and restart the instruction. but you obviously don't want to have to redo the already completed 13 elements which is why the mask is updated to reflect that they have already been gathered
[22:20:49 CEST] <Gramner> 14*
[22:21:33 CEST] <iive> Gramner: given how much cycles a page fault takes to be handled, that would be irrelevant.
[22:22:24 CEST] <atomnuker> aren't page faults only relevant if you're running starting to run out of CPU?
[22:22:35 CEST] <Gramner> and I doubt updating a bitflag takes 20 cycles
[22:22:35 CEST] <iive> you mean ram
[22:23:10 CEST] <iive> and that could involve waiting for HDD.
[22:33:52 CEST] <Gramner> anyway, I really doubt that gathers are slow due to how the instruction is defined. it's most likely just a suboptimal implementation (they have been made faster every cpu generation since they were introduced)
[22:34:35 CEST] <Gramner> it wouldn't surprise me if they ignore L1 and just go straight for L2 or something
[22:40:46 CEST] <Gramner> more interesting things about SKL-X is that some instruction latencies varies depending on which port they execute on. zmm floating-point ops and multiplies for example have 4 cycles latency on p0 but 6 cycles on p5
[22:42:42 CEST] <Gramner> also vpermw et. al are a lot slower than dword and qword equivalents. I'm guessing that will get improved at the same time as avx512vbmi is introduced though
[22:43:23 CEST] <TD-Linux> BBB, x86inc.asm + rust! (it's pretty boring though)
[22:43:35 CEST] <BBB> rust?
[22:44:10 CEST] <Gramner> kostya did some blog post about rust in relation to multimedia stuff
[22:47:23 CEST] <TD-Linux> yeah I've read it, it's reasonable
[22:47:39 CEST] <Blubberbub_> https://codecs.multimedia.cx/2017/07/rust-not-so-great-for-codec-implementi… <- this?
[22:47:48 CEST] <Gramner> yeah
[22:48:29 CEST] <Gramner> there was also some later one about performance vs C I think
[22:50:16 CEST] <Gramner> https://codecs.multimedia.cx/2017/08/rust-optimising-decoder-experience/
[22:57:26 CEST] <J_Darnley> Wow. Someone is actually doing the work instead of just saying "why don't you rewrite in rust"
[22:58:54 CEST] <JEEB> that happens sometimes
[23:34:12 CEST] <BBB> omg I just wasted 5 minutes of my life reading these two blog posts
[23:34:14 CEST] <BBB> poor kostya
[23:34:28 CEST] <BBB> so his goal was really just to prove ignorant fools wrong?
[23:34:47 CEST] <BBB> but ignorant fools cannot be convinced of obvious things, thats why you dont start trying to convince them
[23:35:08 CEST] <BBB> you just keep ignoring them and they will continue to use your software anyway
[23:35:13 CEST] <thardin> is improving rustc really an insurmountable task?
[23:35:14 CEST] <BBB> poor kostya
[23:35:45 CEST] <BBB> thardin: I think the sad but harsh reality is that it doesnt matter
[23:36:10 CEST] <thardin> so? nothing matters
[23:36:13 CEST] <thardin> who cares?
[23:36:18 CEST] <BBB> until someone specifically focuses and demonstrates that mylanguage is optimized for multimedia-like problem areas, it wont be appropriate for it
[23:36:24 CEST] <thardin> it's an interesting experiment
[23:36:53 CEST] <BBB> well&
[23:37:00 CEST] <BBB> heres my take on it
[23:37:14 CEST] <BBB> an ignorant fool can ask any question at a rate of about 60 questions per minute
[23:37:52 CEST] <BBB> demostrating the foolishness of the question - as meta-demonstrated by kostya - takes a few days per question
[23:38:08 CEST] <BBB> that assymetry means that we need more than zero evidence before we approach a potentially-foolish question
[23:38:55 CEST] <BBB> just because otherwise all we would ever do (and get done) is to address a fools concerns, but we wouldnt be writing software anymore
[23:39:00 CEST] <BBB> akak wed be dinosaurs
[23:39:08 CEST] <BBB> akak=a.k.a.
[23:40:06 CEST] <BBB> (thats probably very cynical&)
[23:40:16 CEST] <wm4> so when will ffmpeg be converted to rust (serious question)
[23:40:34 CEST] <BBB> it sounds like kostya is almost done with it
[23:40:37 CEST] <kierank> avformat is not an unreasonable candidate
[23:40:56 CEST] <kierank> and then decoding done via hw decoders
[23:40:56 CEST] <BBB> ffmpeg.c is probably a good candidate
[23:41:18 CEST] <wm4> modern demuxers are already written in JS and this safe
[23:41:49 CEST] <thardin> it's only 3x slower than C!
[23:41:59 CEST] <thardin> ffmpeg electrum app when?
[23:43:50 CEST] <thardin> sleep time soon, so I can continue work on my patchset
[23:58:45 CEST] <thardin> I do hope kostya gets better. he seems burned out
[00:00:00 CEST] --- Tue Aug 8 2017
1
0
[00:32:21 CEST] <furq> is there no way to select stream type with -map 0:m
[00:32:45 CEST] <furq> doing -map 0:v -map 0:m:language:eng and getting two video streams is a whole lot of fun
[01:51:02 CEST] <markmedes2> So, I found the problem. Apparently I have either a file system corruption or a bad block on the disk. I couldn't copy the file from the usb drive to my computer
[02:32:36 CEST] <jerkey> is it possible to cut a clip from an .mkv that does not start on a keyframe?
[02:34:28 CEST] <JEEB> that has two different readings
[02:34:59 CEST] <JEEB> 1) you want to cut a clip from a matroska file that doesn't start with an IRAP
[02:35:11 CEST] <JEEB> 2) you want to cut a clip that doesn't start with an IRAP from a matroska file
[02:36:27 CEST] <jerkey> i have a movie, i want to cut ten seconds from it, but it will only give me an output that starts at the nearest keyframe (IRAP?) to the -ss ##:##:## i give it
[02:36:39 CEST] <jerkey> i want to cut from a specific second, and it refuses to do that
[02:38:08 CEST] <JEEB> IRAP is a convenient term that was added in the HEVC spec that is an umbrella term for all types of pictures that a decoder can start decoding after random access (RA)
[02:38:54 CEST] <JEEB> since you can either have an IDR picture (all intra + references are to be reset), open GOP intra picture that is a random access point etc.
[02:39:10 CEST] <JEEB> but in general if you cut somewhere that is not an IRAP your result will not be decode'able
[02:39:42 CEST] <JEEB> so you either need to re-encode a part in the beginning until the first GOP ends where you end up
[02:39:59 CEST] <JEEB> or you use something like mp4 edit lists to get the player to throw away initial frames
[02:40:32 CEST] <JEEB> you might test the latter with itsoffset or so
[02:40:37 CEST] <jerkey> ok i am willing to re-encode, do i need to use an edit list file instead of the -ss parameter?
[02:40:38 CEST] <JEEB> (and outputting to mp4)
[02:40:48 CEST] <JEEB> re-encode is something you'll have to do manually
[02:41:04 CEST] <JEEB> in two parts and using parameters that lead to similar enough parameter sets
[02:41:23 CEST] <JEEB> (otherwise you need to make sure at least the latter part of the thing has parameter sets all over the thing
[02:41:42 CEST] <JEEB> anyways, it's almost four here so I'm dropping out
[02:42:49 CEST] <jerkey> ok thanks JEEB
[03:23:37 CEST] <relaxed> furq: it's mapping the same video stream twice?
[03:23:53 CEST] <furq> yeah
[03:24:08 CEST] <furq> it's not a big deal, i just picked the audio stream by number
[03:24:15 CEST] <furq> but i can imagine some batch use cases where that would be really annoying
[03:24:36 CEST] <relaxed> I tried the same options on some anime and it mapped only audio, ass, and one video stream
[03:24:54 CEST] <furq> usually the video stream doesn't have a language tag
[03:24:58 CEST] <furq> but evidently for this file it does
[03:25:21 CEST] <relaxed> right, I don't know why it would have a language set
[03:25:37 CEST] <furq> i've seen someone else with this problem with audio and subtitle streams though
[03:26:35 CEST] <relaxed> in ffmpeg's defense, isn't it giving you what you asked for?
[03:26:42 CEST] <furq> yeah it is
[03:26:55 CEST] <furq> which is why there should be a way to specify a stream type with m
[03:29:54 CEST] <relaxed> right, something like -map 0:m:a,s:language:eng
[03:32:36 CEST] <relaxed> maybe -map 0:a:m:language:eng -map 0:s:m:language:eng would make more sense
[03:39:51 CEST] <relaxed> what was the problem with audio and subtitle streams?
[03:42:21 CEST] <relaxed> furq: you meant the same issue?
[03:45:01 CEST] <furq> yeah
[04:32:52 CEST] <markmedes2> Guys, what's the matter here? I used the option -ec with the flag deblock
[04:32:55 CEST] <markmedes2> Codec AVOption ec (set error concealment strategy) specified for output file #0 (/home/user/Desktop/encoded/kingsman.avi) is not an encoding option.
[04:36:45 CEST] <relaxed> markmedes2: command?
[04:37:28 CEST] <markmedes2> relaxed, time ffmpeg -i /home/user/Desktop/to_encode/KINGSMEN.mts -filter:v scale="640:trunc(ow/a/2)*2" -map 0:0 -map 0:1 -map 0:2 -vcodec libx264 -crf 20 -c:a aac -err_detect ignore_err -ec deblock /home/user/Desktop/encoded/kingsman.avi
[04:42:41 CEST] <relaxed> I think that's a decoding option
[04:43:34 CEST] <markmedes2> hmmm
[04:43:43 CEST] <relaxed> place it before the input
[04:43:44 CEST] <markmedes2> why it was working before?
[04:43:50 CEST] <markmedes2> ah ok
[04:44:04 CEST] <markmedes2> still... why it was working before just fine?
[04:45:05 CEST] <markmedes2> nevermind, now it's working, thank you
[04:45:40 CEST] <relaxed> you're welcome
[04:45:47 CEST] <markmedes2> One more thing: Is there a way to re-encode using libmp3lame and keep audio in sync with video?
[04:46:15 CEST] <relaxed> why wouldn't be in sync?
[04:46:30 CEST] <relaxed> it be*
[04:46:46 CEST] <markmedes2> idk, re-encoded videos with lame are completely out of sync
[04:47:37 CEST] <relaxed> just libmp3lame?
[04:47:46 CEST] <markmedes2> yes
[04:48:00 CEST] <markmedes2> I found this: https://superuser.com/questions/1042988/ffmpeg-audio-out-of-sync-when-trans…
[04:48:09 CEST] <markmedes2> but it's too complicated and I don't understand
[04:48:43 CEST] <markmedes2> and not lame related
[04:50:20 CEST] <relaxed> it's off from the start?
[04:50:33 CEST] <markmedes2> yes
[04:50:47 CEST] <relaxed> try -async -1
[04:51:27 CEST] <markmedes2> k
[05:02:35 CEST] <markmedes2> relaxed, I found something. About 1 minute into the movie there is a quick glitch in the video, it's lost for a few seconds. So maybe that's why it's desyncing?
[05:03:11 CEST] <relaxed> yeah, could be
[05:09:43 CEST] <markmedes2> relaxed, the audio track doesn't suffer from the glitch, maybe I can make the video sync to the audio?
[05:11:52 CEST] <relaxed> with a damaged file you might be out of luck
[05:12:51 CEST] <markmedes2> oh well, I give up, thank you bro
[07:17:39 CEST] <xacktm> anyone have issues with nvenc or can get nvenc to work? I get a "Cannot init CUDA" when I try to capture the screen https://bpaste.net/show/b6dc126a1354
[10:59:38 CEST] <whald> hi! i'm having trouble to let configure pick up my libva (which is installed in a non-standard location). here's my current state of affairs: https://pastebin.com/PE9dDRH5
[11:00:04 CEST] <whald> can s.o. help me figure out why the include directory is not picked up?
[11:02:42 CEST] <furq> whald: PKG_CONFIG_PATH is printed in config.log, check that to make sure it's picking that up
[11:04:06 CEST] <whald> furq, cat ffbuild/config.log | grep PKG_CON gives "PKG_CONFIG_PATH='/home/trem/mdi/playground/lib/pkgconfig'", looks good to me
[11:06:34 CEST] <BtbN> whald, I don't think the libva checks use pkgconfig
[11:06:47 CEST] <BtbN> you need to set the lib and include path yourself in extra-cflags/ldflags
[11:06:58 CEST] <whald> BtbN, ahhh, that's interesting!
[11:07:07 CEST] <whald> BtbN, i'll give it a spin, thanks
[11:09:05 CEST] <darsain> hey guys, will "-map 0:s" select all subtitle streams?
[11:12:57 CEST] <furq> yes
[11:22:35 CEST] <Mavrik> From the first input file :)
[11:23:06 CEST] <darsain> yes yes, I got it. ty :)
[11:23:53 CEST] <darsain> also is there a way how to specify only a video video stream? I have an mkv file where there are 4 video streams, out of which 3 are mjpeg images
[11:24:41 CEST] <darsain> I could do -map 0:v:0, but what if video won't be the first stream?
[11:24:54 CEST] <BtbN> 0:v will always match the first video stream.
[11:25:13 CEST] <darsain> I thought 0:v will match all video streams from 1st file, no?
[11:51:01 CEST] <whald> BtbN, PS: using extra-cflags/ldflags did the trick, thanks! :-)
[13:39:19 CEST] <papi> Hello
[13:39:36 CEST] <papi> Does anyone have experiences with nginx rtmp module?
[15:25:37 CEST] <Bear10> does anyone know how I could decode a jpeg within a filter to get its raw contents?
[15:54:39 CEST] <JEEB> y/23
[16:36:03 CEST] <papi> Hello
[16:36:10 CEST] <papi> Can some1 help me with following issue?
[16:36:11 CEST] <papi> https://groups.google.com/forum/#!topic/nginx-rtmp/vWzKHt3ya9Q
[16:40:31 CEST] <relaxed> papi: first thing to try is a recent version of ffmpeg
[16:41:44 CEST] <papi> I use last version in debian:jessie
[16:41:50 CEST] <papi> It should be very stable version
[16:41:51 CEST] <papi> or not?
[16:43:42 CEST] <relaxed> not. I recommend compiling a recent version or using https://www.johnvansickle.com/ffmpeg/
[16:45:15 CEST] <papi> I tried to compile ffmpeg, but it is very complicated
[16:45:28 CEST] <papi> Too many flags in configure...
[16:45:59 CEST] <relaxed> then use my static build :)
[16:47:59 CEST] <papi> I'll try... ty :)
[16:49:30 CEST] <papi> Hmmmm... my version is 3.2.5 and newest is 3.3.7
[16:49:35 CEST] <papi> I think it's not too old
[16:59:06 CEST] <papi> Can you tell me how to compile your static build pls?
[16:59:54 CEST] <papi> @relaxed
[17:03:12 CEST] <papi> Ignore prev message :D
[17:03:16 CEST] <papi> I am dumb D
[17:03:17 CEST] <papi> :D
[17:04:12 CEST] <papi> Output of your static ffmpeg: https://pastebin.com/nurBnYHs
[17:07:56 CEST] <relaxed> maybe that's why the older build was not working?
[17:08:48 CEST] <relaxed> I don't have any experience with ffmpeg + nginx streaming, sorry
[17:09:53 CEST] <papi> Ok..... I don't think it's problem of older build. Your build won't send play command
[17:12:23 CEST] <Bear10> just going to try one more time incase someone missed it, does anyone know does how I could decode a jpeg within a filter to get its raw contents?
[17:18:14 CEST] <relaxed> Bear10: In a filter? Would this work --> ffmpeg -i input.jpg -f rawvideo output.raw
[17:18:47 CEST] <Bear10> relaxed: not quite, we're trying to change the input.jpg on the fly for livestreams like OBS allows you to change the inputs
[17:19:19 CEST] <Bear10> so I thought one approach would be in the code to create a custom filter and decode at will a specific jpg, however thats resulting a lot more difficult than i imagined
[19:35:47 CEST] <pgorley> hi, does the h264 decoder have a settings to drop frames that contain artifacts?
[20:28:11 CEST] <gwohl> On FFmpeg nightly build, the HEVC decoder is presenting errors like `Could not find ref with POC 340` when streaming adaptively over HTTP but not when decoding that same stream locally. Remotely, decoding gets very distorted with lots of blocking and color artifacts, but nothing bad occurs during local decode. Can anyone point to a likely cause?
[20:34:52 CEST] <Shawn_> Hello. I'm converting a MOV to WebM and the translucency does not look the same. For some reason, the WebM is letting much more of the background through. Any ideas what could cause this?
[20:35:55 CEST] <klaxa> translucency? i don't think vp8/vp9 supports transparent pixels?
[20:36:02 CEST] <furq> vp8 does
[20:36:29 CEST] <klaxa> well color me surprised
[20:36:35 CEST] <furq> oh apparently vp9 does as well
[20:36:45 CEST] <Shawn_> Here is some info: https://developers.google.com/web/updates/2013/07/Alpha-transparency-in-Chr…
[20:37:16 CEST] <furq> what pixel format is the mov
[20:37:43 CEST] <furq> if it's rgba or something then maybe swscale is just doing a dodgy conversion
[20:40:13 CEST] <Shawn_> It's Apple QuickTime RLE Video if that helps. How can I check to see if it's RGBA?
[20:40:19 CEST] <furq> ffprobe
[20:40:59 CEST] <furq> it must be argb though because that's the only pixel format qtrle supports with alpha
[20:43:40 CEST] <Shawn_> Here is the output of the FFProbe: https://pastebin.com/AQMZgs78
[20:44:33 CEST] <furq> maybe try -sws_flags dst_range=full
[20:44:51 CEST] <Shawn_> I'll give that a try!
[20:51:06 CEST] <Shawn_> @furq: Getting an error: https://pastebin.com/UV5aeeTi
[21:25:30 CEST] <papi> Hello guys
[21:25:39 CEST] <papi> FFmpeg cannot play RTMP stream from nginx
[21:25:47 CEST] <papi> With VLC I have no problems
[21:25:54 CEST] <papi> I am using FFmpeg 3.2.5
[21:25:57 CEST] <papi> Any solution?
[21:27:05 CEST] <JEEB> test latest master?
[21:27:20 CEST] <JEEB> if it still doesn't work provide a sample RTMP stream and post an issue on trac
[21:41:53 CEST] <nahsi> guys, i'm using mpdecimate filter to get the correct framerate from ~30 fps silent movie which originally was 14-16. The result is very impressive, but not without drawbacks. It drops black frames. There are very little of those frames in the beginning only. How can I tell it not to drop completely black frames?
[21:58:36 CEST] <lacrymology> question: ffserve serves live streams, right? like.. the client doesn't have any control over what it's getting?
[21:59:05 CEST] <lacrymology> I'm trying to find a way to cast to my chromecast that supports seeking
[21:59:07 CEST] <JEEB> lacrymology: ffserver is something that nobody will be able to help you with, so do not look at it
[21:59:21 CEST] <lacrymology> JEEB: lol. ok, but why
[21:59:45 CEST] <JEEB> because it's a thing that has never even been understood by most people. and it seemingly isn't really great at what it does
[22:01:28 CEST] <lacrymology> :)
[22:02:21 CEST] <pgorley> lacrymology: use vlc if you need a streaming server
[22:04:07 CEST] <lacrymology> pgorley: I haven't been able to make it work as I want. Ideally I'd be able to control the stream (pause, seek) either by commands from the client or by just doing it on the server and have the client not break
[22:06:39 CEST] <pgorley> lacrymology: i've never had those issues with vlc, but i wasn't doing anything other than a few tests with it
[22:07:58 CEST] <lacrymology> pgorley: how do you control playback?
[22:09:07 CEST] <pgorley> lacrymology: you should ask the guys at #videolan instead, i haven't fiddled with vlc for months
[22:09:37 CEST] <pgorley> but iirc i would just move the slider to seek in the file
[22:10:45 CEST] <pgorley> don't remember anything breaking
[22:21:00 CEST] <Shawn_> Furq, are you still there? I can't get the -sws_flags to work (https://pastebin.com/UV5aeeTi)
[22:22:23 CEST] <Shawn_> The WebM transparency is working with the exception of partial opacity (i.e. a ghost hand with the background showing through). The ghost hand is letting much more of the background threw than the MOV.
[22:22:37 CEST] <Shawn_> through*
[22:23:24 CEST] <Shawn_> For the parts that are 100% transparent, no issues.
[23:06:21 CEST] <abdul> Hi, im trying to play a v5zap dvbc/annex_a captured stream by using ffmpeg. FFmpeg says 'could not find codec parametersvq= 0KB sq= 0B f=0/0' when i play hd channels but on public free hd channels it works normaly! so is there a special codec needed or something?
[23:25:30 CEST] <timofonic> Hello
[23:26:18 CEST] <timofonic> Does ffmpeg supports DCP? https://en.wikipedia.org/wiki/Digital_Cinema_Package
[23:26:47 CEST] <JEEB> MXF is supported, composition XML not
[23:42:01 CEST] <timofonic> JEEB: Oh, why no? :(
[23:42:08 CEST] <timofonic> JEEB: Any hopes?
[23:42:45 CEST] <JEEB> now the real question is, do you /require/ the info that's in the XML. in libavformat itself
[23:43:02 CEST] <JEEB> I've had some clips in DCP format and I just ignored the XML
[23:43:16 CEST] <JEEB> load video, load audio, know how the flying fuck the audio was mixed
[23:43:20 CEST] <JEEB> and off you go
[23:44:09 CEST] <timofonic> JEEB: It's just for convenience in a projection room, just looking for a friend. I'm not a usual consumer of DCP
[23:44:20 CEST] <JEEB> well the problem with that stuff then
[23:44:29 CEST] <JEEB> is the fact that software jpeg2000 decoding is *slow*
[23:44:40 CEST] <JEEB> you can already play the MXF Files together with mpv or so
[23:44:44 CEST] <JEEB> or VLC
[23:44:55 CEST] <JEEB> VLC even has support for the XML I think if you're a lazy person like that
[23:45:21 CEST] <timofonic> JEEB: Oh, interesting :)
[23:46:32 CEST] <timofonic> JEEB: Now I'm having a really weird HDD error. Going to ask elsewhere. Thanks a lot
[23:52:19 CEST] <abdul> can it be a receiver hardware problem? the decoder supports HVEC but not h264/h265
[23:54:23 CEST] <abdul> my tv can handle all these streams without any decoder or in germany called 'hd card'
[00:00:00 CEST] --- Tue Aug 8 2017
1
0
[00:26:06 CEST] <cone-093> ffmpeg 03Michael Niedermayer 07master:1f53bde6d817: avcodec/h264_slice: Fix overflow in slice offset
[00:26:07 CEST] <cone-093> ffmpeg 03Michael Niedermayer 07master:1e443051b277: avcodec/aacdec_fixed: fix invalid shift in predict()
[03:01:31 CEST] <jamrial> does anyone know how to report bugs to clang and can do it? because clang since version 5 is miscompiling the jpeg encoder (and maybe also decoder)
[03:02:01 CEST] <jamrial> probably only encoder
[03:13:03 CEST] <thebombzen> jamrial: probably on their bug tracker :P
[03:14:17 CEST] <thebombzen> just a google search took me to this: https://bugs.llvm.org/
[03:20:01 CEST] <Compn> probably the correct place
[03:20:21 CEST] <Compn> thebombzen : its possible jamrial wants someone to create samples that miscompile though
[03:20:34 CEST] <Compn> because compiler projects require sample code (and they dont want full .c files)
[03:20:50 CEST] <Compn> and especially not 1mb ffmpeg project zip ;)
[03:21:17 CEST] <Compn> jamrial : we could probably ask on twitter for a volunteer
[03:21:29 CEST] <Compn> jamrial : if you want to post what happens to our bugtracker and then we point twitter at it
[03:21:49 CEST] <jamrial> nobody here uses clang at all?
[03:21:58 CEST] <Compn> there are some clang users here i think
[03:21:59 CEST] <jamrial> seems a bit too extreme to ask on twitter about it
[03:22:01 CEST] <Compn> maybe just afk :D
[03:22:09 CEST] Action: Compn hides
[03:38:04 CEST] <iive> jamrial: ask atomnuker
[04:03:16 CEST] <BBB> jamrial: about your patch
[04:03:29 CEST] <jamrial> BBB: yeah?
[04:03:30 CEST] <BBB> jamrial: lets hypothetically suggest that I wanted to put h264 ps headers in the frame side data
[04:03:36 CEST] <BBB> e.g. the slice header
[04:03:46 CEST] <BBB> that would break for multi-slice frames afte your patch
[04:04:24 CEST] <jamrial> how do you access them? custom code looping over existing side data? because av_frame_get_side_data() will always only return the first result of the requested type
[04:04:32 CEST] <BBB> custom code loop yes
[04:04:45 CEST] <jamrial> is that proper/documented api usage?
[04:04:50 CEST] <BBB> I dont know
[04:04:52 CEST] <BBB> it works
[04:05:38 CEST] <BBB> you could also add an api to get the nth of a type of side data
[04:05:40 CEST] <jamrial> plenty of things will work when you abuse an api :P
[04:05:45 CEST] <BBB> where the default function returns nth=0
[04:05:50 CEST] <BBB> sure
[04:05:55 CEST] <BBB> but this is not a crazy use case
[04:05:56 CEST] <jamrial> but you should expect them to be broken without notice
[04:05:58 CEST] <BBB> how would you do it?
[04:06:07 CEST] <BBB> lets sya you are me and want slice headers
[04:06:11 CEST] <BBB> what would you do?
[04:06:21 CEST] <jamrial> i agree, so maybe this should be documented, or a new function allowing one to get the other results should be added
[04:06:31 CEST] <BBB> thats what I just said
[04:06:43 CEST] <BBB> add a function to get the nth element of a type of side data
[04:06:48 CEST] <BBB> and for the default function, get nth=0
[04:07:12 CEST] <jamrial> epatchwelcome :p
[04:07:13 CEST] <BBB> and if we reach the end of the side data list without encountering n side datas of that type, return NULL
[04:07:28 CEST] <BBB> you proposed a patch to break a use case
[04:07:31 CEST] <jamrial> i can drop this patch. i wrote it just to be consistent with the current packet side data behavior
[04:07:34 CEST] <BBB> I just loop over the struct directly
[04:07:44 CEST] <BBB> because I dont want to add external api that is weird
[05:33:15 CEST] <atomnuker> jamrial: yeah, I use clang, it work fine with ccache and is slightly faster than gcc
[06:06:10 CEST] <jamrial> atomnuker: can you try to make a testcase for the above and report it to llvm?
[06:12:20 CEST] <atomnuker> jamrial: was it clang's fault? the commit doesn't say
[06:13:00 CEST] <jamrial> what commit?
[06:13:24 CEST] <jamrial> look at fate, every jpeg encoder test is failing with clang 5 (release) and newer
[06:13:50 CEST] <jamrial> on both x86_32 and x86_64
[06:15:40 CEST] <atomnuker> ah, I thought you meant the bug which was just closed
[06:18:40 CEST] <atomnuker> "New user self-registration is disabled due to spam. For an account please email bugs-admin(a)lists.llvm.org with your e-mail address and full name."
[06:24:34 CEST] <jamrial> same happened to gcc's bugzilla afaik
[07:21:08 CEST] <atomnuker> speaking of compiler errors, debian's latest gcc-snapshot fails to compile at all
[07:21:11 CEST] <atomnuker> "libavfilter/af_compand.c:328:12: internal compiler error: verify_ssa failed"
[07:53:28 CEST] <Blubberbub_> https://www.ffmpeg.org/developer.html#Contributing <- this should probably changed, because pull requests aren't accepted through github, right?
[09:12:48 CEST] <cone-726> ffmpeg 03DeHackEd 07master:eabeb9093abe: avformat/hlsenc: allow dynamic encryption key rotation
[09:54:02 CEST] <nevcairiel> Blubberbub_: you can still do that and send it to the ML for review, it doesnt mention pull request specifically
[09:54:55 CEST] <Blubberbub_> yea, i think i misunderstood it. Its probably about having my own fork of ffmpeg and referencing a branch in my fork on the mailing list?
[09:59:34 CEST] <cone-726> ffmpeg 03Muhammad Faiz 07release/3.3:e51e07c34eb7: avfilter/vf_ssim: fix temp size calculation
[11:36:22 CEST] <cone-726> ffmpeg 03Muhammad Faiz 07release/3.2:5987b16f868c: avfilter/vf_ssim: fix temp size calculation
[11:58:16 CEST] <cone-726> ffmpeg 03Muhammad Faiz 07release/3.1:eadb52d45904: avfilter/vf_ssim: fix temp size calculation
[12:36:17 CEST] <Blubberbub_> a simple NaN can really ruin a productive day...
[12:45:58 CEST] <atomnuker> Blubberbub_: where?
[12:47:02 CEST] <atomnuker> (and yeah, nans suck, they also make every float op take 300-400 cycles so they're pretty easy to detect)
[12:47:33 CEST] <Blubberbub_> i'm writing a filter that trims silence from the start and end of audio. The compute_rms-function in af_silenceremove uses a sqrt() which apparently can generate NaNs
[12:48:05 CEST] <Blubberbub_> and i wrote my code where the nan triggered the wrong condition
[12:51:34 CEST] <Blubberbub_> i can't english today. :D
[13:06:54 CEST] <durandal_1707> Blubberbub_: use fabs
[13:07:57 CEST] <Blubberbub_> assuming that a*a is >= 0 for double values i shouldn't need fabs. But maybe that assumption is wrong?
[13:16:09 CEST] <durandal_1707> Blubberbub_: are you modifying existing filter?
[13:16:26 CEST] <Blubberbub_> kind of
[13:16:33 CEST] <Blubberbub_> i'm writing a variant
[13:19:54 CEST] <durandal_1707> Blubberbub_: what variant?
[13:20:29 CEST] <Blubberbub_> i want to remove silence from the start and end of the file, but not anything else
[13:22:19 CEST] <durandal_1707> Blubberbub_: and how would you do that if you dont know duration?
[13:22:45 CEST] <Blubberbub_> writing everything that looks like silence into a fifo until i encounter eof or non-silence
[15:16:19 CEST] <atomnuker> Blubberbub_: what if you have silence in the middle of the file
[15:16:37 CEST] <atomnuker> if you want to remove from the start and end only you'll need to cache everything until EOF
[15:16:47 CEST] <Blubberbub_> only the silence, but yes
[15:17:33 CEST] <Blubberbub_> so i write the silence to a buffer and if i notice that there is non-silence after the silence i just buffered i empty that buffer and start over
[15:17:45 CEST] <Blubberbub_> if i find eof i just ignore the buffered silence
[15:19:28 CEST] <BtbN> a filter that hold back output for a very long time and then dumps it all sounds problemetic
[15:19:50 CEST] <atomnuker> BtbN: that's how the areverse and reverse filters work
[15:20:16 CEST] <atomnuker> (and they work alright as long as you have enough ram to store everything uncompressed)
[15:21:58 CEST] <Blubberbub_> i also destroy the regularity of frame sizes in the progress, but i haven't yet encountered any problems with that
[17:44:28 CEST] <durandal_1707> why nobody wrote ff edit like utility years ago
[17:45:03 CEST] <durandal_1707> they just complain and use shit like vs or avs
[17:50:41 CEST] <atomnuker> exactly
[18:20:40 CEST] <BtbN> https://bpaste.net/show/92253bb6d717 is it intended that the hls muxer keeps spamming this?
[18:27:12 CEST] <DHE> yes, ever since it turned out to be a potential security hazard to open the contents of playlist-based formats...
[18:27:21 CEST] <DHE> that is, it's intentional. not that I agree with it.
[18:30:01 CEST] <BtbN> it's spamming so hard that reducing the log level made it go notably faster
[18:30:35 CEST] <JEEB> it's writing so I'm not sure if that is necessary
[18:30:37 CEST] <BtbN> I don't really understand how creating a hls video/stream is a security issue though
[18:30:41 CEST] <JEEB> yea
[18:31:10 CEST] <JEEB> just make a patch about it making the logging level something more verbose
[18:31:17 CEST] <JEEB> than AV_LOG_LEVEL_INFO
[18:31:27 CEST] <BtbN> I don't even see where in the code those logs come from
[18:31:27 CEST] <JEEB> that goes into VERBOSE or TRACE for me personally?
[18:31:29 CEST] <BtbN> it's not in hlsenc.c
[18:33:26 CEST] <nevcairiel> it generically logs all file opening
[18:35:03 CEST] <BtbN> that should be at least verbose
[18:35:31 CEST] <nevcairiel> i'm sure someone will argue that its "security relevance" is only meaningful if its shown to people by default =p
[18:35:49 CEST] <DHE> see commit 53e0d5d7247548743e13c59c35e59fc2161e9582
[18:38:24 CEST] <BtbN> So I guess adding the hls muxer to that check is in order
[18:39:38 CEST] <BtbN> Or in general at least some option to silence it.
[18:39:52 CEST] <BtbN> Specially with short segmented non-live hls it's a massive wall of spam
[21:18:52 CEST] <jamrial> <atomnuker> "libavfilter/af_compand.c:328:12: internal compiler error: verify_ssa failed"
[21:19:08 CEST] <jamrial> what configure options and how old is the snapshot?
[21:21:44 CEST] <DHE> an ICE is automatically a compiler or hardware fault. try again. if it happens twice, update gcc. if it doesn't, check your hardware
[21:23:36 CEST] <atomnuker> jamrial: gcc (Debian 20170731-1) 8.0.0 20170731 (experimental) [trunk revision 250749], config options were https://0x0.st/dNP.txt
[21:24:52 CEST] <DHE> ... gcc 8.0.0 isn't an official release... see gcc.gnu.org/
[21:25:14 CEST] <jamrial> DHE: it's the in development version
[21:25:36 CEST] <DHE> yes I see that...
[21:25:56 CEST] <jamrial> svn trunk snapshots are all 8.0.0
[21:26:28 CEST] <jamrial> so if it's crashing compiling ffmpeg, better report it now so they fix it before it's released
[21:44:39 CEST] <jamrial> atomnuker: can reproduce, will make a ticket on gcc's bugzilla later
[21:45:24 CEST] <JEEB> cool
[22:27:41 CEST] <atomnuker> is there anything odd at all about our tta decoder? anything at all?
[22:28:14 CEST] <atomnuker> running showcqt in mpv's lavfi-complex causes pauses once every second or so
[22:28:23 CEST] <atomnuker> but only when decoding tta
[22:28:53 CEST] <atomnuker> (number of audio decoding threads makes no difference so its not a threading bug)
[22:31:53 CEST] <jamrial> atomnuker: not that i know of, but ask durandal_1707
[22:31:59 CEST] <jamrial> try cpuflags 0 and such as well
[22:34:11 CEST] <durandal_1707> tta have some strange heuristic for guessing last frame
[22:34:31 CEST] <durandal_1707> i failed to get it working
[22:43:47 CEST] <jamrial> durandal_1707: doesn't that depend on the container? .tta files are fine, it's matroska where things can get iffy since for some reason in the spec they decided to drop the tta header
[22:44:58 CEST] <durandal_1707> jamrial: tta is same, as when you seek you forget when you are
[00:00:00 CEST] --- Mon Aug 7 2017
1
0
[00:08:50 CEST] <Roberth1990> hello, I'm new to this audio normalization thing, im trying to make the dynaudnorm work, but with its default settings it seems way too agressive, lets say one person talks, and another person talks louder(raising his voice), with dynaudnorm the louder voice gets even quieter than the other voice, how can I avoid this?
[02:01:03 CEST] <SomeClown> Quick question: Is it possible to use ffmpeg-python to retrieve all metadata from an M4V file? If so, can someone point me to appropriate documentation?
[02:04:19 CEST] <JEEB> "all metadata" is often a problematic thing since whether or not everything considered "metadata" would be defined well, and second of all if it supported for reading by the libraries
[02:04:26 CEST] <JEEB> also no idea about the python wrapper
[02:04:43 CEST] <JEEB> in theory you can get a lot of stuff by just using ffprobe's `-of json` mode
[02:07:54 CEST] <SomeClown> Hmm... yeah, for all the power of Python, I'm finding it exceedingly difficult to read any metadata at all from Apple's media files (iTunes videos, music). Haven't found a single library that can do it, at least not yet.
[02:08:27 CEST] <JEEB> no idea who made that wrapper or how far it goes
[02:08:35 CEST] <SomeClown> Thanks, though... I'll play with ffmpeg for some other things.
[02:08:44 CEST] <JEEB> ffprobe's json output would at least be simple enough to parse from python :P
[02:08:47 CEST] <JEEB> from json import loads
[02:09:21 CEST] <JEEB> then use subprocess or something to execute ffprobe and catch stdout
[02:09:51 CEST] <JEEB> (of course all that data is also available from the APIs as well but as I said I have no idea how well that library of yours integrates things)
[02:09:58 CEST] <SomeClown> I could certainly parse the json, but I'm trying to avoid running a command line tool from inside (using subprocess call).
[02:10:02 CEST] <JEEB> ok
[02:10:09 CEST] <SomeClown> Thanks, though!
[02:10:15 CEST] <JEEB> then godspeed because the wrappers tend to age fast
[02:10:29 CEST] <JEEB> with rust I'm using the mozilla-maintained bindgen
[02:10:41 CEST] <JEEB> and thankfully golang has pkg-config and header parsing by default
[02:11:45 CEST] <JEEB> manual wrapper writing just isn't a thing you get things done with with FFmpeg due to the changes being done every now and then, and additional things being added even if backwards compatibility is still kept
[02:12:01 CEST] <JEEB> anyways, in the API the metadata should be on the libavformat level
[02:12:14 CEST] <JEEB> open the demuxer and probe the input etc
[02:12:36 CEST] <JEEB> then the AVFormatContext should have a *lot* of data
[03:15:36 CEST] <thebombzen> sometimes it's just easier to execute ffmpeg.c or ffprobe.c and then grab the output
[03:15:51 CEST] <thebombzen> than it is to try to link to the libraries at least, because bindings and wrappers and shenanigans
[06:10:31 CEST] <xacktm> hey guys, is it possible to get nvenc working with a gtx 1060? I get a "Cannot init CUDA" with yesterday's git HEAD https://bpaste.net/show/b6dc126a1354
[06:10:53 CEST] <xacktm> this forum post has a similar issue but there were no leads https://devtalk.nvidia.com/default/topic/740805/linux/nvenc-h-264-encoder-i…
[06:37:14 CEST] <FlorianBd> Hi! How can I turn ffmpeg http://192.168.12.34/video/mjpg.cgi?profileid=1' -acodec copy -vcodec copy file.mp4 into something with motion detection that makes a new file every time a new motion is detected?
[07:32:01 CEST] <mnr200> stream from rtsp server is not playing with ffplay >> like this ffplay rtsp://localhost:8089/live.sdp
[07:37:17 CEST] <mnr200> what could be the possible problem?
[07:45:05 CEST] <mnr200> okay, got it working
[07:46:12 CEST] <mnr200> okay now I have another problem that I couldn't solve earlier, I got error like this >> Unknown input format: 'dshow'
[07:46:31 CEST] <mnr200> with this command >> ffmpeg -f dshow -i video="Virtual-Camera" -preset ultrafast -vcodec libx264 -tune zerolatency -b 900k -f mpegts rtsp://localhost:8554/live.sdp
[09:07:35 CEST] <npn> If I download an mp4, I can start playing it immediately while the download runs. The information about the total size seems to be present from the start. If I run ffmpeg on an mp4 - no encoding options just adding a watermark, I can not open the file until ffmpeg is complete. Is there any way to be able to start watching while ffmpeg is still running?
[09:17:01 CEST] <Blubberbub_> adding a watermark probably needs re-encoding
[09:20:07 CEST] <ritsuka> npn: you have to enable the fast start option
[09:20:34 CEST] <npn> Sorry for bad explanation. I AM reencoding, I meant- I'm not changing the format
[09:21:41 CEST] <npn> ffmpeg -i input.mp4 -vf drawtext="fontfile=/path/to/font.ttf: text='Test Watermark': fontcolor=white: fontsize=24: box=1: boxcolor=black(a)0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy output.mp4
[09:24:22 CEST] <Blubberbub_> do i understand you correctly, that you have ffmpeg write to a file that is being read from your webserver at the same time?
[09:25:25 CEST] <ritsuka> npn: sorry I didn't read your message carefully eh
[09:26:19 CEST] <npn> Yes- I have multiple users, and I want to watermark each video in a user specific way. I was hoping that the user could access the video immediately, while it is still being encoded.
[09:28:13 CEST] <npn> This https://stackoverflow.com/questions/6353519/is-it-possible-to-play-an-outpu… says NO for mp4, but maybe other formats would work?
[09:29:23 CEST] <bencoh> mpegts, matroska, ...
[09:29:51 CEST] <npn> The other constraint is that it needs to be HTML5/flowplayer compatible ;-) Webm ?
[09:30:00 CEST] <bencoh> fragmented mp4
[09:31:10 CEST] <bencoh> actually I'd expect flowplayer to support mpegts since they can play hls (iirc?), but ...
[09:31:11 CEST] <Blubberbub_> can that even work? i would assume it would break because the webserver can read the file faster than ffmpeg could write it and then decide its finished. If it is even allowed to open the file that is being written in the first palce
[09:31:39 CEST] <bencoh> Blubberbub_: true
[09:32:08 CEST] <bencoh> you'd have to throttle somehow
[09:32:15 CEST] <Blubberbub_> fragmenting could work
[09:32:37 CEST] <Blubberbub_> like have multiple files, so the user can already watch/load parts of the video
[09:33:06 CEST] <bencoh> Blubberbub_: you're basically reimplementing (a subset of) hls/dash/whatever :)
[09:33:47 CEST] <Blubberbub_> true
[09:34:48 CEST] <Blubberbub_> i wondered: is there a codec that allows "subregion encoding"? lets say i have a watermark and i add it only to the lower right corner: then only reencode the lower right corner, but copy the rest of the data?
[09:39:00 CEST] <npn> So close... using the fragmented mp4, yes I can start playing the video immediately, but the total length only shows as far as it has been fragmented. So the user gets cut off half way and then has to refresh the page to find out the true length. Is there any way to read the total length of the input file, and stick that on the output file from the start?
[09:42:53 CEST] <Blubberbub_> i would guess hls allows for something like that
[09:43:41 CEST] <npn> Tx
[09:43:52 CEST] <Blubberbub_> i don't know though
[09:44:33 CEST] <Blubberbub_> encoding every video for every user might take a lot of space...
[09:45:53 CEST] <npn> Yes indeed
[09:47:43 CEST] <Blubberbub_> a fast way to add a watermark would be great. But that would require deep knowledge of the codec, i guess.
[13:33:55 CEST] <lavalike> how do I translate x264 options to -x264-params format?
[13:34:52 CEST] <lavalike> I tried blindly s/ /:/g such as: -c:v libx264 -x264-params "cabac=1:ref=5:deblock=1:-2:-2:analyse=0x3:0x133&
[13:35:13 CEST] <lavalike> but the result has ref=3 so something's not right
[13:38:54 CEST] <furq> that's correct, so i guess it's being overwritten with the -preset medium defaults
[13:39:21 CEST] <furq> maybe try manually setting a preset before -x264-params
[13:39:50 CEST] <lavalike> ok!
[13:41:54 CEST] <lavalike> now some are right but others are wrong still
[13:42:05 CEST] <lavalike> I guess preset slow matches some of the settings I want to replicate, hehe
[13:43:03 CEST] <lavalike> could it be that deblock=1:-2:-2 needs the : transformed to something else since they are used as a separator in the -x264-params ?
[13:58:18 CEST] <DHE> if you have a profile or level defined as well, ref might be clamped
[14:02:29 CEST] <ITR> I'm trying to copy a 32bit wav file to a video with "ffmpeg -loop 1 -framerate 30 -i ..\Pictures\P5.png -i ..\Music\NeverSawItComing.wav -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p P5.mkv", but the audio gets corrupted, does anyone know what the error might be? Removing -c:a copy fixes it, but I assume that lowers audio quality?
[14:03:01 CEST] <ITR> By corrupted I mean that the sound becomes really horrible to listen to
[14:03:02 CEST] <DHE> you'll get a default audio codec with default bitrates.
[15:50:35 CEST] <TheWild> hello
[15:51:13 CEST] <TheWild> ffplay - how to disable spectrum when playing audio files? It just wastes processing power.
[15:51:49 CEST] <JEEB> just use a proper player like mpv instead which utilizes the libav* libraries underneath :)
[15:51:57 CEST] <JEEB> ffplay is just a Proof of Concept kind of thing
[15:53:27 CEST] <TheWild> I'm connected via SSH to the computer that serves as a jukebox.
[15:53:35 CEST] <TheWild> well, got it anyway. ffplay -nodisp
[15:53:51 CEST] <JEEB> yea, I see mpv or something working similarly enough
[15:54:07 CEST] <JEEB> since I use it to connect to pulseaudio and having no window of its own with audio :)
[15:54:18 CEST] <JEEB> (which is the default mode)
[16:12:17 CEST] <TheWild> awesome. Thanks for letting me know about mpv.
[16:15:34 CEST] <BtbN> Is there some mechanism in the hls muxer I could use to avoid ending up with several million files in one directory?
[16:15:48 CEST] <BtbN> Like, putting them in subdirs, with the first X digits of the segment index
[17:29:50 CEST] <DHE> BtbN: live? there's a flag for delete_segments so old segments go out
[17:30:00 CEST] <BtbN> I want all of them
[17:30:15 CEST] <BtbN> But not in one directory. That gets horribly slow
[17:30:31 CEST] <DHE> there are some flags to put timestamps or indexes into the directory names, but you'll have to look into the details yourself.
[17:30:43 CEST] <BtbN> There are no timestamps
[17:30:47 CEST] <BtbN> just an incrementing index
[17:31:01 CEST] <BtbN> And I can't see any format-string to get like the first X digits of it
[17:31:27 CEST] <BtbN> so segments 1500000 would end up in directory 150 or so
[17:34:36 CEST] <DHE> how about the option use_localtime_mkdir ? see the examples
[17:35:20 CEST] <BtbN> It's not a live stream
[17:35:28 CEST] <BtbN> So there is no useful localtime
[17:35:43 CEST] <DHE> ... right...
[17:40:13 CEST] <DHE> I don't have a good answer besides "rewrite it after it's done"
[17:40:38 CEST] <BtbN> it's actually over one million segments.
[17:40:50 CEST] <DHE> holy crap....
[17:41:13 CEST] <BtbN> I'm tempted to just hack it into the hlsenc.c
[17:41:32 CEST] <DHE> even if those are 1 second increments that's over 11 days
[17:41:49 CEST] <BtbN> it's two second segments, and 14 days
[17:43:38 CEST] <BtbN> Just gonna put some counter into there, and once it reaches 10k or something, it gets reset and another counter gets incremented, and that other counter is used for another directory name
[17:45:09 CEST] <c_14> BtbN: you could try using hls_flags +single_file ?
[17:45:25 CEST] <c_14> depends on if the clients support that of course
[17:46:56 CEST] <BtbN> I actually want those segments
[17:47:02 CEST] <BtbN> I don't really care about the playlist
[17:47:26 CEST] <BtbN> I have two gigantic single files right now
[17:49:21 CEST] <BtbN> it's for a script that operates on .ts or .flv segments, and stitches them together and streams them to YT
[17:57:33 CEST] <luc4> Hello! I built ffmpeg for armv8 cortexa53 and Im testing the performance of the transcoding. When running it I see using cpu capabilities: ARMv6 NEON. Is this correct?
[17:58:36 CEST] <JEEB> I will guess you have NEON and that's that primary thing
[18:01:37 CEST] <JodaZ> wouldn't you want to use an accelerator for transcoding on soc's ?
[18:07:27 CEST] <JEEB> JodaZ: depends on your needs and how crappy the API/SoC is
[18:07:36 CEST] <bencoh> errm, A53 should be armv8 though
[18:07:49 CEST] <bencoh> I suppose you're using it as a 32b target
[18:08:04 CEST] <JEEB> I've seen people have fallback openh264 or something because not everything encodes properly
[18:08:34 CEST] <bencoh> (armv8 is a 64b-capable architecture)
[18:09:02 CEST] <bencoh> (and neon set is different on armv8)
[18:09:24 CEST] <JEEB> yea, aarch64 is another thing there. a lot of people have their system on such SoCs armv7 due to vendor/whatever limitations
[18:09:41 CEST] <luc4> bencoh: yes, this is a cortexa53 64bit cpu, but the firmware is 32bit
[18:10:59 CEST] <luc4> bencoh: does this mean that when building for aarch32 the result is that only armv6 optimisations are applied?
[18:11:28 CEST] <JEEB> aarch64 optimizations of course aren't applied because it's not a 64bit binary
[18:11:39 CEST] <JEEB> NEON is as far as 32bit optimizations go
[18:12:01 CEST] <luc4> JEEB: neon is ok, but I see only armv6 optimisations
[18:12:22 CEST] <bencoh> neon is armv6-neon in your case
[18:12:23 CEST] <JEEB> I think that just means "I could use armv6 instructions"
[18:12:35 CEST] <bencoh> (which is not armv8 neon)
[18:12:37 CEST] <JEEB> there is no real other optimizations for ARM
[18:12:44 CEST] <luc4> JEEB: maybe there is no specific optimisations for armv7 and armv8?
[18:12:44 CEST] <JEEB> (in FFmpeg, other than aarch64)
[18:12:45 CEST] <kepstin> my impression is that armv8-compatible 64bit can run armv7 32bit stuff
[18:12:53 CEST] <bencoh> kepstin: it can, indeed
[18:13:08 CEST] <JEEB> luc4: well NEON is the only instruction set so that's what you really care about
[18:13:19 CEST] <JEEB> *only SIMD instruction set
[18:13:35 CEST] <luc4> so would you say this is a proper build that is using whatever ffmpeg can use?
[18:13:55 CEST] <JEEB> unless you disabled something I'd say yes
[18:14:06 CEST] <luc4> Im not trying to fix a specific issue, Im just experimenting.
[18:14:49 CEST] <luc4> the weird thing is that the same exact board seems to be running ffmpeg faster when the firmware is a firmware built for armv6 with much older compiler
[18:15:02 CEST] <luc4> :-)
[18:15:14 CEST] <luc4> this is confusing me a bit
[18:16:37 CEST] <kepstin> I suspect the differences between armv6 and armv7 are pretty minimal for this application, assuming neon support is used.
[18:18:01 CEST] <kepstin> i guess it has the thumb-2 encoding support too, which might help.
[20:50:37 CEST] <vektorweg1> can ffmpeg capture gl? couldnt find anything in the docs.
[20:51:30 CEST] <JEEB> there are some screen capture modules but not sure if it's what you want
[20:52:57 CEST] <DHE> hardware accelerated capturing would be nice (on linux). all I know of is x11grab. CUDA grab could be used to make nvenc run really fast, right?
[20:54:34 CEST] <JEEB> no idea. I only know there's a nice API for screen capture on recent windows versions because virtualdub's author blogged about it
[20:54:43 CEST] <JEEB> (FFmpeg doesn't use that API anyways)
[20:57:04 CEST] <vektorweg1> afaik new windows built-in screen capture is servilely slowing down games on relatively new hardware
[20:57:24 CEST] <BtbN> gdicapture is bad
[20:57:33 CEST] <BtbN> Use OBS if you want to capture a game
[20:57:54 CEST] <BtbN> DHE, CUDA grab? I don't think that's a thing.
[20:58:19 CEST] <BtbN> JEEB, they probably mean desktop duplication.
[20:58:26 CEST] <BtbN> OBS uses that for Monitor Capture
[20:58:43 CEST] <vektorweg1> BtbN: i was trying to avoid obs, because this software seems still pretty unstable to me and ffmpeg would be sufficient.
[20:59:04 CEST] <BtbN> what's unstable about it?
[20:59:05 CEST] <jkqxz> For single windows in X, you can use DRI2 to pick out the DRM object currently being used for scanout. On Intel at least you can then give that straight to VAAPI to encode with no CPU involvement.
[20:59:16 CEST] <BtbN> We just ran a week long 24/7 marathon with it, and it didn't crash or fail once
[20:59:31 CEST] <vektorweg1> BtbN: i had crashs and output inconsistencies in obs.
[20:59:35 CEST] <DHE> BtbN: google says no, but an opengl capture can pass it over to cuda. that's probably what I was thinking of
[20:59:49 CEST] <BtbN> But how would you do OpenGL capture either?
[21:00:04 CEST] <BtbN> Windows gives you D3D surfaces at best
[21:00:28 CEST] <DHE> there is an opengl function that reads the framebuffer
[21:00:49 CEST] <BtbN> Of another application?
[21:01:25 CEST] <vektorweg1> BtbN: if there are tools that can record gl, why shouldn't ffmpeg be able to do it?
[21:01:36 CEST] <DHE> Maybe? I've had programs read their own framebuffers but also pick up window overlays (eg: right-click the title bar of the application)
[21:02:00 CEST] <BtbN> Because nobody wrote the sources
[21:02:09 CEST] <BtbN> A large part of the OBS code base is the capture code
[21:02:12 CEST] <vektorweg1> afaik, its reading the framebuffer and registering glswaps for timing.
[21:02:15 CEST] <BtbN> It's well tested and mature, use it
[21:02:41 CEST] <BtbN> OBS on Windows just injects a DLL and makes the game render into a texture, and sends that texture over to itself
[21:02:50 CEST] <BtbN> On Linux you just can't do that
[21:02:51 CEST] <vektorweg1> obs can capture a lot of other things too.
[21:03:05 CEST] <BtbN> OBS can capture anything using OpenGL or D3D on Windows that way
[21:05:47 CEST] <vektorweg1> hmm
[21:22:01 CEST] <vektorweg1> hm. how do overlays work then? how do some programs render in the gl context of another program?
[21:29:01 CEST] <BtbN> They inject a DLL, hook the swap function, and render their own stuff before actually swapping.
[21:44:54 CEST] <cq1> That's clever.
[21:48:06 CEST] <BtbN> It's pretty standard procedure on Windows. Even though it's batshit insane
[21:48:26 CEST] <JEEB> ye, even sound drivers can do random bullshit like that
[21:48:56 CEST] <JEEB> "yes we will totally filter your audio" "but it's float not integer?" "surefine.jpg" <MASSIVE NOISE>
[21:53:11 CEST] <vektorweg1> i kinda happy now with pulseaudio about this, because you can pick the audio you want and not just capture everything.
[21:55:04 CEST] <strangepr0gram> hello i dont kno if this is the right place to ask but is is possible using ffmpeg or something else to remove these kinds of artifacts, for example present in this video https://www.shutterstock.com/video/clip-3566666-stock-footage-rapeseed-flow… --- If you look carefully enough you can see the blocks of pixels "jump arou
[21:55:04 CEST] <strangepr0gram> nd"
[21:56:45 CEST] <strangepr0gram> https://www.shutterstock.com/video/clip-26536403-stock-footage-panning-shot… Can more easily be seen in this vid
[22:01:12 CEST] <kiroma> Does FFmpeg use -O3 or -O2 by default?
[22:02:50 CEST] <JEEB> kiroma: O2 but I think it disables a lot of the vectorization stuff
[22:02:56 CEST] <JEEB> due to miscompilation cases
[22:03:21 CEST] <cq1> JEEB: Woah, miscompilation? What do you mean?
[22:03:57 CEST] <JEEB> basically the last time people re-enabled vectorization etc optimizations there were failures in some versions of GCC etc for some architectures
[22:04:00 CEST] <BtbN> ffmpeg uses -O3 by default on clang and gcc
[22:04:04 CEST] <JEEB> oh right, yes
[22:04:23 CEST] <JEEB> I just remember the point of "it probably doesn't matter too much because vectorization"
[22:04:32 CEST] <JEEB> (which is disabled)
[22:04:50 CEST] <cq1> Bizarre.
[22:05:01 CEST] <JEEB> https://ffmpeg.org/pipermail/ffmpeg-devel/2016-May/194009.html
[22:05:07 CEST] <JEEB> here's parts of the mailing list discussion
[22:06:10 CEST] <cq1> Very interesting, thanks for the link.
[22:06:26 CEST] <cq1> I guess I am surprised that vectorization is that buggy, but I guess the codebase is pretty large.
[22:07:09 CEST] <JEEB> it seems to be a thing that happens every now and then. someone tries to re-enable vectorization. it might even get to master. then people find some compiler versions or architectures where things fail. then it gets retracted again.
[22:09:15 CEST] <kiroma> By the way, I've tried to compile with --enable-lto and it works but there are some warnings about type mismatches, should I be worried about them?
[22:09:54 CEST] <JEEB> no idea
[22:10:20 CEST] <JEEB> cq1: also do note that a lot of "heavy" stuff like H.264 or VP9 decoding has hand-written assembly in it
[22:17:48 CEST] <cq1> Certainly, understood.
[22:17:58 CEST] <cq1> I'm more surprised at the lack of stability than the fact that it's viable to disable it.
[22:18:05 CEST] <JEEB> yea
[22:18:48 CEST] <cq1> Although, I guess I shouldn't be too surprised about the lack of stability. I once discovered that the mere two lines of code struct T { std::string foobar; }; T* x = new T({""}); caused GCC 4.7.0 to spit out "internal compiler error".
[22:20:21 CEST] <JEEB> of course I wonder how much you would get in some less SIMD-induced things
[22:20:35 CEST] <JEEB> like HEVC decoding, which has a limited amount of SIMD but nowhere on the level of, say, VP9
[22:30:53 CEST] <Blaxar> tbh cq1: std::string is not a pointer in itself, that's why :d
[22:36:21 CEST] <strangepr0gram> Another question. is there a way to easily test 2 files to see quality differences?
[22:37:58 CEST] <strangepr0gram> like play both files at the same time but alternate between compressed versions each x seconds or something
[22:39:29 CEST] <JEEB> for actual quality there's no better way than eyes. for metrics there's psnr and ssim etc
[22:39:42 CEST] <JEEB> but do note that those do not match necessarily what the eye perceives as quality
[22:39:52 CEST] <JEEB> esp. not PSNR (favours blurring like hell)
[22:40:18 CEST] <JEEB> also, as usual you need to have the "original sample"
[22:40:23 CEST] <cq1> Blaxar: It's valid C++, as std::string has a non-explicit constructor from const char*, and thus the conversion is implicit. Regardless, even if it were invalid C++ the compiler shouldn't spit out "internal compiler error please submit a full bug report"
[22:40:30 CEST] <JEEB> you cannot do such comparisons without the source
[22:40:43 CEST] <JEEB> because you do not know what you are supposed to hit closest to
[22:40:54 CEST] <strangepr0gram> JEEB: yeah i know eyes
[22:41:45 CEST] <strangepr0gram> i mean i convert original vid into like 5 versions and id use ffmpeg or something to play the first one for 3 seconds then the next one for 3 seconds [starting from second 3] etc u get the idea
[22:41:59 CEST] <strangepr0gram> Extremely new to this
[22:43:50 CEST] <JEEB> basically, if you're looking for automated calculations you will also have to try and optimize the encodes not to human psychovisuals but specifically for some metric (thus, it becomes irrelevant to make a PSNR test of encodes if your encoder tried to optimize for visual perception)
[22:44:56 CEST] <JEEB> for visual comparison I would recommend getting something with which you can quickly swap between samples
[22:45:22 CEST] <JEEB> (and of course whatever you have that converts the YCbCr into RGB should be known to be same in all cases)
[22:45:41 CEST] <strangepr0gram> yea.
[22:46:40 CEST] <JEEB> what I've recently done is load up things with ffms2 or lwlibavvideosource in vapoursynth, and then use something like vapoursynth editor to preview
[22:46:52 CEST] <JEEB> not playback, but lets you compare things
[22:47:13 CEST] <JEEB> (you should generally compare things in motion)
[22:47:17 CEST] <markmedes2> Hello! I have a question: Is it possible to force ffmpeg to ignore input errors and continue encoding? I tried -err_detect ignore_err but it's not working
[22:48:44 CEST] <kiroma> What input errors are you getting?
[22:49:39 CEST] <markmedes2> Invalid data found when processing input
[22:49:44 CEST] <markmedes2> That's on the audio stream
[22:52:50 CEST] <markmedes2> I'm using ffmpeg to re-encode isdb-t video files from digital television, and the files usually have lots of errors due to the nature of airway transmissions and 4G interference
[22:59:39 CEST] <markmedes2> kiroma: https://pastebin.com/DCYGzmqQ
[23:00:16 CEST] <markmedes2> now I see it's in the video stream, not the audio
[23:02:13 CEST] <markmedes2> error while decoding MB 98 49, bytestream -8
[23:15:20 CEST] <c_14> use one of the values for -ec I guess (guess_mvs, deblock, favor_inter)
[23:15:50 CEST] <markmedes2> is that hint for me?
[23:16:17 CEST] <c_14> yes
[23:16:27 CEST] <markmedes2> ah ok, lemme check that
[23:16:53 CEST] <c_14> It's in the manpages, search for conceal
[23:20:01 CEST] <markmedes2> gonna take something close to an hour to test this flag, cause the error is at 01:58:30.31 and ffmpeg scan the whole file even if I use -ss
[23:22:23 CEST] <kiroma> put -ss before -i to skip most of the file
[23:22:41 CEST] <markmedes2> k
[23:23:33 CEST] <markmedes2> brilliant
[23:36:28 CEST] <markmedes2> I'm I doing this right? Cause none of the -ec flags worked
[23:36:56 CEST] <markmedes2> time ffmpeg -ss 02:13:00 -i /home/user/mnt2/HBPVR/AMENINAROUBLIVROS.mts -to 02:16:00 -filter:v scale="640:trunc(ow/a/2)*2" -map 0:0 -map 0:1 -map 0:2 -vcodec libx264 -crf 20 -c:a copy -err_detect ignore_err -ec favor_inter /home/user/Desktop/output_favorinter.avi
[00:00:00 CEST] --- Mon Aug 7 2017
1
0