bmdtools icon indicating copy to clipboard operation
bmdtools copied to clipboard

When no signal from input use image from file instead of color bars

Open lbsdude opened this issue 9 years ago • 5 comments

Nice work with bmdtools. Not as a bug tracker but feature request: Signal detection works quite nicely with basic decklink card and SDI signaling. It would be nice addition to color bars to load image from file and even update it if file is changed. One could create info screens without any graphics generator from SDI when signal is lost or just shutdown between some events.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/21701299-when-no-signal-from-input-use-image-from-file-instead-of-color-bars?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).

lbsdude avatar Jun 12 '15 16:06 lbsdude

It is already in the wishlist. Some additional changes are going to happen soon before that.

lu-zero avatar Jun 12 '15 16:06 lu-zero

Hi, I have some code on a project of mine I can modify and push here to meet your request - just have a couple of questions:

  1. My code works with JPEG encode & decode but would you prefer PNG? I think PNG would be better but don't want to unnecessarily bloat the project.
  2. Live update/swapping a file from disk may cause a bit of a hiccup in frame rate - I was planning on just loading from disk to memory on startup, would that be OK for now?
  3. Eventually I'm wanting to do some basic compositing, I may have an option for baked text timecode on the frame. Is this something users would be interested in?

samgardner avatar Jun 17 '15 22:06 samgardner

  1. Libav can decode both jpeg and png, my plan was to simply take an input and then repeat the nth frame as needed. The boring part is just to write down that code.
  2. I think so.
  3. bake as in write the timestamp on the captured frame? I have in my todo list do have directly drawtext take care of it ^^.

lu-zero avatar Jun 17 '15 22:06 lu-zero

  1. I suppose its just setting up different swscale contexts for different specified file types - just large chunks of setting up that pipeline. No problem.
  2. I'll do that for now. For "live" I was thinking check filesize or checksum the file every few seconds, every frame is probably overkill.
  3. Haven't used drawtext before - or libavfilter for that matter - nice!

samgardner avatar Jun 17 '15 23:06 samgardner

  1. It is not enough, but if you can get to that point I can just to the other part to complete it =)
  2. Indeed
  3. I'm thinking more about that part and might end up being interesting =)

lu-zero avatar Jun 17 '15 23:06 lu-zero