resize and imlib2 vhook in one command ?
hi, i would like to resize video and overlay with image. when i resize video, e.g. from 624x352 to 320x240, and use imlib2 vhook in one line, i get 320x240 video with small picture in the corner: ffmpeg -i infile.avi -cropright 52 -cropleft 52 -s 320x240 -aspect 1.333 -vhook './imlib2.so -x 0 -y 0 -i image.png' outfile.avi i know that options for imlib2 are -x -y for coordinates, and i would like to know how to use """ Expressions are functions of these variables: N frame number (starting at zero) H frame height W frame width h image height w image width X previous x coordinate of text or image Y previous y coordinate of text or image """ precisely, how do i tell to the image to keep the same size ? do i have to use two commands ? like in first command resize video, and in second use vhook ? thanks Co.De. --
Hi, Co.De. said:
hi,
i would like to resize video and overlay with image. when i resize video, e.g. from 624x352 to 320x240, and use imlib2 vhook in one line, i get 320x240 video with small picture in the corner: ffmpeg -i infile.avi -cropright 52 -cropleft 52 -s 320x240 -aspect 1.333 -vhook './imlib2.so -x 0 -y 0 -i image.png' outfile.avi
i know that options for imlib2 are -x -y for coordinates, and i would like to know how to use """ Expressions are functions of these variables: N frame number (starting at zero) H frame height W frame width h image height w image width X previous x coordinate of text or image Y previous y coordinate of text or image """ precisely, how do i tell to the image to keep the same size ? do i have to use two commands ? like in first command resize video, and in second use vhook ?
Right, either you use two commands or you compile libavfilter (http://wiki.multimedia.cx/index.php?title=Libavfilter) and then you may use one command: ffmpeg -i infile.avi \ -vfilters crop=52:0:-1:-1,scale=320:240 \ -aspect 1.333 \ -vhook './imlib2.so -x 0 -y 0 -i image.png' outfile.avi Regards, V?ctor
On 2007-12-04 15:19, Co.De. wrote:
precisely, how do i tell to the image to keep the same size ? do i have to use two commands ? like in first command resize video, and in second use vhook ?
Hi, did you find a clever solution to this issue? I already know how to add a watermarked logo to my videos, but still don't know how to avoid it being resized. Any help will be appreciated ;) Ivan Agliardi -- Tetragono - Servizi Informatici & Marketing via Guglielmo Marconi, 44 24068 Seriate (BG) - Italia Tel. (+39) 035 294704 Fax. (+39) 035 44831162 Cel: (+39) 331 6272460 P.IVA: IT03507860165 R.E.A. BG384589 Web: http://www.tetragono.com PRIVACY. In ottemperanza al D.L. 196 del 30/6/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario. Qualsiasi uso, riproduzione o divulgazione di questo messaggio e' vietato! Se lo avete ricevuto per errore, avvertite il mittente e distruggetelo. Grazie.
participants (3)
-
code@u-turnmedia.com -
ivan.agliardi@tetragono.com -
wzrlpy@arsystel.com