Author Topic: Any suggestions on how to convert swf to flv? [SOLVED - Well, sort of...]  (Read 1474 times)

Offline horusfalcon

  • Hero Member
  • *****
  • Posts: 998
  • Wayfarer of The Western Wastes
Re: Any suggestions on how to convert swf to flv?
« Reply #15 on: June 23, 2012, 06:15:22 PM »
This Forum (for another distro) seems to detail a process using pyvnc2swf... but I don't see it in Synaptic.  (It's a Python script.)

Later On,
D
"The Way is not a matter of knowing or not knowing.  One word to a wise man; one lash to a bright horse."

Dell Latitude D620, PCLinuxOS 2012.08 KDE4/LXDE, 3.2.18.pclos.bfs, specs here.

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Any suggestions on how to convert swf to flv?
« Reply #16 on: June 30, 2012, 08:39:13 AM »
Wow, thanks a lot for all your input, guys!  This last post by horusfalcon was the reason i actually started this thread - lol.

i finally decided to just keep the .swf since i finally found a Joomla! extension which at least permits you to click on the image to advance it from one photo to the next.  All i needed to do was to place the "Please click on the photo to see the rest." in each article and that was that.  In the future i'm just going to resize the photos and upload them to their own subdir and use another Joomla! extension to show them in a lightbox.

Again, thanks a million for all your hard work on this issue and have a great weekend!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline horusfalcon

  • Hero Member
  • *****
  • Posts: 998
  • Wayfarer of The Western Wastes
Glad this worked out for you.  Did you mean to imply that you've already tried pyvnc2swf?

Anyhoo, glad you found something that works for you.

Later On,
D
"The Way is not a matter of knowing or not knowing.  One word to a wise man; one lash to a bright horse."

Dell Latitude D620, PCLinuxOS 2012.08 KDE4/LXDE, 3.2.18.pclos.bfs, specs here.

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
No, just that i was wondering if i could "install" it or run it or whatever.  i actually downloaded pyvnc2swf and extracted the edit.py but that's as far as i got.  Who knows what you need to do with it in order to get it to work.

Anyway, oh Wayfarer of The Western Wastes, have a great evening!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline horusfalcon

  • Hero Member
  • *****
  • Posts: 998
  • Wayfarer of The Western Wastes
No, just that i was wondering if i could "install" it or run it or whatever.  i actually downloaded pyvnc2swf and extracted the edit.py but that's as far as i got.  Who knows what you need to do with it in order to get it to work.

Anyway, oh Wayfarer of The Western Wastes, have a great evening!  :)

As it is a Python script, you would also need to have a working Python interpreter on your computer.  All that might really be required after that would be to copy the script to a location on your system and make it executable.  From the folder where the script is stored...

chmod +x pyvnc2swf

will usually do the job.  PCLinuxOS systems usually come with Python installed by default, so that part is done for you.

Good Hunting,
D
"The Way is not a matter of knowing or not knowing.  One word to a wise man; one lash to a bright horse."

Dell Latitude D620, PCLinuxOS 2012.08 KDE4/LXDE, 3.2.18.pclos.bfs, specs here.

Offline and then..

  • Sr. Member
  • ****
  • Posts: 456
  • Just Another Linux User
Leiche!  Thanks again for posting.  i've tried several times now to use Mymencoder, but each time i'm able to input some of the info but the app finally freezes my desktop and i have to hard reboot!
Arg!  Have a great afternoon!  :)

frazelle09,
I gave this a try (in terminal)>

Code: [Select]
mencoder InputFileName.flv -lavfopts format=swf -oac mp3lame -of lavf -ovc lavc -lavcopts vcodec=flv:acodec=mp3:vbitrate=500:abitrate=56 -srate 22050 -o OutputFileName.swfsucess!

The reverse should work??

edit>  Ahhh.. this seems to work! (I'll soon be corrected if I'm wrong..  ;) )
Code: [Select]
mencoder InputFileName.swf -lavfopts format=flv -oac mp3lame -of lavf -ovc lavc -lavcopts vcodec=flv:acodec=mp3:vbitrate=500:abitrate=56 -srate 22050 -o OutputFileName.flv
Cages
« Last Edit: July 04, 2012, 07:32:26 PM by darkages »

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1476
  • Open my what?
    • Fundacion Anisa, A.C.
darkages!  Are you guys still beating this dead horse? - lol

i tried your second code example on a 7.7 Mb swf and got the following:

Code: [Select]
[frazelle09@LaGrandota Desktop]$ mencoder linda_issste.swf -lavfopts format=flv -oac mp3lame -of lavf -ovc lavc -lavcopts vcodec=flv:acodec=mp3:vbitrate=500:abitrate=56 -srate 22050 -o Linda_Issste.flv
MEncoder 1.1-4.5.2 (C) 2000-2012 MPlayer Team
success: format: 0  data: 0x0 - 0x7a8a7b
libavformat version 54.6.101 (internal)
libavformat file format detected.
[mjpeg @ 0x8959400]Found EOI before any SOF, ignoring
[swf @ 0x88e1200]max_analyze_duration 5000000 reached at 5000000
[swf @ 0x88e1200]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (mjpeg), -vid 0
VIDEO:  [MJPG]  750x290  0bpp  12.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x47504A4D  size:750x290  fps:12.000  ftime:=0.0833
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
libavcodec version 54.23.100 (internal)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
[mjpeg @ 0x8959400]Found EOI before any SOF, ignoring
Movie-Aspect is 2.59:1 - prescaling to correct movie aspect.
videocodec: libavcodec (750x290 fourcc=31564c46 [FLV1])
VIDEO CODEC ID: 22
Writing header...

When i try to run it in VLC it goes by so fast that i can't see anything.  These swf are made from photos and Picasa, i think, although i think this last one may originally have been a power point presentation in OpenOffice that was converted through OpenOffice itself.

After reading some more, i suppose i should be converting these - if indeed it is possible to something non-Flash like m4v.

Have a great evening!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."