[FFmpeg-trac] #375(avfilter:new): earwax audio filter generates wrong pts and af_sox filter can not be applied.
FFmpeg
trac at avcodec.org
Mon Aug 1 05:02:34 CEST 2011
#375: earwax audio filter generates wrong pts and af_sox filter can not be
applied.
------------------------+-----------------------
Reporter: chinshou | Owner:
Type: defect | Status: new
Priority: normal | Component: avfilter
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 0 |
------------------------+-----------------------
Comment (by chinshou):
Besides above problems,
in ffmpeg.c configure_audio_filters function should change inputs context
from ost->input_audio_filter to last_filter like following.
static int configure_audio_filters(InputStream *ist, OutputStream *ost)
{
...
if (afilters) {
AVFilterInOut *outputs = av_malloc(sizeof(AVFilterInOut));
AVFilterInOut *inputs = av_malloc(sizeof(AVFilterInOut));
*inputs = (AVFilterInOut){ av_strdup("out"),
ost->output_audio_filter, 0, NULL };
- *outputs = (AVFilterInOut){ av_strdup("in" ),
ost->input_audio_filter, 0, NULL };
+ *outputs = (AVFilterInOut){ av_strdup("in" ), last_filter, 0,
NULL };
if ((ret = avfilter_graph_parse(ost->agraph, afilters, &inputs,
&outputs, NULL)) < 0)
return ret;
av_freep(&afilters);
} else {
...
}
regards
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/375#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list