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
Next revision
Previous revision
products:sbc:edge2:applications:hardware-encoding [2022/11/04 09:13]
frank
products:sbc:edge2:applications:hardware-encoding [2024/01/17 03:54] (current)
jacobe [Encoding]
Line 6: Line 6:
  
 ===== Encoding ===== ===== Encoding =====
 +
 +<WRAP important >
 +If encounter error, please add sudo and try again.
 +</WRAP>
  
 1. Check encoder. 1. Check encoder.
Line 35: Line 39:
  
 ``` ```
 +
 +3. Get data from USB camera and encode.
 +
 +```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
 +```
 +
 Other encoding formats are used similarly. Just replace the corresponding encoder. Other encoding formats are used similarly. Just replace the corresponding encoder.
  
Last modified: 2022/11/04 09:13 by frank