[FFmpeg-devel] 24x7 recording of M4A audio

2019-10-21 Thread Jörg Beckmann
Hi all, I've written an application to record audio streams continuously for broadcasters using the FFmpeg libraries. For most stream types it's working without any problems. One major exception are M4A encoded audio streams, received from a professional DAB+ receiver. Because of the tables inc

Re: [FFmpeg-devel] 24x7 recording of M4A audio

2019-10-21 Thread Jörg Beckmann
he memory usage increases up to about 8.8 MB (on Windows 10) until the stream ends. Jörg > 在 2019年10月21日,下午3:50,Jörg Beckmann 写道: > > Hi all, > > I've written an application to record audio streams continuously for > broadcasters using the FFmpeg libraries. For most st

[FFmpeg-devel] [PATCH] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
Hi, this patch invents a new option "discard_fragments" for the MP4/Quicktime/MOV decoder. If the option is not set, nothing changes at all. If it is set, old fragments are discarded as far as possible on each call to switch_root. For pure audio streams, the memory usage is now constant. For vi

Re: [FFmpeg-devel] [SCISYS Possible Spam] Re: [PATCH] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
15 An: FFmpeg development discussions and patches Betreff: [SCISYS Possible Spam] Re: [FFmpeg-devel] [PATCH] Patch for memory optimization with QuickTime/MP4 Am Mo., 2. Dez. 2019 um 10:05 Uhr schrieb Jörg Beckmann : > > Hi, > > this patch invents a new option "discard_fragments&

Re: [FFmpeg-devel] [PATCH] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
SCISYS Possible Spam] Re: [FFmpeg-devel] [SCISYS Possible Spam] Re: [PATCH] Patch for memory optimization with QuickTime/MP4 Am Mo., 2. Dez. 2019 um 11:06 Uhr schrieb Jörg Beckmann : > The for-loop and the warning are copied from somewhere else in the decoder. > I'm also quite sure th

[FFmpeg-devel] [PATCH v2] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
After discussion with Carl Eugen, I replaced the "if" in line 7737 with an assert(). There is still the question, whether mov_switch_root() might be called when reading from a file. If someone is really really sure that it cannot happen at all, the check in mov_read_seek() could be removed. Jö

Re: [FFmpeg-devel] [PATCH v2] Patch for memory optimization with QuickTime/MP4

2019-12-02 Thread Jörg Beckmann
4 > > On Mon, Dec 02, 2019 at 02:12:14PM +, Jörg Beckmann wrote: > > After discussion with Carl Eugen, I replaced the "if" in line 7737 with an > > assert(). > > > > There is still the question, whether mov_switch_root() might be called when > read

[FFmpeg-devel] [PATCH v3] Patch for memory optimization with QuickTime/MP4

2019-12-03 Thread Jörg Beckmann
Hi, I recreated the patch from a clean source tree and applied it to a clean source tree: $ patch -p1 -i ../ffmpeg.patch patching file libavformat/isom.h patching file libavformat/mov.c Hope it works now. Cheers, Jörg --- libavformat/isom.h | 1 + libavformat/mov.c | 50

[FFmpeg-devel] [PATCH v4] Patch for memory optimization with QuickTime/MP4

2019-12-09 Thread Jörg Beckmann
copy -c:v copy -c:s copy -f ismv -movflags frag_keyframe -movflags faststart tcp://localhost:1234?listen" and "ffmpeg -i tcp://localhost:1234 -c:a copy -c:v copy -c:s copy -y ". Signed-off-by: Jörg Beckmann --- libavformat/isom.h | 1 + libavformat/mov.c | 50 ++

Re: [FFmpeg-devel] [SCISYS Possible Spam] Re: [PATCH v4] Patch for memory optimization with QuickTime/MP4

2019-12-09 Thread Jörg Beckmann
zation with QuickTime/MP4 > > On Mon, Dec 09, 2019 at 10:22:15 +, Jörg Beckmann wrote: > > Just some formal stuff: > > > Subject: Patch for memory optimization with QuickTime/MP4 > > This subject should be created by the actual patch, because, they way you > sub

[FFmpeg-devel] [PATCH v5] avformat/mov: Memory optimization with QuickTime/MP4

2019-12-09 Thread Jörg Beckmann
quot; and "ffmpeg -i tcp://localhost:1234 -c:a copy -c:v copy -c:s copy -y ". Signed-off-by: Jörg Beckmann --- libavformat/isom.h | 1 + libavformat/mov.c | 49 - 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/libavforma

Re: [FFmpeg-devel] [PATCH v5] avformat/mov: Memory optimization with QuickTime/MP4

2019-12-15 Thread Jörg Beckmann
Is there still something wrong with this patch? Cheers, Jörg > -Ursprüngliche Nachricht- > Von: ffmpeg-devel Im Auftrag von Jörg > Beckmann > Gesendet: Montag, 9. Dezember 2019 16:05 > An: ffmpeg-devel@ffmpeg.org > Betreff: [FFmpeg-devel] [PATCH v5] avformat/mov: M

Re: [FFmpeg-devel] [SCISYS Possible Spam] Re: [PATCH v5] avformat/mov: Memory optimization with QuickTime/MP4

2019-12-16 Thread Jörg Beckmann
ory optimization with QuickTime/MP4 > > Am Mo., 9. Dez. 2019 um 16:05 Uhr schrieb Jörg Beckmann > : > > > > Invents a new option "discard_fragments" for the MP4/Quicktime/MOV decoder. > > > > If the option is not set, nothing changes at all. If it is set, ol

Re: [FFmpeg-devel] [PATCH v5] avformat/mov: Memory optimization with QuickTime/MP4

2020-01-06 Thread Jörg Beckmann
Hi, is there something I can do to get this patch applied? Cheers, Jörg > -Ursprüngliche Nachricht- > Von: ffmpeg-devel Im Auftrag von Jörg > Beckmann > Gesendet: Montag, 9. Dezember 2019 16:05 > An: ffmpeg-devel@ffmpeg.org > Betreff: [FFmpeg-devel] [PATCH v5] av

Re: [FFmpeg-devel] [SCISYS Possible Spam] Re: [SCISYS Possible Spam] Re: [PATCH v5] avformat/mov: Memory optimization with QuickTime/MP4

2020-01-06 Thread Jörg Beckmann
avformat/mov: Memory optimization with QuickTime/MP4 > > Am Mo., 16. Dez. 2019 um 12:13 Uhr schrieb Jörg Beckmann > : > > > > > > > -Ursprüngliche Nachricht- > > > Von: ffmpeg-devel Im Auftrag von > > > Carl Eugen Hoyos > > > Gesendet

Re: [FFmpeg-devel] Patch "configure: Check for the SetDllDirectory and GetModuleHandle functions" by Martin Storsjö

2020-01-08 Thread Jörg Beckmann
GetModuleHandle functions" by Martin Storsjö > > On Wed, 8 Jan 2020, Jörg Beckmann wrote: > > > Hi, > > > > with this patch, FFmpeg does not compile for me on Cygwin anymore: > > > > --- > > fftools/cmdutils.c:

[FFmpeg-devel] [PATCH v6] avformat/mov: Memory optimization with QuickTime/MP4

2020-01-08 Thread Jörg Beckmann
use for several weeks. For video streams, it is tested with some examples, but is more or less experimental. Therefore "auto" turns it on for pure audio streams only. Signed-off-by: Jörg Beckmann mailto:joerg.beckm...@scisys.com --- libavformat/isom.h | 1 + libavformat/mov.c | 60

Re: [FFmpeg-devel] [PATCH v6] avformat/mov: Memory optimization with QuickTime/MP4

2020-01-08 Thread Jörg Beckmann
zation with QuickTime/MP4 > > On Wed, Jan 08, 2020 at 13:26:35 +, Jörg Beckmann wrote: > > Invents a new option "discard_fragments" for the MP4/Quicktime/MOV decoder. > > Strictly speaking, it's a demuxer and not a decoder. ;-) > > > If this option is

Re: [FFmpeg-devel] [PATCH v6] avformat/mov: Memory optimization with QuickTime/MP4

2020-01-15 Thread Jörg Beckmann
Hi, is there anything I can do to get this patch applied? Cheers, Jörg > -Ursprüngliche Nachricht- > Von: ffmpeg-devel Im Auftrag von Jörg > Beckmann > Gesendet: Mittwoch, 8. Januar 2020 15:49 > An: FFmpeg development discussions and patches > Betreff: Re: [FFmpe

Re: [FFmpeg-devel] [SCISYS Possible Spam] Re: [PATCH v6] avformat/mov: Memory optimization with QuickTime/MP4

2020-01-17 Thread Jörg Beckmann
ory optimization with QuickTime/MP4 > > On Wed, Jan 08, 2020 at 13:26:35 +, Jörg Beckmann wrote: > > Invents a new option "discard_fragments" for the MP4/Quicktime/MOV decoder. > > Strictly speaking, it's a demuxer and not a decoder. ;-) > > > If th