This posting is using not still-shot but video.
copy camcv.c to RaspiVid.c
Editing RaspiVid.c file.
- We delete- all lines related to the preview component,
- - all lines related to the encoder component.
- - all lines related to inline command parsing and picture info…
- We change :
- - add the callback directly to the video_port (line 286)
- - create and attach the pool (to get/send message) to the video port… (line 320)
- - change format encoding to ENCODING_I420 in line (268) (instead of OPAQUE)
But, recommend down load raspiVid.c file
and editing Line 489
- else if (!raspipreview_create(&state.preview_parameters))
- => else if ( (status = raspipreview_create(&state.preview_parameters)) != MMAL_SUCCESS)
rename raspiVid.c to camcv.c
(If you download above link, you getting camcv_vid0.c )
- mv RaspiVid.c camcv.c
build
RUN (using xrdp or rasberry pi x-window)
1
|
./camcv
| cs |
If you change color or gray and frame, see Line 124 and Line 119~120.
picam FPS in Pi 1
picam FPS in Pi 2
maybe fps limit 29.9
No comments:
Post a Comment