[FFmpeg-user] overlays, setdar error
Mark Robinson
mark.robinson92 at gmail.com
Wed Mar 30 19:06:59 CEST 2011
Alastair Mason <alabandit <at> gmail.com> writes:
>
> Hi
>
> I have been using overlays off the soc branch but decided it was time to
> update. downloaded the latest code and got the following error:
> Not enough inputs specified for the "setdar" filter.
>
> not finding any reference to this error, been googleing since yesterday? Any
> idea where i'm going wrong?
>
> ffmpeg -i 'input.mov' -sameq -vf "movie=overlay.png [logo]; [in][logo]
> overlay=10:main_h-overlay_h-10 [out]" 'test.mov'
> FFmpeg version git-N-28679-g25d8099, Copyright (c) 2000-2011 the FFmpeg
> developers
> built on Mar 30 2011 11:00:07 with gcc 4.0.1 (Apple Inc. build 5493)
> configuration: --enable-gpl --enable-version3 --enable-nonfree
> --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libtheora
> --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
> --enable-x11grab --enable-avfilter --enable-nonfree --enable-gpl
> libavutil 50. 40. 0 / 50. 40. 0
> libavcodec 52.116. 0 / 52.116. 0
> libavformat 52.103. 0 / 52.103. 0
> libavdevice 52. 3. 0 / 52. 3. 0
> libavfilter 1. 76. 0 / 1. 76. 0
> libswscale 0. 13. 0 / 0. 13. 0
> libpostproc 51. 2. 0 / 51. 2. 0
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/Volumes/Doxa_Promise_Raid/LSAP_CMS_Files/Video_HQ/vha_dox_0206a.mov':
> Metadata:
> major_brand : qt
> minor_version : 512
> compatible_brands: qt
> creation_time : 1970-01-01 00:00:00
> encoder : Lavf52.73.0
> Duration: 00:00:27.28, start: 0.000000, bitrate: 798 kb/s
> Stream #0.0(eng): Video: h264 (High), yuv420p, 384x288 [PAR 253:247 DAR
> 1012:741], 729 kb/s, PAR 131:128 DAR 131:96, 25 fps, 25 tbr, 25 tbn, 50 tbc
> Metadata:
> creation_time : 1970-01-01 00:00:00
> Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 63 kb/s
> Metadata:
> creation_time : 1970-01-01 00:00:00
> File 'test.mov' already exists. Overwrite ? [y/N] y
> [buffer @ 0x1201930] w:384 h:288 pixfmt:yuv420p
> [movie @ 0x1201e10] seek_point:0 format_name:(null) file_name:overlay.png
> stream_index:0
> [setdar @ 0x1201d20] a:86/63
> Not enough inputs specified for the "setdar" filter.
> Error opening filters!
>
The offending line is in ffmpeg.c I think, at least that sneakily adds setdar on
the end of your filter chain. At a guess setdar API has changed since this was
done?
#if CONFIG_AVFILTER
if(frame_aspect_ratio > 0){
i = vfilters ? strlen(vfilters) : 0;
vfilters = av_realloc(vfilters, i+100);
snprintf(vfilters+i, i+100, "%csetdar=%f\n", i?',':' ',
frame_aspect_ratio);
frame_aspect_ratio=0;
}
ost->avfilter= vfilters;
vfilters= NULL;
#endif
More information about the ffmpeg-user
mailing list