Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2:applications:hardware-encoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
products:sbc:edge2:applications:hardware-encoding [2024/01/17 03:54]
jacobe [Encoding]
products:sbc:edge2:applications:hardware-encoding [2024/05/21 06:18] (current)
jacobe
Line 41: Line 41:
  
 3. Get data from USB camera and encode. 3. Get data from USB camera and encode.
 +
 +<tabbox kernel 5.10.66>
  
 ```shell ```shell
 khadas@Khadas:~$ gst-launch-1.0 v4l2src device=/dev/video33 io-mode=mmap num-buffers=300 ! image/jpeg, width=1920, height=1080, framerate=30/1 ! mppjpegdec ! mpph264enc ! filesink location=./test.h264 khadas@Khadas:~$ gst-launch-1.0 v4l2src device=/dev/video33 io-mode=mmap num-buffers=300 ! image/jpeg, width=1920, height=1080, framerate=30/1 ! mppjpegdec ! mpph264enc ! filesink location=./test.h264
 ``` ```
 +
 +<tabbox Other version>
 +
 +```shell
 +khadas@Khadas:~$ gst-launch-1.0 v4l2src device=/dev/video60 io-mode=mmap num-buffers=300 ! image/jpeg, width=1920, height=1080, framerate=30/1 ! mppjpegdec ! mpph264enc ! filesink location=./test.h264
 +```
 +
 +</tabbox>
  
 Other encoding formats are used similarly. Just replace the corresponding encoder. Other encoding formats are used similarly. Just replace the corresponding encoder.
  
Last modified: 2024/01/17 03:54 by jacobe