Jump to content

Minh

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Minh reacted to simaidensepul in How I can use hardware-acceleration to encode/transcode video on Orange Pi 5 using FFmpeg? (or I need to use gstreamer?)   
    After some research, I achieved the video encoding with hw accelerate with gstreamer, both h264 and h265 codecs. For this, you have to use mpph264enc/mpph265enc options (h264/h265) , and also  gstreamer1.0-rockchip. There are the full installation steps:
     
    - For 3d hw drivers:
     
    sudo add-apt-repository ppa:liujianfeng1994/panfork-mesa sudo add-apt-repository ppa:liujianfeng1994/rockchip-multimedia sudo apt update sudo apt dist-upgrade sudo apt install mali-g610-firmware rockchip-multimedia-config  
    - Install gstreamer and some plugins:
     
    sudo apt install gstreamer1.0-rockchip sudo apt install gstreamer1.0-plugins-base-apps sudo apt install gstreamer1.0-plugins-bad sudo apt install gstreamer1.0-plugins-good  
    - Use gstreamer, in this case getting the video from an usb webcam
     
    # for h264 gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=640,height=480,framerate=30/1 ! jpegdec ! mpph264enc ! h264parse ! mp4mux ! filesink location=test_h264.mp4 -e # for h265 gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg,width=640,height=480,framerate=30/1 ! jpegdec ! mpph265enc ! h265parse ! mp4mux ! filesink location=test_h265.mp4 -e  
     
    I'm still getting used to gstreamer, so any advice about the usability is welcome, and also I will update this post if I found any improvement
     
     
     
  2. Like
    Minh reacted to amazingfate in How I can use hardware-acceleration to encode/transcode video on Orange Pi 5 using FFmpeg? (or I need to use gstreamer?)   
    @MinhYou have to read docs from rockchip: https://gitlab.com/rk3588_linux/linux/bsp/docs/-/tree/linux-5.10-gen-rkr3.5/Linux/Multimedia
    There should be a lot of guides in the internet world.
  3. Like
    Minh reacted to NicoD in How I can use hardware-acceleration to encode/transcode video on Orange Pi 5 using FFmpeg? (or I need to use gstreamer?)   
    @MinhIt is not GPU hw acc but VPU you need.
    Are you using the @amazingfate multimedia ppa?
     
    sudo add-apt-repository ppa:liujianfeng1994/panfork-mesa #Panfork GPU ppa sudo add-apt-repository ppa:liujianfeng1994/rockchip-multimedia #Multimedia ppa for VPU acceleration sudo apt update sudo apt dist-upgrade sudo apt install mali-g610-firmware rockchip-multimedia-config I suspect you might need gstreamer. That's included. My knowledge ain't great in these things, so maybe amazingfate or someone else can add to it.
  4. Like
    Minh reacted to royk in How I can use hardware-acceleration to encode/transcode video on Orange Pi 5 using FFmpeg? (or I need to use gstreamer?)   
    @Minh I've seen a GitHub of someone who added hw encoding to ffmpeg but can't find it atm. Perhaps this will help you:
    https://github.com/rigaya/rkmppenc
     
    Not sure if this one works for rk3588:
    https://github.com/jjm2473/ffmpeg-rk
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines