[FFmpeg-devel] [PATCH] Print some error in case of avfilter_graph_config_formats() failure

Stefano Sabatini stefano.sabatini-lala
Sun Jan 10 15:26:37 CET 2010


On date Sunday 2010-01-10 03:25:36 +0100, Michael Niedermayer encoded:
> On Sun, Jan 10, 2010 at 02:08:24AM +0100, Stefano Sabatini wrote:
> > Hi,
> > 
> > currently:
> > $ ffplay -vfilters "format=pal8" in.avi
> > [...]
> > [format @ 0x9ec1f70]auto-inserting filter 'scale'
> > 
> > with all the patches applied:
> > $ ffplay -vfilters "format=pal8" in.avi
> > [...]
> > [format @ 0x9ec1f70]auto-inserting filter 'auto-inserted scaler 0'
> > Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scaler 0'
> > 
> > Regards.
> > -- 
> > FFmpeg = Furious & Fostering Mortal Programmable Extreme Gymnast
> 
> all ok

Applied 1 and 3.

As for the second, after some thought I saw that it wasn't correct,
revised patch attached for increasing verbosity:

stefano at geppetto ~/s/l/ffmpeg> ffplay -vfilters "format=pal8" in.avi
[...]
[format @ 0xa4ddf70]auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'Parsed filter 0'
Impossible to convert between the formats supported by the filter 'auto-inserted scaler 0' and the filter 'Parsed filter 0'

stefano at geppetto ~/s/l/ffmpeg> ffplay -vfilters "format=rgb4" in.avi
[...]
[format @ 0x8f73f70]auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'Parsed filter 0'
[ffplay_output @ 0x8fabb90]auto-inserting filter 'auto-inserted scaler 1' between the filter 'Parsed filter 0' and the filter 'out'
Impossible to convert between the formats supported by the filter 'Parsed filter 0' and the filter 'auto-inserted scaler 1'

This is more correct and more informative.

Regards.
-- 
FFmpeg = Funny and Free Minimal Ponderous EntanGlement
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print-errmsg-if-graph-config-formats-fail.patch
Type: text/x-diff
Size: 1486 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100110/5e5ca3c0/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tell-which-filters-are-added.patch
Type: text/x-diff
Size: 820 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100110/5e5ca3c0/attachment-0001.patch>



More information about the ffmpeg-devel mailing list