2006
/etc 2006 Timisoara

one day as seen via webcam


how i did it:
first i saved a lot of images then in september, 2006, that were comming in via the webcam.
then i didnt touch them for 4 years, and now (august 2010) it seems to have become time to make them available.

i work on debian, by the way.

so, first i downloaded a software called stopmotion, http://stopmotion.bjoernen.com/
this should do the trick to make a video out of a lot of single pics (jpg in my case).
it didn't.
then i realized that i'd need a video-encoder as well, so i downloaded first mencoder and then ffmpeg. but still, i couldn't get the software to spit out a movie. in one of the preferences i could though read this information:
mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1 -mf type=jpg:fps=3 -o wished-movie.avi mf://folder/subfolder/*.jpg
i could not type or copy that into anywhere inside stopmotion, but it worked on the command line.

so, i made a backup of the pics, and just tried it out; understanding half of the information, like: jpg:fps=3 means 3 jpgs in one second; tried it out with 8, and whoosh....! quite a flippy gang :)
and - juhu! i had an avi-file.
but that is not very useful in internet-terms. so...
i went on browsing the net, and found this command line:
ffmpeg -i wished-movie.avi -acodec libvorbis -ac 1 -b 768k wished-movie.ogg
jupidu!

now, the next pain in the ass, how to embedd that into the website...
upload it, at vimeo, youtube, ...?
well, yes, hm, could be an option

or, html5 -> there is a video-tag meanwhile
so, this is, what you want to write in your website to integrate video, or audio by the way, works the same

me running down the stairs
<!DOCTYPE HTML>
<html>
<body>

<video width="320" height="240" controls="controls">
  <source src="movie.ogg" type="video/ogg" />
  <source src="movie.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>

</body>
</html>


<!DOCTYPE HTML>
<html>

<audio controls="controls">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>

</body>
</html>


found this there:
http://www.w3schools.com/html5/default.asp

so, if you think now, that i am good with video...i am not
i am good in copy-paste :)
was fun to find a way around,
now i just miss putting video and sound together

reni, august 2010