[FFmpeg-devel] How to use threads inside custom encoder

2023-02-23 Thread Alex
Hi! I write custom encoder codec and want to use threads to speed up encoding process. I know what ffmpeg have frame level threads and slices threads, but in my case best option is to use frame level threads with FF_CODEC_ENCODE_CB() function. But I have couple of questions: 1) Then I add AV_CO

Re: [FFmpeg-devel] [PATCH] avcodec/aacdec: don't force HE-AACv2 profile if no PS info is present

2022-07-22 Thread Alex Converse
On Fri, Jul 22, 2022 at 8:37 AM James Almer wrote: > On 7/22/2022 12:14 PM, Andreas Rheinhardt wrote: > > James Almer: > >> On 7/22/2022 11:56 AM, Andreas Rheinhardt wrote: > >>> James Almer: > On 7/22/2022 11:23 AM, Andreas Rheinhardt wrote: > > James Almer: > >> On 7/18/2022 10:57 A

Re: [FFmpeg-devel] filter queue question

2022-07-05 Thread Alex
Thanks I will chek it out! For now my filter use standart filter_frame() function callback. But how to request next frame from decoder in my filter?  5 July 2022, 16:19:49, by "Felix LeClair" : From: ffmpeg-devel on behalf of Alex <3.1...@ukr.net> Sent: July 5, 2022 9:

[FFmpeg-devel] filter queue question

2022-07-05 Thread Alex
Hi! I developing custom GPU filter that require lot of time to process frames and as result overal fps is low ( around 20 fps): ffmpeg -i 720p.mp4  -filter_complex "format=rgb24,myfilter" -f null - But then I added actual encoding part to ffmpeg command, result fps is down to 16 fps (-4 fps, ar

Re: [FFmpeg-devel] [PATCH 7/7] lavfi/metal: fix build with pre-10.11 deployment targets

2022-01-27 Thread Alex
Can you tell me more where this come from ? extern char ff_vf_yadif_videotoolbox_metallib_data[]; extern unsigned int ff_vf_yadif_videotoolbox_metallib_len; 22 December 2021, 02:15:23, by "rcombs" : - Ensure the yadif .metal compiles when targeting any Metal runtime version - Use some preproce

Re: [FFmpeg-devel] DNN data layout CHW or HWC and data normalization or denormalization?

2022-01-01 Thread Alex
Do anyone know fastest way to divide the chw array of pixel data for frame? 1 January 2022, 04:48:03, by "Guo, Yejun" : -Original Message- From: ffmpeg-devel On Behalf Of Alex Sent: 2022年1月1日 3:16 To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] DNN d

[FFmpeg-devel] DNN data layout CHW or HWC and data normalization or denormalization?

2021-12-31 Thread Alex
Hi! Can any one tell me is it layout of DNNData->data are chw or hwc or nchw or nhwc? And how to perform convertion from hwc to chw and reverse? How to normalize and denormalize data (-1..0..1 <=> 0...255) ? ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

[FFmpeg-devel] [PATCH v2] webp: implement FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM

2021-12-07 Thread Alex Xu (Hello71)
Roughly doubles webp performance for common applications (ffmpeg, ffprobe, mpv) due to speeding up avformat_find_stream_info. Lossy needs no patches since vp8.c already implements skip_frame. Lossless needs hook to understand skip_frame. Also the "image data not found" message is fixed, which was

Re: [FFmpeg-devel] python filter

2021-12-07 Thread Alex
Yes. I wat to do filtering inside python script. 7 December 2021, 05:16:50, by "Steven Liu" : Alex <3.1...@ukr.net> 于2021年12月7日周二 上午9:12写道: > > Is it possible to implement python backend as ffmpeg video filter, like > https://openvinotoolkit.github.io/dlstreamer_gst/ ?

[FFmpeg-devel] python filter

2021-12-06 Thread Alex
Is it possible to implement python backend as ffmpeg video filter, like  https://openvinotoolkit.github.io/dlstreamer_gst/ ? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link

[FFmpeg-devel] [PATCH] webp: implement FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM

2021-11-25 Thread Alex Xu (Hello71)
Roughly doubles webp performance for common applications (ffmpeg, ffprobe, mpv) due to speeding up avformat_find_stream_info. Lossy needs no patches since vp8.c already implements skip_frame. Lossless needs hook to understand skip_frame. Also the "image data not found" message is fixed, which was

[FFmpeg-devel] [PATCH] avformat/img2dec: probe JFIF/Exif header

2021-11-25 Thread Alex Xu (Hello71)
Due to reasons, mpv doesn't pass filename when probing. mpv also sets default probescore threshold to 26. Since the current jpeg_probe implementation returns 25 until EOI, it means that the whole image needs to be probed to succeed. Worse, the whole image is not passed at once; increasingly large b

[FFmpeg-devel] [PATCH] avcodec/mjpeg_parser: skip markers after EOI, not by size

2021-11-25 Thread Alex Xu (Hello71)
The check for m->size >= 0xF000 is intended to avoid skipping too much garbage data between JPEG frames in test_roman (thus missing next SOI), but it erroneously also skips valid markers between SOI and SOS. Instead of this, we should simply skip parsing markers other than SOI after EOI. That way,

Re: [FFmpeg-devel] Flush muxer in av_interleaved_write_frame

2021-10-22 Thread Alex ThreeD
rame(s, NULL) mixing in documentation. Any thoughts? On Fri, Oct 22, 2021 at 1:32 PM Alex ThreeD wrote: > Hi. > > Currently, there is no legitimate way to flush data buffered within the > muxer for applications that choose to use av_interleaved_write_frame. > Actually one could flush muxer

[FFmpeg-devel] Flush muxer in av_interleaved_write_frame

2021-10-22 Thread Alex ThreeD
Hi. Currently, there is no legitimate way to flush data buffered within the muxer for applications that choose to use av_interleaved_write_frame. Actually one could flush muxer buffers with av_write_frame, but docs forbid mixing av_interleaved_write_frame/av_write_frame within a single muxing cont

Re: [FFmpeg-devel] [PATCH 1/1] libavformat/rtmp: Implements RTMP reconnect feature

2021-10-21 Thread Alex Converse
> Nowadays when you are streaming to a live platform if the RTMP(s) > server needs to restarted for any reason (ex: deploy new version) > the RTMP connection is interrupted (probably after some draining time). > Facebook will publish a proposal to avoid that by sending a > GoAway message in the RTM

[FFmpeg-devel] [PATCH] avformat/demux: preserve AV_PKT_FLAG_CORRUPT in parse_packet

2021-10-21 Thread Alex Shumsky
If original packet is corrupted, then parsed packet is probably corrupted too. Let the application decide what to do. Signed-off-by: Alex Shumsky --- libavformat/demux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index

[FFmpeg-devel] [PATCH] avformat/mpegtsenc: Dont include adaptation field in teletext TS packets.

2021-10-21 Thread Alex Shumsky
uot;01" and "10" are permitted. Some set top boxes (Motorola, Arris, Zyxel) refuse non-conforming packets. Signed-off-by: Alex Shumsky --- libavformat/mpegtsenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mp

[FFmpeg-devel] [PATCH] avformat/av_get_frame_filename2: Add timecode image extract option

2021-06-21 Thread Alex Mi
y Marcus Johansson. See https://trac.ffmpeg.org/ticket/1452 for more details Signed-off-by: Alex Mi --- doc/muxers.texi| 3 +++ libavformat/avformat.h | 3 ++- libavformat/img2enc.c | 8 +--- libavformat/utils.c| 31 +++ 4 files changed, 37 insertions(

[FFmpeg-devel] [PATCH] Added support for expressions main_w, main_h, overlay_w, overlay_h in cuda_overlay filter

2020-11-02 Thread Alex
Signed-off-by: alex_qt <3.1...@ukr.net> --- libavfilter/vf_overlay_cuda.c | 146 -- 1 file changed, 120 insertions(+), 26 deletions(-) diff --git a/libavfilter/vf_overlay_cuda.c b/libavfilter/vf_overlay_cuda.c index 2f0f860e50..636ddbedb0 100644 --- a/libavfilter/

[FFmpeg-devel] [PATCH] Fixing scale2ref filter in case if reference frame is hw frame

2020-11-02 Thread Alex
This path fixing scale2ref filter if reference frame is HW frame.Command for add watermark (resize it based on the main/reference video size: [watermark][scaled]scale2ref=oh*mdar:ih*0.5[watermark2][scaled2] ) on video in case of HW pipeline:>./ffmpeg -init_hw_device cuda=cuda -hwaccel cuda -hwa

[FFmpeg-devel] scale2ref throw segmentation fault if reference frame is HW (cuda)

2020-10-30 Thread Alex
scale2ref video filter failed with message "segmentation fault". Command to reproduce:  I just want to scale watermark depending of size of the main video. ffmpeg -init_hw_device cuda=cuda hwaccel cuda -hwaccel_output_format cuda -filter_hw_device cuda -i 720p.mp4 -ss 10 -t 10 -filter_complex sc

[FFmpeg-devel] [PATCH] lavc/qsvenc: fix poor video quality with "-force_key_frames"

2020-10-13 Thread Alex Pokotilo
From 64abde49dffd7ef80f77210f2b943388e4682be6 Mon Sep 17 00:00:00 2001 From: Alex Pokotilo Date: Wed, 14 Oct 2020 02:19:25 + Subject: [PATCH] lavc/qsvenc: fix poor video quality with "-force_key_frames" if run ffmpeg with "-force_key_frames" flag without this fix, all

Re: [FFmpeg-devel] [PATCH] avfilter: add http video filter.

2020-09-11 Thread Alex
frame with right width, height, pix format, etc. I will fix it.   --- Original message --- From: "Nicolas George"  Date: 11 September 2020, 14:09:47 Alex (12020-09-11): > This filter has options: url and content-type header for requests and it's > not hardcoded. The format f

Re: [FFmpeg-devel] [PATCH] avfilter: add http video filter.

2020-09-11 Thread Alex
>The format for the parameters is hard-coded.Please, tell me more I don't >understand that do You mean? --- Original message --- From: "Nicolas George"  Date: 11 September 2020, 14:09:47 Alex (12020-09-11): > This filter has options: url and content-type header for

Re: [FFmpeg-devel] [PATCH] avfilter: add http video filter.

2020-09-11 Thread Alex
> Hard-coded URL parameters, >nothing to set the formats, not even the possibility of a filter that >changes the resolution. This filter has options: url and content-type header for requests and it's not hardcoded. Format and resolution can be changed after this filter later in filter graph, it'

[FFmpeg-devel] [PATCH] avfilter: add http video filter.

2020-09-10 Thread Alex
Signed-off-by: alex_qt <3.1...@ukr.net> --- Changelog| 1 + configure| 4 + doc/filters.texi | 28 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/version.h| 2 +- libavfilter/vf_http.c| 221 ++

Re: [FFmpeg-devel] Can anyone write simple "http" filter for 100$ ?

2020-09-08 Thread Alex
It just send raw frames/images to other process/server and wait for response.  Nothing complicated. --- Original message --- From: "Nicolas George"  Date: 8 September 2020, 14:36:45 Alex (12020-09-08): > Hi!Can any one write simple "http" filter for ffmpeg and I'

Re: [FFmpeg-devel] Can anyone write simple "http" filter for 100$ ?

2020-09-08 Thread Alex
ep 08, 2020 at 01:58:44PM +0300, Alex wrote: > Hi!Can any one write simple "http" filter for ffmpeg and I'm paying for this > job 100$. > Filter must accept server address, port, path, query as options. This filter, > just send post request with attached raw image/fram

[FFmpeg-devel] Can anyone write simple "http" filter for 100$ ?

2020-09-08 Thread Alex
Hi!Can any one write simple "http" filter for ffmpeg and I'm paying for this job 100$. Filter must accept server address, port, path, query as options. This filter, just send post request with attached raw image/frame data to the server and server will respond with new post-processed image/frame

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_cuda: Pass the main frame to the output if secondary frame is not available. now filter fails if secondary frame is not available due to e.g secondary

2020-08-24 Thread Alex Pokotilo
> One observation not related to vf_overlay_cude fix if you don't mind: > even with the fix you proposed if I don't send a single frame into > fs->in[1](i.e secondary stream) I cannot get any output. > This is because consume_from_fifos doesn't honor .before == > EXT_INFINITY and .state == STATE_BO

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_cuda: Pass the main frame to the output if secondary frame is not available. now filter fails if secondary frame is not available due to e.g secondary

2020-08-23 Thread Alex Pokotilo
> > What are the timestamps (and corresponding time bases) of the first > frame you send on each input? this frame is sent the first fs->in[0] pts = 0; timscale=1/1000 but it doesn't matter as pts is 0 this frame is sent the second fs->in[1] pts =140 timscale=1/25 When I call av_buffersink_g

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_overlay_cuda: Pass the main frame to the output if secondary frame is not available. now filter fails if secondary frame is not available due to e.g secondary

2020-08-21 Thread Alex Pokotilo
On Fri, Aug 21, 2020 at 7:54 PM Nicolas George wrote: > > Alex Pokotilo (12020-08-21): > > From b3739e33fa04a9292dc6584bd2f31460aa53d478 Mon Sep 17 00:00:00 2001 > > From: Alex Pokotilo > > Date: Fri, 21 Aug 2020 09:14:37 + > > Subject: [PATCH] libavfilter/

[FFmpeg-devel] [PATCH] libavfilter/vf_overlay_cuda: Pass the main frame to the output if secondary frame is not available. now filter fails if secondary frame is not available due to e.g secondary sou

2020-08-21 Thread Alex Pokotilo
From b3739e33fa04a9292dc6584bd2f31460aa53d478 Mon Sep 17 00:00:00 2001 From: Alex Pokotilo Date: Fri, 21 Aug 2020 09:14:37 + Subject: [PATCH] libavfilter/vf_overlay_cuda: Pass the main frame to the output if secondary frame is not available. now filter fails if secondary frame is not

Re: [FFmpeg-devel] [PATCH] fix memory leak in qsvenc.c

2020-08-21 Thread Alex Pokotilo
> Seems reasonable, any special reason to reorder av_freep(&sync)? I want to combine "bs" and it's children structures disposal in the same order as in ff_qsv_encode where we have #if QSV_VERSION_ATLEAST(1, 26) if (avctx->codec_id == AV_CODEC_ID_H264) { enc_buf = bs->ExtParam

Re: [FFmpeg-devel] [PATCH] fix memory leak in qsvenc.c

2020-08-16 Thread Alex Pokotilo
> Seems reasonable, any special reason to reorder av_freep(&sync)? I want to combine "bs" and it's children structures disposal in the same order as in ff_qsv_encode where we have #if QSV_VERSION_ATLEAST(1, 26) if (avctx->codec_id == AV_CODEC_ID_H264) { enc_buf = bs->ExtParam

[FFmpeg-devel] [PATCH] fix memory leak in qsvenc.c

2020-08-12 Thread Alex Pokotilo
From bbcf114eea30368b6b97a3ef1b0c68cd75fb5a5c Mon Sep 17 00:00:00 2001 From: Alex Pokotilo Date: Wed, 12 Aug 2020 23:56:46 +1000 Subject: [PATCH] fix memory leak in qsvenc.c "ff_qsv_enc_close" function called at the end of qsv encoding session and it frees q->async_fifo content

Re: [FFmpeg-devel] Custom Video Encoding and Decoding

2020-07-29 Thread Alex Cohn
hD Student in Computer Science* > Georgia Institute of Technology > North Ave NW, Atlanta, GA 30332, USA IMO, the x2 speed boost is a positive result, depending on the GOP size. Decoding a series of P frames is much faster than for the same amount of I frames. I don't believe some

Re: [FFmpeg-devel] working with file descriptors on Android

2020-07-27 Thread Alex Cohn
xt which simply calls read(), write(), and lseek() on an `fd` is minimal, but even this must be measured carefully to compare with the original `file:` protocol. Sincerely, Alex Cohn On Mon, Jul 27, 2020 at 4:45 PM Olivier Ayache wrote: > > You're welcome. > > Can I suggest

Re: [FFmpeg-devel] working with file descriptors on Android

2020-07-27 Thread Alex Cohn
, Alex Cohn On Mon, Jul 27, 2020 at 11:01 AM Olivier Ayache wrote: > > A good alternative to work with FFmpeg on Android is Xuggler, it presents > FFmpeg's API directly to Java/Kotlin. > > To deal with fd you can declare and implement your own IO handler by > implementi

Re: [FFmpeg-devel] working with file descriptors on Android

2020-07-26 Thread Alex Cohn
d Q a.k.a. Android 10, also API 29) made yet another small step in this direction and caused lots of problems for apps that rely upon file access by path. This was the incentive for me to work on the ways to teach avformat to work with the `content:` URIs correctly. BR, Alex Cohn _

Re: [FFmpeg-devel] working with file descriptors on Android

2020-07-26 Thread Alex Cohn
On Sat, Jul 25, 2020 at 9:37 PM Matthieu Bouron wrote: > > On Wed, Jul 22, 2020 at 2:38 PM Alex Cohn wrote: > > > Usually, we employ the `pipe:` protocol to deal with the numerical > > file descriptors, and this answers all our needs. On Android, there is > > a

[FFmpeg-devel] working with file descriptors on Android

2020-07-22 Thread Alex Cohn
ther way adds a `content://` protocol and does all heavy lifting (calling system Java API through JNI) itself. I would like to submit my contribution to ffmpeg-devel, but I am in doubt which of the two approaches may better fit the ffmpeg development paradigm, if any. Best Reg

Re: [FFmpeg-devel] [PATCH] avfilter: add vf_overlay_cuda

2020-04-01 Thread Alex
But on my linux machine is rtx2070 card, not 1080ti. Do You testing filter on 10xx gpu card? 1 April 2020, 18:12:22, by "Alex" < 3.1...@ukr.net >: Driver is ok (I just updated it and same result), and nvenc working without  without cuda filters. But with overlay_cuda or scal

Re: [FFmpeg-devel] [PATCH] avfilter: add vf_overlay_cuda

2020-04-01 Thread Alex
;Timo Rothenpieler"  Date: 1 April 2020, 18:04:05 On 01.04.2020 16:14, Alex wrote: > Driver 445.75 (Win 10) I just tested a similar commandline on the same driver: ./ffmpeg_g.exe -v verbose -init_hw_device cuda=cuda -filter_hw_device cuda -hwaccel_output_format cuda -hwaccel cuda -i

Re: [FFmpeg-devel] [PATCH] avfilter: add vf_overlay_cuda

2020-04-01 Thread Alex
Driver 445.75 (Win 10) --- Original message --- From: "Alex" <3.1...@ukr.net> Date: 1 April 2020, 17:01:28 My GPU is GTX 1080Ti. --- Original message --- From: "Timo Rothenpieler"  Date: 1 April 2020, 16:51:27 On 01.04.2020 15:43, Alex wrote: > Hi!Is it working? I

Re: [FFmpeg-devel] [PATCH] avfilter: add vf_overlay_cuda

2020-04-01 Thread Alex
My GPU is GTX 1080Ti. --- Original message --- From: "Timo Rothenpieler"  Date: 1 April 2020, 16:51:27 On 01.04.2020 15:43, Alex wrote: > Hi!Is it working? I try everything but constantly get error from overlay_cuda: > > > ffmpeg -y -init_hw_device cuda=cuda -filter_h

Re: [FFmpeg-devel] [PATCH] avfilter: add vf_overlay_cuda

2020-04-01 Thread Alex
read, 2 seeks [AVIOContext @ 02318248e700] Statistics: 67602 bytes read, 0 seeks Conversion failed! --- Original message --- From: "Dennis Mungai"  Date: 1 April 2020, 16:51:16 On Wed, 1 Apr 2020 at 16:43, Alex <3.1...@ukr.net> wrote: > Hi!Is it working? I try everything but

Re: [FFmpeg-devel] [PATCH] avfilter: add vf_overlay_cuda

2020-04-01 Thread Alex
Hi!Is it working? I try everything but constantly get error from overlay_cuda: ffmpeg -y -init_hw_device cuda=cuda -filter_hw_device cuda -hwaccel cuvid -c:v h264_cuvid -resize 1920x1080 -i 720p.mp4 -i watermark.png -filter_complex "[1:v]format=nv12,hwupload[img];[0:v][img]overlay_cuda=x=50:y=8

Re: [FFmpeg-devel] Overlay_cuda filter

2019-11-20 Thread Alex
Ok, thank for answering.Can I help to speed up implementation of GPU overlay? From my side I can pay from my pocket around 100USD for this features. Alex --- Исходное сообщение --- От кого: "Timo Rothenpieler"  Дата: 20 ноября 2019, 12:49:59 On 20/11/2019 10:30, Alex wrote: >

Re: [FFmpeg-devel] [PATCH] avcodec/mjpegbdec: Fix yuv444 pix_fmt detection

2019-11-20 Thread Alex Mogurenko
On Wed, Nov 20, 2019 at 3:57 PM Carl Eugen Hoyos wrote: > > Am 20.11.2019 um 14:41 schrieb Alex Mogurenko : > > > >> On Wed, Nov 20, 2019 at 2:57 PM Carl Eugen Hoyos > wrote: > >> > >> > >> > >>> Am 20.11.2019 um 12:22 schrieb Alex

Re: [FFmpeg-devel] [PATCH] avcodec/mjpegbdec: Fix yuv444 pix_fmt detection

2019-11-20 Thread Alex Mogurenko
On Wed, Nov 20, 2019 at 2:57 PM Carl Eugen Hoyos wrote: > > > > Am 20.11.2019 um 12:22 schrieb Alex Mogurenko : > > > > by default adobe_transform set to 0 and because of that mjpegb decoder > detects yuv444 pix fmt as bgrp > > Please provide a sample that gets

[FFmpeg-devel] [PATCH] avcodec/mjpegbdec: Fix yuv444 pix_fmt detection

2019-11-20 Thread Alex Mogurenko
by default adobe_transform set to 0 and because of that mjpegb decoder detects yuv444 pix fmt as bgrp --- libavcodec/mjpegbdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mjpegbdec.c b/libavcodec/mjpegbdec.c index 37d7bb8228..70ff4cf563 100644 --- a/libavcodec/mjpegbdec.c +++

[FFmpeg-devel] Overlay_cuda filter

2019-11-20 Thread Alex
Hi! We have overlay_opencl, overlay_qsv, ... etc, but don't have overlay_cuda what can be speed up video processing without copy frame between cpu and gpu. So, doy You guys planning to implement overlay_cuda filter? Alex ___ ffmpeg-devel mailing

[FFmpeg-devel] vp9_qsv encoder

2019-11-19 Thread Alex
Is it vp9_qsv encoder will work on i9-9900k Intel CPU or we need to wait for new CPU release from Intel? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ff

Re: [FFmpeg-devel] [PATCH] libavutil: AVEncodeInfo data structures

2019-08-15 Thread Alex Sukhanov
On Thu, Aug 15, 2019 at 11:07 AM Nicolas George wrote: > Juan De León (12019-08-15): > > Ping. Does anyone have any more feedback? > > If not, can anyone review this for pushing. > > Less than 24 hours feel a bit short to get impatient. > > Regards, > > -- > Nicolas George > ___

Re: [FFmpeg-devel] VP9 RTP encoder and WebRTC

2019-06-01 Thread Alex Protasenko
paque scalability structure information (which could store frame resolution among other things). The optional parts don't seem to affect my use case (I added the gstreamer take on it at some point but didn't see any changes for better or worth), Thanks Alex On 6/1/19 2:14 PM, Ja

[FFmpeg-devel] VP9 RTP encoder and WebRTC

2019-06-01 Thread Alex Protasenko
rameter to the ff_rtp_send_vp9 function which could be called as: ff_rtp_send_vp9(s1, pkt->data, size, pkt->flags & AV_PKT_FLAG_KEY); Thanks Alex ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/

Re: [FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2019-01-04 Thread Alex Mogurenko
ping On Mon, Dec 31, 2018 at 11:02 PM Alex Mogurenko wrote: > thanks, > just sent new patch > > On Mon, Dec 31, 2018 at 5:56 PM Derek Buitenhuis < > derek.buitenh...@gmail.com> wrote: > >> On 31/12/2018 09:12, Alex Mogurenko wrote: >> > I seems to be la

Re: [FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Alex Mogurenko
thanks, just sent new patch On Mon, Dec 31, 2018 at 5:56 PM Derek Buitenhuis wrote: > On 31/12/2018 09:12, Alex Mogurenko wrote: > > I seems to be lame as failed to find how to run fate to check prores_ks > :( > > General way to run all of FATE: > > $ configure --sample

[FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Alex Mogurenko
fdct done twice for each block. first time during quant calculation, second during slice encoding. so if we pre-save dct coefficients no need to do fdct second time. disadvantages: requires more memory advantages: improves performance ~4-5% --- libavcodec/proresenc_kostya.c | 74

Re: [FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-31 Thread Alex Mogurenko
I seems to be lame as failed to find how to run fate to check prores_ks :( On Mon, Dec 31, 2018 at 4:46 AM Michael Niedermayer wrote: > On Sun, Dec 30, 2018 at 10:57:23PM +0200, Alex Mogurenko wrote: > > fdct done twice for each block. first time during quant calculation, > second

[FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

2018-12-30 Thread Alex Mogurenko
fdct done twice for each block. first time during quant calculation, second during slice encoding. so if we pre-save dct coefficients no need to do fdct second time. disadvantages: requires more memory advantages: improves performance ~4-5% --- libavcodec/proresenc_kostya.c | 74

[FFmpeg-devel] [PATCH] avcodec/prores_ks: fixed luma quantize if q >= MAX_STORED_Q

2018-12-28 Thread Alex Mogurenko
problem occurs in slice quant estimation and slice encoding. if slice quant >= MAX_STORED_Q we dont use pre-calculated quant matrices but generate new: qmat = ctx->custom_q; qmat_chroma = ctx->custom_q; for (i = 0; i < 64; i++) { qmat[i] = ctx->quant_mat[i] * quant; qmat

Re: [FFmpeg-devel] [PATCH] fixed luma quantizing when q >= MAX_STORED_Q

2018-12-28 Thread Alex Mogurenko
, after all we pass qmat/qmat_chroma to function where we estimate encoded slice size or encode slice: estimate_slice_plane / encode_slice_plane I will make new patch with detailed description пт, 28 дек. 2018 г. в 18:43, Derek Buitenhuis : > On 27/12/2018 19:28, Alex Mogurenko wro

[FFmpeg-devel] [PATCH] fixed luma quantizing when q >= MAX_STORED_Q

2018-12-27 Thread Alex Mogurenko
--- libavcodec/proresenc_kostya.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 9a77d24fb6..e045a972f1 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -222,6 +222,7 @@

Re: [FFmpeg-devel] [PATCH] avformat: add H264 and HEVC support in IVF muxer

2018-10-24 Thread Alex Sukhanov
On Sat, Oct 13, 2018 at 5:17 PM Michael Niedermayer wrote: > On Fri, Oct 12, 2018 at 01:13:45AM +0100, Derek Buitenhuis wrote: > > On 11/10/2018 23:39, Alex Sukhanov wrote: > > > The only "spec" I'm aware of:https://wiki.multimedia.cx/index.php/IVF > > >

Re: [FFmpeg-devel] [PATCH v3 3/3] avcodec/aacdec: Translate PCE to avutil channel layouts

2018-10-24 Thread Alex Converse
On Wed, Oct 24, 2018 at 1:03 PM pkv.stream wrote: > > Patch updated ; passes all FATE tests. > > Comments from Alex Converse review incorporated (much thanks to him). > Hey, I'm a bit concerned with the outputs this generates for low channel count streams. al17_44.mp4 has t

Re: [FFmpeg-devel] [PATCH 3/3] avcodec/aacdec: Translate PCE to avutil channel layouts

2018-10-23 Thread Alex Converse
> From a12637c97c3140a1676f20b19c91647313379b39 Mon Sep 17 00:00:00 2001 > From: pkviet > Date: Sun, 9 Sep 2018 16:47:32 +0200 > Subject: [PATCH 3/3] avcodec/aacdec: Translate pce to avutil channel_layout > > This commit enables the native aac decoder to translate pce to > ffmpeg channel layouts w

Re: [FFmpeg-devel] [PATCH] avformat: add H264 and HEVC support in IVF muxer

2018-10-18 Thread Alex Sukhanov
On Mon, Oct 15, 2018 at 9:35 AM Vittorio Giovara wrote: > On Thu, Oct 11, 2018 at 5:28 PM Jan Ekström wrote: > > > On Thu, Oct 11, 2018 at 10:58 PM Alex Sukhanov > > wrote: > > > > > > Hi Mark, > > > > > > at Google we have some ol

Re: [FFmpeg-devel] [PATCH] avformat: add H264 and HEVC support in IVF muxer

2018-10-11 Thread Alex Sukhanov
On Thu, Oct 11, 2018 at 2:47 PM Derek Buitenhuis wrote: > On 11/10/2018 22:21, Jan Ekström wrote: > > I'd probably disable creation of such files unless you enable a less > > standards-compliant strictness mode. > > Is there even an IVF spec, though? If not, there's not really such a > thing as "

Re: [FFmpeg-devel] [PATCH] avformat: add H264 and HEVC support in IVF muxer

2018-10-11 Thread Alex Sukhanov
On Sat, Oct 6, 2018 at 10:37 AM Mark Thompson wrote: > On 05/10/18 21:45, Alex Sukhanov wrote: > > On Mon, Oct 1, 2018 at 11:01 AM wrote: > > > >> From: Alex Sukhanov > >> > >> --- > >> libavformat/ivfenc.c | 50 +

Re: [FFmpeg-devel] [PATCH] avformat: add H264 and HEVC support in IVF muxer

2018-10-05 Thread Alex Sukhanov
On Mon, Oct 1, 2018 at 11:01 AM wrote: > From: Alex Sukhanov > > --- > libavformat/ivfenc.c | 50 +--- > 1 file changed, 38 insertions(+), 12 deletions(-) > > diff --git a/libavformat/ivfenc.c b/libavformat/ivfenc.c > index 66441

Re: [FFmpeg-devel] [PATCH] avformat: add H264 and HEVC support in IVF muxer

2018-10-01 Thread Alex Sukhanov
On Sun, Sep 30, 2018 at 2:09 PM Jan Ekström wrote: > Sn Sun, Sep 30, 2018 at 8:56 PM wrote: > > > > ... > > +if (st->codecpar->codec_id == AV_CODEC_ID_H264) { > > +if (pkt->size >= 5 && AV_RB32(pkt->data) != 0x001 && > > + (AV_RB24(pkt->data) != 0x000

Re: [FFmpeg-devel] [PATCH 2/2] flvenc: Fix sequence header update timestamps

2018-05-29 Thread Alex Converse
On Sun, May 13, 2018 at 3:24 AM, Michael Niedermayer wrote: > On Thu, May 10, 2018 at 06:40:08PM -0700, Alex Converse wrote: >> From: Alex Converse >> >> --- >> libavformat/flvenc.c | 9 - >> 1 file changed, 4 insertions(+), 5 deletions(-) >>

Re: [FFmpeg-devel] [PATCH] avformat/flvenc: Avoid truncating timestamp before avio_write_marker()

2018-05-29 Thread Alex Converse
On Sun, May 13, 2018 at 3:41 AM, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavformat/flvenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c > index e8af48cb64..168ff9ffb8 100644 > --- a/libavfo

[FFmpeg-devel] [PATCH 2/2] flvenc: Fix sequence header update timestamps

2018-05-10 Thread Alex Converse
From: Alex Converse --- libavformat/flvenc.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 9b7cdfe7db..7aa2dbf9a6 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -485,7 +485,7 @@ static int

[FFmpeg-devel] [PATCH 1/2] flvenc: Factorize timestamp writing

2018-05-10 Thread Alex Converse
From: Alex Converse The code is trivial but the semantics in the spec are ambiguous. This should help keep parts of the muxer interpreting them consistently. --- libavformat/flvenc.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libavformat/flvenc.c b

Re: [FFmpeg-devel] [PATCH] flvenc: Fix sequence header update timestamps

2018-05-10 Thread Alex Converse
On Thu, May 10, 2018 at 4:08 PM, Jan Ekström wrote: > On Fri, May 11, 2018 at 1:39 AM, Alex Converse > wrote: >> On Thu, May 3, 2018 at 10:58 AM, Jan Ekström wrote: >>> >>> Hi, >>> >>> While the timestamp field is 8+24=32 bits, the DTS value is i

Re: [FFmpeg-devel] [PATCH] flvenc: Fix sequence header update timestamps

2018-05-10 Thread Alex Converse
t;>> >>>> On Thu, May 3, 2018 at 8:58 PM, Jan Ekström wrote: >>>>> On Thu, May 3, 2018 at 7:50 PM, Alex Converse >>>>> wrote: >> [...] >> >>> Will apply. >> >> I think Alex Converse has a git write account, so he can

Re: [FFmpeg-devel] [PATCH] flvenc: Fix sequence header update timestamps

2018-05-10 Thread Alex Converse
On Thu, May 3, 2018 at 10:58 AM, Jan Ekström wrote: > > On Thu, May 3, 2018 at 7:50 PM, Alex Converse wrote: > > From: Alex Converse > > > > --- > > libavformat/flvenc.c | 10 +- > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > >

[FFmpeg-devel] [PATCH] flvenc: Fix sequence header update timestamps

2018-05-03 Thread Alex Converse
From: Alex Converse --- libavformat/flvenc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index e8af48cb64..827d798a61 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -480,7 +480,7 @@ static int

Re: [FFmpeg-devel] [PATCH 2/5] h264_metadata: Add support for A/53 closed captions

2018-03-26 Thread Alex Giladi
Is there any documentation on the side data file format? On Sun, Mar 25, 2018 at 6:18 PM, James Almer wrote: > On 3/25/2018 2:41 PM, Mark Thompson wrote: > > Allows insertion (from side data), extraction (to side data), and removal > > of closed captions in SEI messages. > > --- > > libavcodec/

[FFmpeg-devel] h.264 and h.265 bitstream consultant needed

2018-03-06 Thread Alex Day
of work? If not, could you refer someone who might do this kind of work? Best Regards, Alex Day ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [aacdec] Parse and drop gain control data, so that SSR packets decode.

2018-02-20 Thread Alex Converse
On Tue, Feb 20, 2018 at 4:56 PM, Dale Curtis wrote: > On Tue, Feb 20, 2018 at 4:18 PM, Alex Converse > wrote: > >> >> I would make this uint8_t >> > > Done. > > >> I would drop this stack struck and replace the leaf get_bits() with >> skip bits

Re: [FFmpeg-devel] [aacdec] Parse and drop gain control data, so that SSR packets decode.

2018-02-20 Thread Alex Converse
On Tue, Feb 20, 2018 at 3:37 PM, Dale Curtis wrote: > From 97380752ef12337d9b9a01801a9a84df3b4b9c0a Mon Sep 17 00:00:00 2001 > From: Dale Curtis > Date: Thu, 15 Feb 2018 16:22:55 -0800 > Subject: [PATCH] [aacdec] Parse and drop gain control data, so that SSR > packets decode. > > This will resul

Re: [FFmpeg-devel] [PATCH 1/2] avformat/flvdec: Set need_context_update when setting the initial extradata

2017-09-03 Thread Alex Converse
On Wed, Aug 30, 2017 at 5:09 PM, Michael Niedermayer wrote: > On Tue, Aug 29, 2017 at 11:40:06AM -0700, Alex Converse wrote: >> Fixes ticket 6398. >> >> Debugged with the help of James Almer and Hendrik Leppkes. >> --- >> libavformat/flvdec.c | 1 + >> 1

[FFmpeg-devel] [PATCH 1/2] avformat/flvdec: Set need_context_update when setting the initial extradata

2017-08-29 Thread Alex Converse
Fixes ticket 6398. Debugged with the help of James Almer and Hendrik Leppkes. --- libavformat/flvdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 94c9e28334..2e70352c53 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -754,

[FFmpeg-devel] [PATCH 2/2] avformat: Handle AV_CODEC_CAP_CHANNEL_CONF when first frame fails to decode

2017-08-29 Thread Alex Converse
Fixes probing the stream from ticket 6398. Noticed by James Almer. --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 23865c88c4..68ba8aa85b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2997

Re: [FFmpeg-devel] [PATCH 2/2] fate: add test vector aac-al04sf_48

2017-08-22 Thread Alex Converse
On Tue, Aug 22, 2017 at 3:23 PM, Michael Niedermayer wrote: > On Mon, Aug 21, 2017 at 04:22:15PM -0700, Alex Converse wrote: >> --- >> tests/fate/aac.mak | 4 >> 1 file changed, 4 insertions(+) > > where can i find the files to test & upload to fate samples

[FFmpeg-devel] [PATCH 1/2] avcodec/aac: Add floating point 960/120 MDCT window

2017-08-21 Thread Alex Converse
From: Paul B Mahol Co-Authored-By: Alex Converse --- libavcodec/aac.h | 3 + libavcodec/aacdec_template.c | 124 +++--- libavcodec/aactab.c | 120 libavcodec/aactab.h | 6

[FFmpeg-devel] [PATCH 2/2] fate: add test vector aac-al04sf_48

2017-08-21 Thread Alex Converse
--- tests/fate/aac.mak | 4 1 file changed, 4 insertions(+) diff --git a/tests/fate/aac.mak b/tests/fate/aac.mak index 5ef8ddc2b9..e8cbcef54d 100644 --- a/tests/fate/aac.mak +++ b/tests/fate/aac.mak @@ -2,6 +2,10 @@ FATE_AAC += fate-aac-al04_44 fate-aac-al04_44: CMD = pcm -i $(TARGET_SAMPLE

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/aacdec_template: Fix running cleanup in decode_ics_info()

2017-08-21 Thread Alex Converse
On Sun, Aug 20, 2017 at 5:15 PM, Michael Niedermayer wrote: > > Fixes: out of array read > Fixes: 2873/clusterfuzz-testcase-minimized-5924145713905664 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer >

Re: [FFmpeg-devel] [PATCH] avfilter: add Audio Video Sync Test filter

2017-08-16 Thread Alex Giladi
Hi Paul, Can you please point me to some information how this filter works? Best, Alex. On Wed, Aug 16, 2017 at 12:08 PM, Paul B Mahol wrote: > Hi, > > patch attached. > > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.or

Re: [FFmpeg-devel] [PATCH] libavcodec: fix field_order labelling

2017-08-15 Thread Alex Converse
On Sat, Aug 12, 2017 at 9:47 AM, Dave Rice wrote: > > Hello all, > This issue originated in this thread > https://github.com/amiaopensource/vrecord/issues/170. On Field Order, in the > QuickTime specification at > https://developer.apple.com/library/content/documentation/QuickTime/QTFF/QTFFChap

Re: [FFmpeg-devel] [DISCUSSION] Motion Estimation API/Library

2017-08-04 Thread Alex Giladi
I like the idea -- it will be then possible to link to hardware acceleration. I don't think R-D optimization (including taking VLC / CABAC into account) belongs to the library -- this, as well as figuring out partitions, should be up to the actual encoder. On Thu, Aug 3, 2017 at 4:09 PM, Ronald S

Re: [FFmpeg-devel] Patch for CUDA Scale Filter

2017-04-18 Thread Alex Converse
On Mon, Apr 17, 2017 at 2:51 PM, Timo Rothenpieler wrote: >>> I'm generally in favor of adding CUDA based filtering, there's a lot of >>> nice stuff that could be done that way. >>> >>> But there is one big issue with this approach: >>> >>> Having to run a .bat file prior to building isn't really

[FFmpeg-devel] [PATCH] aacsbr: Turnoff in the event of over read.

2017-03-20 Thread Alex Converse
Aliased compressed AAC bytes are almost certainly not meaningful SBR data. In the wild this causes harsh artifacts switching HE-AAC streams that don't have SBR headers aligned with segment boundaries. Turning off SBR falls back to a default set of upsampling parameters that can function as a sort

Re: [FFmpeg-devel] [PATCH] aacdec: When ignoring a PCE restore the previous config

2017-02-21 Thread Alex Converse
On Thu, Feb 16, 2017 at 3:21 PM, Carl Eugen Hoyos wrote: > 2017-02-16 22:13 GMT+01:00 Alex Converse : >> This is related to, but doesn't solve ticker 6152. >> --- >> libavcodec/aacdec_template.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git

[FFmpeg-devel] [PATCH] aacdec: When ignoring a PCE restore the previous config

2017-02-16 Thread Alex Converse
This is related to, but doesn't solve ticker 6152. --- libavcodec/aacdec_template.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c index 4e0a9529e1..4367e74cf7 100644 --- a/libavcodec/aacdec_template.c +++ b/libavcodec/aacdec_templat

  1   2   >