Re: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_scale_cuda: Simplify output plane addressing

2019-05-14 Thread Yogender Gupta
Yes, this looks better and should have been this way. Thanks, Yogender -Original Message- From: Philip Langdale Sent: Tuesday, May 14, 2019 8:42 AM To: ffmpeg-devel@ffmpeg.org Cc: Yogender Gupta ; Philip Langdale Subject: [PATCH 3/3] avfilter/vf_scale_cuda: Simplify output plane

Re: [FFmpeg-devel] [PATCH] cuvid : add support to force intra frames as in input source

2018-01-17 Thread Yogender Gupta
Improved the patch by dynamic allocation. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure

[FFmpeg-devel] [PATCH] cuvid : add support to force intra frames as in input source

2018-01-16 Thread Yogender Gupta
Please find attached a patch for setting key frames. "-force_key_frames" can then use this option. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain

[FFmpeg-devel] Correction to Webpage

2017-12-14 Thread Yogender Gupta
I would like to correct a couple of lines on the following ffmpeg web page. Can anyone please guide me on how to do it (push patch or raise ticket or edit page) It is definitely possible to do a complete end to end 10-bit transcode on the GPU pipeline without passing to system memory. I had

[FFmpeg-devel] NVENC - HEVC + WP

2017-10-24 Thread Yogender Gupta
One of the users had recently complained about encoding problems with HEVC encoding with WP (Weighted Prediction). This is a driver issue that has been identified, and shows up when using HEVC + WP + (PictureTimingSEI messages and or buffering period SEI messages). Recently the PictureTiming

Re: [FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-09-10 Thread Yogender Gupta
05:59, Yogender Gupta <ygu...@nvidia.com> wrote: > I believe there were concerns on pushing the CUDA thumbnail filter and > that is possible to get similar performance using the normal thumbnail > filter. The CUDA thumbnail filter is useful for generating thumbnails > on th

Re: [FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-09-10 Thread Yogender Gupta
I believe there were concerns on pushing the CUDA thumbnail filter and that is possible to get similar performance using the normal thumbnail filter. The CUDA thumbnail filter is useful for generating thumbnails on the hwaccel cuvid pipeline, as it can directly operate on the video memory and

Re: [FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-09-04 Thread Yogender Gupta
Taken care of all comments except the documentation. Will send out a separate patch for both the CUDA filters documentation. Regards, Yogender --- This email message is for the sole use of the intended recipient(s)

Re: [FFmpeg-devel] nvenc: missing slice offsets in NV_ENC_LOCK_BITSTREAM::sliceOffsets

2017-09-04 Thread Yogender Gupta
Cc: Ganapathy Raman Kasi; Yogender Gupta; Konda Raju; Srinath K R; Ben Chang Subject: [FFmpeg-devel] nvenc: missing slice offsets in NV_ENC_LOCK_BITSTREAM::sliceOffsets * PGP - S/MIME Signed by an unverified key: 09/02/2017 at 11:57:35 AM Hello, I am currently dealing with an issue regarding

[FFmpeg-devel] [Patch] CUDA Thumbnail Filter

2017-08-29 Thread Yogender Gupta
Attached is a CUDA version of the thumbnail filter, this helps accelerate thumbnails generations significantly, when using the GPU pipeline. Regards, Yogender --- This email message is for the sole use of the

Re: [FFmpeg-devel] [Patch] scale_npp : Fix pass through mode

2017-08-14 Thread Yogender Gupta
The better simplification may be : ctx->outputs[0]->hw_frames_ctx = s->stages[last_stage > 0] ? s->stages[last_stage].frames_ctx : ctx->inputs[0]->hw_frames_ctx; -Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Timo Rothenpieler Sent: Monday,

Re: [FFmpeg-devel] [Patch] scale_npp : Fix pass through mode

2017-08-14 Thread Yogender Gupta
>> Applied with a slightly changed logic to achieve the same with fewer lines. I just tested, the modified logic doesn't work as none of the stages are initialized. Thanks, Yogender -Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Timo

[FFmpeg-devel] [Patch] scale_npp : Fix pass through mode

2017-08-14 Thread Yogender Gupta
Pass through mode (input resolution = output resolution) mode is broken in scale_npp. This patch fixes the same. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may

[FFmpeg-devel] [Patch] Auto Insert of hwupload_cuda filter

2017-07-25 Thread Yogender Gupta
Currently combining CPU and CUDA filters requires insertion of hwupload and download filters. I am trying to simply this by auto insertion of these filters. This patch is for hwupload_cuda, but I want to do this for hwdownload as well. The attached patch automatically inserts hwupload_cuda

Re: [FFmpeg-devel] [Patch] nvenc : Add P016 support

2017-07-25 Thread Yogender Gupta
>> I can push, but to answer Timo's question: I did not add P016 to nvenc >> because it is technically not correct to pass 12bit content through a 10bit >> surface - that will lead to truncation, rather than dithering. If you are >> telling us that nvenc supports 12bit >> input and will

Re: [FFmpeg-devel] [Patch] nvenc : Add P016 support

2017-07-24 Thread Yogender Gupta
P016 support Am 18.07.2017 um 13:24 schrieb Yogender Gupta: > Add P016 support to NVENC. > > Thanks, > Yogender All three patches look fine to me in general. I vaguely remember there being some reason for P016 being missing so far, but it might be long fixed. I'm not at home and can't

[FFmpeg-devel] [Patch] nvenc : Add P016 support

2017-07-18 Thread Yogender Gupta
Add P016 support to NVENC. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or

[FFmpeg-devel] [PATCH 2/2] hwcontext_cuda : Support YUV444P16 format

2017-07-18 Thread Yogender Gupta
Added yuv444p16 to hwcontext_cuda. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or

[FFmpeg-devel] [PATCH] hwupload_cuda : Add 10/16 bit format support

2017-07-18 Thread Yogender Gupta
Added 10/16bit formats to hwupload_cuda. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure

Re: [FFmpeg-devel] [PATCH] vdpau: do not use buggy HEVC support by default

2017-07-14 Thread Yogender Gupta
Please help to understand what is broken with a command line, so that we can address this issue. Thanks, Yogender -Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of wm4 Sent: Monday, July 03, 2017 4:29 PM To: ffmpeg-devel@ffmpeg.org Subject: Re:

Re: [FFmpeg-devel] [PATCH 1/3] configure: add cuda-sdk for things requiring full CUDA sdk

2017-05-11 Thread Yogender Gupta
>>+cuda_sdk >> libnpp IMO, Libnpp is part of the CUDA SDK, and we can remove all the libnpp related changes and just replace it by cuda-sdk in the configure/make files. Thanks, Yogender --- This email

[FFmpeg-devel] [PATCH] CUDA Scale Filter

2017-05-10 Thread Yogender Gupta
Please find attached a patch for CUDA Scale Filter. I have modified the makefiles as suggested during the previous reviews to have all PTX generated during compile time. Common.mak has changes for PTX generation Ptx2c.sh has been added in ffbuild folder. This is needed to covert PTX to C Users

Re: [FFmpeg-devel] [PATCH] nvenc:Add Fractional CQ Support

2017-05-10 Thread Yogender Gupta
>> I'm wondering what the difference between this and constqp mode is, does >> this set a constant quality in otherwise vbr mode? Yes, something similar. Thanks, Yogender --- This email message is for the sole use

[FFmpeg-devel] [PATCH] nvenc:Add Weighted Prediction Support

2017-05-10 Thread Yogender Gupta
Weighted Prediction Support for NVENC (SDK 8.0). Please find patch attached for the same. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain confidential

[FFmpeg-devel] [PATCH] nvenc:Add Fractional CQ Support

2017-05-10 Thread Yogender Gupta
CQ rate control in NVENC now supports fractional values (SDK 8.0). Please find patch attached for the same. Thanks, Yogender --- This email message is for the sole use of the intended recipient(s) and may contain

Re: [FFmpeg-devel] [PATCH] nvenc : Support Video Codec SDK 8.0

2017-05-09 Thread Yogender Gupta
devel] [PATCH] nvenc : Support Video Codec SDK 8.0 Am 09.05.2017 um 08:18 schrieb Yogender Gupta: > Video Codec SDK 8.0 has been released today. Please find the patch that > updates the interface. Also, attached the latest SDK 8.0 interface file for > nvenc. ffmpeg master is now updated

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

2017-04-17 Thread Yogender Gupta
>> Having to run a .bat file prior to building isn't really nice, and not >> something I and some other people on IRC would like to see in ffmpeg. >> Instead, it would be nice if configure/make would learn how to handle .cu >> files, converting them straight to an object-file. >> My idea for

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

2017-04-17 Thread Yogender Gupta
>> Please find attached a CUDA based scale filter. This filter will be a >> starting point to add other CUDA based filters. The filter supports 420-8, >> 420-10, 444-8, 444-10 formats and will help to do complete 10-bit HW >> accelerated transcoding when using >> CUVID. >> Currently the filter

Re: [FFmpeg-devel] [PATCH] nvenc: Make AUD optional for h264_nvenc and hevc_nvenc

2017-01-05 Thread Yogender Gupta
>> There is BUG in Nvidia NVENC when you use AUD for H264 with B-frames, it >> will return corrupted stream, because NVIDIA is inserting AUD type 0 >> (I-frame) before B-frames instead of AUD type 7 (any-frame). Thanks for bringing this to notice. We have added a fix in the Nvidia driver and

Re: [FFmpeg-devel] [Patch] hwaccel transocode broken

2016-11-13 Thread Yogender Gupta
> I created a simpler patch that avoids modifying the external signature > of the function, and it still fixes it for me. Can you test and > confirm? Then we can apply this. > Just tested this patch, and I can confirm that at least a cuvid hwaccel > transcode works again. I also verified the

Re: [FFmpeg-devel] [Patch] hwaccel transocode broken

2016-11-11 Thread Yogender Gupta
>>These are merges. Unless you volunteer to do the merges yourself (and >>properly please) you'll have to live with this. So were there merges that got left and broke the functionality. When do we get these merges in ? Please let me know if I can help get this up and fixed. There have been

Re: [FFmpeg-devel] [Patch] hwaccel transocode broken

2016-11-11 Thread Yogender Gupta
>> ffmpeg.c is in the middle of some changes being merged, and once that is >> done ffmpeg_cuvid.c will need to be adapted to a new system. Until then, it >> would make everything easier if the code actively >> being modified by these >> merges is not modified by hackish fixes. When do we

[FFmpeg-devel] [Patch] hwaccel transocode broken

2016-11-10 Thread Yogender Gupta
>>I was trying libnpp on Big Bunny video by below command: >>./ffmpeg -loglevel debug -y -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i >>/root/root/bunny.mp4 -vf scale_npp=1920:1072 -vcodec h264_nvenc >>/tmp/tmp0.264 -vf scale_npp=1280:720 -vcodec h264_nvenc /tmp/tmp1.264 >>This command is

[FFmpeg-devel] [PATCH] scale_npp: fix passthrough mode

2016-10-24 Thread Yogender Gupta
The pass through mode is broken, since error is returned when none of the stages is needed. In such a case only 0 should be returned. Try command line with i/p resolution = o/p resolution to observe the issue. Sample Command Line : ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i