Hi, I want to capture and encode only N frames (say 10). I'm using the below command
```
gpac -i video://:fmt=x11grab:framerate=30:video_size=1280x720:dev=: enc:c=libx265 reframer:frames=1,2,3,4,5,6,7,8,9,10 -o out.mp4
```
This saves only 10 frames, but the command keeps running on the terminal. Ideally, it should stop once 10 frames are encoded and saved. I also tried with `xs` and `xe` options, but they also didn't help. The command works absolutely fine with a file as input but it isn't working with screen capture. How to do this?
How to encode N frames only?
This is a GitHub Issue
repo:gpac
owner:gpac
Title : How to encode N frames only?
Issue date:

--- start body ---
Hi, I want to capture and encode only N frames (say 10). I'm using the below command
```
gpac -i video://:fmt=x11grab:framerate=30:video_size=1280x720:dev=: enc:c=libx265 reframer:frames=1,2,3,4,5,6,7,8,9,10 -o out.mp4
```
This saves only 10 frames, but the command keeps running on the terminal. Ideally, it should stop once 10 frames are encoded and saved. I also tried with `xs` and `xe` options, but they also didn't help. The command works absolutely fine with a file as input but it isn't working with screen capture. How to do this?
--- end body ---
