Re: [FFmpeg-devel] [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx

2017-01-20 Thread wm4
On Fri, 20 Jan 2017 10:06:50 +0800 "Huang, Zhengxu" wrote: > From 9ceb2ac6a89246f2e686eb3ad3448fbaff5328f7 Mon Sep 17 00:00:00 2001 > From: Zhengxu > Date: Fri, 13 Jan 2017 10:33:05 +0800 > Subject: [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx > is not released. > > Sig

[FFmpeg-devel] dcaenc: use Huffman codes for Bit Allocation Index

2017-01-20 Thread Даниил Чередник
Hi. My previous patch introduced Huffman for quantized data, this patch allows to use Huffman for bit allocation indexes (abits). This is a less significant improvement but still noticeable in case of limited bitrate. In case of DIN_45403 input sample I got: before: Best PSNR is 44.47 for shift 0

Re: [FFmpeg-devel] [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx

2017-01-20 Thread Chao Liu
Have you ever used valgrind? Please just run the command below: valgrind --leak-check=full --log-file=out.log ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i a.h264 -c:v h264_qsv -b:v 2M -y out.h264 See line 3323 of ffmpeg.c, ret = avcodec_copy_context(ost->st->codec,

[FFmpeg-devel] [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder instead of encoder

2017-01-20 Thread Huang, Zhengxu
From 2149f87637ab941be14828f7ae2c224908784c7d Mon Sep 17 00:00:00 2001 From: Zhengxu Date: Wed, 4 Jan 2017 16:43:43 +0800 Subject: [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder instead of encoder. We consider that encoder is the last stage in the pipeline. Thinking about filters,

Re: [FFmpeg-devel] [PATCH] libavcodec/nvenc.c Reduce initialization time for gpu id > 0

2017-01-20 Thread Timo Rothenpieler
> Yes, this is a simpler logic. Works for me locally. Can you please apply this > patch to ffmpeg master. Thanks. Applied We also discovered a case where this patch is necessary to successfully use multiple GPUs at all. A user asked in #ffmpeg about nvenc getting stuck when one GPU is at full l

Re: [FFmpeg-devel] [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx

2017-01-20 Thread Hendrik Leppkes
On Fri, Jan 20, 2017 at 8:35 PM, Chao Liu wrote: > Have you ever used valgrind? Please just run the command below: > valgrind --leak-check=full --log-file=out.log ffmpeg -hwaccel qsv > -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i a.h264 -c:v h264_qsv -b:v > 2M -y out.h264 > > See line 3323 of

Re: [FFmpeg-devel] [PATCH] lavformat/utils: Fix a memleak that st->codec->hw_frames_ctx

2017-01-20 Thread wm4
On Fri, 20 Jan 2017 17:35:33 +0800 Chao Liu wrote: > Have you ever used valgrind? Please just run the command below: > valgrind --leak-check=full --log-file=out.log ffmpeg -hwaccel qsv > -qsv_device /dev/dri/renderD128 -c:v h264_qsv -i a.h264 -c:v h264_qsv -b:v > 2M -y out.h264 > > See line 332

Re: [FFmpeg-devel] [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder instead of encoder

2017-01-20 Thread wm4
On Fri, 20 Jan 2017 17:41:01 +0800 "Huang, Zhengxu" wrote: > From 2149f87637ab941be14828f7ae2c224908784c7d Mon Sep 17 00:00:00 2001 > From: Zhengxu > Date: Wed, 4 Jan 2017 16:43:43 +0800 > Subject: [PATCH] ffmpeg_qsv.c: Init an hwframes_context for decoder instead of > encoder. > > We consider

Re: [FFmpeg-devel] dcaenc: use Huffman codes for Bit Allocation Index

2017-01-20 Thread Rostislav Pehlivanov
On 20 January 2017 at 08:57, Даниил Чередник wrote: > Hi. > > My previous patch introduced Huffman for quantized data, this patch allows > to use Huffman for bit allocation indexes (abits). This is a less > significant improvement but still noticeable in case of limited bitrate. In > case of DIN_

Re: [FFmpeg-devel] [PATCH] avcodec/atrac3: allow 6 channels (non-joint stereo)

2017-01-20 Thread Paul B Mahol
On 1/19/17, bananaman...@gmail.com wrote: > From: bnnm > > Raises max channels to 6 (for non joint-stereo only), > there is no difference decoding 1 or N discrete channels. > Fixes trac issue #5840 > > Signed-off-by: bnnm > --- > libavcodec/atrac3.c | 17 - > 1 file changed, 8 i

Re: [FFmpeg-devel] [PATCH 2/3] avformat/avienc: add reserve_index_space option

2017-01-20 Thread Tobias Rapp
On 19.01.2017 18:32, Michael Niedermayer wrote: On Wed, Jan 18, 2017 at 10:27:02AM +0100, Tobias Rapp wrote: Allows the user to reserve space for the ODML master index. A sufficient sized master index in the AVI header avoids storing follow-up master indexes within the 'movi' data later. If the

Re: [FFmpeg-devel] [PATCH 2/3] avformat/avienc: add reserve_index_space option

2017-01-20 Thread Tobias Rapp
On 20.01.2017 15:56, Tobias Rapp wrote: On 19.01.2017 18:32, Michael Niedermayer wrote: On Wed, Jan 18, 2017 at 10:27:02AM +0100, Tobias Rapp wrote: Allows the user to reserve space for the ODML master index. A sufficient sized master index in the AVI header avoids storing follow-up master inde

Re: [FFmpeg-devel] [PATCH 2/3] avformat/avienc: add reserve_index_space option

2017-01-20 Thread Michael Niedermayer
On Fri, Jan 20, 2017 at 05:06:59PM +0100, Tobias Rapp wrote: > On 20.01.2017 15:56, Tobias Rapp wrote: > >On 19.01.2017 18:32, Michael Niedermayer wrote: > >>On Wed, Jan 18, 2017 at 10:27:02AM +0100, Tobias Rapp wrote: > >>>Allows the user to reserve space for the ODML master index. A sufficient >

[FFmpeg-devel] [PATCH] avformat: add MIDI Sample Dump Standard demuxer

2017-01-20 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/sdsdec.c | 165 +++ 3 files changed, 167 insertions(+) create mode 100644 libavformat/sdsdec.c diff --git a/libavformat/Makefile b/liba

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: Add output file index and stream index to vstats file.

2017-01-20 Thread Michael Niedermayer
On Thu, Jan 19, 2017 at 02:34:14PM -0800, Sasi Inguva wrote: > Signed-off-by: Sasi Inguva > --- > ffmpeg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ffmpeg.c b/ffmpeg.c > index 977708c069..a566c3fe2a 100644 > --- a/ffmpeg.c > +++ b/ffmpeg.c > @@ -1347,7 +1347,7 @@

Re: [FFmpeg-devel] [PATCH] avcodec: Add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM to most h263 based codecs

2017-01-20 Thread Michael Niedermayer
On Thu, Dec 22, 2016 at 05:50:13PM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavcodec/flvdec.c| 1 + > libavcodec/h263dec.c | 2 ++ > libavcodec/intelh263dec.c | 1 + > libavcodec/mpeg4videodec.c | 1 + > libavcodec/msmpeg4dec.c| 4 >

[FFmpeg-devel] [PATCH] lavf/segment: fix crash when failing to open segment list

2017-01-20 Thread Rodger Combs
This happens because segment_end() returns an error, so seg_write_packet never proceeds to segment_start(), and seg->avf->pb is never re-set, so we crash with a null pb when av_write_trailer flushes the packet queue. This doesn't seem to be clearly recoverable, so I'm just failing more gracefully.

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: Add output file index and stream index to vstats file.

2017-01-20 Thread Sasi Inguva
Couldn't find any version that relates to vstats. There is nothing that says format may change any time , but there is no defined format either. Let me know the version enum I have to update if I need to. On Fri, Jan 20, 2017 at 4:18 PM, Michael Niedermayer wrote: > On Thu, Jan 19, 2017 at 02:34

[FFmpeg-devel] [PATCH] avcodec/alsdec.c: testing MPEG-4 ALS decoder with floating point audio data

2017-01-20 Thread Thomas Turner
If als_07_2ch192k32bF.mp4 isn't already located in fate-suite/lossless-audio/, you can download at: http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_IEC_14496-26_2010_Bitstreams/DVD1/mpeg4audio-conformance/compressedMp4/als_07_2ch192k32bF.mp4 Reference file can be found at: