Re: [Libav-user] vaapi decoding, av_hwframe_transfer_data

2016-05-20 Thread Mark Thompson
On 20/05/16 11:27, Nikita Orlov wrote: > Hello! > > I am decoding using last ffmpeg with vaapi support (libva for intel). > > For decoding I am handling my pool of VASurfaces, and set pointers for my own > get_frame, get_buffer and release_buffer for AVCodecContext. > So, when I am try to transf

Re: [Libav-user] VA-API decoding on Android [ffmpeg-2.1]

2016-11-20 Thread Mark Thompson
On Fri, Nov 18, 2016 at 9:50 PM, Michael Goffioul mailto:michael.goffi...@gmail.com>> wrote: > > Hi, > > I'm investigating the possibility to use VA-API for H264 decoding on > Android, using Android-x86. At the moment, I'm using Android-4.4-r5 (from > android-x86), which is based on ffm

Re: [Libav-user] VAAPI constraints - Failed to query surface attributes: 4 (invalid VAConfigID)

2017-02-07 Thread Mark Thompson
On 07/02/17 18:54, Anton Sviridenko wrote: > { > AVVAAPIHWConfig *hwconfig = NULL; > AVHWFramesConstraints *constraints = NULL; > > hwconfig = (AVVAAPIHWConfig > *)av_hwdevice_hwconfig_alloc(m_hw_device_ctx); > constraints = > av_hwdevice_get_hwframe_constraints

Re: [Libav-user] vaapi decoding support status in master branch of ffmpeg

2017-02-12 Thread Mark Thompson
On 12/02/17 15:01, Anton Sviridenko wrote: > I've noticed recently that changes related to removal of requirement > for "struct vaapi_context" were pushed to master. But they did not > appear in latest release 3.2.4. > > Is current way of initializing VAAPI decoding without vaapi_context > produc

Re: [Libav-user] Are there some VDPAU decode and present tutorials using FFMPEG?

2017-07-31 Thread Mark Thompson
On 31/07/17 12:11, jing zhang wrote: > I'm trying to use FFMPEG with VDPAU to decode HEVC streams. > There is no hevc_vdpau decoder in the 3.3.2 version of FFMPEG. > How can I use the VDPAU hwaccel to do the decoding? There is a hardware decode example which works for VDPAU:

Re: [Libav-user] How to use rkmpp decoder?

2018-04-12 Thread Mark Thompson
On 12/04/18 10:24, Anton Prikazchikov wrote: >>Did you already implement software decoding with libavcodec? >>Once this works, you should only have to switch from the "h264" >>decoder to the "h264_rkmpp" decoder to make it work. > > I rebuilded my ffmpeg and now output: > > Codec is initializated

Re: [Libav-user] How to use rkmpp decoder?

2018-04-13 Thread Mark Thompson
On 13/04/18 07:08, Anton Prikazchikov wrote: >> So what is the issue? It seems to be working? > > Technically it works, but not completely... > > I try do decode 50 packets(i think that each contains 1 frame) and I can't > receive no one decoded frame. > > I looked the code of rkmppdec.c. The d

Re: [Libav-user] Regarding jpeg_qsv support in ffmpeg

2018-04-13 Thread Mark Thompson
On 13/04/18 07:39, Vivekanand wrote: > Dear Team, > > Intel Media SDK provides support for hardware encoding and decoding of > JPEG/H264 data. > I want to use this functionality using ffmpeg. I checked ffmpeg and found > h264_qsv for H264 but didn't find anything for JPEG. > > Is there anything l

Re: [Libav-user] How to use rkmpp decoder?

2018-04-16 Thread Mark Thompson
On 16/04/18 07:58, Anton Prikazchikov wrote: > >> Can you give more detail about your setup and the input stream? > > I have firefly RK3399. > > OS: > Linux localhost 4.4.120 #2 SMP Mon Apr 9 10:08:10 +04 2018 aarch64 aarch64 > aarch64 GNU/Linux > No LSB modules are available. > Distributor ID:

Re: [Libav-user] av_hwframe_transfer_data does not succeed from NV12 to YUV420P - How to get YUV420P from cuvid?

2018-06-05 Thread Mark Thompson
On 05/06/18 11:15, Sergio Basurco wrote: > I'm decoding h264 with ffmpeg. I want to use the hwaccel decoders. I'm using > the cuvid decoder via API. In the fftools code there's a function > "hwaccel_retrieve_data" that is supposed to convert the decoded frame (NV12) > into any other format, I'm

Re: [Libav-user] av_hwframe_transfer_data does not succeed from NV12 to YUV420P - How to get YUV420P from cuvid?

2018-06-06 Thread Mark Thompson
On 06/06/18 08:46, Sergio Basurco wrote:> On 05/06/2018 22:23, Mark Thompson wrote: >> On 05/06/18 11:15, Sergio Basurco wrote: >>> I'm decoding h264 with ffmpeg. I want to use the hwaccel decoders. I'm >>> using the cuvid decoder via API. I

Re: [Libav-user] hardware encoding on Raspberry Pi using Openmax has issue of time stamp

2018-11-19 Thread Mark Thompson
On 19/11/18 18:14, Jinbo Li wrote: > Hello, > > Hello, I have an issue on implementing hardware encoding on raspberry pi by > using openmax. The problem is that I always get wrong time stamp in my > AVpacket even right after it gets initialized, the time stamp was always > assigned to be 634 (s

Re: [Libav-user] Is it possible to preallocate memory for AVFrame data when calling avcodec_receive_frame?

2018-12-17 Thread Mark Thompson
On 17/12/2018 18:45, ggeng wrote: > Hi, > > I am using libav to decode a video (following the demo code available > online), and I am trying to pre-allocate memory that the decoded frame data > will be written to. Ultimately, I would like to have pFrame->data[0] to be > in a region of memory I pre

Re: [Libav-user] customize d3d11va decoder

2018-12-17 Thread Mark Thompson
On 14/12/2018 21:31, Benjamin de la Fuente Ranea wrote: > Hello, > > I'm using ffmpeg to decode mp4 videos in hwaccel mode with d3d11va and I'm > trying to draw the decoded surface (NV12 format) to the screen using DX11, > without copying the surface to CPU and upload again to another texture. F

Re: [Libav-user] maxhap: Set SEI unregistered user message using H264MetadataContext

2018-12-20 Thread Mark Thompson
On 19/12/2018 16:21, Max Ashton wrote: > Hi all and thanks for reading! > > I'm trying to set the SEI unregistered user message on a per video frame > basis. I notice that libav has a H264MetadataContext structure which contains > a const char *sei_user_data field. This seems to be exactly what

Re: [Libav-user] AMD AMF decode?

2020-02-01 Thread Mark Thompson
On 28/01/2020 05:02, Philippe Noël wrote: > Hello, > > I read from the FFmpeg wiki that AMD AMF is only supported for encode, not > decode. Any idea if there are plans for this to be supported at all > eventually? Unlikely. All of the relevant hardware decode features and interop are fully su

Re: [Libav-user] Format requires hwaccel initialisation

2020-02-09 Thread Mark Thompson
On 08/02/2020 22:51, Philippe Noël wrote: > Hello, > > I'm trying to do the vaapi/d3d11va/videotoolbox hardware accel for > AV_CODEC_ID_H264. I'm following the libav example, but when I init it gives > me "requires waccel initialisation" although I am creating the hw device w/ > av_hwdevice_ctx

Re: [Libav-user] HW Decode d3d11va Failing for VP9/AV1 Videos

2024-03-13 Thread Mark Thompson
On 05/03/2024 15:45, Sebastiaan Geus via Libav-user wrote: Hi, I am using d3d11va hardware acceleration for decoding video’s in Unity I use the d3d11 pix_fmt to directly copy the output texture to unity. This now works fine for h264 /h265 video’s but both vp9 and av1 video’s produce : Static