<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Make_a_movie_from_JPEG_images_using_gstreamer</id>
	<title>Make a movie from JPEG images using gstreamer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Make_a_movie_from_JPEG_images_using_gstreamer"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Make_a_movie_from_JPEG_images_using_gstreamer&amp;action=history"/>
	<updated>2026-08-03T17:51:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Make_a_movie_from_JPEG_images_using_gstreamer&amp;diff=2464&amp;oldid=prev</id>
		<title>Luxigo at 14:23, 15 June 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Make_a_movie_from_JPEG_images_using_gstreamer&amp;diff=2464&amp;oldid=prev"/>
		<updated>2007-06-15T14:23:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Capture a frame every SLEEP_TIME seconds from URL and rename it PREFIX-nnnnnn.jpg:&lt;br /&gt;
&lt;br /&gt;
PREFIX=img&lt;br /&gt;
SLEEP_TIME=1&lt;br /&gt;
URL=&amp;quot;http://192.168.0.90/admin-bin/ccam.cgi?opt=vhcxy-&amp;quot;&lt;br /&gt;
&lt;br /&gt;
num=0&lt;br /&gt;
&lt;br /&gt;
while true ; do&lt;br /&gt;
&lt;br /&gt;
        img=$PREFIX-`printf %06d $num`.jpg&lt;br /&gt;
&lt;br /&gt;
        if [ -s $img ] ; then&lt;br /&gt;
                echo exists: $img&lt;br /&gt;
        else&lt;br /&gt;
                wget -q &amp;quot;$URL&amp;quot; -O $img &amp;amp;&amp;amp; sleep $SLEEP_TIME &amp;amp;&amp;amp; ln -sf $img $PREFIX.jpg&lt;br /&gt;
                echo $img&lt;br /&gt;
        fi&lt;br /&gt;
&lt;br /&gt;
        num=`expr $num + 1`&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
To watch the frames while capturing them without disturbing the camera,&lt;br /&gt;
put this html page in a file located in the same folder,&lt;br /&gt;
replace &amp;#039;content=&amp;quot;1&amp;quot;&amp;#039; with the number of seconds you want between updates,&lt;br /&gt;
and open it with your browser:&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;meta http-equiv=&amp;quot;refresh&amp;quot; content=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;img src=img.jpg&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Create an ogg/theora movie using the JPEG files generated with the first script on this page:&lt;br /&gt;
&lt;br /&gt;
PREFIX=img&lt;br /&gt;
FRAMERATE=30&lt;br /&gt;
WIDTH=768&lt;br /&gt;
HEIGHT=576&lt;br /&gt;
QUALITY=63&lt;br /&gt;
OUTFILE=out.ogg&lt;br /&gt;
&lt;br /&gt;
if [ -s &amp;quot;$OUTFILE&amp;quot; ] ; then&lt;br /&gt;
        echo file exists: $OUTFILE 1&amp;gt;&amp;amp;2&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
time gst-launch-0.10 \&lt;br /&gt;
        multifilesrc \&lt;br /&gt;
                location=&amp;quot;$PREFIX-%06d.jpg&amp;quot; ! image/jpeg,framerate=$FRAMERATE/1 \&lt;br /&gt;
        ! decodebin \&lt;br /&gt;
        ! videoscale \&lt;br /&gt;
                ! video/x-raw-yuv,width=$WIDTH,height=$HEIGHT \&lt;br /&gt;
        ! progressreport \&lt;br /&gt;
                name=progress \&lt;br /&gt;
        ! theoraenc \&lt;br /&gt;
                quality=$QUALITY \&lt;br /&gt;
        ! oggmux \&lt;br /&gt;
        ! filesink \&lt;br /&gt;
                location=&amp;quot;$OUTFILE&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Luxigo</name></author>
	</entry>
</feed>