# Derating two video streams

**URL:** <https://forums.developer.nvidia.com/t/derating-two-video-streams/182861>\
**Category:** Jetson TX1\
**Tags:** gstreamer, camera\
**Created:** [July 6, 2021, 6:55am UTC](https://forums.developer.nvidia.com/t/derating-two-video-streams/182861 "2021-07-06T06:55:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam.hoshyar](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sam.hoshyar](https://forums.developer.nvidia.com/u/sam.hoshyar)\
**Post date:** [July 6, 2021, 6:55am UTC](https://forums.developer.nvidia.com/t/derating-two-video-streams/182861/1 "2021-07-06T06:55:16Z")

</div>

Hi,

I’m trying to capture two the same scene using a camera at two different FPSs, this is my pipeline

gst-launch-1.0 nvarguscamerasrc num-buffers=150 ! tee name=t t. ! queue ! nvtee ! nvvidconv ! ‘video/x-raw(memory:NVMM),width=400,height=300,framerate=60/1’ ! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=a.mp4 t. ! queue ! nvtee ! nvvidconv ! ‘video/x-raw(memory:NVMM),width=320,height=240,framerate=15/1’ ! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=b.mp4

It works fine if I set both frame rates the same, however, it crashes if they are different, is something wrong with my pipeline?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 6, 2021, 7:42am UTC](https://forums.developer.nvidia.com/t/derating-two-video-streams/182861/3 "2021-07-06T07:42:36Z")

</div>

Hi,  
The source can only run in fixed framerate, either 15 fps or 60 fps. If you need one 60 fps and one 15 fps, one possible solution is to run like:

```auto
nvarguscamerasrc num-buffers=150 ! tee name=t t. ! queue ! nvtee ! nvvidconv ! video/x-raw(memory:NVMM),width=400,height=300,framerate=60/1 ! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=a.mp4 t. ! queue ! appsink

```

And drop frames in _appsink_ to get 15fps. For encoding, would need to run another pipeline in _appsink_ like:

```auto
appsrc ! video/x-raw(memory:NVMM) ! nvv4l2h265enc ! h265parse ! matroskamux ! filesink location=b.mp4

```

If you would like to encode 60fps data into 15fps to have slow motion effect, may try _videorate_ plugin: [videorate](https://gstreamer.freedesktop.org/documentation/videorate/index.html?gi-language=c)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [September 12, 2021, 12:54am UTC](https://forums.developer.nvidia.com/t/derating-two-video-streams/182861/5 "2021-09-12T00:54:53Z")

</div>

Closed on September 12, 2021, 12:54am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
