fabled / bmd-tools

Tools to connect and manage Blackmagic Design video equipment with built-in H.264 encoder
MIT License
37 stars 14 forks source link

better handle for video signal interruption #6

Closed martialgallorini closed 9 years ago

martialgallorini commented 10 years ago

Hi,

i use bmd-streamer to stream an SDI video camera image through UDP Multicast. when signal breaks (camera disconnected or off) stream breaks and error occurs. reconnecting the camera (or turning back on) doesn't fix. Stream needs to manually be launched again.

would be nice if stream cleanly stops and waits for the signal to appear again.

thank you

fabled commented 10 years ago

Are you disconnecting encoder, or camera? I believe disconnecting encoder should work. But disconnect camera probably does not. It is mentioned in the source comments. And yes, this should be fixed.

martialgallorini commented 10 years ago

Here are some feedback :

doesn't see the signal when camera is connected back on

fabled commented 10 years ago

Yes. It changes MUX to take in from HDMI. And you had SDI connected, right?

I can add a switch to select the proper input sometime this week. I just need to analyze which value was which.

fabled commented 10 years ago

Please re-test now with issue #7 fixed. It might fix this as well.

martialgallorini commented 10 years ago

ok works nice now. Can disconnect camera. Send message : [2/32 1edb:bd43]: Input Mode, 0xff (display mode 0x02) not supported

when reconnecting : stream restarts.

so ok for me

thanks a lot

fabled commented 10 years ago

Ok. Good. Though, I think it will not work if the resolution changes between disconnect/connect. I'm keeping the ticket open as a reminder to fix that.