[FFmpeg-user] Adding Borders

Indian Maiden theindianmaiden at gmail.com
Thu Jan 31 13:39:27 CET 2013


On Wed, Jan 30, 2013 at 6:30 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Indian Maiden <theindianmaiden <at> gmail.com> writes:
>
> > This command runs with out errors but does not pad
> > the tiff to 1920x1080
> >
> > ffmpeg -y -i ./1080bars.mov -s 1728x864
> > -vf 'pad=1920:1080:0:0:gray' -ss 5.00
> > -vcodec tiff ./test1/file%4d.tiff
>
> Sorry, Lou is of course right, the way you
> combine "-s" with "-vf pad" is ambiguous,
> merge the scaling into your filter command
> to allow the padding to work:
> ffmpeg -i input -vf scale=1728x864,pad=1920:1080:0:0:gray out.tif
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



Thanks for your help. That worked for scaling the image but I cant figure
out how to put into my existing  filter chain. Any ideas?

ffmpeg -i ./1080bars.mov -vf "scale=1728x864,pad=1920:1080:0:0:gray
movie='./thumbnail.jpg' [watermark]; [in][watermark]
overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3[water];[water]
drawtext=fontsize=50:fontcolor=Yellow:fontfile=./font.ttf:timecode='00\:00\:00\:00':
r=23.98:x=(w)/2:y=(h)-50,drawtext=fontsize=50:fontcolor=Yellow:fontfile=./font.ttf:text='Frame
\:\%{n}':x=(w)/1.2:y=(h)-50[out]" ./test1/test%06d.tiff


More information about the ffmpeg-user mailing list