Differences between revisions 1 and 2
Revision 1 as of 2010-11-11 13:23:13
Size: 481
Editor: mar
Comment:
Revision 2 as of 2010-11-11 13:24:03
Size: 478
Editor: mar
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Wowza picture video script =  == Wowza picture video script ==
Line 5: Line 5:
{{{
#! /bin/bash
Line 6: Line 8:
#! /bin/bash
{{{
Line 12: Line 12:
Line 14: Line 13:

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

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