lu-zero / bmdtools

Basic capture and play programs for Blackmagic Design Decklink
Boost Software License 1.0
198 stars 74 forks source link

Capture jpg every x seconds to prevent freeze (bmdplay) #83

Open dv9 opened 7 years ago

dv9 commented 7 years ago

Hi, i need capture the output from a decklink mini monitor to know if the image is freeze and restart avconv or bmdplay. Im using this in a 24/7 service and need get the picture (jpg, bmp, png) of the output every x seconds to compare and take an action. That is posible? I dont know so much from C, but im java and objective C programmer.

Device: Decklink Mini Monitor Program: avconv whit bmdplay

Best regards

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41016418-capture-jpg-every-x-seconds-to-prevent-freeze-bmdplay?utm_campaign=plugin&utm_content=tracker%2F256764&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F256764&utm_medium=issues&utm_source=github).
lu-zero commented 7 years ago

You can use the image2 output format and the select filter to get the result you'd like.

dv9 commented 7 years ago

Is a great idea, have you an example that how send 2 outputs with avconv? one to a bmdplay and other to a jpg image?

And another question when the audio and video freeze happen, can avconv send a good signal and bmdplay has the freeze? Is posible the freeze in bmdplay program?

Thanks in advance lu-zero

You make a great work with this tools

lu-zero commented 7 years ago

I'm not sure what you mean with freeze:

avconv can have multiple inputs and output (more on it in the documentation I linked, I'm going to sleep soon so sorry if I'm terse for now):

avconv -i input -f something theoutput other parameters for the next output -f something otheroutput
dv9 commented 7 years ago

Hi!, I call it when the image freezes and remains still without audio ... is there any log that can be put to the bmdplay program to detect any problem that the image remains still in the output?

dv9 commented 7 years ago

Hi lu-zero, Already solved the problem by taking a captured signal and comparing it to see if it was frozen, thank you, it will be pending to see if at some point you can take the capture from the sdi output of the black magic board, also not relevant for now, A greeting, thank you!