summaryrefslogtreecommitdiff
path: root/libavfilter/f_metadata.c
Commit message (Collapse)AuthorAge
* avfilter/f_metadata: avoid trailing whitespace in filter outputTobias Rapp2017-09-27
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter: do not use AVFrame accessorMuhammad Faiz2017-04-23
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avfilter/formats: allow unknown channel layouts by defaultMarton Balint2016-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the default in the libav fork is to only allow known layouts, making unknown layouts allowed by default here can be a security risk for filters directly merged from libav. However, usually it is simple to detect such cases, use of av_get_channel_layout_nb_channels is a good indicator, so I suggest we change this regardless. See http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/203204.html. This patch indirectly adds unknown channel layout support for filters where query_formats is not specified: abench afifo ainterleave anullsink apad aperms arealtime aselect asendcmd asetnsamples asetpts asettb ashowinfo azmq It introduces a query_formats callback for the asyncts filter, which only supports known channel layouts since it is using libavresample. And it removes .query_formats callback from filters where it was only there to support unknown layouts, as this is now the default: aloop ametadata anull asidedata asplit atrim Acked-by: Nicolas George <george@nsup.org> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavfi: split frame_count between input and output.Nicolas George2016-11-13
| | | | | | | | | | | | AVFilterLink.frame_count is supposed to count the number of frames that were passed on the link, but with min_samples, that number is not always the same for the source and destination filters. With the addition of a FIFO on the link, the difference will become more significant. Split the variable in two: frame_count_in counts the number of frames that entered the link, frame_count_out counts the number of frames that were sent to the destination filter.
* lavfi/metadata: fix metadata deletion if comparison returns falseMarton Balint2016-10-11
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavfi/metadata: allow deleting all metadataMarton Balint2016-10-01
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* lavfi/metadata: fix setting metadata valuesMarton Balint2016-10-01
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* Changed metadata print option to accept general urlsSami Hult2016-07-10
| | | | | | | | | | | | | | | | | | This is an - once again - updated patch, that uses avio_write instead of avio_puts to stream clean text output without null characters. Works now for me as intended. Changes metadata filter to accept general urls as file argument without breaking former behaviour. As a byproduct, it also allows for writing to file "-" if specified as "file:-". Example: ffmpeg -i test.wav -filter_complex "silencedetect=n=-40dB:d=0.1,ametadata=mode=print:file='pipe\:4'" -f null Signed-off-by: Sami Hult <sami.hult@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/f_metadata: update print output header line formatTobias Rapp2016-05-10
| | | | | | | | | | Update print mode output header line format to be more consistent with other log output of FFmpeg. The printf-modifiers have been inspired by the showinfo filter. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/f_metadata: add pts_time to print outputTobias Rapp2016-05-09
| | | | | | | | | This allows e.g. to correlate signalstats metadata to time position without having to find out the filter chain timebase first. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/f_metadata: remove unused headersPaul B Mahol2016-02-14
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/f_metadata: rename "string" into "same_str"Tobias Rapp2016-02-11
| | | | | | | Rename function option value "string" into "same_str". Remove obsolete "length" option. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: whitespace clean-upTobias Rapp2016-02-11
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: add starts_with string functionTobias Rapp2016-02-11
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: add support for file outputTobias Rapp2016-02-11
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: avoid float rounding problemsTobias Rapp2016-02-11
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: fix few logic errorsPaul B Mahol2016-02-10
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add metadata filtersPaul B Mahol2016-02-10
Signed-off-by: Paul B Mahol <onemda@gmail.com>