[Mlt-devel] Producer frame size change

2013-09-18 Thread Tomas Neme
I made a producer that might change it's frame metadata in the middle of the run, everything, image dimensions, audio samples, might change. I produce the frame objects with the right data inserted in them but at least SDL doesn't change itself to adjust to the new size. I'd like to know if this

[Mlt-devel] issues with frame rate properties

2013-07-05 Thread Tomas Neme
Hi. Still working on my shared memory module. The module worked nicely with the sdl consumer, but had some issues when I tried to pass the frames to an avformat consumer. First it was throwing a "bitrate tolerance too low for bitrate" error, and debugging that, I got to this change: https://gith

Re: [Mlt-devel] shared mem module

2013-07-02 Thread Tomas Neme
> In any case, the big issue I'm facing right now is sync on the > consumer side. I'm using posix's clock_nanosleep to run the consumer > thread every ((1 / fps) * 10) nanoseconds, but it's running > slightly slow. I've even stopped using the read lock on the producer's > side in case write

[Mlt-devel] shared mem module

2013-07-02 Thread Tomas Neme
OK, a preliminary version of my module is functional. It's way away from production grade: * the producer segfaults on exit * if the producer dies while holding the lock, the whole thing freezes * if the consumer restarts, the running producer(s)'s reference to shared memory will become invalid B

Re: [Mlt-devel] segfault on frame_close

2013-07-01 Thread Tomas Neme
>> I think my team has already contacted you several times. We're making >> a FOSS TV broadcasting suite based on melted, this is the base repo, >> https://github.com/inaes-tic/mbc-playout/ and this is the backend / >> playlist handler https://github.com/inaes-tic/mbc-mosto > > oh yeah, it's a nice

Re: [Mlt-devel] format access

2013-07-01 Thread Tomas Neme
I was just thinking it might be nice to normalize input. Anyways > framework function. I saw you have a _format property in your code, > and maybe you want to instead use the existing mlt_image_format > property to sync the format of both the rendering thread and the > consumer. ah, I hadn't see

Re: [Mlt-devel] segfault on frame_close

2013-06-30 Thread Tomas Neme
I don't exactly know why, but the segfault disappeared. Now I'm back to the speed problem. If I run this, the "current position" counter in melt stays put in 0 $ melt -producer avformat:bm.mp4 -consumer posixshm but if I run it with the -debug flag, I get this: [producer avformat] bm.mp4 0

Re: [Mlt-devel] segfault on frame_close

2013-06-30 Thread Tomas Neme
> If you want my help, then please describe the closed vs. open source > nature of the project or this particular code. I am not helping > non-open source projects at this time and not available for hire/paid > support at this time either. If you plan to contribute this code to > the project, pleas

[Mlt-devel] segfault on frame_close

2013-06-30 Thread Tomas Neme
I'm getting a segfault upon calling mlt_frame_close after my consumer loop, the code is below, and it's really simple, it just gets the frame with rt_frame, and passes it to output. Output gets the image with mlt_frame_get_image and copies it over to shared memory. The segfault happens in the line

Re: [Mlt-devel] format access

2013-06-30 Thread Tomas Neme
> Yes. MLT itself is not absolutely dependent on libavcodec. Libavcodec > is only a dependency of the avformat module, and "yuv422p" appears to > be a libavcodec pixel format name. I see, but I'm the function called mlt_image_format_name in framework/mlt_frame.c does format_enum >> name translatio

Re: [Mlt-devel] how to make a new module

2013-06-27 Thread Tomas Neme
Thanks for the answer On Thu, Jun 27, 2013 at 6:08 PM, Dan Dennedy wrote: > On Tue, Jun 25, 2013 at 3:13 PM, Tomas Neme wrote: >> I'm wanting to make a new module, a very simple producer-consumer >> through unix sockets, and I don't know how to get started. > > Y

[Mlt-devel] format access

2013-06-27 Thread Tomas Neme
I see there's ways of getting format name, such as "yuv422p", but I see no way of converting that into the mlt_image_yuv422 symbol. Is it impossible? Do I need to compare strings and do some kind of if chain? -- "The whole of Japan is pure invention. There is no such country, there are no such peo

[Mlt-devel] how to make a new module

2013-06-25 Thread Tomas Neme
I'm wanting to make a new module, a very simple producer-consumer through unix sockets, and I don't know how to get started. How do I get it to be available to programs like melt and melted? I see there's a factory.c file in every module directory, which calls the mlt*_registrer_* functions, but I

Re: [Mlt-devel] looping video

2013-06-06 Thread Tomas Neme
I just confirmed that moving the eof=loop to before the png, it works if -consumer sdl but not if -consumer xml, can this be done? -- How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate I

[Mlt-devel] looping video

2013-06-06 Thread Tomas Neme
I'm trying to generate an infinitely looping clip to XML from an image or color, and failing. if no in/out parameters are set, the video defaults to 14999 frames long, and indeed it stops after that long even if eof=loop. Here's my command line: $ melt test/images/SMPTE_Color_Bars.png eof=loop -fi