ViReEn - VIdeo REcorder and ENcoder

  • nucular
    7th Feb 2013 Member 5 Permalink

    Finally, the first version of ViReEn.

    This is the successor of my mod of gamax92's moviemaker. Completely rewritten, it now appears as an extension to TPT's recording function. So now it is recording almost lag free!

     

    DOWNLOAD:

    http://pastebin.com/10kvD95u

    ViReEn Screenshot

     

     

    You need FFMPEG to use it. Vireen should open the download page, otherwise:

    http://www.ffmpeg.org/download.html

     

    It does not work in subdirectorys of TPT now (including Autorun Manager), so please install it as following:

    1. Copy script in TPT's directory

    2. Create / Edit file named 'autorun.lua' in TPTs directory

    3. Add line: 'dofile("<insert scriptname>.lua")'

     

    HINT:

    Press [R].

    Record something.

    ViReEn pops up.

    Save Video.

    Done.

     

    I always welcome wishes, own code and bug reports here.

    Enjoy!

  • mniip
    7th Feb 2013 Developer 0 Permalink
    finally someone with good code :O
    well, probably function button_codec_change() is a bit dumb but still
  • nucular
    7th Feb 2013 Member 1 Permalink

    mniip: youre right. but it works.

  • Sylvi
    7th Feb 2013 Moderator 0 Permalink

    Very nice extension! Will look into it more sometime later.

  • mniip
    8th Feb 2013 Developer 0 Permalink
    oh yeah, checkloop() is dumb too
  • nucular
    8th Feb 2013 Member 0 Permalink

    why? its the only method i can get the selected button in the recording dialog. i think.

  • mniip
    9th Feb 2013 Developer 0 Permalink

    local checkloop --otherwise it won't be seen inside the function itself
    checkloop=function()
    local x,y = tpt.mousex,tpt.mousey
    tpt_records = pressed(x,y)
    tpt.unregister_step(checkloop)
    end
  • barts0924
    9th Feb 2013 Member 0 Permalink

    I have two questions.

    Why does one frame eats (~)689 KB I once recorded 6311 frames and cost me 4GB?

    Does this let TPT save frames the convert it into a video or it records it like a normal video?

     

    Trivia (Sort of .......)

    So if TPT is running at 60 FPS the it will produce (~)0.0394 GB a second or (~)40.3710 MB of frames.

    Now that's a lot. (assuming that 1024 KB is 1 MB)

  • mniip
    10th Feb 2013 Developer 0 Permalink
    What have you saved the script with?
    If notepad, make sure the encoding is ansi