Re: [FFmpeg-devel] 回复: [PATCH] x86/aacpsdsp: addff_ps_hybrid_analysis_ileave_sse

2017-06-18 Thread Steven Liu
2017-06-19 10:14 GMT+08:00 liyoubdu : > On 6/12/2017 9:35 PM, James Almer wrote: >> About 2x faster than the c version. >> >> Signed-off-by: James Almer >> --- >> Depends on "[PATCH] x86/aacpsdsp: add >> ff_ps_hybrid_synthesis_deint_{sse,sse4}" >> >> libavcodec/x86/aacpsdsp.asm| 106 >>

Re: [FFmpeg-devel] [PATCH] avformat/hlsenc: donnot show duplicate segment warning at byterange mode

2017-06-18 Thread Steven Liu
2017-06-16 10:57 GMT+08:00 Steven Liu : > When the hlsenc at BYTERANGE mode, it should not show the warning message: > "Duplicated segment filename detected:" > > Reported-by: Marco > Signed-off-by: Steven Liu > --- > libavformat/hlsenc.c |5 +++-- > 1 files changed, 3 insertions(+), 2 delet

[FFmpeg-devel] ?????? [PATCH] x86/aacpsdsp: addff_ps_hybrid_analysis_ileave_sse

2017-06-18 Thread liyoubdu
On 6/12/2017 9:35 PM, James Almer wrote: > About 2x faster than the c version. > > Signed-off-by: James Almer > --- > Depends on "[PATCH] x86/aacpsdsp: add ff_ps_hybrid_synthesis_deint_{sse,sse4}" > > libavcodec/x86/aacpsdsp.asm| 106 > + > libavcode

Re: [FFmpeg-devel] [PATCH] x86/aacpsdsp: add ff_ps_hybrid_analysis_ileave_sse

2017-06-18 Thread James Almer
On 6/12/2017 9:35 PM, James Almer wrote: > About 2x faster than the c version. > > Signed-off-by: James Almer > --- > Depends on "[PATCH] x86/aacpsdsp: add ff_ps_hybrid_synthesis_deint_{sse,sse4}" > > libavcodec/x86/aacpsdsp.asm| 106 > + > libavcode

Re: [FFmpeg-devel] [PATCH] x86/aacpsdsp: add ff_ps_hybrid_synthesis_deint_{sse, sse4}

2017-06-18 Thread James Almer
On 6/12/2017 3:09 PM, James Almer wrote: > About 2x faster than the c version. > > Signed-off-by: James Almer > --- > libavcodec/x86/aacpsdsp.asm| 123 > + > libavcodec/x86/aacpsdsp_init.c | 8 +++ > libavutil/x86/x86util.asm | 15 +++-- > 3 f

[FFmpeg-devel] [PATCH] avcodec: Rename ff_mpv_decode_mb() to ff_mpv_reconstruct_mb

2017-06-18 Thread Michael Niedermayer
The new name more accuratly describes what the function does Signed-off-by: Michael Niedermayer --- libavcodec/avcodec.h| 2 +- libavcodec/h261dec.c| 4 ++-- libavcodec/h263dec.c| 4 ++-- libavcodec/mpeg12dec.c | 2 +- libavcodec/mpeg_er.c| 2 +- libavco

Re: [FFmpeg-devel] [PATCH V5 1/4] lavc/golomb: add value range comment for set_ue_golomb().

2017-06-18 Thread Jun Zhao
On 2017/6/14 11:00, Jun Zhao wrote: > V5: Split the patch. > V4: Fix rang check error in assert base on Mark's review > V3: Clean the code logic base on Michael's review. > V2: Add set_ue_golomb_long() to support 32bits UE golomb and update the unit > test. > ping ? ___

Re: [FFmpeg-devel] Why the tag “DURATION” is a necessity in Matroska files?

2017-06-18 Thread 21naown
Le 18/06/2017 à 00:57, Sasi Inguva a écrit : Hi, I was the one who made that change. We needed a way to obtain individual stream durations from a Matroska file without reading the entire file. I don't think it adds to the file size greatly (< 50 bytes) compared to the size of video and audio da

Re: [FFmpeg-devel] [PATCH] avformat/oggenc: add ogg_init() and ogg_free()

2017-06-18 Thread James Almer
On 6/18/2017 6:22 PM, Michael Niedermayer wrote: > On Sun, May 28, 2017 at 05:09:44PM -0300, James Almer wrote: >> Signed-off-by: James Almer >> --- >> libavformat/oggenc.c | 32 >> 1 file changed, 28 insertions(+), 4 deletions(-) > > LGTM > > thx Pushed, thank

[FFmpeg-devel] [PATCH 0/2] RFC: Generic hwaccel for cuvid

2017-06-18 Thread Philip Langdale
Second go at this, with an attempt at making the new hwaccel work the same as the old one. I think most people don't actually agree with what's implemented here (allowing an hwaccel to indicate that the hardware format should be the default), but I want to capture the discussion the mailing list, a

[FFmpeg-devel] [PATCH 2/2] ffmpeg: Set default output format for cuvid hwaccel

2017-06-18 Thread Philip Langdale
The cuvid hwaccel is weird because it's not a real hwaccel. This means that requesting the hwaccel by itself does nothing as the right decoder and encoder have to be request to take advantage of it. On the other hand, requesting the cuvid decoder or nvenc encoder will always be hardware accelerate

[FFmpeg-devel] [PATCH 1/2] ffmpeg: Switch cuvid to generic hwaccel

2017-06-18 Thread Philip Langdale
With generic hwaccel, it is additionally necessary to specify the output format. If this is not done, we'll end up downloading the frames back and then re-uploading them. For example: ffmpeg -y -hwaccel cuvid -hwaccel_output_format cuda \ -c:v h264_cuvid -i sample.mp4 \ -c:v h264_nv

Re: [FFmpeg-devel] [PATCH] libavformat/avio: fix retry_transfer_wrapper return value on error

2017-06-18 Thread Michael Niedermayer
On Fri, Jun 09, 2017 at 03:51:30PM +0200, Daniel Kucera wrote: > Signed-off-by: Daniel Kucera > --- > libavformat/avio.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) the commit mesage is too terse, it does not explain what this change does. Also breaks: (infinite loop) ./ffmpeg

[FFmpeg-devel] [PATCH 4/4] doc: Add VAAPI encoders

2017-06-18 Thread Mark Thompson
(cherry picked from commit 41dda860870fb1566b17f6b0b61922f0ef89be47) --- doc/encoders.texi | 96 +++ 1 file changed, 96 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 3645b490f9..a8bee092cf 100644 --- a/doc/encoders.texi

[FFmpeg-devel] [PATCH 3/4] vaapi_encode: Add VP9 support

2017-06-18 Thread Mark Thompson
(cherry picked from commit 0fd91e4bfc00a6609b59d1ce3a9f152184e62601) --- configure | 3 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/vaapi_encode_vp9.c | 313 ++ libavcodec/version.h

[FFmpeg-devel] [PATCH 1/4] ffmpeg: Flush output BSFs when encode reaches EOF

2017-06-18 Thread Mark Thompson
Before this, output bitstream filters would never see EOF and therefore would not be able to flush any delayed packets. (cherry picked from commit f64d1100a54d12c78ce436181bb64229c56da6b3) --- ffmpeg.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --

[FFmpeg-devel] [PATCH 2/4] vp9: Add bsf to fix reordering in raw streams

2017-06-18 Thread Mark Thompson
Takes a raw input stream containing frames with correct timestamps but possibly out of order and inserts additional show-existing-frame packets to correct the ordering. (cherry picked from commit 34e051d16850701694410a0e72e0e4ff3a5ec293) (cherry picked from commit b43b95f4789b6e60f9684918fd3c0a5f3

[FFmpeg-devel] [PATCH 1/4] avformat/aviobuf: fix flushing write buffers after seeking backward or forward

2017-06-18 Thread Marton Balint
This patch makes aviobuf work more like traditinal file IO, which is how people think about it. For example, in the past, aviobuf only flushed buffers until the current buffer position, even if more data was written to it previously, and a backward seek was used to reposition the IO context. From

[FFmpeg-devel] [PATCH 3/4] avformat: make flush_packets a tri-state and set it to -1 (auto) by default

2017-06-18 Thread Marton Balint
If flushing is not disabled, then mux.c will signal the end of the packets with an AVIO_DATA_MARKER_FLUSH_POINT, and aviobuf will be able to decide to flush or not based on the preferred minimum packet size set by the used protocol. Signed-off-by: Marton Balint --- doc/formats.texi|

[FFmpeg-devel] [PATCH 2/4] avformat/aviobuf: add support for specifying minimum packet size and marking flush points

2017-06-18 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/avio.h| 13 - libavformat/aviobuf.c | 7 +++ libavformat/url.h | 1 + libavformat/version.h | 2 +- 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 844a5723d3..f14

[FFmpeg-devel] [PATCH 4/4] avformat/file: increase min/max packet size to 256k for written files

2017-06-18 Thread Marton Balint
Buffering more than one packet can be a huge performance improvement for encoding files with small packets (e.g. wav) over SMB/CIFS. Signed-off-by: Marton Balint --- libavformat/file.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavformat/file.c b/libavformat/file.c index 3db9cd0b

Re: [FFmpeg-devel] [PATCHv2 2/2] fate: use do_md5sum instead of the md5 protocol for most md5 fate tests

2017-06-18 Thread Marton Balint
On Sun, 18 Jun 2017, James Almer wrote: On 6/17/2017 3:11 PM, Marton Balint wrote: The md5 protocol has no seek support, but some tests use seeks. This changes the fate tests to actually create the output files and calculate the md5 on the written files, which also makes the tests independent

Re: [FFmpeg-devel] [PATCH] avformat/oggenc: add ogg_init() and ogg_free()

2017-06-18 Thread Michael Niedermayer
On Sun, May 28, 2017 at 05:09:44PM -0300, James Almer wrote: > Signed-off-by: James Almer > --- > libavformat/oggenc.c | 32 > 1 file changed, 28 insertions(+), 4 deletions(-) LGTM thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040

Re: [FFmpeg-devel] [PATCHv2 2/2] fate: use do_md5sum instead of the md5 protocol for most md5 fate tests

2017-06-18 Thread James Almer
On 6/17/2017 3:11 PM, Marton Balint wrote: > The md5 protocol has no seek support, but some tests use seeks. This changes > the fate tests to actually create the output files and calculate the md5 on > the > written files, which also makes the tests independent of the size of the > output > buffe

Re: [FFmpeg-devel] [PATCHv2 2/2] fate: use do_md5sum instead of the md5 protocol for most md5 fate tests

2017-06-18 Thread Marton Balint
On Sat, 17 Jun 2017, Marton Balint wrote: The md5 protocol has no seek support, but some tests use seeks. This changes the fate tests to actually create the output files and calculate the md5 on the written files, which also makes the tests independent of the size of the output buffers and outp

[FFmpeg-devel] [PATCH] libavformat/aviobuf: don't treat 0 as EOF

2017-06-18 Thread Daniel Kucera
Signed-off-by: Daniel Kucera --- libavformat/aviobuf.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 1667e9f08b..293a7d3753 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -556,13 +55

Re: [FFmpeg-devel] [PATCH] libavformat/avio: fix retry_transfer_wrapper return value on error

2017-06-18 Thread Daniel Kučera
2017-06-12 12:31 GMT+02:00 Michael Niedermayer : > On Fri, Jun 09, 2017 at 03:51:30PM +0200, Daniel Kucera wrote: >> Signed-off-by: Daniel Kucera >> --- >> libavformat/avio.c | 6 -- >> 1 file changed, 4 insertions(+), 2 deletions(-) > > causes fate to infinte loop > for example fate-filter-v

Re: [FFmpeg-devel] [PATCH] ffmpeg: remove misleading and incorrect error messages

2017-06-18 Thread Paul B Mahol
On 6/15/17, wm4 wrote: > Those are warnings, not error messages. Fixed locally. > ___ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > should be ok ___

[FFmpeg-devel] [PATCH 2/2] test only: DRM allocation for Intel, DRM to VAAPI mapping

2017-06-18 Thread Mark Thompson
--- libavutil/hwcontext_drm.c | 143 libavutil/hwcontext_vaapi.c | 155 +++- 2 files changed, 297 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_drm.c b/libavutil/hwcontext_drm.c index 0a355568ed..ee

[FFmpeg-devel] [PATCH 1/2] lavu: Add DRM hwcontext

2017-06-18 Thread Mark Thompson
--- This grew out of the RockChip decoder discussion following from . The intent of this is to have a common structure which can be used in all cases where DRM objects need to be shared between components. It would be helpfu

Re: [FFmpeg-devel] [PATCH] avfilter/af_amix: fix possible hang

2017-06-18 Thread Nicolas George
Le decadi 30 prairial, an CCXXV, Paul B Mahol a écrit : > Fixes #6424. > > Signed-off-by: Paul B Mahol > --- > libavfilter/af_amix.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Probably ok, but I do not maintain that filter. Thanks. Regards, -- Nicolas George sign

[FFmpeg-devel] [PATCH] avfilter/af_amix: fix possible hang

2017-06-18 Thread Paul B Mahol
Fixes #6424. Signed-off-by: Paul B Mahol --- libavfilter/af_amix.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index 9fe505b..f19e6b3 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -268,7 +268,7 @

Re: [FFmpeg-devel] [PATCH] avfilter/af_amix: fix possible hang

2017-06-18 Thread Nicolas George
Thanks for trying to fix it. Le decadi 30 prairial, an CCXXV, Paul B Mahol a écrit : > Fixes #6424. > > Signed-off-by: Paul B Mahol > --- > libavfilter/af_amix.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c > index 9fe50

[FFmpeg-devel] [PATCH] avfilter/af_amix: fix possible hang

2017-06-18 Thread Paul B Mahol
Fixes #6424. Signed-off-by: Paul B Mahol --- libavfilter/af_amix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index 9fe505b..e06c753 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -288,7 +288,7 @@ static in

Re: [FFmpeg-devel] [PATCH] avformat/file: increase max packet size to 256k for written files

2017-06-18 Thread Marton Balint
On Sat, 17 Jun 2017, Michael Niedermayer wrote: On Mon, Jun 05, 2017 at 07:16:57PM +0200, Marton Balint wrote: Another huge performance improvement when using SMB/CIFS as output. Signed-off-by: Marton Balint --- libavformat/file.c | 5 + 1 file changed, 5 insertions(+) is this intende

Re: [FFmpeg-devel] [PATCH 1/2] avformat/rmenc: do not access AVIO write buffer directly

2017-06-18 Thread Marton Balint
On Sat, 17 Jun 2017, Michael Niedermayer wrote: On Sat, Jun 17, 2017 at 01:24:41AM +0200, Marton Balint wrote: Signed-off-by: Marton Balint --- libavformat/rmenc.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) LGTM Thanks, applied. Regards, Marton _

Re: [FFmpeg-devel] [PATCH] Cleanly exit at the end of an Interplay MVE

2017-06-18 Thread James Almer
On 6/17/2017 4:53 PM, Paul B Mahol wrote: > On 6/17/17, Hein-Pieter van Braam wrote: >> Interplay movies signal the end of the stream, currently decoding >> continues and eventually returns AVERROR_INVALIDDATA. >> >> This honors the MVE CHUNK_END and CHUNK_SHUTDOWN types. >> >> Signed-off-by: Hein

[FFmpeg-devel] hev1 vs. hvc1

2017-06-18 Thread Eran Kornblau
Hi all, We're trying to make ffmpeg output a format tag of 'hvc1' for HEVC, since it seems that only hvc1 works in iOS 11 beta. We saw that '-tag:v hvc1' does the trick, but it only works in 'mov' format, and not in 'mp4' format (we're using mp4 format for all our videos) The reason is that ff_c

Re: [FFmpeg-devel] [PATCH] avcodec/htmlsubtitles: drop an state

2017-06-18 Thread Michael Niedermayer
On Tue, Jun 13, 2017 at 04:30:42PM +0200, Clément Bœsch wrote: > On Tue, Jun 13, 2017 at 03:09:54PM +0200, Michael Niedermayer wrote: > [...] > > -Dialogue: 0,0:00:24.50,0:00:26.50,Default,,0,0,0,,{\an4}This text should > > be at the\Nmiddle and horizontally at the left\N(The second position must