[FFmpeg-devel] [PATCH] avformat/utils: fix timebase error in avformat_seek_file()

2016-09-14 Thread Xinzheng Zhang
When there is only one stream and stream_index has not specified, The ts has been transferd by the timebase of stream0 without modifying the stream_index In this condation it cause seek failure. --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c

[FFmpeg-devel] [PATCH 2/2] avformat/flvdec: parse keyframe before a\v stream was created add_keyframes_index() when stream created or keyframe parsed

2016-07-26 Thread Xinzheng Zhang
--- libavformat/flvdec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 633cad0..0afeba5 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -128,6 +128,7 @@ static void add_keyframes_index(AVFormatContext

[FFmpeg-devel] [PATCH 1/2] avformat/flvdec: splitting add_keyframes_index() out from parse_keyframes_index()

2016-07-26 Thread Xinzheng Zhang
--- libavformat/flvdec.c | 76 +--- 1 file changed, 60 insertions(+), 16 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 2bf1e05..633cad0 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -61,6 +61,11 @@

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-26 Thread XinZheng Zhang
On Wed, Jul 27, 2016 at 10:17 AM, Michael Niedermayer <mich...@niedermayer.cc> wrote: > On Wed, Jul 27, 2016 at 09:56:02AM +0800, XinZheng Zhang wrote: >> On Wed, Jul 27, 2016 at 7:25 AM, Michael Niedermayer >> <mich...@niedermayer.cc> wrote: >> > On Wed, Jul 27

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-26 Thread XinZheng Zhang
On Wed, Jul 27, 2016 at 7:25 AM, Michael Niedermayer <mich...@niedermayer.cc> wrote: > On Wed, Jul 27, 2016 at 01:31:29AM +0800, XinZheng Zhang wrote: >> On Wed, Jul 27, 2016 at 1:12 AM, Michael Niedermayer >> <mich...@niedermayer.cc> wrote: >> > On Tue, Jul 26

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-26 Thread XinZheng Zhang
On Wed, Jul 27, 2016 at 1:12 AM, Michael Niedermayer <mich...@niedermayer.cc> wrote: > On Tue, Jul 26, 2016 at 08:17:46PM +0800, Xinzheng Zhang wrote: >> --- >> libavformat/flvdec.c | 84 >> ++-- >> 1 file change

[FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-26 Thread Xinzheng Zhang
--- libavformat/flvdec.c | 84 ++-- 1 file changed, 69 insertions(+), 15 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 2bf1e05..82b9f83 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -61,6 +61,12 @@

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-25 Thread XinZheng Zhang
On Mon, Jul 25, 2016 at 4:41 PM, Michael Niedermayer <mich...@niedermayer.cc> wrote: > On Thu, Jul 21, 2016 at 10:36:20AM +0800, Xinzheng Zhang wrote: >> --- >> libavformat/flvdec.c | 51 >> --- >> 1 file chang

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-24 Thread XinZheng Zhang
Ping. On Thu, Jul 21, 2016 at 11:59 AM, XinZheng Zhang <zhangxzh...@gmail.com> wrote: > On Thu, Jul 21, 2016 at 5:03 AM, Moritz Barsnick <barsn...@gmx.net> wrote: >> On Thu, Jul 21, 2016 at 00:06:44 +0800, zhangxinzheng wrote: >> >>> Subject: [FFmpeg-de

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-20 Thread XinZheng Zhang
On Thu, Jul 21, 2016 at 5:03 AM, Moritz Barsnick wrote: > On Thu, Jul 21, 2016 at 00:06:44 +0800, zhangxinzheng wrote: > >> Subject: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before >> video or audio stream was created >

[FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-20 Thread Xinzheng Zhang
--- libavformat/flvdec.c | 51 --- 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 2bf1e05..b4fb4e2 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -30,6 +30,7 @@

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-20 Thread XinZheng Zhang
I apologize about my English and let me re-arrange my words. The current realization would result in the loss of all key frame indices from all the current video frames, which would lead to the failure of seeking in FLVs. My current patch will cache all key frame indices without creating any video

Re: [FFmpeg-devel] [PATCH] avformat/fivdec: cached keyframes before video or audio stream was created

2016-07-20 Thread XinZheng Zhang
There has an error when seeking in a flv file, which key frames was sorted before video frame. This ensures that all the key frames was cached, and add to corresponding stream when it was created. On Wed, Jul 20, 2016 at 9:30 PM, zhangxinzheng <zhangxzh...@gmail.com> wrote: > From: Xinzh

Re: [FFmpeg-devel] [PATCH 1/1] avformat/tcp: support timeout for getaddrinfo For fixing stucking when resolving addrinfo

2016-06-08 Thread XinZheng Zhang
On Tue, Jun 7, 2016 at 5:42 AM, Michael Niedermayer <mich...@niedermayer.cc> wrote: > On Wed, Jun 01, 2016 at 12:03:32PM +0800, XinZheng Zhang wrote: >> On Tue, May 31, 2016 at 9:33 PM, Hendrik Leppkes <h.lepp...@gmail.com> wrote: >> > >> > On Tue, May 31, 20

Re: [FFmpeg-devel] [PATCH 1/1] avformat/tcp: support timeout for getaddrinfo For fixing stucking when resolving addrinfo

2016-06-03 Thread XinZheng Zhang
On Wed, Jun 1, 2016 at 12:03 PM, XinZheng Zhang <zhangxzh...@gmail.com> wrote: > On Tue, May 31, 2016 at 9:33 PM, Hendrik Leppkes <h.lepp...@gmail.com> wrote: >> >> On Tue, May 31, 2016 at 2:58 PM, Xinzheng Zhang <zhangxzh...@gmail.com> >> wrote:

Re: [FFmpeg-devel] [PATCH 1/1] avformat/tcp: support timeout for getaddrinfo For fixing stucking when resolving addrinfo

2016-05-31 Thread XinZheng Zhang
On Tue, May 31, 2016 at 9:33 PM, Hendrik Leppkes <h.lepp...@gmail.com> wrote: > > On Tue, May 31, 2016 at 2:58 PM, Xinzheng Zhang <zhangxzh...@gmail.com> wrote: > > --- > > libavformat/tcp.c | 215 > > ++

[FFmpeg-devel] [PATCH 1/1] avformat/tcp: support timeout for getaddrinfo For fixing stucking when resolving addrinfo

2016-05-31 Thread Xinzheng Zhang
--- libavformat/tcp.c | 215 ++ 1 file changed, 215 insertions(+) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index c105479..9d4fe3d 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -31,11 +31,15 @@ #if HAVE_POLL_H #include

Re: [FFmpeg-devel] [PATCH 1/1] avformat/tcp: support timeout for getaddrinfo For fixing stucking when resolving addrinfo

2016-05-31 Thread XinZheng Zhang
Sorry, This a wrong patch from a private branch. I will post the correct one later. On Tue, May 31, 2016 at 7:05 PM, Xinzheng Zhang <zhangxzh...@gmail.com> wrote: > From: xinzhengzhang <zhangxzh...@gmail.com> > > --- >

[FFmpeg-devel] [PATCH 1/1] avformat/tcp: support timeout for getaddrinfo For fixing stucking when resolving addrinfo

2016-05-31 Thread Xinzheng Zhang
From: xinzhengzhang --- libavformat/tcp.c | 194 ++ 1 file changed, 194 insertions(+) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 4ac061a..dc3e0bd 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@