Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
turbel opened this issue Apr 12, 2021 · 0 comments
Open

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

turbel opened this issue Apr 12, 2021 · 0 comments
Assignees

Comments

@turbel
Copy link

turbel commented Apr 12, 2021

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

@mmxuxp mmxuxp self-assigned this Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants