- Posts: 2
- Joined: Wed Dec 13, 2017 11:00 am
Hello Everybody,
I´m developing a python program with opencv (on Ubuntu system) which capture video then process the video and draw on it and then it show this processed video on my vga monitor.
I have a decklink sdi card.
For the capture I´m using this command:
Then on my python code i work with the udp://localhost:5010 stream and finish my program with:
To run my program i write the next command:
Now i can see on my terminal the output of Bmdplay running without errors, also i can see the video signal processed on my VGA monitor, but blackmagic card all the time is playing the input signal and i want it play the video which is output from my python program.
Can someone help me with this?
There is some method wich the bmdcapture leave free the output of the card?, because i think my problem is that bmdcapture appropriate the output connector.
I hope someone can help me with this.
Thank you very much.
I´m developing a python program with opencv (on Ubuntu system) which capture video then process the video and draw on it and then it show this processed video on my vga monitor.
I have a decklink sdi card.
For the capture I´m using this command:
- Code: Select all
./bmdcapture -m 1 -A 2 -V 4 -F nut -f pipe:1|ffmpeg -i - -q 5 -r 25 -s 1024x576 -f mpeg1video udp://localhost:5010
Then on my python code i work with the udp://localhost:5010 stream and finish my program with:
- Code: Select all
....
cv2.imshow('Video Stream', frame)#Show the video stream on my Vga
sys.stdout.write( frame.tostring() ) #write the raw video frames to stdout to pipe to Bmdplay
To run my program i write the next command:
- Code: Select all
python DrawOnVideo.py | avconv -f rawvideo -pixel_format uyvy422 -video_size 720x576 -framerate 25 -an -i - -f nut -f_strict experimental -syncpoints none - | ./bmdplay -m 1 -f pipe:0 -O 4
Now i can see on my terminal the output of Bmdplay running without errors, also i can see the video signal processed on my VGA monitor, but blackmagic card all the time is playing the input signal and i want it play the video which is output from my python program.
Can someone help me with this?
There is some method wich the bmdcapture leave free the output of the card?, because i think my problem is that bmdcapture appropriate the output connector.
I hope someone can help me with this.
Thank you very much.