Jump to content
aelius

Convertire swf in flv din linia de comanda

Recommended Posts

Posted

Am vazut asta la colegul si am zis ca ar fi binevenit un tutorial scurt de genul. (chiar foarte pe scurt)

OS: Debian

Aici descarc arhiva ce contine swf-ul


root@pluto:~# wget https://cdn.anonfiles.com/1400331560992.zip
--2014-05-18 22:54:43-- https://cdn.anonfiles.com/1400331560992.zip
Resolving cdn.anonfiles.com (cdn.anonfiles.com)... 192.121.121.35
Connecting to cdn.anonfiles.com (cdn.anonfiles.com)|192.121.121.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25255330 (24M) [application/zip]
Saving to: `1400331560992.zip'

100%[=====================================================>] 25,255,330 26.0M/s in 0.9s

2014-05-18 22:54:44 (26.0 MB/s) - `1400331560992.zip' saved [25255330/25255330]

Extrag swf-ul din arhiva zip


root@pluto:~# unzip 1400331560992.zip
Archive: 1400331560992.zip
inflating: rec2.swf

Instalez pyvnc2swf


root@pluto:~# apt-get install pyvnc2swf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
blt fonts-freefont-ttf libfontenc1 libmad0 libmikmod2 libportmidi0 libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsmpeg0 libutempter0 libvorbisfile3 libwebp2
libxcb-shape0 libxss1 libxv1 libxxf86dga1 python-pygame python-tk tcl8.5 tk8.5 ttf-freefont x11-utils xbitmaps xterm
Suggested packages:
blt-demo pulseaudio-esound-compat oss-compat timidity tix python-tk-dbg tcl-tclreadline mesa-utils xfonts-cyrillic
The following NEW packages will be installed:
blt fonts-freefont-ttf libfontenc1 libmad0 libmikmod2 libportmidi0 libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsmpeg0 libutempter0 libvorbisfile3 libwebp2
libxcb-shape0 libxss1 libxv1 libxxf86dga1 python-pygame python-tk pyvnc2swf tcl8.5 tk8.5 ttf-freefont x11-utils xbitmaps xterm
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.3 MB of archives.
After this operation, 34.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y

Convertesc rec2.swf in rec2.flv


root@pluto:~# /usr/share/pyvnc2swf/edit.py -o rec2.flv rec2.swf
.....................................................................
.....................................................................
.....................................................................
.....................................................................
12001 frames written (duration=600.0s)

Un test cu mediainfo sa vad informatiile despre flv


root@pluto:~# mediainfo rec2.flv
General
Complete name : rec2.flv
Format : Flash Video
File size : 9.40 MiB
Duration : 10mn 0s
Overall bit rate : 131 Kbps

Video
Format : Screen video
Codec ID : 3
Duration : 10mn 0s
Bit rate : 119 Kbps
Width : 640 pixels
Height : 526 pixels
Display aspect ratio : 1.217
Frame rate mode : Constant
Frame rate : 20.000 fps
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.018
Stream size : 8.54 MiB (91%)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...