leofiore / wffmpeg

NOT WORKING
0 stars 0 forks source link

Usage instructions #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm just having some trouble getting this project to work, sorry I'm also 
inexperienced with Python...

I execute:

ff = FFDocument("movie.flv")
ffresult = ff.resize("50%").ltrim(10).resample(120)

First I receive an error about unknown clone() on line 63 file.py. I have 
changed this to __clone__() and now it works.

But then, how do I execute the conversion?

I tried:

fm = FFmpeg("ffmpeg")
fm.render(ffresult, "out.flv")

But I have this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/wffmpeg/ffbase.py", line 40, in 
render
    for i in range(0, len(effectchain)):
AttributeError: FFDocument instance has no attribute '__len__'

..can you help me? Maybe a basic tutorial would be great :-D

Original issue reported on code.google.com by b4dn...@gmail.com on 5 Mar 2009 at 9:50

GoogleCodeExporter commented 9 years ago
Great project.   I'd love some feedback on usage.
thanks

Original comment by tute...@gmail.com on 7 Apr 2009 at 8:44

GoogleCodeExporter commented 9 years ago
tute666: can you provide some examples of use this project? Thanks.

Original comment by Klimov....@gmail.com on 9 Apr 2009 at 2:35

GoogleCodeExporter commented 9 years ago
fm.render(ffresult, "out.flv")

should be

fm.render([ffresult], "out.flv")

quoting the above example.
render takes an array of transformations.  even then, the code is flawed and 
will not
work.  i've submitted one patch, when i've time i will submit others, or rather 
fork
the project alltogether. 
whilst its an interesting idea, the current code is too flawed for use, i'd 
rather
stick to creating cli strings for ffmpeg for the time being, which is pretty 
much
what the wrapper does.
plus, by chaining different transformations, instead of compiling the different
effects in one execution of ffmpeg, it calls ffmpeg once for every 
transformation,
leading to extremely long times of encoding.
nonetheless its a great idea.

Original comment by tute...@gmail.com on 13 Apr 2009 at 1:45