Support for HW accelerated Image Grabbing #199

Closed
opened 2025-12-23 10:35:44 +01:00 by backuprepo · 3 comments
Owner

Originally created by @defencedog on GitHub (Aug 12, 2025).

I am extracting images from my webcam v380 & processing them in RKNPU. Is there a code which can make this process use GPU? I am on RK3566 & am successfully using h264_rkmpp for video recording.

My script is v380 -u xxxx -p xxxx -addr 192.168.1.xxx | ffmpeg -i - -f image2 -vf fps=3 -strftime 1 "$TEMP_DIR/%Y-%m-%d_%H-%M-%S_cap.jpg" -y

It gives me screenshot after every ~1 sec ... I did have to play with choices fps=1,3,5

Originally created by @defencedog on GitHub (Aug 12, 2025). I am extracting images from my webcam v380 & processing them in RKNPU. Is there a code which can make this process use GPU? I am on RK3566 & am successfully using `h264_rkmpp` for video recording. My script is `v380 -u xxxx -p xxxx -addr 192.168.1.xxx | ffmpeg -i - -f image2 -vf fps=3 -strftime 1 "$TEMP_DIR/%Y-%m-%d_%H-%M-%S_cap.jpg" -y` It gives me screenshot after every ~1 sec ... I did have to play with choices `fps=1,3,5`
backuprepo 2025-12-23 10:35:44 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Aug 13, 2025):

Isn't there an mjpeg_rkmpp hardware encoder?

 V..... mjpeg_rkmpp          Rockchip MPP (Media Process Platform) MJPEG encoder (codec mjpeg)
@nyanmisaka commented on GitHub (Aug 13, 2025): Isn't there an `mjpeg_rkmpp` hardware encoder? ``` V..... mjpeg_rkmpp Rockchip MPP (Media Process Platform) MJPEG encoder (codec mjpeg) ```
Author
Owner

@defencedog commented on GitHub (Aug 14, 2025):

Should I use ffmpeg -i - -f image2 -c:v mjpeg_rkmpp -vf fps=3 -strftime 1 "$TEMP_DIR/%Y-%m-%d_%H-%M-%S_cap.jpg" or should omit -f image2 ... I see no difference

@defencedog commented on GitHub (Aug 14, 2025): Should I use `ffmpeg -i - -f image2 -c:v mjpeg_rkmpp -vf fps=3 -strftime 1 "$TEMP_DIR/%Y-%m-%d_%H-%M-%S_cap.jpg" ` or should omit `-f image2` ... I see no difference
Author
Owner

@nyanmisaka commented on GitHub (Aug 14, 2025):

-f image2 is not important. As long as -c:v mjpeg_rkmpp does not fail, hardware encoding is already enabled.

@nyanmisaka commented on GitHub (Aug 14, 2025): `-f image2` is not important. As long as `-c:v mjpeg_rkmpp` does not fail, hardware encoding is already enabled.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#199
No description provided.