[FFmpeg-devel] [PATCHv3 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

Jorge Ramirez jorge.ramirez-ortiz at linaro.org
Mon Aug 7 22:25:14 EEST 2017


On 08/03/2017 01:53 AM, Mark Thompson wrote:
>> +    }
>> +
>> +dequeue:
>> +
>> +    ret = avpriv_v4l_dequeue(cap_pool, NULL, pkt, timeout);
>> +    if (ret == AVERROR(EAGAIN))
>> +        return 0;
>> +    if (!ret)
>> +        *got_packet = 1;
>> +
>> +    return ret;
>> +}
> Does this actually work for a long stream?  You won't necessarily return a packet for every frame, but always need to enqueue a frame to be able to attempt to dequeue a packet.
>
> It might be better to use the send/receive API here as well.
>
how long does it have to be? I have only tried a couple of minutes

ok will check the API


More information about the ffmpeg-devel mailing list