[FFmpeg-devel] [PATCH v5] avformat/ifv: added support for ifv cctv files

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu May 30 21:33:35 EEST 2019



On 29.05.2019, at 19:51, Swaraj Hota <swarajhota353 at gmail.com> wrote:
>> 
>> Entirely depends on the purpose.
>> If the aim is to have a working demuxer, I think it is acceptable from what I looked at.
>> I guess the only concern might be that not supporting piped input would be a bit of a regression from the first patch.
> 
> Is there another simpler way to support piped input? Can you explain a
> bit?

The mov demuxer code isn't really all that complicated.
The basic idea is: if the input is not seekable, decided whether to read audio or video based on which one has the lowest file position (a bit like your original patch, but using it only for the "audio or video next" decision.
If input is seekable, pick the stream with the lowest next timestamp as your patch does now.
It should be not that complicated in principle, but the details can make it a pain sometimes.


More information about the ffmpeg-devel mailing list