Re: nim-ffmpeg wrapper: how to continue?

2017-11-02 Thread mratsim
It might be easier to use Avisynth or Vapoursynth with MVTools directly: * [MVTools from Avisynth wiki](http://avisynth.nl/index.php/MVTools) * [MVTools technical page](http://avisynth.nl/index.php/MVTools) Example to blur blocky area with occlusion mask

Re: Help with parallelizing a loop

2017-11-02 Thread niofis
I would suggest you check this page: [10 Nim One Liners to Impress Your Friends](https://blog.ubergarm.com/blog/archive/archive-ten-nim-one-liners.md), and also, check my own implementation of a parallel map with some improvements here:

Help with parallelizing a loop

2017-11-02 Thread jackmott
I would like some guidance on how to best parallelize this loop. I've played around with the parallel: macro, and using spawn, but haven't gotten a working solution yet. It isn't entirely clear what the best approach should be: for i,face in faces: #face is a path to an image file

Re: How do you keep your motivation on your open-source projects

2017-11-02 Thread Krux02
Techniques for dealing with lack of motivation, malaise, depression

Re: nim-ffmpeg wrapper: how to continue?

2017-11-02 Thread cybertreiber
Hi mratsim, The libraries provide good medium level access. AFAIK they don't expose motion vectors though. So I'd either extend and depend them or go bare metal. I opted for the second choice (to also learn nim) and replicate this as a starter:

Re: nim-ffmpeg wrapper: how to continue?

2017-11-02 Thread mratsim
What will you use it for? If it's to manipulate video data, preprocess, trim, filter it (convolution, denoising, etc), it might be much easier to use [ffms2](https://github.com/FFMS/ffms2) Or maybe provides bindings to Avisynth (Windows-only) or

Re: nim-ffmpeg wrapper: how to continue?

2017-11-02 Thread cybertreiber
It's perfectly fine to collate all definitions into a single type block. I already handle includes programmatically. What would be an idiomatic way to post-process .nim files? My naive approach would be to parse the AST, reorder it and dump it. However, I'm not sure if nim parses a file that's

Re: nim-ffmpeg wrapper: how to continue?

2017-11-02 Thread Stefan_Salewski
Yes, the reordering can be much manual work. For the gintro module, I do it automatically now, but it takes a few minutes to finish -- and it is based on gobject-introspection. The ugly way is to put all types into a single type section at the front of the module. Many modules from early days

nim-ffmpeg wrapper: how to continue?

2017-11-02 Thread cybertreiber
One use case of us requires interfacing ffmpeg. I used cpp to circumvent many of the c2nim limitations (e.g. macros within structs). However, I don't come to grips with type definitions that aren't declared top to bottom. Specifically, I had to reorder many types in the avformat.nim file. *

Re: Send data structures between threads?

2017-11-02 Thread peheje
Thanks mratsim!