BreakingY / jetpack-dec-enc

Jetson Video Encoding and Decoding ; Jetson Jetpack5.x视频编解码库
MIT License
24 stars 2 forks source link
decode encode ffmpeg h264 h265 jetpack jetson nalu orin rtsp

jetpack-dec-enc

Jetson Video Encoding and Decoding ; Jetson Jetpack5.x视频编解码库

jetson_enc_5.0.2

编译

  1. 解码

    • export PATH=$PATH:/usr/local/cuda/bin
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
    • cd jetson_dec_5.0.2
    • tar -zxvf include.tar.gz && tar -zxvf common.tar.gz 这两个文件夹在windows上打开有问题,所以我以压缩包的形式传上来的,需要在linux下解压。可在/usr/src/jetson_multimedia_api和/usr/src/jetson_multimedia_api/samples/中可以找到
    • mkdir build
    • cd build
    • cmake ..
    • make -j4
    • 测试
      1. 文件测试:./demo ../../test_video/test_1280x720_v.mp4 1
      2. RTSP测试:./demo your_rtsp_url 1
  2. 编码

    • export PATH=$PATH:/usr/local/cuda/bin
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
    • cd jetson_enc_5.0.2
    • tar -zxvf include.tar.gz && tar -zxvf common.tar.gz
    • mkdir build
    • cd build
    • cmake ..
    • make -j4
    • 测试 ./demo ../../test_video/352_288.yuv 352 288 25 output.h264

温馨小提示

技术交流