Edit_vnc2swf is an editing tool for vnc2swf outputs.
This program allows you to edit a .swf
(Macromedia Flash) file
generated by vnc2swf recorder. Also this program does
some optimization to reduce the movie size a little bit.
NOTICE: This program assumes a .swf
file generated
by only vnc2swf or this program itself.
The behaviour when other types of .swf
files are given is not defined.
Generally you cannot manipulate other files in this way.
You can splice, crop, concatinate, or attach with an mp3 file to movies. In each case, the program dumps an HTML file to embed the movie. You can preview the reorganized movie by opening that file.
$ edit_vnc2swf.py -o out.swf -f 100-200,350- input.swf > out.html
(save a new movie out.swf
which consists of frames
only 100 to 200, 350 to the end from the original.)
$ edit_vnc2swf.py -o out.swf input1.swf input2.swf > out.html
(save a new movie out.swf
which plays input1.swf
and input2.swf
sequentially)
NOTICE: If both files include mp3 files, its sample rate and the number of channels (stereo/mono) must be the same.
$ edit_vnc2swf.py -o out.swf -C 100x100+10+10 input.swf > out.html
(crop the speficied area of the original movie.)
$ edit_vnc2swf.py -o out.swf -a voice.mp3 input.swf > out.html
(save a new movie out.swf
attached with mp3 file voice.mp3
.)
$ edit_vnc2swf.py -o out.swf -a voice.mp3 -S 10000 input.swf > out.html
(save a new movie out.swf
attached with mp3 file voice.mp3
,
with the first 10,000 samples are skipped.)
NOTICE: Without specifying anything, the original mp3 file
is copied verbatim (if any). If you want to erase the mp3 file,
specify an empty file (or /dev/null
) when attaching mp3.
$ edit_vnc2swf.py -o voice.mp3 input.swf
(save the main sound stream of the movie as voice.mp3
)
$ edit_vnc2swf.py -o frame.png -f 0,1,2 input.swf
(save the screenshot of frame 0, 1 and 2 into files
frame-000.png
, frame-001.png
and frame-002.png
, respectively.)
There is an additional tool called edit_mp3.py
,
which allows you to extract a certain part of an mp3 audio file
as follows:
$ ./edit_mp3.py '0-100,1000-2000' a.mp3 > b.mp3
Or, to concatinate them:
NOTICE: The sample rate and the number of channels (stereo/mono) in two files must be the same.$ ./edit_mp3.py a.mp3 b.mp3 > c.mp3
Last Modified: Tue Jan 25 23:18:15 EST 2005 (01/26, 13:18 JST)
Yusuke Shinyama