[Chicago] Part-time Python Work

Carl Karsten carl at personnelware.com
Tue Sep 11 21:40:35 CEST 2012


On Tue, Sep 11, 2012 at 1:43 PM, Tal Liron <tal.liron at threecrickets.com> wrote:
> You understand thread concurrency and have debugged race conditions. You
> know the basics of interfacing with scary C libraries.

Everything else I am comfy enough about, but those 2 are pretty much
0.0 - should we talk anyway?

If the video library is
http://www.mltframework.org/twiki/bin/view/MLT/  then we should talk
because I am on good terms with the lead developer.  It is what I use
in my video processing stack.

Don't get too excited, I have a pretty thick? layer between python and
melt.  I use python to manage data that gets serialized into a blob of
xml and passed to the melt command via popen().  Here is the code
starting at an example of the xml I create:

https://github.com/CarlFK/veyepar/blob/master/dj/scripts/enc.py#L13

I write out the xml to a file (like foo.mlt) and then construct a
command such as:

melt -verbose -progress -profile dv_ntsc
/home/juser/Videos/veyepar/chipy/feb2012/tmp/more_understanding_rpython.mlt
-consumer avformat:/home/juser/Videos/veyepar/chipy/feb2012/tmp/more_understanding_rpython.mp4
deinterlace=bob threads=2 progressive=1 acodec=libmp3lame ab=128k
ar=48000 vcodec=libx264 b=1024k coder=0 flags=-loop+cgop cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8 me_method=dia subq=0
me_range=16 g=250 keyint_min=25 sc_threshold=0 i_qfactor=0.71
b_strategy=0 qcomp=0.6 qmin=0 qmax=69 qdiff=4 bf=0 refs=1 directpred=1
trellis=0 flags2=-bpyramid-mixed_refs-wpred-dct8x8+fastpskip-mbtree
wpredp=0 aq_mode=0 rc_lookahead=0

And a new video is born.

-- 
Carl K


More information about the Chicago mailing list