Le 22.12 (Mercredi) à 18:06, tu as écrit :
> $ ./xrectsel
> 231x138+347+171
Au passage, ffmpeg avec un -s `./xrectsel` dit (souvent, 3/4 des cas
disons) qu'il n'est pas content:
> «Frame size must be a multiple of 2»
Zut alors. Et donc, dans le code source de xrectsel.c, quand on lit
> if (done < 2) {
> printf("%ix%i+%i+%i\n", width, height, x, y);
on peut changer en:
> if (done < 2) {
> if (width%2!=0) width = width+1;
> if (height%2!=0) height = height+1;
> printf("%ix%i+%i+%i\n", width, height, x, y);
avant de recomiler.
Et là, on a toujours un multiple de 2. Attention, il y a un choix fait
en dur, celui de faire un rectangle éventuellement un cran plus grand
dans une/deux direction(s).
Bien cordialement,
--
Olivier K
_________________________________
Linux mailing list
[email protected]
http://lists.parinux.org/mailman/listinfo/linux