torstai 4. heinäkuuta 2019

Raspberry Pi video-ohjelmani on valmis


Tänään sain valmiiksi FPS video-ohjelmani Raspberry Pi kameramoduulille. Tässä on esimerkki ohjelman ajosta:

...$ ./fpsvideo.py
FPS video program for Raspberry Pi camera v. 2.x (c) ... 2019

List disk and partitions:
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT


Path to images (current directory: <Enter>):
Video project name: test
Select bitrate (1-25000000 bits/s, automatic: <Enter>):
Automatic bitrate selected.

Video modes
1      1920x1080      16:9     30
#2     3280x2464      4:3      15
#3     3280x2464      4:3      15
4      1640x1232      4:3      40
5      1640x922       16:9     40
6      1280x720       16:9     90
7      640x480        4:3      200
8      640x480        4:3      180
Select video mode (1, 4...8): 7
Select exposure time (1...5000) µs: 5000
Select video duration (1...31536000) s: 60

Enable preview (Y/N, Default N: <Enter>):
Default selected: preview disabled
Convert to MKV file (Y/N, Default Y: <Enter>):
Default selected: MKV conversion enabled

Start recording now (Y/N, Default Y: <Enter>): n

raspivid -n -md 7 -w 640 -h 480 -ss 5000 -fps 200 -t 60000 -ex off -ag 1.0 -dg 1.0 -awb off -awbg 1,1 -v -pts test-640x480_200fps_5000ss_60s.pts -o test-640x480_200fps_5000ss_60s.h264 2>&1 | tee test-640x480_200fps_5000ss_60s.rec

mkvmerge -o test-640x480_200fps_5000ss_60s.mkv test-640x480_200fps_5000ss_60s.h264 2>&1 | tee -a test-640x480_200fps_5000ss_60s.rec


PS. Valitsemani 200 fps hidastaa videota 8-kertaisesti, mikäli toistonopeus on 25 fps.

PPS. 5 ms valotusaika vaatii jo aika paljon valoa, jottei video ole miltei täysin musta. Auringonpaisteessa tämä ei ole ongelma, mutta hämärässä huoneessa se on (ilman lisävalaistusta).

Ei kommentteja:

Lähetä kommentti

NATO - OTAN - HATO