[FFmpeg-devel] [PATCH v2] avcodec/v4l2_m2m_dec: resolve resolution change

2023-06-30 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" It shouldn't allocate buffer nor get the capture fmt before the resolution change event appeared in decoder setup. And it should not apply to new resolution before the buffer from the previous sequence is dequeued. Changelog: v2 1. Decoder won't get or set format befo

[FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_dec: resolve resolution change

2023-06-29 Thread Hsia-Jun Li
It shouldn't allocate buffer before the resolution change event appeared in decoder setup. And it should not apply to new resolution before the buffer from the previous sequence is dequeued. Change-Id: Id04550b0f17e1501b670a3bcbdd860d5836259bf Signed-off-by: Hsia-Jun(Randy) Li ---  libavcodec/v4

[FFmpeg-devel] [PATCH v1] ffplay: remove unused code

2020-09-09 Thread Jun Li
Signed-off-by: Jun Li --- fftools/ffplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 9ff0425163..04cbcfe0e3 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -1568,7 +1568,7 @@ static double vp_duration(VideoState *is

Re: [FFmpeg-devel] [avfomat/rtp: source ips lost when specified as URL options] Patch for ffmpeg using rtp protocol where sources option is not retained

2020-02-25 Thread Jun Li
On Tue, Feb 25, 2020 at 5:01 AM Ross Nicholson wrote: > Hey Jun Li, > > I noticed you have submitted some patches which work around the same code > area's that I submitted for. Your patches look quite tidy and well thought > out so I was wondering if you could look at this

Re: [FFmpeg-devel] [PATCH v1 1/2] avformat/rtsp: apply rtcp attribute from sdp file

2020-02-20 Thread Jun Li
Ping x 2 On Sun, Feb 9, 2020 at 3:01 PM Jun Li wrote: > > > On Mon, Feb 3, 2020 at 4:34 PM Jun Li wrote: > >> Fix #8479 >> Apply rtcpport from sdp file if it contains rtcp attribute. >> >> Signed-off-by: Jun Li >> --- >> libavformat/rtsp

Re: [FFmpeg-devel] [PATCH v1 2/2] avformat/rtpproto, sdp: write rtcp port to sdp file

2020-02-20 Thread Jun Li
On Sun, Feb 9, 2020 at 3:01 PM Jun Li wrote: > > > On Mon, Feb 3, 2020 at 4:34 PM Jun Li wrote: > >> Fix #8474 >> Write rtcp port attribute to sdp file when necessary. >> >> Signed-off-by: Jun Li >> --- >> libavformat/rtpproto.c

Re: [FFmpeg-devel] [PATCH v1 2/2] avformat/rtpproto, sdp: write rtcp port to sdp file

2020-02-09 Thread Jun Li
On Mon, Feb 3, 2020 at 4:34 PM Jun Li wrote: > Fix #8474 > Write rtcp port attribute to sdp file when necessary. > > Signed-off-by: Jun Li > --- > libavformat/rtpproto.c | 11 +++ > libavformat/rtpproto.h | 2 ++ > libavformat/sdp.c | 12 ++-

Re: [FFmpeg-devel] [PATCH v1 1/2] avformat/rtsp: apply rtcp attribute from sdp file

2020-02-09 Thread Jun Li
On Mon, Feb 3, 2020 at 4:34 PM Jun Li wrote: > Fix #8479 > Apply rtcpport from sdp file if it contains rtcp attribute. > > Signed-off-by: Jun Li > --- > libavformat/rtsp.c | 12 ++-- > libavformat/rtsp.h | 1 + > 2 files changed, 11 insertions(+), 2 delet

[FFmpeg-devel] [PATCH v1 2/2] avformat/rtpproto, sdp: write rtcp port to sdp file

2020-02-03 Thread Jun Li
Fix #8474 Write rtcp port attribute to sdp file when necessary. Signed-off-by: Jun Li --- libavformat/rtpproto.c | 11 +++ libavformat/rtpproto.h | 2 ++ libavformat/sdp.c | 12 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/libavformat/rtpproto.c b

[FFmpeg-devel] [PATCH v1 1/2] avformat/rtsp: apply rtcp attribute from sdp file

2020-02-03 Thread Jun Li
Fix #8479 Apply rtcpport from sdp file if it contains rtcp attribute. Signed-off-by: Jun Li --- libavformat/rtsp.c | 12 ++-- libavformat/rtsp.h | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index cd6fc32a29..c892f21142

[FFmpeg-devel] [PATCH v1] avformat/sdp, rtsp: add rtcp attribute to sdp file

2020-02-01 Thread Jun Li
Fix #8479 1. write rtcpport to sdp file when rtpport is specified in url 2. apply rtcpport when sdp file contains rtcp attribute Signed-off-by: Jun Li --- libavformat/rtpproto.c | 11 +++ libavformat/rtpproto.h | 2 ++ libavformat/rtsp.c | 12 ++-- libavformat/rtsp.h

Re: [FFmpeg-devel] Append to fmp4

2019-12-19 Thread Jun Li
On Thu, Dec 19, 2019 at 4:00 AM Daniel Oberhoff < danieloberh...@googlemail.com> wrote: > Hello. > > I have been diving deep into the mp4 spec to understand fragmented mp4. > From what I understand using moof atoms it is possible, given stream > compatibility, to straight append to an mp4 file by

Re: [FFmpeg-devel] [PATCH v2] avformat/wavdec.c: copy id3 metadata to format metadata and stream side data

2019-11-22 Thread Jun Li
On Wed, Oct 23, 2019 at 6:25 PM Jun Li wrote: > > > On Sun, Oct 20, 2019 at 4:14 PM Jun Li wrote: > >> Enhancement #7803 >> Copy id3 metadata to format meta data and stream side data. >> >> Signed-off-by: Jun Li >> --- >> libavformat/

Re: [FFmpeg-devel] [PATCH v4] avformat/movenc: split empty text sample when duration overflow

2019-10-24 Thread Jun Li
On Fri, Oct 18, 2019 at 11:56 AM Jun Li wrote: > > > On Wed, Oct 9, 2019 at 3:42 PM Jun Li wrote: > >> >> >> On Mon, Oct 7, 2019 at 6:36 PM Jun Li wrote: >> >>> >>> >>> On Mon, Oct 7, 2019 at 6:34 PM Jun Li wrote: >>>

Re: [FFmpeg-devel] [PATCH v2] avformat/wavdec.c: copy id3 metadata to format metadata and stream side data

2019-10-23 Thread Jun Li
On Sun, Oct 20, 2019 at 4:14 PM Jun Li wrote: > Enhancement #7803 > Copy id3 metadata to format meta data and stream side data. > > Signed-off-by: Jun Li > --- > libavformat/Makefile | 4 ++-- > libavformat/wavdec.c | 10 ++ > 2 files changed, 12 insertions(+),

Re: [FFmpeg-devel] [PATCH v1] avformat/wavdec.c: copy id3 metadata to format metadata and stream side data

2019-10-20 Thread Jun Li
On Sun, Oct 20, 2019 at 6:11 AM Moritz Barsnick wrote: > On Sat, Oct 19, 2019 at 22:33:55 -0700, Jun Li wrote: > > +ret = ff_replaygain_export(st, s->internal->id3v2_meta); > > In libavformat/Makefile, CONFIG_W64_DEMUXER and CONFIG_WAV_DEMUXER now > pr

[FFmpeg-devel] [PATCH v2] avformat/wavdec.c: copy id3 metadata to format metadata and stream side data

2019-10-20 Thread Jun Li
Enhancement #7803 Copy id3 metadata to format meta data and stream side data. Signed-off-by: Jun Li --- libavformat/Makefile | 4 ++-- libavformat/wavdec.c | 10 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libavformat/Makefile b/libavformat/Makefile index

[FFmpeg-devel] [PATCH v1] avformat/wavdec.c: copy id3 metadata to format metadata and stream side data

2019-10-19 Thread Jun Li
Enhancement #7803 Copy id3 metadata to format meta data and steams side data. Signed-off-by: Jun Li --- libavformat/wavdec.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c index 52194f54ef..d82bdaaa66 100644 --- a/libavformat/wavdec.c

Re: [FFmpeg-devel] [PATCH v4] avformat/movenc: split empty text sample when duration overflow

2019-10-18 Thread Jun Li
On Wed, Oct 9, 2019 at 3:42 PM Jun Li wrote: > > > On Mon, Oct 7, 2019 at 6:36 PM Jun Li wrote: > >> >> >> On Mon, Oct 7, 2019 at 6:34 PM Jun Li wrote: >> >>> Fix #7637 >>> One empty/end sample is created and inserted between two capti

Re: [FFmpeg-devel] [PATCH v2] avformat/tee.c: steal bsf option before passing to fifo muxer

2019-10-17 Thread Jun Li
On Sun, Oct 13, 2019 at 2:14 PM Jun Li wrote: > Fix #7620 > In the case tee muxer with both "bsf" and "use_fifo" parameters > will trigger this bug. Tee muxer will first steal parameters (like "f", > "select"...) and then "use_fifo"

Re: [FFmpeg-devel] [PATCH v1] avformat/tee.c: steal bsf option before passing to fifo muxer

2019-10-13 Thread Jun Li
On Sun, Oct 13, 2019 at 10:39 AM Nicolas George wrote: > Jun Li (12019-10-05): > > Fix #7620 > > In the case tee muxer with both "bsf" and "use_fifo" parameters > > wil trigger this bug. Tee muxer will first steal parameters (like "f", >

[FFmpeg-devel] [PATCH v2] avformat/tee.c: steal bsf option before passing to fifo muxer

2019-10-13 Thread Jun Li
Fix #7620 In the case tee muxer with both "bsf" and "use_fifo" parameters will trigger this bug. Tee muxer will first steal parameters (like "f", "select"...) and then "use_fifo" will try reading out remaining options and pass them to fifo as option "format_options". Current code miss the part of s

Re: [FFmpeg-devel] [PATCH v2] avcodec/h264_parse: decode sps before pps

2019-10-09 Thread Jun Li
On Mon, Oct 7, 2019 at 8:33 PM Jun Li wrote: > Fix ticket #6422 > The content put pps before sps, which is not a common case. The change > put decoding sps before pps, just for compability. > > Signed-off-by: Jun Li > --- > libavcodec/h264_parse.c | 19 ++-

Re: [FFmpeg-devel] [PATCH v4] avformat/movenc: split empty text sample when duration overflow

2019-10-09 Thread Jun Li
On Mon, Oct 7, 2019 at 6:36 PM Jun Li wrote: > > > On Mon, Oct 7, 2019 at 6:34 PM Jun Li wrote: > >> Fix #7637 >> One empty/end sample is created and inserted between two caption lines >> when there is a gap. >> This patch is to split the sample into multi

[FFmpeg-devel] [PATCH v2] avcodec/h264_parse: decode sps before pps

2019-10-07 Thread Jun Li
Fix ticket #6422 The content put pps before sps, which is not a common case. The change put decoding sps before pps, just for compability. Signed-off-by: Jun Li --- libavcodec/h264_parse.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/libavcodec

Re: [FFmpeg-devel] [PATCH v1] avcodec/h264_parse: decode sps before pps

2019-10-07 Thread Jun Li
On Mon, Oct 7, 2019 at 7:50 PM Fu, Linjie wrote: > > -Original Message- > > From: ffmpeg-devel On Behalf Of Jun > > Li > > Sent: Tuesday, October 8, 2019 05:42 > > To: ffmpeg-devel@ffmpeg.org > > Subject: [FFmpeg-devel] [PATCH v1] avcodec/h

Re: [FFmpeg-devel] [PATCH v4] avformat/movenc: split empty text sample when duration overflow

2019-10-07 Thread Jun Li
On Mon, Oct 7, 2019 at 6:34 PM Jun Li wrote: > Fix #7637 > One empty/end sample is created and inserted between two caption lines > when there is a gap. > This patch is to split the sample into multiple ones when its duration is > too long (>= INT_MAX) > &g

[FFmpeg-devel] [PATCH v4] avformat/movenc: split empty text sample when duration overflow

2019-10-07 Thread Jun Li
Fix #7637 One empty/end sample is created and inserted between two caption lines when there is a gap. This patch is to split the sample into multiple ones when its duration is too long (>= INT_MAX) Signed-off-by: Jun Li --- libavformat/movenc.c |

[FFmpeg-devel] [PATCH v1] avcodec/h264_parse: decode sps before pps

2019-10-07 Thread Jun Li
Fix ticket #6422 The content put pps before sps, which is not a common case. The change just put decoding sps before pps, just for compability. Signed-off-by: Jun Li --- libavcodec/h264_parse.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a

[FFmpeg-devel] [PATCH v1] avcodec/h264_parse: decode sps before pps Fix ticket #6422 The content put pps before sps, which is not a common case. The change just put decoding sps before pps, just for c

2019-10-07 Thread Jun Li
Signed-off-by: Jun Li --- libavcodec/h264_parse.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/libavcodec/h264_parse.c b/libavcodec/h264_parse.c index 352ffea948..26aaa751ad 100644 --- a/libavcodec/h264_parse.c +++ b/libavcodec/h264_parse.c

[FFmpeg-devel] [PATCH v1] avformat/tee.c: steal bsf option before passing to fifo muxer

2019-10-05 Thread Jun Li
Fix #7620 In the case tee muxer with both "bsf" and "use_fifo" parameters wil trigger this bug. Tee muxer will first steal parameters (like "f", "select"...) and then "use_fifo" will try reading out remaining options and pass them to fifo as option "format_options". Current code miss the part of st

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-10-03 Thread Jun Li
On Wed, Oct 2, 2019 at 3:42 PM Jun Li wrote: > > > On Wed, Oct 2, 2019 at 3:22 PM Carl Eugen Hoyos > wrote: > >> Am Mi., 2. Okt. 2019 um 02:21 Uhr schrieb Jun Li : >> > >> > On Tue, Oct 1, 2019 at 4:19 AM Carl Eugen Hoyos >> wrote: >> > >

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-10-02 Thread Jun Li
On Wed, Oct 2, 2019 at 3:22 PM Carl Eugen Hoyos wrote: > Am Mi., 2. Okt. 2019 um 02:21 Uhr schrieb Jun Li : > > > > On Tue, Oct 1, 2019 at 4:19 AM Carl Eugen Hoyos > wrote: > > > > > Am Di., 10. Sept. 2019 um 21:12 Uhr schrieb Jun Li < > junli1..

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-10-02 Thread Jun Li
On Tue, Oct 1, 2019 at 5:20 PM Jun Li wrote: > > > On Tue, Oct 1, 2019 at 4:19 AM Carl Eugen Hoyos > wrote: > >> Am Di., 10. Sept. 2019 um 21:12 Uhr schrieb Jun Li : >> > >> > Fix #7637 >> > One empty/end sample is created and inserted between two

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-10-01 Thread Jun Li
On Tue, Oct 1, 2019 at 4:19 AM Carl Eugen Hoyos wrote: > Am Di., 10. Sept. 2019 um 21:12 Uhr schrieb Jun Li : > > > > Fix #7637 > > One empty/end sample is created and inserted between two caption lines > when there is a gap. > > This patch is to split the samp

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-09-30 Thread Jun Li
On Thu, Sep 26, 2019 at 6:07 PM Jun Li wrote: > > > On Fri, Sep 20, 2019 at 9:46 PM Jun Li wrote: > >> >> On Sat, Sep 14, 2019 at 2:06 PM Jun Li wrote: >> >>> >>> >>> On Tue, Sep 10, 2019 at 12:16 PM Jun Li wrote: >>

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-09-26 Thread Jun Li
On Fri, Sep 20, 2019 at 9:46 PM Jun Li wrote: > > On Sat, Sep 14, 2019 at 2:06 PM Jun Li wrote: > >> >> >> On Tue, Sep 10, 2019 at 12:16 PM Jun Li wrote: >> >>> >>> >>> On Tue, Sep 10, 2019 at 12:12 PM Jun Li wrote: >>> >

Re: [FFmpeg-devel] [PATCH v1] lavf/mov: Fix timestamp rescale on sidx atom

2019-09-23 Thread Jun Li
On Thu, Aug 15, 2019 at 1:02 AM myp...@gmail.com wrote: > On Thu, Aug 15, 2019 at 12:49 PM Jun Li wrote: > > > > On Thu, Jun 20, 2019 at 2:02 AM Jun Li wrote: > > > > > > > > > > > On Tue, May 21, 2019 at 1:05 AM Jun Li wrote: > > > &g

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-09-20 Thread Jun Li
On Sat, Sep 14, 2019 at 2:06 PM Jun Li wrote: > > > On Tue, Sep 10, 2019 at 12:16 PM Jun Li wrote: > >> >> >> On Tue, Sep 10, 2019 at 12:12 PM Jun Li wrote: >> >>> Fix #7637 >>> One empty/end sample is created and inserted between two capti

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-09-14 Thread Jun Li
On Tue, Sep 10, 2019 at 12:16 PM Jun Li wrote: > > > On Tue, Sep 10, 2019 at 12:12 PM Jun Li wrote: > >> Fix #7637 >> One empty/end sample is created and inserted between two caption lines >> when there is a gap. >> This patch is to split the sample int

Re: [FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-09-10 Thread Jun Li
On Tue, Sep 10, 2019 at 12:12 PM Jun Li wrote: > Fix #7637 > One empty/end sample is created and inserted between two caption lines > when there is a gap. > This patch is to split the sample into multiple ones when its duration is > too long (>= INT_MAX). > --- &g

[FFmpeg-devel] [PATCH v3] avformat/movenc: split empty text sample when duration overflow

2019-09-10 Thread Jun Li
Fix #7637 One empty/end sample is created and inserted between two caption lines when there is a gap. This patch is to split the sample into multiple ones when its duration is too long (>= INT_MAX). --- libavformat/movenc.c | 24 ++- tests/fate/subtitles.

Re: [FFmpeg-devel] [PATCH v2] avformat/movenc: split empty text sample when duration overflow

2019-09-08 Thread Jun Li
On Sun, Sep 8, 2019 at 5:59 PM Jun Li wrote: > > > On Sun, Sep 8, 2019 at 5:51 PM Jun Li wrote: > >> Fix #7637 >> One empty/end sample is created and inserted between two caption lines >> when there is a gap. >> This patch is to split the sample into multi

Re: [FFmpeg-devel] [PATCH v2] avformat/movenc: split empty text sample when duration overflow

2019-09-08 Thread Jun Li
On Sun, Sep 8, 2019 at 5:51 PM Jun Li wrote: > Fix #7637 > One empty/end sample is created and inserted between two caption lines > when there is a gap. > This patch is to split the sample into multiple ones when its duration is > too long (>= INT_MAX). > --- &g

[FFmpeg-devel] [PATCH v2] avformat/movenc: split empty text sample when duration overflow

2019-09-08 Thread Jun Li
Fix #7637 One empty/end sample is created and inserted between two caption lines when there is a gap. This patch is to split the sample into multiple ones when its duration is too long (>= INT_MAX). --- libavformat/movenc.c | 24 ++- tests/fate/subtitles.

Re: [FFmpeg-devel] [PATCH v1] avformat/movenc: split empty text sample when duration overflow

2019-09-07 Thread Jun Li
On Fri, Sep 6, 2019 at 4:10 PM Jun Li wrote: > Fix #7637 > One empty/end sample is created and inserted between two caption lines > when there is a gap. > This patch is to split the sample into multiple ones when its duration is > too long (>= INT_MAX). > --- > l

[FFmpeg-devel] [PATCH v1] avformat/movenc: split empty text sample when duration overflow

2019-09-06 Thread Jun Li
Fix #7637 One empty/end sample is created and inserted between two caption lines when there is a gap. This patch is to split the sample into multiple ones when its duration is too long (>= INT_MAX). --- libavformat/movenc.c | 24 ++-- 1 file changed, 18 insertions(+), 6 delet

Re: [FFmpeg-devel] [PATCH] libavformat/rtspdec: Don't send teardown if rtsp_hd_out is null

2019-08-28 Thread Jun Li
On Wed, Aug 28, 2019 at 3:09 PM Carl Eugen Hoyos wrote: > Am Mo., 5. Aug. 2019 um 09:19 Uhr schrieb Ross Nicholson < > phunkyf...@gmail.com>: > > > > Example stream that does not work: rtsp:// > > 184.72.239.149/vod/mp4:BigBuckBunny_115k.mov > > Is this still valid? > > Carl, you can try this one

Re: [FFmpeg-devel] [PATCH v2] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-22 Thread Jun Li
On Thu, Aug 22, 2019 at 12:00 PM James Almer wrote: > On 8/19/2019 11:24 PM, Jun Li wrote: > > Fix #6591 > > The content has no rbsp_stop_one_bit for ending the SPS, that > > causes the decoding SPS failure, results decoding frame failure as well. > > > > The

[FFmpeg-devel] [PATCH v3] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-22 Thread Jun Li
Fix #6591 The content has no rbsp_stop_one_bit for ending the SPS, that causes the decoding SPS failure, results decoding frame failure as well. The patch is just adding a retry with complete NALU, copied from the retry in decode_nal_unit() --- libavcodec/h264_parse.c | 20

Re: [FFmpeg-devel] [PATCH v2] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-22 Thread Jun Li
On Tue, Aug 20, 2019 at 5:52 PM Jun Li wrote: > > > On Mon, Aug 19, 2019 at 7:24 PM Jun Li wrote: > >> Fix #6591 >> The content has no rbsp_stop_one_bit for ending the SPS, that >> causes the decoding SPS failure, results decoding frame failure as well. >>

Re: [FFmpeg-devel] [PATCH v2] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-20 Thread Jun Li
On Mon, Aug 19, 2019 at 7:24 PM Jun Li wrote: > Fix #6591 > The content has no rbsp_stop_one_bit for ending the SPS, that > causes the decoding SPS failure, results decoding frame failure as well. > > The patch is just adding a retry with complete NALU, copied from the retry >

Re: [FFmpeg-devel] [PATCH v1] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-19 Thread Jun Li
On Mon, Aug 19, 2019 at 6:55 PM James Almer wrote: > On 8/19/2019 10:39 PM, Jun Li wrote: > > On Mon, Aug 19, 2019 at 3:45 PM James Almer wrote: > > > >> On 8/18/2019 10:41 PM, Jun Li wrote: > >>> Fix #6591 > >>> The content has no rbsp_stop_o

[FFmpeg-devel] [PATCH v2] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-19 Thread Jun Li
Fix #6591 The content has no rbsp_stop_one_bit for ending the SPS, that causes the decoding SPS failure, results decoding frame failure as well. The patch is just adding a retry with complete NALU, copied from the retry in decode_nal_unit() --- libavcodec/h264_parse.c | 11 +-- 1 file ch

Re: [FFmpeg-devel] [PATCH v1] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-19 Thread Jun Li
On Mon, Aug 19, 2019 at 3:45 PM James Almer wrote: > On 8/18/2019 10:41 PM, Jun Li wrote: > > Fix #6591 > > The content has no rbsp_stop_one_bit for ending the SPS, that > > causes the decoding SPS failure, results decoding frame failure as well. > > The patch

[FFmpeg-devel] [PATCH v1] avcodec/h264_parse: retry decoding SPS with complete NAL

2019-08-18 Thread Jun Li
Fix #6591 The content has no rbsp_stop_one_bit for ending the SPS, that causes the decoding SPS failure, results decoding frame failure as well. The patch is just adding a retry with complete NALU. --- libavcodec/h264_parse.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff -

[FFmpeg-devel] [PATCH v1] avcodec/h264_mp4toannexb_bsf: force sps/pps writing before the first pict

2019-08-16 Thread Jun Li
Fix #6869, write sps/pps before the first picture nal, no matter what type of picture it is. --- libavcodec/h264_mp4toannexb_bsf.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c index fb3f2

[FFmpeg-devel] [PATCH v1] avcodec/h264_mp4toannexb_bsf: force sps/pps writing before the first pict

2019-08-16 Thread Jun Li
matter what type it is. Thanks. Best Regards -Jun From 052674e9d4e2e6cf29141858b6cdc707fb75ecb1 Mon Sep 17 00:00:00 2001 From: Jun Li Date: Fri, 16 Aug 2019 15:08:23 -0700 Subject: [PATCH v1] avcodec/h264_mp4toannexb_bsf: force sps/pps writing before the first pict Fix #6869, write sps/pps before the

Re: [FFmpeg-devel] [PATCH v1] lavf/mov: Fix timestamp rescale on sidx atom

2019-08-14 Thread Jun Li
On Thu, Jun 20, 2019 at 2:02 AM Jun Li wrote: > > > On Tue, May 21, 2019 at 1:05 AM Jun Li wrote: > >> >> >> On Thu, May 16, 2019 at 1:00 AM Jun Li wrote: >> >>> >>> >>> On Sun, May 12, 2019 at 7:44 PM Jun Li wrote: &

[FFmpeg-devel] [PATCH v11 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-29 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 5 +++-- fftools/ffmpeg.h| 8 fftools/ffmpeg_filter.c | 40 +++- 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/fftools

Re: [FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-29 Thread Jun Li
On Sat, Jun 29, 2019 at 12:07 AM Steven Liu wrote: > > > > 在 2019年6月26日,19:32,Steven Liu 写道: > > > > Jun Li 于2019年6月25日周二 上午9:26写道: > >> > >> On Mon, Jun 17, 2019 at 5:31 PM Jun Li wrote: > >> > >>> > >>> > >&g

[FFmpeg-devel] [PATCH v11 1/2] lavf/vf_transpose: add exif orientation support

2019-06-29 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 +++ libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 170 - 4 files changed, 194 insertions(+), 32 deletions(-)

Re: [FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-24 Thread Jun Li
On Mon, Jun 17, 2019 at 5:31 PM Jun Li wrote: > > > On Sat, Jun 15, 2019 at 7:09 PM Jun Li wrote: > >> >> >> On Tue, Jun 11, 2019 at 7:05 PM Jun Li wrote: >> >>> >>> On Sun, Jun 9, 2019 at 2:28 PM Jun Li wrote: >

Re: [FFmpeg-devel] [PATCH v1] lavf/mov: Fix timestamp rescale on sidx atom

2019-06-20 Thread Jun Li
On Tue, May 21, 2019 at 1:05 AM Jun Li wrote: > > > On Thu, May 16, 2019 at 1:00 AM Jun Li wrote: > >> >> >> On Sun, May 12, 2019 at 7:44 PM Jun Li wrote: >> >>> >>> >>> On Fri, May 10, 2019 at 7:25 PM Jun Li wrote: >>>

Re: [FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-17 Thread Jun Li
On Sat, Jun 15, 2019 at 7:09 PM Jun Li wrote: > > > On Tue, Jun 11, 2019 at 7:05 PM Jun Li wrote: > >> >> On Sun, Jun 9, 2019 at 2:28 PM Jun Li wrote: >> >>> Add exif orientation support and expose an option. >>> --- >>> libavfilter/hfl

Re: [FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-15 Thread Jun Li
On Tue, Jun 11, 2019 at 7:05 PM Jun Li wrote: > > On Sun, Jun 9, 2019 at 2:28 PM Jun Li wrote: > >> Add exif orientation support and expose an option. >> --- >> libavfilter/hflip.h| 2 + >> libavfilter/transpose.h| 14 >

Re: [FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-11 Thread Jun Li
On Sun, Jun 9, 2019 at 2:28 PM Jun Li wrote: > Add exif orientation support and expose an option. > --- > libavfilter/hflip.h| 2 + > libavfilter/transpose.h| 14 > libavfilter/vf_hflip.c | 40 ++--- > libavfilter/vf

[FFmpeg-devel] [PATCH v10 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-09 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 5 +++-- fftools/ffmpeg.h| 8 fftools/ffmpeg_filter.c | 40 +++- 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/fftools

Re: [FFmpeg-devel] [PATCH v9 1/2] lavf/vf_transpose: add exif orientation support

2019-06-09 Thread Jun Li
On Sun, Jun 9, 2019 at 1:52 AM Paul B Mahol wrote: > On 6/9/19, Jun Li wrote: > > On Sun, Jun 9, 2019 at 12:49 AM Paul B Mahol wrote: > > > >> On 6/9/19, Jun Li wrote: > >> > Add exif orientation support and expose an option. > >> &

[FFmpeg-devel] [PATCH v10 1/2] lavf/vf_transpose: add exif orientation support

2019-06-09 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 168 - 4 files changed, 192 insertions(+), 32 deletions(-)

Re: [FFmpeg-devel] [PATCH v9 1/2] lavf/vf_transpose: add exif orientation support

2019-06-09 Thread Jun Li
On Sun, Jun 9, 2019 at 12:49 AM Paul B Mahol wrote: > On 6/9/19, Jun Li wrote: > > Add exif orientation support and expose an option. > > --- > > libavfilter/hflip.h| 2 + > > libavfilter/transpose.h| 14 > > libavfilter/vf_hflip.c

Re: [FFmpeg-devel] [PATCH v8 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-08 Thread Jun Li
On Sat, Jun 8, 2019 at 2:25 AM Nicolas George wrote: > Jun Li (12019-06-07): > > I think a complete validation should be creating a function like > "atodigit" > > , string to digit, instead of using atoi, > > The problem of validation is a common one, and a

[FFmpeg-devel] [PATCH v9 1/2] lavf/vf_transpose: add exif orientation support

2019-06-08 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 168 - 4 files changed, 192 insertions(+), 32 deletions(-)

[FFmpeg-devel] [PATCH v9 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-08 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 5 +++-- fftools/ffmpeg.h| 8 fftools/ffmpeg_filter.c | 40 +++- 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/fftools

Re: [FFmpeg-devel] [PATCH v8 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-07 Thread Jun Li
On Fri, Jun 7, 2019 at 11:54 AM Michael Niedermayer wrote: > On Thu, Jun 06, 2019 at 08:28:15PM -0700, Jun Li wrote: > > Fix #6945 > > Rotate or/and flip frame according to frame's metadata orientation > > --- > > fftools/ffmpeg.c| 5 +++-- &

Re: [FFmpeg-devel] [PATCH v7 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-06 Thread Jun Li
On Thu, Jun 6, 2019 at 4:02 AM Michael Niedermayer wrote: > On Tue, Jun 04, 2019 at 06:12:28PM -0700, Jun Li wrote: > > Fix #6945 > > Rotate or/and flip frame according to frame's metadata orientation > [..] > > > + > > +return filterst !=

[FFmpeg-devel] [PATCH v8 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-06 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 5 +++-- fftools/ffmpeg.h| 8 fftools/ffmpeg_filter.c | 36 +++- 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/fftools/ffm

[FFmpeg-devel] [PATCH v8 1/2] lavf/vf_transpose: add exif orientation support

2019-06-06 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 163 - 4 files changed, 187 insertions(+), 32 deletions(-)

[FFmpeg-devel] [PATCH v7 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-06-04 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 16 +++- fftools/ffmpeg.h| 3 ++- fftools/ffmpeg_filter.c | 28 +++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpe

Re: [FFmpeg-devel] [PATCH v6 1/2] lavf/vf_transpose: add exif orientation support

2019-06-04 Thread Jun Li
On Tue, Jun 4, 2019 at 12:50 AM Paul B Mahol wrote: > On 5/31/19, Jun Li wrote: > > Add exif orientation support and expose an option. > > --- > > libavfilter/hflip.h| 2 + > > libavfilter/transpose.h| 14 > > libavfilter/vf_hflip.c

[FFmpeg-devel] [PATCH v7 1/2] lavf/vf_transpose: add exif orientation support

2019-06-04 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 163 - 4 files changed, 187 insertions(+), 32 deletions(-)

Re: [FFmpeg-devel] [PATCH v6 1/2] lavf/vf_transpose: add exif orientation support

2019-06-03 Thread Jun Li
On Fri, May 31, 2019 at 6:15 PM Jun Li wrote: > > On Thu, May 30, 2019 at 5:29 PM Jun Li wrote: > >> Add exif orientation support and expose an option. >> --- >> libavfilter/hflip.h| 2 + >> libavfilter/transpose.h| 14 >

Re: [FFmpeg-devel] [PATCH v6 1/2] lavf/vf_transpose: add exif orientation support

2019-05-31 Thread Jun Li
On Thu, May 30, 2019 at 5:29 PM Jun Li wrote: > Add exif orientation support and expose an option. > --- > libavfilter/hflip.h| 2 + > libavfilter/transpose.h| 14 > libavfilter/vf_hflip.c | 40 ++--- > libavfilter/vf

[FFmpeg-devel] [PATCH v6 1/2] lavf/vf_transpose: add exif orientation support

2019-05-30 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 40 ++--- libavfilter/vf_transpose.c | 161 - 4 files changed, 185 insertions(+), 32 deletions(-)

[FFmpeg-devel] [PATCH v6 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-05-30 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 16 +++- fftools/ffmpeg.h| 3 ++- fftools/ffmpeg_filter.c | 28 +++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpe

Re: [FFmpeg-devel] [PATCH v3 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-05-28 Thread Jun Li
On Tue, May 28, 2019 at 1:50 PM Michael Niedermayer wrote: > On Mon, May 27, 2019 at 11:18:26PM -0700, Jun Li wrote: > > Fix #6945 > > Rotate or/and flip frame according to frame's metadata orientation > > --- > > fftools/ffmpeg.c| 16 +++- &

Re: [FFmpeg-devel] [PATCH v3 1/2] lavf/vf_transpose: add exif orientation support

2019-05-28 Thread Jun Li
On Tue, May 28, 2019 at 7:21 AM Paul B Mahol wrote: > On 5/28/19, Jun Li wrote: > > Add exif orientation support and expose an option. > > --- > > libavfilter/hflip.h| 3 + > > libavfilter/vf_hflip.c | 43 ++--- > >

[FFmpeg-devel] [PATCH v5 1/2] lavf/vf_transpose: add exif orientation support

2019-05-28 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 41 ++--- libavfilter/vf_transpose.c | 166 - 4 files changed, 189 insertions(+), 34 deletions(-)

[FFmpeg-devel] [PATCH v5 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-05-28 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 16 +++- fftools/ffmpeg.h| 3 ++- fftools/ffmpeg_filter.c | 28 +++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpe

[FFmpeg-devel] [PATCH v4 1/2] lavf/vf_transpose: add exif orientation support

2019-05-28 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 2 + libavfilter/transpose.h| 14 libavfilter/vf_hflip.c | 41 ++--- libavfilter/vf_transpose.c | 166 - 4 files changed, 189 insertions(+), 34 deletions(-)

[FFmpeg-devel] [PATCH v4 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-05-28 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 16 +++- fftools/ffmpeg.h| 3 ++- fftools/ffmpeg_filter.c | 28 +++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpe

Re: [FFmpeg-devel] [PATCH v1 1/2] lavf/vf_transpose: add exif orientation support

2019-05-27 Thread Jun Li
On Mon, May 27, 2019 at 7:52 AM Nicolas George wrote: > Jun Li (12019-05-27): > > I compared the perf between vflip and this patch before, they take almost > > the same time, around 9ms for a frame. > > Hflip is a little special, but surely I can update the patch to avoid

Re: [FFmpeg-devel] [PATCH v1 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-05-27 Thread Jun Li
On Mon, May 27, 2019 at 7:56 AM Nicolas George wrote: > Jun Li (12019-05-25): > > I believe it has been enabled by default, the 'autorotate' value is true > by > > default. > > Yes, but it is currently enabled for constant rotation. Variable > rotation is mor

[FFmpeg-devel] [PATCH v3 2/2] fftools/ffmpeg: add exif orientation support per frame's metadata

2019-05-27 Thread Jun Li
Fix #6945 Rotate or/and flip frame according to frame's metadata orientation --- fftools/ffmpeg.c| 16 +++- fftools/ffmpeg.h| 3 ++- fftools/ffmpeg_filter.c | 28 +++- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/fftools/ffmpe

[FFmpeg-devel] [PATCH v3 1/2] lavf/vf_transpose: add exif orientation support

2019-05-27 Thread Jun Li
Add exif orientation support and expose an option. --- libavfilter/hflip.h| 3 + libavfilter/vf_hflip.c | 43 ++--- libavfilter/vf_transpose.c | 173 + 3 files changed, 171 insertions(+), 48 deletions(-) diff --git a/libavfilter/hflip.h b/lib

Re: [FFmpeg-devel] [PATCH v1 1/2] lavf/vf_transpose: add exif orientation support

2019-05-27 Thread Jun Li
On Mon, May 27, 2019 at 1:39 AM Paul B Mahol wrote: > On 5/27/19, Jun Li wrote: > > On Mon, May 27, 2019 at 12:32 AM Paul B Mahol wrote: > > > >> On 5/27/19, Jun Li wrote: > >> > On Sun, May 26, 2019 at 2:09 AM Paul B Mahol > wrote: > >> >

Re: [FFmpeg-devel] [PATCH v1 1/2] lavf/vf_transpose: add exif orientation support

2019-05-27 Thread Jun Li
On Mon, May 27, 2019 at 12:32 AM Paul B Mahol wrote: > On 5/27/19, Jun Li wrote: > > On Sun, May 26, 2019 at 2:09 AM Paul B Mahol wrote: > > > >> On 5/26/19, Jun Li wrote: > >> > On Sun, May 26, 2019 at 1:16 AM Paul B Mahol > wrote: > >> &g

Re: [FFmpeg-devel] [PATCH v1 1/2] lavf/vf_transpose: add exif orientation support

2019-05-26 Thread Jun Li
On Sun, May 26, 2019 at 2:09 AM Paul B Mahol wrote: > On 5/26/19, Jun Li wrote: > > On Sun, May 26, 2019 at 1:16 AM Paul B Mahol wrote: > > > >> On 5/25/19, Jun Li wrote: > >> > Add exif orientation support and expose an option. > >> &

Re: [FFmpeg-devel] [PATCH v1 1/2] lavf/vf_transpose: add exif orientation support

2019-05-26 Thread Jun Li
On Sun, May 26, 2019 at 1:16 AM Paul B Mahol wrote: > On 5/25/19, Jun Li wrote: > > Add exif orientation support and expose an option. > > --- > > libavfilter/vf_transpose.c | 258 + > > 1 file changed, 207 insertions(+), 51 deleti

Re: [FFmpeg-devel] [PATCH v1 1/2] lavf/vf_transpose: add exif orientation support

2019-05-25 Thread Jun Li
On Sat, May 25, 2019 at 2:46 AM Nicolas George wrote: > Jun Li (12019-05-24): > > Add exif orientation support and expose an option. > > --- > > libavfilter/vf_transpose.c | 258 + > > 1 file changed, 207 insertions(+), 51 deletion

  1   2   3   >