Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to convert a swf video into the avi format

  1. #1
    Join Date
    Feb 2008
    Location
    readlink("/proc/self/exe"
    Beans
    1,120
    Distro
    Ubuntu Development Release

    Wink 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
    In a world without walls and fences, who needs Windows and Gates?
    Linux is like a wigwam.... no Gates, no Windows but Apache inside!
    http://www.debianadmin.com
    apt-get install libstdc++6-4.3-doc

  2. #2
    Join Date
    Apr 2009
    Location
    Georgia, USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: How to convert a swf video into the avi format

    Great tip. Thanks!

  3. #3
    Join Date
    Jan 2011
    Beans
    3

    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?

  4. #4
    Join Date
    Feb 2008
    Location
    readlink("/proc/self/exe"
    Beans
    1,120
    Distro
    Ubuntu Development Release

    Re: How to convert a swf video into the avi format

    Quote Originally Posted by olemathgeek View Post
    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.
    In a world without walls and fences, who needs Windows and Gates?
    Linux is like a wigwam.... no Gates, no Windows but Apache inside!
    http://www.debianadmin.com
    apt-get install libstdc++6-4.3-doc

  5. #5
    Join Date
    Dec 2007
    Beans
    49
    Distro
    Ubuntu 12.10 Quantal Quetzal

    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?

  6. #6
    Join Date
    Jan 2010
    Beans
    93
    Distro
    Ubuntu

    Re: How to convert a swf video into the avi format

    great tips

  7. #7
    Join Date
    Apr 2011
    Beans
    5

    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????

  8. #8
    Join Date
    Dec 2007
    Beans
    49
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: How to convert a flv video into the avi format

    Quote Originally Posted by Masru View Post
    How to convert flv to avi
    AviDemux

    Quote Originally Posted by Masru View Post
    How can I joint avi videos??
    AviDemux

    Quote Originally Posted by Masru View Post
    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

  9. #9
    Join Date
    Feb 2008
    Beans
    23

    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!

  10. #10
    Join Date
    Dec 2007
    Beans
    49
    Distro
    Ubuntu 12.10 Quantal Quetzal

    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

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •