I am trying to use ffmpeg to create a video file from a series of still images.
the files are named image10000,jpg through 10150.jpg.
I type the command
What are you expecting to happen with that %d? ‘bash’ is going to need
to interpret that, and apparently it does not like it. If nothing else
put an asterisk ‘*’ in its place to see if that at least gives a valid
list of files and if then ffmpeg can handle them.
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
I put the widlcard ‘*’ in its place and get a output file but it doesn’t contain any desired images, it is only 20kb in size and plays as a black image.
I would expect the video to be at least a meg and a half in size.
the instructions come straight from the ffmpeg site.
I don’t remember if I have used this technique before… but there is a history of me trying it in my .bash_history FFmpeg FAQ
First, rename your pictures to follow a numerical sequence. For example, img1.jpg, img2.jpg, img3.jpg,… Then you may run:
ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg
I am puzzled.
…
now that I am posting this I think I know what the problem is…
the files do not start at 00001.
let me rename them…
On 01/16/2012 06:46 AM, ed v wrote:
>
> yes that was the problem the files did not start at 1 or 00001.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
On 01/16/2012 04:16 AM, ed v wrote:
>
> I am trying to use ffmpeg to create a video file from a series of still
> images.
> the files are named image10000,jpg through 10150.jpg.
> I type the command
>
> Code:
> --------------------
>
> ffmpeg -i image%d -sameq test.mpg
>
> --------------------
>
> and ffmpeg reports
>
> Code:
> --------------------
>
> image%d.jpg: No such file or directory
>
> --------------------
>
> any help appreciated.
A few years ago I captured a .jpg image from the Mendenhall Glacier
website with wget every 5 minutes (during daylight hours). I saved them
in month/day directories, then ran the following scripts to concatenate
them into an .mpg file.
The first script created a .mpg file for each day. The 2nd script
combined each day’s mpg into a single file.
Modify to suit your needs.
HTH…
…Kevin
make_movies.sh
#!/bin/bash
A Bash script to step through the webcam directory
and convert the series of .jpg images into an mpeg sequence.
for DAYDIR in *
do
if -d $DAYDIR ] ; then
cd $DAYDIR
pwd
if -f $MONTHDIR-$DAYDIR.mpg ] ; then
rm $MONTHDIR-$DAYDIR.mpg
fi
convert *.jpg m2v:$MONTHDIR-$DAYDIR.mpg
cd …
fi
done
cd …
fi
done
exit
cat_mpg.sh
#!/bin/bash
A Bash script to step through the webcam directory
and convert the series of .jpg images into an mpeg sequence.