The state of mainline hardware decoding
(01-26-2022, 02:35 PM)mjhammel Wrote: I'll give this a try, just to prove the hw encoding works in general.  However the request from my team was to see if v4l2 itself (and specifically not gstreamer) could be used for encoding.  Would you happen to know of a reference on how to use v4l2 directly (like on a commane line) to show hw encoding, specifically on mjpeg, on rk3399?

Also: I have a patch for ffmpeg 4.3.1 that adds v4l2_m2m_mjpeg encoder support.  I don't know if it works, but it was in the pbp-tools collection back when I worked with the 5.10.17 kernel.

I don't currently know of an easy way to use v4l2 directly via a CLI tool to encode JPEGs, other than GStreamer's gst-launch with v4l2jpegenc - that's what I'd try first for a CLI tool. Of course if you want to use the v4l2 API directly, you can look at what the GStreamer source code is doing and the API documentation. Section 4.5.2 seems to cover the relevant interface for encoding.

Messages In This Thread
RE: The state of mainline hardware decoding - by sigmaris - 01-26-2022, 03:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information Linux Mainline ayufan 63 73,161 05-14-2021, 10:41 AM
Last Post: Wizzard
  Hardware acceleration using FFmpeg gusarg81 0 2,263 08-21-2020, 01:36 PM
Last Post: gusarg81
  mainline kernel sound support Openwrt lucize 2 3,055 05-01-2020, 05:09 PM
Last Post: PakoSt
  Hardware Status Monitoring? Leapo 7 12,438 03-15-2020, 08:44 AM
Last Post: bendem
  Any advantages to using the mainline kernel dkebler 0 1,676 11-16-2019, 12:17 PM
Last Post: dkebler
  Does anybody run the mainline kernel? CameronNemo 3 3,623 09-09-2019, 07:56 PM
Last Post: CameronNemo
  hardware-accelerated video transcoding (Plex) on Rock64 mdr 2 5,800 02-07-2019, 03:42 PM
Last Post: mdr
  Updates on Mainline Linux Support? hnaguski 0 2,029 09-11-2018, 08:16 PM
Last Post: hnaguski
  How to do hardware decoding of video? SuperSaiyanCaleb 9 12,474 08-28-2018, 01:39 PM
Last Post: mcerveny
  H264 hardware encoder not work sueshieh 3 5,335 11-02-2017, 03:57 AM
Last Post: dalmate

Forum Jump:

Users browsing this thread: 1 Guest(s)