How to convert a swf video into the avi format
Recently I watched this video.
http://nat.org/demos/gtksharp.html
The problem was I couldn't move the movie forward or backward...
Very annoying.
So I had to convert the swf into a avi/flv video.
I downloaded the video
Code:
wget http://nat.org/demos/gtksharp.swf
Searched for edit.py in the package pyvnc2swf
Code:
apt-get install pyvnc2swf
apt-file search edit.py
pyvnc2swf: /usr/share/pyvnc2swf/edit.py
With which I could easily convert the .swf file into a .flv file
Code:
/usr/share/pyvnc2swf/edit.py -o output.flv gtksharp.swf
From that point on, one can use ffmpeg to convert the flv movie into any popular video format, e.g. avi
Code:
ffmpeg -i output.flv output.avi
Re: How to convert a swf video into the avi format
Re: How to convert a swf video into the avi format
When I try to use this and run the call /usr/share/pyvnc2swf/edit.py -o RandomB.flv RandomB.swf
I get this:
Using pygame 1.9.1release
Input movie: version=8, size=430x450, framerate=10fps, frames=633, duration=63.3s.
Output movie size: 430x450
Scanning source swf file: RandomB.swf...
Traceback (most recent call last):
File "/usr/share/pyvnc2swf/edit.py", line 248, in <module>
if __name__ == "__main__": sys.exit(main(sys.argv))
File "/usr/share/pyvnc2swf/edit.py", line 243, in main
debug=debug)
File "/usr/share/pyvnc2swf/edit.py", line 77, in reorganize
movie.parse_vnc2swf(fname, True, debug=debug)
File "/usr/share/pyvnc2swf/movie.py", line 169, in parse_vnc2swf
parser.open(fname)
File "/usr/share/pyvnc2swf/swf.py", line 165, in open
getattr(self, name)(tag, length)
File "/usr/share/pyvnc2swf/movie.py", line 413, in scan_tag19
self.movie.info.reg_mp3blocks(self.fp, length-4, nsamples, seeksamples)
File "/usr/share/pyvnc2swf/movie.py", line 124, in reg_mp3blocks
MP3Reader(self.mp3).read_mp3file(fp, length, nsamples, seeksamples)
File "/usr/share/pyvnc2swf/mp3.py", line 232, in read_mp3file
assert totalsamples == totalsamples0
AssertionError
What should I do to fix this problem?
Re: How to convert a swf video into the avi format
Quote:
Originally Posted by
olemathgeek
When I try to use this and run the call /usr/share/pyvnc2swf/edit.py -o RandomB.flv RandomB.swf
I get this:
Using pygame 1.9.1release
Input movie: version=8, size=430x450, framerate=10fps, frames=633, duration=63.3s.
Output movie size: 430x450
Scanning source swf file: RandomB.swf...
Traceback (most recent call last):
File "/usr/share/pyvnc2swf/edit.py", line 248, in <module>
if __name__ == "__main__": sys.exit(main(sys.argv))
File "/usr/share/pyvnc2swf/edit.py", line 243, in main
debug=debug)
File "/usr/share/pyvnc2swf/edit.py", line 77, in reorganize
movie.parse_vnc2swf(fname, True, debug=debug)
File "/usr/share/pyvnc2swf/movie.py", line 169, in parse_vnc2swf
parser.open(fname)
File "/usr/share/pyvnc2swf/swf.py", line 165, in open
getattr(self, name)(tag, length)
File "/usr/share/pyvnc2swf/movie.py", line 413, in scan_tag19
self.movie.info.reg_mp3blocks(self.fp, length-4, nsamples, seeksamples)
File "/usr/share/pyvnc2swf/movie.py", line 124, in reg_mp3blocks
MP3Reader(self.mp3).read_mp3file(fp, length, nsamples, seeksamples)
File "/usr/share/pyvnc2swf/mp3.py", line 232, in read_mp3file
assert totalsamples == totalsamples0
AssertionError
What should I do to fix this problem?
I'd say file a bug-report for pyvnc2swf.
Re: How to convert a swf video into the avi format
Hi,
I am trying to convert some swf files to flv in order to be able to edit them using avidemux,since i can open flv files but not swf.
the problem is that the output is a black screen.
do you know what might be the problem?
Re: How to convert a swf video into the avi format
How to convert a flv video into the avi format
How to convert flv to avi ?? How can I joint avi videos?? Is there any software to download streaming videos ilke IDM in windows????
Re: How to convert a flv video into the avi format
Quote:
Originally Posted by
Masru
How to convert flv to avi
AviDemux
Quote:
Originally Posted by
Masru
How can I joint avi videos??
AviDemux
Quote:
Originally Posted by
Masru
Is there any software to download streaming videos ilke IDM in windows????
dont know, but this is an ubuntu forum, think you are in the wrong place:)
Re: How to convert a swf video into the avi format
Hi,
I am trying to convert a swf file into a flv video. I followed the steps provided by you, and I get a really short (1 or 2 seconds) black video. The original file is like 20 or 30 seconds long.
I wrote this in the terminal:
Code:
/usr/share/pyvnc2swf/edit.py -o my_video.flv my_file.swf
What did I do wrong? Thanks!
Re: How to convert a swf video into the avi format
@rbarra
The way i am doing it is using a windows app called iwisoft using Virtual box under ubuntu.
I havent tried to install it under wine.
hope this helps