Problem setting the thumbnail size
Hello everybody, I need to create a thumbnail with an height set with the value of 165. When i try to run the command, I get the message "Frame size must be a multiple of 2" and the thumb is not created. I need the thumb to be this size (180*165), how can I do? I am using this syntax: ffmpeg -i input.flv -an -y -s 180x165 -ss 5 -f mjpeg C:\temp_img.jpg -vframes 1 Thanks to anyone who can help me!! ------------------------------------------------------ Leggi GRATIS le tue mail con il telefonino i-mode? di Wind http://click.libero.it/imode
totob at libero.it wrote:
Hello everybody,
I need to create a thumbnail with an height set with the value of 165. When i try to run the command, I get the message "Frame size must be a multiple of 2" and the thumb is not created. I need the thumb to be this size (180*165), how can I do?
I dont think ffmpeg can avoid this limitation. On Linux I would recommend -s 360x330 then use 'convert', part of the ImageMagick package. On windows you could install imagemagick in cygwin.
I am using this syntax:
ffmpeg -i input.flv -an -y -s 180x165 -ss 5 -f mjpeg C:\temp_img.jpg -vframes 1
You should *always* post the complete output messages too.
Thanks to anyone who can help me!!
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
Unfortunately ffmpeg doesn't allow odd sizes for the height/width - but I commented out the ffmpeg.c code that checks for this, and recompiled, and now I can set whatever height/width I like. AB
From: "totob at libero.it" <totob at libero.it> Reply-To: FFmpeg user questions and RTFMs <ffmpeg-user at mplayerhq.hu> To: "ffmpeg-user" <ffmpeg-user at mplayerhq.hu> Subject: [Ffmpeg-user] Problem setting the thumbnail size Date: Tue, 27 Mar 2007 17:20:34 +0200
Hello everybody,
I need to create a thumbnail with an height set with the value of 165. When i try to run the command, I get the message "Frame size must be a multiple of 2" and the thumb is not created. I need the thumb to be this size (180*165), how can I do?
I am using this syntax:
ffmpeg -i input.flv -an -y -s 180x165 -ss 5 -f mjpeg C:\temp_img.jpg -vframes 1
Thanks to anyone who can help me!!
------------------------------------------------------ Leggi GRATIS le tue mail con il telefonino i-mode? di Wind http://click.libero.it/imode
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_________________________________________________________________ i'm making a difference.?Make every IM count for the cause of your choice. Join Now. http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://im....
Asli Binal wrote:
Please dont top-post.
Unfortunately ffmpeg doesn't allow odd sizes for the height/width - but I commented out the ffmpeg.c code that checks for this, and recompiled, and now I can set whatever height/width I like.
If you disabled the test for all codecs, expect weird behaviour when not using mjpeg.
Hello everybody,
I need to create a thumbnail with an height set with the value of 165. When i try to run the command, I get the message "Frame size must be a multiple of 2" and the thumb is not created. I need the thumb to be this size (180*165), how can I do?
I am using this syntax:
ffmpeg -i input.flv -an -y -s 180x165 -ss 5 -f mjpeg C:\temp_img.jpg -vframes 1
Thanks to anyone who can help me!!
-- Michel Bardiaux R&D Director T +32 [0] 2 790 29 41 F +32 [0] 2 790 29 02 E mailto:mbardiaux at mediaxim.be Mediaxim NV/SA Vorstlaan 191 Boulevard du Souverain Brussel 1160 Bruxelles http://www.mediaxim.com/
Michel Bardiaux <mbardiaux <at> mediaxim.be> writes:
Asli Binal wrote:
Please dont top-post.
Unfortunately ffmpeg doesn't allow odd sizes for the height/width - but I commented out the ffmpeg.c code that checks for this, and recompiled, and now I can set whatever height/width I like.
If you disabled the test for all codecs, expect weird behaviour when not using mjpeg.
Hello everybody,
I need to create a thumbnail with an height set with the value of 165. When i try to run the command, I get the message "Frame size must be a multiple of 2" and the thumb is not created. I need the thumb to be this size (180*165), how can I do?
I am using this syntax:
ffmpeg -i input.flv -an -y -s 180x165 -ss 5 -f mjpeg C:\temp_img.jpg -vframes 1
Thanks to anyone who can help me!!
About odd sized dimensions, it seems to me that checking for odd height/width on the command line might not be the best place as each codec might have different capabilities. So forcing the user to always output to even dimensions, when the codec might be capable of handling odd dimensions is a real limitation. Shouldn't the check for valid dimensions be done at the codec level since some codecs allow for odd and even sizes? Thanks, AB
participants (3)
-
abinal@hotmail.com -
mbardiaux@mediaxim.be -
totob@libero.it