Differences between revisions 2 and 3
Revision 2 as of 2010-11-11 13:24:03
Size: 478
Editor: mar
Comment:
Revision 3 as of 2010-11-11 13:27:25
Size: 529
Editor: mar
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
Line 5: Line 4:
{{{
#! /bin/bash
{{{#! /bin/bash
Line 10: Line 8:
 cp 1.jpg $i.jpg         cp 1.jpg $i.jpg
Line 12: Line 10:
mencoder "mf://*.jpg" -mf fps=1 -o test.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800  mencoder "mf://*.jpg" -mf fps=1 -o test.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800
Line 15: Line 13:
[[attachment:test.mov]]

[[attachment:1.jpg]]

Wowza picture video script

This script will generate a movie for wowza based on the picture "1.jpg" located in the same folder as the script. The script takes one argument describing the desired length of the video in seconds. The output video will be called test.mov.

for i in `seq 2 $1`;
do
        cp 1.jpg $i.jpg
done
mencoder "mf://*.jpg" -mf fps=1 -o test.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800
ffmpeg -i test.avi test.mov

test.mov

1.jpg

Wowza/PictureVideoScript (last edited 2010-11-11 13:27:25 by mar)