[FFmpeg-devel] [PATCH] add dumpwave filter

Дмитрий Гуменюк dmitry.gumenyuk at gmail.com
Sun Jan 14 00:52:12 EET 2018


Hi, 
> On 13 Jan 2018, at 01:37, Дмитрий Гуменюк <dmitry.gumenyuk at gmail.com> wrote:
> 
> Hi
> 
>> On 12 Jan 2018, at 13:32, Дмитрий Гуменюк <dmitry.gumenyuk at gmail.com> wrote:
>> 
>>> On 12 Jan 2018, at 13:17, Tobias Rapp <t.rapp at noa-archive.com> wrote:
>>> 
>>> On 12.01.2018 12:16, Дмитрий Гуменюк wrote:
>>>> Hi
>>>>> On 11 Jan 2018, at 09:20, Tobias Rapp <t.rapp at noa-archive.com> wrote:
>>>>> 
>>>>> On 10.01.2018 18:18, Kyle Swanson wrote:
>>>>>> Hi,
>>>>>> For this to be a part of libavfilter the output needs to be more generic
>>>>>> than the just the Soundcloud format. If we want this to be generally useful
>>>>>> it should probably just output an array of floats between 0.0 and 1.0. The
>>>>>> consumer of this data (JS library, or whatever) can use this in whatever
>>>>>> way it wants.
>>>>> 
>>>>> I agree. If the BWF Peak Envelope output which was suggested in the other thread does not match your demands and filter implementation is actually necessary I would prefer if the filter would attach the RMS value(s) as frame metadata instead of directly dumping to file. Frame metadata can then be re-
>>>> RMS values may be counted for several frames or only for a half of a frame
>>>>> used by other filters or dumped into file by using the existing "ametadata" filter.
>>>>> 
>>>>> This would be similar to:
>>>>> 
>>>>> ffmpeg -i input-file -f null -filter:a "asetnsamples=22050,astats=metadata=on,ametadata=print:file=stats-file.dat" /dev/null
>>>> I like this idea, but won’t asetnsamples affect performance by creating fifo queue? And it may require some effort to parse long output
>>> 
>>> I added asetnsamples to define the audio frame size (interval of values from astats). You can reduce the number of lines printed by ametadata by using the "key=lavfi.astats.foo" option.
>> I used asetnsamples as well, and I measured performance while transcoding - it appears to be slight slower
> I think output is now more generic and I got rid of long switch/case, thanks for support 
Here is most recent patch, seems like all comments are addressed, did I miss something?
>>> 
>>> Regards,
>>> Tobias
>>> 
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> <0001-avfilter-add-dumpwave-filter.patch.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FFmpeg-devel-v2-avfilter-add-dumpwave-filter..patch
Type: application/octet-stream
Size: 62336 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180113/2eead0e0/attachment.obj>
-------------- next part --------------







More information about the ffmpeg-devel mailing list