[FFmpeg-devel] [PATCH] lavfi: dump debug graph when merging failed.
Stefano Sabatini
stefasab at gmail.com
Mon Dec 2 18:51:27 CET 2013
On date Saturday 2013-11-30 15:04:18 +0100, Stefano Sabatini encoded:
> On date Thursday 2013-11-28 15:02:43 +0100, Nicolas George encoded:
> > Signed-off-by: Nicolas George <george at nsup.org>
> > ---
> > libavfilter/avfiltergraph.c | 4 +-
> > libavfilter/graphdump.c | 182 ++++++++++++++++++++++++++++++++++++++++++++
> > libavfilter/internal.h | 5 ++
> > 3 files changed, 190 insertions(+), 1 deletion(-)
> >
> >
> > Note: this is somewhat redundant with the avfilter_graph_dump() API, but not
> > so much: must of avfilter_graph_dump()'s code comes from an attempt at
>
> most
>
> > ASCII-art dump, that actually gives quite bad results, while most of this
> > code deals with format negotiation lists.
>
> Can you show a significant use case, or post the output here?.
ffplay test.wav -af volume -loglevel debug
Input #0, wav, from 'test.wav':
Metadata:
encoder : Lavf55.12.102
Duration: 00:01:17.84, bitrate: 1411 kb/s
Stream #0:0, 218, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Parsed_volume_0 @ 0x7f929c0199e0] volume:(1.000000)(0.00dB) precision:float
[ffplay_abuffersink @ 0x7f929c019480] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_volume_0' and the filter 'ffplay_abuffersink'
[Parsed_volume_0 @ 0x7f929c0199e0] auto-inserting filter 'auto-inserted resampler 1' between the filter 'ffplay_abuffer' and the filter 'Parsed_volume_0'
[AVFilterGraph @ 0x7f929c017720] query_formats: 3 queried, 0 merged, 6 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f929c01af20] Cannot select channel layout for the link between filters auto-inserted resampler 0 and ffplay_abuffersink.
[AVFilterGraph @ 0x7f929c017720] 0: abuffer "ffplay_abuffer"
[AVFilterGraph @ 0x7f929c017720] o0:0 ->i4:0 s16 / 44100 Hz / 2 channels
[AVFilterGraph @ 0x7f929c017720] 1: abuffersink "ffplay_abuffersink"
[AVFilterGraph @ 0x7f929c017720] i1:0 <-o3:0 { same as o3:0 } / { 44100 } / { all layouts and counts }
[AVFilterGraph @ 0x7f929c017720] 2: volume "Parsed_volume_0"
[AVFilterGraph @ 0x7f929c017720] i2:0 <-o4:0 { same as o4:0 } / { same as i3:0 } / { all layouts }
[AVFilterGraph @ 0x7f929c017720] o2:0 ->i3:0 { same as o4:0 } / { same as i3:0 } / { same as i2:0 }
[AVFilterGraph @ 0x7f929c017720] 3: aresample "auto-inserted resampler 0"
[AVFilterGraph @ 0x7f929c017720] i3:0 <-o2:0 { same as o4:0 } / { 44100 } / { same as i2:0 }
[AVFilterGraph @ 0x7f929c017720] o3:0 ->i1:0 { s16 } / { same as i1:0 } / { same as i1:0 }
[AVFilterGraph @ 0x7f929c017720] 4: aresample "auto-inserted resampler 1"
[AVFilterGraph @ 0x7f929c017720] i4:0 <-o0:0 s16 / 44100 Hz / 2 channels
[AVFilterGraph @ 0x7f929c017720] o4:0 ->i2:0 { flt | fltp } / { same as i3:0 } / { same as i2:0 }
Failed to open file 'test.wav' or configure filtergraph
[AVIOContext @ 0x7f929c005620] Statistics: 917504 bytes read, 0 seeks
Do you manage to understand what's going on here? The input file has
unspecified channel layout.
--
FFmpeg = Faithless Furious Majestic Peaceful Erratic Geek
More information about the ffmpeg-devel
mailing list