Hi,

I'm developing an small project that required to call avconv from LUA (
http://www.lua.org/).

After a few trials I managed to wrap the avconv main function to be called
directly from a LUA script, so that exceptions are captured by the LUA
exception mechanism (an small improvement over creating an avconv
subprocess and parsing the ouput).

Since I don't want to reinvent the wheel I wonder whether there is
something already developed. I couldn't find anything related "googling
around". Otherwise, If anyone is interested on the LUA wrapper, just let me
know.

The LUA+avconv wrapper scripts looks something similar to:

-- Description
-- Take a thumbnail of a given video.
myVideo = "-i myVideo.mp4"
outputThumbnail = "myVideo.png"
cmd = ""
cmd = cmd .. myVideo
cmd = cmd .. "-ss 00:00:15.000 "
cmd = cmd .. "-f image2 "
cmd = cmd .. "-vframes 1 "
cmd = cmd .. outputThumbnail

*avconv.run(cmd)*;


Regards,

Enrique
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to