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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
09-26-2007, 07:51 AM
|
#1
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Rep:
|
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.
|
|
|
09-26-2007, 07:53 AM
|
#2
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
ffmpeg will do it.
Code:
ffmpeg -i input.flv output.mpg
Last edited by matthewg42; 09-26-2007 at 07:56 AM.
|
|
|
09-26-2007, 11:17 AM
|
#3
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Original Poster
Rep:
|
Quote:
Originally Posted by matthewg42
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.
|
|
|
09-26-2007, 12:18 PM
|
#4
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
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.
|
|
|
09-26-2007, 12:45 PM
|
#5
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Original Poster
Rep:
|
Quote:
Originally Posted by almatic
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?
|
|
|
09-26-2007, 12:54 PM
|
#6
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
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.
|
|
|
09-26-2007, 01:14 PM
|
#7
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Original Poster
Rep:
|
Quote:
Originally Posted by almatic
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
|
|
|
09-26-2007, 01:54 PM
|
#8
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
this file does not play for me anywhere, not even in flash player or gnash. How did you play it ?
|
|
|
09-26-2007, 03:18 PM
|
#9
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Original Poster
Rep:
|
Quote:
Originally Posted by almatic
this file does not play for me anywhere, not even in flash player or gnash. How did you play it ?
|
With Firefox web browser.
|
|
|
09-26-2007, 03:42 PM
|
#10
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
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.
|
09-26-2007, 06:05 PM
|
#11
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Original Poster
Rep:
|
Quote:
Originally Posted by almatic
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
|
|
|
09-26-2007, 06:36 PM
|
#12
|
Member
Registered: Mar 2007
Distribution: Debian
Posts: 547
Rep:
|
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
|
|
|
09-26-2007, 06:48 PM
|
#13
|
Member
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862
Original Poster
Rep:
|
Quote:
Originally Posted by almatic
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.
|
|
|
05-07-2011, 03:15 AM
|
#14
|
LQ Newbie
Registered: Jun 2009
Posts: 29
Rep:
|
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?
|
|
|
05-19-2011, 11:22 AM
|
#15
|
LQ Newbie
Registered: May 2011
Posts: 1
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 12:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|