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

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1485
  • Open my what?
    • Fundacion Anisa, A.C.
i've got several swf on a website and i need to convert them to something else evidently.  i found this

http://help.lockergnome.com/linux/convert-SWF-AVI-format--ftopict396093.html

but it uses something called edit.py, from the "pyvnc2swf suite(pyvnc2swf-0.9.3)" which i can't find in Synaptic.

Would anyone have any other suggestion - or can i get edit.py from somewhere?

Have a great afternoon!  :)
« Last Edit: June 30, 2012, 08:40:11 AM by frazelle09 »
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Any suggestions on how to convert swf to flv?
« Reply #1 on: June 20, 2012, 03:17:02 PM »
I will not ask, but from swf to flv?

Search for mymencoder, maybe it this a solution for it.

Will generate videos in avi, or mp4

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1485
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Any suggestions on how to convert swf to flv?
« Reply #2 on: June 20, 2012, 05:16:29 PM »
Thanks, Leiche!  i tried mymencoder, but couldn't seem to get it to work.

i'll keep looking.  Thanks again and have a great afternoon!  :)
"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
Re: Any suggestions on how to convert swf to flv?
« Reply #3 on: June 20, 2012, 08:48:40 PM »
Hmm... not sure if Handbrake will do this, but it would be worth a try.  Do you have a sample .swf you could point me to?  I'll give it a try for you and see if I can develop a preset that will work.

You might also look at video downloadhelper, an extension for Firefox.  It's free and converts a wide range of videos (but I'm not sure it will handle .swf - I've never tried.)

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: 1485
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Any suggestions on how to convert swf to flv?
« Reply #4 on: June 20, 2012, 09:20:16 PM »
Thanks, horusfalcon!  i gave HB a try but no-go.  Later on i'll try the Video DL which i already have.

Thanks again for posting and 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 Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8821
  • Aurum nostrum non est aurum vulgi.
Re: Any suggestions on how to convert swf to flv?
« Reply #5 on: June 20, 2012, 09:23:55 PM »
Thanks, horusfalcon!  i gave HB a try but no-go.  Later on i'll try the Video DL which i already have.

Thanks again for posting and have a great evening!  :)

How about FFMPEG?

$ ffmpeg -i some.swf some.flv

I don't have any swf so I cannot really say it would work but ffmpeg is the backend for many converters.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Any suggestions on how to convert swf to flv?
« Reply #6 on: June 21, 2012, 09:51:05 AM »
Thanks, Leiche!  i tried mymencoder, but couldn't seem to get it to work.

i'll keep looking.  Thanks again and have a great afternoon!  :)


Load your file, and click on Analyze > Mplayer Info. Get you an info, so you can click by Variable Bitrate and select 800 (or what ever you like to have). Next is save your output, and click on Encode 1-pass.

More read here
http://pclosmag.com/html/Issues/201104/page03.html

Good luck

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1485
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Any suggestions on how to convert swf to flv?
« Reply #7 on: June 21, 2012, 03:03:45 PM »
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!  :)
"The earth is one country and mankind its citizens."
Baha'u'llah
"La tierra es un solo pais y la humanidad sus ciudadanos."


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Any suggestions on how to convert swf to flv?
« Reply #8 on: June 21, 2012, 03:11:24 PM »
A freeze should not to be..., some outputs from your video. Post your infos...

Offline frazelle09

  • Hero Member
  • *****
  • Posts: 1485
  • Open my what?
    • Fundacion Anisa, A.C.
Re: Any suggestions on how to convert swf to flv?
« Reply #9 on: June 21, 2012, 04:42:47 PM »
O.k.  This time we are able to create a file, but when viewed in KmPlayer, it runs really fast.  Are there any settings to slow it down by 1/10?

Thanks again Leiche.  It appears that this time it's working.  i just left the filters alone and figure out that Variable Bit Rate and Edit Variable Bit Rate refer to the SAME thing.  One is for set values and the other for user-input values.  This was very confusing.

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


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Any suggestions on how to convert swf to flv?
« Reply #10 on: June 21, 2012, 11:25:05 PM »
best way is, you send me an link to a *.swf file. So i can figure, what the best settings be are.

Offline rich2005

  • Sr. Member
  • ****
  • Posts: 260
Re: Any suggestions on how to convert swf to flv?
« Reply #11 on: June 22, 2012, 03:09:12 AM »
A nice challange, I spent an age on this and came up with nil.

Finding a swf file first, there are all sorts. I can make one from a panorama image in autopano, spins around but still just a single image not a movie.

Then there is this,
http://code.google.com/p/dockableflex/downloads/detail?name=sample%20video%20(beta_r14).swf
a glorified animation.

Looks like the OP has done better and has a swf with a proper embedded video.

Might still be worth looking at edit.py just to get some file information. It is just some python code that will run from 'home' does not go near root.
http://www.unixuser.org/~euske/vnc2swf/

Using that google swf
[rich@localhost Videos]$ ./edit.py -o test.flv sample.swf
Using PIL 1.1.7
Input movie: version=4, size=800x600, framerate=25fps, frames=5155, duration=206.2s.
Output movie size: 800x600
Scanning source swf file: sample.swf...  5155 frames written (duration=206.2s)

still does not produce anything workable but at least there is a framerate which might solve the fast mencoder video.
I did try DivXconvertor which is a great front-end for mencoder, error - could not decode the swf. Ffmpeg - no good. Avidemux - no good. It is going to depend on the flavour of the swf.

Came to the conclusion that one way would be to re-record from the monitor using (say) recordmydesktop (although for screen capture I prefer ffmpeg.)


Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Any suggestions on how to convert swf to flv?
« Reply #12 on: June 22, 2012, 02:11:07 PM »
A nice challange, I spent an age on this and came up with nil.

Finding a swf file first, there are all sorts. I can make one from a panorama image in autopano, spins around but still just a single image not a movie.

Then there is this,
http://code.google.com/p/dockableflex/downloads/detail?name=sample%20video%20(beta_r14).swf
a glorified animation.



Information about your files

Mplayer info:
Code: [Select]
MPlayer 1.1-4.5.2 (C) 2000-2012 MPlayer Team
Terminal type `unknown' is not defined.

Playing /home/daniel/Downloads/sample video (beta_r14).swf.
libavformat version 54.6.101 (internal)
libavformat file format detected.
[swf @ 0xd6a800]SWF compressed file detected
ID_VIDEO_ID=0
libavformat file format detected.
[swf @ 0xd6a800]SWF compressed file detected


Exiting... (End of file)
ID_EXIT=EOF

Mediainfo:
Code: [Select]
Format                                   : ShockWave
File size                                : 1.73 MiB
Duration                                 : 3mn 26s
Overall bit rate                         : 70.6 Kbps

Video
Duration                                 : 3mn 26s
Bit rate                                 : 60.9 Kbps
Width                                    : 800 pixels
Height                                   : 600 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 fps
Bits/(Pixel*Frame)                       : 0.005
Stream size                              : 1.50 MiB (86%)

But wont play here  :-\

Offline rich2005

  • Sr. Member
  • ****
  • Posts: 260
Re: Any suggestions on how to convert swf to flv?
« Reply #13 on: June 23, 2012, 01:45:36 AM »
After all it is shockwave, depends what you try and play it in, VLC, Mplayer, nbg
Firefox, works fine.

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Any suggestions on how to convert swf to flv?
« Reply #14 on: June 23, 2012, 05:17:37 AM »
not here, can see by mplayer info, there isn't any info about it...

This is an info what will playing:

Code: [Select]
MPlayer 1.1-4.5.2 (C) 2000-2012 MPlayer Team
Terminal type `unknown' is not defined.

Playing /Daten/Video/Broilers - Meine Sache.flv.
libavformat version 54.6.101 (internal)
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (h264), -vid 0
ID_AUDIO_ID=0
[lavf] stream 1: audio (aac), -aid 0
VIDEO:  [H264]  640x352  0bpp  25.000 fps  706.7 kbps (86.3 kbyte/s)
Clip info:
 starttime: 0
ID_CLIP_INFO_NAME0=starttime
ID_CLIP_INFO_VALUE0=0
 totalduration: 259
ID_CLIP_INFO_NAME1=totalduration
ID_CLIP_INFO_VALUE1=259
 totaldatarate: 814
ID_CLIP_INFO_NAME2=totaldatarate
ID_CLIP_INFO_VALUE2=814
 bytelength: 26454439
ID_CLIP_INFO_NAME3=bytelength
ID_CLIP_INFO_VALUE3=26454439
 canseekontime: true
ID_CLIP_INFO_NAME4=canseekontime
ID_CLIP_INFO_VALUE4=true
 sourcedata: B4A7DA0E5HH1335828186413623
ID_CLIP_INFO_NAME5=sourcedata
ID_CLIP_INFO_VALUE5=B4A7DA0E5HH1335828186413623
 purl:
ID_CLIP_INFO_NAME6=purl
ID_CLIP_INFO_VALUE6=
 pmsg:
ID_CLIP_INFO_NAME7=pmsg
ID_CLIP_INFO_VALUE7=
ID_CLIP_INFO_N=8
Load subtitles in /Daten/Video/
ID_FILENAME=/Daten/Video/Broilers - Meine Sache.flv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=706688
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=352
ID_VIDEO_FPS=25.000
ID_VIDEO_ASPECT=1.8182
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=119976
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=259.44
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Forced video codec: null
Opening video decoder: [null] Null video decoder
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.8182
VO: [null] 640x352 => 640x352 Planar YV12  [zoom]
Selected video codec: [null] vfm: null (NULL codec (no decoding!))
==========================================================================
ID_VIDEO_CODEC=null
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.23.100 (internal)
AUDIO: 44100 Hz, 2 ch, s16le, 120.0 kbit/8.50% (ratio: 14997->176400)
ID_AUDIO_BITRATE=119976
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=ffaac
Starting playback...


Exiting... (End of file)
ID_EXIT=EOF

 :)