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

trouble making bmd-streamer to work #8

Closed martialgallorini closed 10 years ago

martialgallorini commented 10 years ago

I compiled bmd-tools under Debian Jessie 64 bits. when i first launch bmd-streamer it seems ok. But when i stop it and launch again it can be a pain to make it work again. Seem to launch but nothing happens. I often have to unplug from USB and power supply to make it work again... like there were some memory effect or cache.

martialgallorini commented 10 years ago

example. I launch this command line :

sudo ./bmd-streamer -k 10000 -P main | avconv -re -i - -vcodec copy -acodec copy -f mpegts udp://239.255.1.1:1234

stream is ok.

when i use the argument "-K 10000" instead of "-k 10000" i get the error :

"H56 Error. Restarting device."

fabled commented 10 years ago

Yes, the encoder chip is sensitive to the initialization. I have no datasheet for it, so I cannot write proper parameter validation. Not sure how this could improved.

martialgallorini commented 10 years ago

so the switch -k (average bitrate) doesn't work ?

fabled commented 10 years ago

It works. But I suspect -K needs to match it (be same or larger). I could add that as a parameter validation.

martialgallorini commented 10 years ago

i am not sure to understand. you suggest to use -k 10000 -K 10000 at the same time ?

fabled commented 10 years ago

Yes, or with some higher -K value.

martialgallorini commented 10 years ago

ok works nice. thanks