veyeimaging / raspberrypi

VEYE camera module software on RaspberryPi
34 stars 18 forks source link

order of "--save-pts" and "--nopreview" flags in veye_raspivid #10

Open turbel opened 3 years ago

turbel commented 3 years ago

This command (--no-preview before --save-pts): ./veye_raspivid --verbose --settings --timeout 2000 --output ~/Videos/testvid1.h264 --nopreview --save-pts > ~/Videos/testvid1.log 2>&1

yields the expected video recording and no preview on screen. Logfile:

camera num -1

veye_raspivid Camera App v1.3.12

Width 1920, Height 1080, filename /home/pi/Videos/testvid1.h264 bitrate 17000000, framerate 30, time delay 2000 H264 Profile high H264 Level 4 H264 Quantisation level 0, Inline headers No H264 Fill SPS Timings No H264 Intra refresh type (null), period -1 H264 Slices 1 Wait method : Simple capture Initial state 'record'

Preview No, Full screen Yes Preview window 0,0,1024,768 Opacity 255 mmal: mmal_component_enable w 1920 h 1080

raspipreview_create com Encoder component done mmal: Splitter has 4 output port,you could use num 2,3 for extend Splitter component done Starting component connection stage Connecting camera video port to encoder input port Opening output file "/home/pi/Videos/testvid1.h264" Enabling encoder output port mmal: running now!! Starting video capture mmal: running stop!! 0 Finished capture Closing down Close down completed, all components disconnected, disabled and destroyed

However, this command (--save-pts before --nopreview): ./veye_raspivid --verbose --settings --timeout 2000 --output ~/Videos/testvid2.h264 --save-pts --nopreview > ~/Videos/testvid2.log 2>&1

generates the appropriate video, but ignores the --nopreview flag, as can be seen from the log file:

camera num -1

veye_raspivid Camera App v1.3.12

Width 1920, Height 1080, filename /home/pi/Videos/testvid2.h264 bitrate 17000000, framerate 30, time delay 2000 H264 Profile high H264 Level 4 H264 Quantisation level 0, Inline headers No H264 Fill SPS Timings No H264 Intra refresh type (null), period -1 H264 Slices 1 Wait method : Simple capture Initial state 'record'

Preview Yes, Full screen Yes Preview window 0,0,1024,768 Opacity 255 mmal: mmal_component_enable w 1920 h 1080

raspipreview_create com Encoder component done mmal: Splitter has 4 output port,you could use num 2,3 for extend Splitter component done Starting component connection stage Connecting camera video port to encoder input port Opening output file "/home/pi/Videos/testvid2.h264" Enabling encoder output port mmal: running now!! Starting video capture mmal: running stop!! 0 Finished capture Closing down Close down completed, all components disconnected, disabled and destroyed

0.000 33.332 66.663 99.993 133.326 166.657 199.988 233.321 266.654 299.982