Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Resizing Images

  • Resizing Images

    Posted by Brian Yacino on August 11, 2011 at 5:50 pm

    I’m trying to use the command line:
    ffmpeg -i mixedFrame%4d.JPG ../outputmovie$DATETIME.mp4

    But, the .JPGs I have are 5.8MB each, which is way too large for the system to handle. How can I convert the size of the images to a smaller size?

    I tried using ImageMagick by using the “convert -resize” command with a counter:

    counter=1000
    for f in IMG*.JPG; do
    > counter=counter+1
    > echo $counter
    > small${counter:1}.JPG
    > convert -resize 50%
    > done

    a series of “-bash: smallounter+1.JPG: command not found
    convert: option requires an argument `-resize’ @ error/convert.c/ConvertImageCommand/2352.” messages was the terminal’s response.

    Does anyone know why this isn’t working?

    Michael Rampe replied 14 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Rampe

    August 27, 2011 at 12:34 am

    not sure based on the info posted but certainly looks like a problem with your convert command not having an input… Is this part of a shell script?

    Michael

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy