Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim1s:applications:hardware-decoding

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:vim1s:applications:hardware-decoding [2024/09/13 02:17]
nick
products:sbc:vim1s:applications:hardware-decoding [2024/09/13 02:30] (current)
nick
Line 20: Line 20:
  
 ```shell ```shell
-gst-launch-1.0 filesrc location=/home/khadas/bbb_sunflower_1080p_60fps_normal.mp4 ! qtdemux name=d d.video_0 ! h264parse ! v4l2h264dec ! video/x-raw,format=NV12 ! filesink location=/home/khadas/decode.nv12+gst-launch-1.0 filesrc location=/home/khadas/bbb_sunflower_1080p_60fps_normal.mp4 num-buffers=100 ! qtdemux name=d d.video_0 ! h264parse ! v4l2h264dec ! video/x-raw,format=NV12 ! filesink location=/home/khadas/decode264.yuv
 ``` ```
  
Line 31: Line 31:
  
 ```shell ```shell
-gst-launch-1.0 filesrc location=/home/khadas/4K_6.1_2012.mkv ! matroskademux name=demux demux. ! h265parse ! v4l2h265dec ! video/x-raw,format=NV12 ! filesink location=/home/khadas/decode.nv12+gst-launch-1.0 filesrc location=/home/khadas/4K_6.1_2012.mkv num-buffers=100 ! matroskademux name=demux demux. ! h265parse ! v4l2h265dec ! video/x-raw,format=NV12 ! filesink location=/home/khadas/decode265.yuv
 ``` ```
  
 ===== MJPEG Hardware Decoding  ===== ===== MJPEG Hardware Decoding  =====
  
-An example to decode video from USB camera and encode to H264:+An example to decode video from USB camera:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/video0 io-mode=mmap num-buffers=300 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! video/x-raw,format=NV12 ! filesink location=test_0.nv12+gst-launch-1.0 v4l2src device=/dev/video0 io-mode=mmap num-buffers=300 ! image/jpeg,width=1280,height=720,framerate=30/1 ! jpegdec ! video/x-raw,format=I420 ! filesink location=video_0.yuv
 ``` ```
  
Last modified: 2024/09/13 02:17 by nick