good. thx for reporting!
>
> Here's how I captured from the webcam and recorded into a mp4 file:
>
> sudo gst-launch -v v4l2src device=/dev/video3 num-buffers=200 !
> "video/x-raw-yuv, width=640, height=480,framerate=30/1" ! queue !
> ffmpegcolorspace ! ducatih264enc ! h264parse ! queue! qtmux ! filesink
> location=sample.mp4
>
> Avg CPU usage was 34% at 640x480 and 66% at 1280x720. Some of the
> elements above may not be necessary, not sure if I need h264parse and all
> these queues.
pipeline looks ok. the CPU load is coming from ffmpegcolorspace which
is required since the ducati encoders will take NV12 buffer format
only. the CPU cost of this conversion clearly depends on your
resolution.
>
> Playback uses a lot less CPU, usualy between 1% and 3%:
>
> sudo gst-launch -v playbin2 uri=file:///home/leonardo/sample.mp4
this is expected, since there is nothing done by CPU (more or less)
for video playback. The decoding is one the IVAHD, it produces NV12
buffers that are rendered by the GPU.