← Back to team overview

yade-dev team mailing list archive

Re: Make video with GStreamer

 

Václav Šmilauer пишет:
>> but quality of video is not sufficient... Your videos on youtube is much
>> better.
>> When I tried to use Yade's function utils.encodeVideoFromFrames() I got
>> video only from one frame.
>> Then I tried to use GStreamer directly with command:
>>     
> Hm, how exactly did you use encodeVideoFromFrames? Can you run
> examples/mill.py to see if it also makes broken video?
>
>   
Yes, examples/mill.py makes one frame video without any errors:


sega@laptop:~/work/yade/trunk/examples> yade-trunk-opt mill.py
Python TCP server listening on localhost:9002, auth cookie is `edaysc'
Running script mill.py
Numer of grains 1414
Encoding video from /tmp/tmppVmU47/%07d to /tmp/mill.ogg

    __   __    ____          ____                      _
    \ \ / /_ _|  _ \  ___   / ___|___  _ __  ___  ___ | | ___
     \ V / _` | | | |/ _ \ | |   / _ \| '_ \/ __|/ _ \| |/ _ \
      | | (_| | |_| |  __/ | |__| (_) | | | \__ \ (_) | |  __/
      |_|\__,_|____/ \___|  \____\___/|_| |_|___/\___/|_|\___|


In [1]:

sega@laptop:~/work/yade/trunk/examples>ls -lh /tmp/mill.ogg
-rw-r--r-- 1 sega users 82K Сен  1 12:02 /tmp/mill.ogg





References