Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-11-11 13:23:13
Size: 481
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 1: Line 1:
= Wowza picture video script =   == Wowza picture video script ==
Line 5: Line 4:
{{{#! /bin/bash
Line 6: Line 6:
#! /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 17: 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)