alliedvision / gst-vimbasrc

Official vimbasrc element for use of Vimba with GStreamer
Other
10 stars 9 forks source link

Save video Raw8 or Raw10 #22

Open romain87400 opened 1 year ago

romain87400 commented 1 year ago

Hi, I would like record videos (not encoding) from camera 1800 U-240m and used pixel format Mono8 or Mono10. I works on Debian system and so used gstreamer to doing that.

When i saved video with gstreamer at 60 fps, after a few moment (under 1min ), i lost the fps and so cannot keep 60 fps. But when record starting, everything is ok.

gst-launch-1.0 vimbasrc camera=025LC settingsfile=/home/user/Documents/CAMUSB.xml ! 'video/x-raw, format=GRAY8' ! videoconvert ! "video/x-raw, format=I420" ! queue ! filesink location=/home/user/file.I420

For play this video i used this command line : gst-launch-1.0 filesrc location=/home/user/file.I420 ! videoparse width=1936 height=1216 framerate=60/1 ! xvimagesink

Other thing, during moment when i record the video, i see the ram memory charged in cache and not release when i stop recording.

top - 13:24:24 up 11 min, 3 users, load average: 0.15, 0.07, 0.08 MiB Mem : 31978.4 total, 28081.6 free, 725.6 used, 3171.3 buff/cache

PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND

2431 user 20 0 1632760 63680 18544 S 62.5 0.2 0:08.62 gst-launch-1.0

After few moment during recording :

top - 13:24:51 up 12 min, 3 users, load average: 0.80, 0.23, 0.13 MiB Mem : 31978.4 total, 22423.1 free, 786.7 used, 8768.6 buff/cache

PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND

2431 user 20 0 1639608 70508 18544 S 70.4 0.2 0:28.11 gst-launch-1.0

Do you have an idea or an remark about my problem and how i can resolve that to record video not encoding at 60 fps ? Thanks for your help and answer.