LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2007, 07:51 AM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
Convert swf to mpeg?


Anybody know how to convert swf (shockwave flash) files to mpeg2? I've got transcode, mplayer, ffmpeg, etc but I can't figure it out. I thought about dumping with mplayer, but it won't play. Can I compile mplayer with shockwave flash support? Thanks ahead of time.
 
Old 09-26-2007, 07:53 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
ffmpeg will do it.
Code:
ffmpeg  -i input.flv output.mpg

Last edited by matthewg42; 09-26-2007 at 07:56 AM.
 
Old 09-26-2007, 11:17 AM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by matthewg42 View Post
ffmpeg will do it.
Code:
ffmpeg  -i input.flv output.mpg
I have "ffmpeg version CVS, build 3277056", there's no option to compile with swf support. Here's what I get when running ffmpeg:

ffmpeg -i ghost_player.swf output.mpg
ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --enable-a52 --enable-gpl --enable-shared
built on Aug 28 2007 20:56:35, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)
[swf @ 0x5691c0]Compressed SWF format not supported
ghost_player.swf: I/O error occured
Usually that means that input file is truncated and/or corrupted.
 
Old 09-26-2007, 12:18 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
I had this problem some time ago and could do it using a python script 'edit.py' from the 'pyvnc2swf' package.

/usr/share/pyvnc2swf/edit.py -o output.mpg input.swf

or simply type 'vnc2swf-edit' and use the provided interface.
 
Old 09-26-2007, 12:45 PM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by almatic View Post
I had this problem some time ago and could do it using a python script 'edit.py' from the 'pyvnc2swf' package.

/usr/share/pyvnc2swf/edit.py -o output.mpg input.swf

or simply type 'vnc2swf-edit' and use the provided interface.
Okay, thanks. I tried that and I get like a 2kb file output.
Apparently the swf file I'm trying to convert is in compressed format. How can I decompress this thing?
 
Old 09-26-2007, 12:54 PM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
well, I guess it depends on what kind of object is inside the .swf. I cannot say anything to this as I don't have the file. If you post a link or upload it somewhere I'd take a look at it.
 
Old 09-26-2007, 01:14 PM   #7
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by almatic View Post
well, I guess it depends on what kind of object is inside the .swf. I cannot say anything to this as I don't have the file. If you post a link or upload it somewhere I'd take a look at it.
Okay, check it out:
http://www.wfeca.net/users/rbandmb/ghost_player.swf
 
Old 09-26-2007, 01:54 PM   #8
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
this file does not play for me anywhere, not even in flash player or gnash. How did you play it ?
 
Old 09-26-2007, 03:18 PM   #9
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by almatic View Post
this file does not play for me anywhere, not even in flash player or gnash. How did you play it ?
With Firefox web browser.
 
Old 09-26-2007, 03:42 PM   #10
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
this file does not contain any video, it only contains the controls for the player.

edit: it's the player applet from break.com, they use embedded .flv videos. You need to retrieve the url of the embedded video and then download the .flv.

Last edited by almatic; 09-26-2007 at 04:41 PM.
 
1 members found this post helpful.
Old 09-26-2007, 06:05 PM   #11
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by almatic View Post
this file does not contain any video, it only contains the controls for the player.

edit: it's the player applet from break.com, they use embedded .flv videos. You need to retrieve the url of the embedded video and then download the .flv.
Oops, sorry almatic. Here you go:
http://www.wfeca.net/users/rbandmb/l...occer-ball.flv
 
Old 09-26-2007, 06:36 PM   #12
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
now you can use the ffmpeg command from above. It will produce an mpeg1 though, if you want mpeg2, add option '-vcodec mpeg2video'.

ffmpeg -i video.flv -vcodec mpeg2video video.mpg
 
Old 09-26-2007, 06:48 PM   #13
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by almatic View Post
now you can use the ffmpeg command from above. It will produce an mpeg1 though, if you want mpeg2, add option '-vcodec mpeg2video'.

ffmpeg -i video.flv -vcodec mpeg2video video.mpg
I wound up encoding with mencoder. ffmpeg complained with "could not find codec parameters".
Thanks for your help.
 
Old 05-07-2011, 03:15 AM   #14
rulet1
LQ Newbie
 
Registered: Jun 2009
Posts: 29

Rep: Reputation: 15
Also trying to convert swf to flv but with no luck. Here is output:

r@ZAGADUM1:~/Рабочий стол/видео для редактирования$ vnc2swf-edit -o 002.flv 001.swf
Using pygame 1.9.1release
Input movie: version=7, size=800x600, framerate=25fps, frames=1470, duration=58.8s.
Output movie size: 800x600
Scanning source swf file: 001.swf...
MP3: stereo=0, samplerate=44100, initialskip=1633
.................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... .................................................................................................... ......................................................................1470 frames written (duration=58.8s)

And I get file with no video and no audio.
Maybe somebody knows how to do that?
 
Old 05-19-2011, 11:22 AM   #15
amjo
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
Hey, im also facing the same issue, running in circles, dedicated the entire day finding a solution to this matter...

i have tried ffmpeg, mencoder, pyvnc2swf, and nothing has ever given me any hope whatsoever! im having the same output as Rulet1... all blank! nothing but a tiny 9kb file.

Rulet1, have you found a solution to this problem?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to convert SWF to AVI or MPEG 2Pacalypse Linux - Software 1 05-22-2007 01:18 PM
Convert SWF Audio JMJ_coder Linux - Software 4 05-07-2006 09:23 PM
Swf -> Mpeg PsypherPunk Linux - Software 1 03-22-2006 04:04 PM
How would I convert WMV to MPEG? db391 Linux - Software 6 11-16-2004 05:17 PM
How to convert mpeg file in mpeg-PS or TS hawkgreatelf Linux - Software 1 05-01-2003 06:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration