[Libav-user] How to reset AVFormatContext so it could be reused?

2015-11-19 Thread Ragnar Rüütel
Hi all, I'm trying to write a small tool which reads pcm16 audio from files, converts them to webm/ogg format in buffer and passes it to another program through socket (currently just dumps it on disk). I have it working with one file but when I start to encode second file the

Re: [Libav-user] avcodec_decode_video2 latency.

2015-11-19 Thread Jean-Yves Avenard
Never mind. I quickly discovered CODEC_FLAG_LOW_DELAY Anyone know if this can be used safely on any frames (a similar flag on Windows WMF will cause h264 b-frame to not be decoded properly) On 19 November 2015 at 22:22, Jean-Yves Avenard wrote: > Hi > > Started to use

Re: [Libav-user] avcodec_decode_video2 latency.

2015-11-19 Thread Jean-Yves Avenard
On 19 November 2015 at 22:27, Jean-Yves Avenard wrote: > Never mind. > > I quickly discovered CODEC_FLAG_LOW_DELAY I spoke too quickly.. I see no difference with this flag set :( ___ Libav-user mailing list Libav-user@ffmpeg.org

[Libav-user] avcodec_decode_video2 latency.

2015-11-19 Thread Jean-Yves Avenard
Hi Started to use FFmpeg/ffvp9 to decode VP9 streams in place of libvpx ; the gain in performance is very welcome. However, the major issue is the latency added by libavcodec ; when feeding avcodec_decode_video2 with samples, it won't return decoded frames until 16 frames have been buffered

Re: [Libav-user] avcodec_decode_video2 latency.

2015-11-19 Thread Hendrik Leppkes
On Thu, Nov 19, 2015 at 12:22 PM, Jean-Yves Avenard wrote: > Hi > > Started to use FFmpeg/ffvp9 to decode VP9 streams in place of libvpx ; > the gain in performance is very welcome. > > However, the major issue is the latency added by libavcodec ; when > feeding

[Libav-user] avformat_open_input subfile protocol for reading video from ZIP

2015-11-19 Thread Alexandr Dudnik
Hi all. I use ffmpeg libs with Unity3D game dev platform as native plugins for ios and android, for rendering video into textures. So simply I make animations by such strange way =) Everything works like a charm. But, for Android platform Unity packs my video sources into .jar archive which is