OrangePi PC2 H.264 artifacts with sunxi-Cedrus


Recommended Posts

Hey guys.

 

I have been trying to utilize H5 vpu decoding for 10+ hours... Still no go.

 

Here is the checklist:

  1. kernel
    Using mainline kernel 5.8.9 from Armbian/build current.
    `uname -a` output: 
    Quote

    Linux orangepipc2 5.8.9-sunxi64 #trunk SMP Wed Sep 16 09:14:14 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

     

    All kernel configs needed on Sunxi-Cedrus homepage were added, cma set to 256M. 
     

  2. libva-v4l2-request
    Using https://github.com/Sash0k/libva-v4l2-request master.
    Compiled and make installed.

    `vainfo` output:

    Quote

    libva info: VA-API version 1.9.0
    libva info: User environment variable requested driver 'v4l2_request'
    libva info: Trying to open /usr/local/lib/dri/v4l2_request_drv_video.so
    libva info: Found init function __vaDriverInit_1_9
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.9 (libva 2.9.0.pre1)
    vainfo: Driver version: v4l2-request
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            : VAEntrypointVLD
          VAProfileMPEG2Main              : VAEntrypointVLD
          VAProfileH264Main               : VAEntrypointVLD
          VAProfileH264High               : VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointVLD
          VAProfileH264MultiviewHigh      : VAEntrypointVLD
          VAProfileH264StereoHigh         : VAEntrypointVLD
          VAProfileHEVCMain               : VAEntrypointVLD


    `v4l2-ctl --list-formats` output:

    Quote

    ioctl: VIDIOC_ENUM_FMT
            Index       : 0
            Type        : Video Capture
            Pixel Format: 'ST12' (compressed)
            Name        : Sunxi Tiled NV12 Format
     

            Index       : 1
            Type        : Video Capture
            Pixel Format: 'NV12'
            Name        : Y/CbCr 4:2:0


    `./v4l2-request-test -f 25 -l` output:

    Quote

    Config:                                                                                                                                                                                                                               [0/1249]
     Video path: /dev/video0
     Media path: /dev/media0
     DRM path: /dev/dri/card0
     DRM driver: sun4i-drm
     Slices path: data/bbb-mpeg2
     Slices filename format: slice-%d.dump
     FPS: 25

    Preset:
     Name: bbb-mpeg2
     Description: big_buck_bunny_480p_MPEG2_MP2_25fps_1800K.MPG
     License: Creative Commons Attribution 3.0
     Attribution: Blender Foundation | www.blender.org
     Width: 854
     Height: 480
     Frames count: 25
     Format: MPEG2

    Media device driver: cedrus
    Destination format: NV12 YUV
    Scaling video from 854x480 to 1024x575+0+12
     

    Processing frame 1/25
    Loaded 40286 bytes of video slice data
    Decoded video frame successfuly!
    Frame decode time: 2560 us
    Displayed video frame successfuly!
    Frame display time: 13636 us


    Processing frame 2/25
    Loaded 7193 bytes of video slice data
    Decoded video frame successfuly!
    Frame decode time: 1434 us
    Displayed video frame successfuly!
    Frame display time: 8286 us


    Processing frame 3/25
    Loaded 26746 bytes of video slice data
    Decoded video frame successfuly!
    Frame decode time: 1936 us
    Displayed video frame successfuly!
    Frame display time: 1092 us
    ...

    Cpu usage is quite low(4 cores <5%),  checked with lsof and /dev/media0 & /dev/video0 are all occupied by v4l2-request-test.
    Seems frame decoding is working ok, but the big_buck_bunny video did not show up, something must be wrong here...
     

  3. ffmpeg
    https://github.com/Kwiboo/FFmpeg.git branch FFmpeg-4l2-request-hwaccel-4.3
    `--enable-v4l2-request --enable-libdrm --enable-libudev` added in configure,

    `ffmpeg -decoders | grep 264` output:
     

    Quote

     ffmpeg version 4.3-Kodi Copyright (c) 2000-2020 the FFmpeg developers
      built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
      configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
      libavutil      56. 51.100 / 56. 51.100
      libavcodec     58. 91.100 / 58. 91.100
      libavformat    58. 45.100 / 58. 45.100
      libavdevice    58. 10.100 / 58. 10.100
      libavfilter     7. 85.100 /  7. 85.100
      libswscale      5.  7.100 /  5.  7.100
      libswresample   3.  7.100 /  3.  7.100
      libpostproc    55.  7.100 / 55.  7.100
     VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
     V..... h264_v4l2m2m         V4L2 mem2mem H.264 decoder wrapper (codec h264)

     

     

And finally running `ffmpeg -loglevel debug -hwaccel drm -i ~/jellyfish-10-mbps-hd-h264.mkv -pix_fmt bgra -f fbdev /dev/fb0` without x11, green artifacts met.
One of the four cores is 100% utilized, others are free. Frame rate is super low (<5fps).
VCALA13.jpg

 

Quote

ffmpeg version 4.3-Kodi Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: 
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avcodec     configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avformat    configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avdevice    configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avfilter    configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  swscale     configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  swresample  configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'drm'.
Reading option '-i' ... matched as input url with argument '/root/jellyfish-10-mbps-hd-h264.mkv'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'null'.
Reading option '-' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url /root/jellyfish-10-mbps-hd-h264.mkv.
Applying option hwaccel (use HW accelerated decoding) with argument drm.
Successfully parsed a group of options.
Opening an input file: /root/jellyfish-10-mbps-hd-h264.mkv.
[NULL @ 0x2f329360] Opening '/root/jellyfish-10-mbps-hd-h264.mkv' for reading
[file @ 0x2f329bb0] Setting default whitelist 'file,crypto,data'
[matroska,webm @ 0x2f329360] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x2f329360] Before avformat_find_stream_info() pos: 5527 bytes read:32768 seeks:0 nb_streams:1
[h264 @ 0x2f32b5d0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x2f32b5d0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x2f32b5d0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x2f32b5d0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x2f32b5d0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x2f32b5d0] Format yuv420p chosen by get_format().
[h264 @ 0x2f32b5d0] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x2f32b5d0] no picture 
[matroska,webm @ 0x2f329360] All info found
[matroska,webm @ 0x2f329360] After avformat_find_stream_info() pos: 225468 bytes read:248705 seeks:0 frames:3
Input #0, matroska,webm, from '/root/jellyfish-10-mbps-hd-h264.mkv':
  Metadata:
    encoder         : libebml v1.2.0 + libmatroska v1.1.0
    creation_time   : 2016-02-06T04:00:51.000000Z
  Duration: 00:00:30.03, start: 0.000000, bitrate: 9955 kb/s
    Stream #0:0(eng), 3, 1/1000: Video: h264 (High), 1 reference frame, yuv420p(tv, bt709, progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
Successfully opened the file.
Parsing a group of options: output url -.
Applying option f (force format) with argument null.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
detected 4 logical cores
[h264 @ 0x2f32e6c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x2f32e6c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[h264 @ 0x2f32e6c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x2f32e6c0] Format drm_prime chosen by get_format().
[h264 @ 0x2f32e6c0] Format drm_prime requires hwaccel initialisation.
[h264 @ 0x2f32e6c0] ff_v4l2_request_init: avctx=0x2f32e6c0 hw_device_ctx=0x2f3291f0 hw_frames_ctx=(nil)
[h264 @ 0x2f32e6c0] v4l2_request_probe_media_device: avctx=0x2f32e6c0 ctx=0xffffac06b360 path=/dev/media0 driver=cedrus
[h264 @ 0x2f32e6c0] v4l2_request_probe_video_device: avctx=0x2f32e6c0 ctx=0xffffac06b360 path=/dev/video0 capabilities=69238784
[h264 @ 0x2f32e6c0] v4l2_request_init_context: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] ff_v4l2_request_frame_params: avctx=0x2f32e6c0 ctx=0xffffac06b360 hw_frames_ctx=0xffffac07c8e0 hwfc=0xffffac06b480 pool=0xffffac06b4e0 width=1920 height=1088 initial_pool_size=3
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06b7d0
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06b9e8 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06b9e8 index=0 fd=-1 addr=0xffffb3509000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06ba68 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06ba68 index=0 fd=6 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06b7d0 request_fd=7
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06bd40
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06bf58 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06bf58 index=1 fd=-1 addr=0xffffb3109000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06bfd8 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06bfd8 index=1 fd=8 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06bd40 request_fd=9
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06c2e0
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06c4f8 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06c4f8 index=2 fd=-1 addr=0xffffb2d09000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06c578 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06c578 index=2 fd=10 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06c2e0 request_fd=11
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06cb40
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06cd58 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06cd58 index=3 fd=-1 addr=0xffffb2909000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06cdd8 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06cdd8 index=3 fd=12 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06cb40 request_fd=13
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06d0e0
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06d2f8 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06d2f8 index=4 fd=-1 addr=0xffffb2509000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06d378 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06d378 index=4 fd=14 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06d0e0 request_fd=15
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06d680
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06d898 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06d898 index=5 fd=-1 addr=0xffffb2109000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06d918 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06d918 index=5 fd=16 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06d680 request_fd=17
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06de70
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06e088 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06e088 index=6 fd=-1 addr=0xffffb1d09000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06e108 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06e108 index=6 fd=18 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06de70 request_fd=19
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06e410
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06e628 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06e628 index=7 fd=-1 addr=0xffffb1909000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06e6a8 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06e6a8 index=7 fd=20 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06e410 request_fd=21
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06e9f0
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06ec08 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06ec08 index=8 fd=-1 addr=0xffffb1509000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06ec88 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06ec88 index=8 fd=22 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06e9f0 request_fd=23
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06efd0
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06f1e8 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06f1e8 index=9 fd=-1 addr=0xffffb1109000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06f268 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06f268 index=9 fd=24 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06efd0 request_fd=25
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06f5b0
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06f7c8 type=2
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=875967059 width=1920 height=1088 bytesperline=0 sizeimage=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06f7c8 index=10 fd=-1 addr=0xffffb0d09000 width=1920 height=1088 size=4194304
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: avctx=0x2f32e6c0 buf=0xffffac06f848 type=1
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: pixelformat=842094158 width=1920 height=1088 bytesperline=1920 sizeimage=3133440
[h264 @ 0x2f32e6c0] v4l2_request_buffer_alloc: buf=0xffffac06f848 index=10 fd=26 addr=(nil) width=1920 height=1088 size=3133440
[h264 @ 0x2f32e6c0] v4l2_request_frame_alloc: avctx=0x2f32e6c0 size=792 data=0xffffac06f5b0 request_fd=27
[h264 @ 0x2f32e6c0] Reinit context to 1920x1088, pix_fmt: drm_prime
[h264 @ 0x2f32e6c0] no picture 
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=144856 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=51634 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=23409 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=24016 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=72435 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=32226 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[graph 0 input from stream 0:0 @ 0x2f767140] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x2f767140] Setting 'pix_fmt' to value '23'
[graph 0 input from stream 0:0 @ 0x2f767140] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x2f767140] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x2f767140] Setting 'frame_rate' to value '19001/634'
[graph 0 input from stream 0:0 @ 0x2f767140] w:1920 h:1080 pixfmt:nv12 tb:1/1000 fr:19001/634 sar:1/1
[AVFilterGraph @ 0x2f766ce0] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0(eng), 0, 634/19001: Video: wrapped_avframe, 1 reference frame, nv12(left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 wrapped_avframe
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=75487 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=36735 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=36497 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=83496 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=30999 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=88579 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=36021 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=36469 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=91283 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=37308 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=37632 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
frame=   12 fps=0.0 q=-0.0 size=N/A time=00:00:00.40 bitrate=N/A speed=0.754x    
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=80283 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=38216 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=38766 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=89547 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=33087 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=81889 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=38621 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=38893 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=92226 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=28898 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=78517 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=34058 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=127088 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=73291 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
frame=   26 fps= 24 q=-0.0 size=N/A time=00:00:00.86 bitrate=N/A speed=0.815x    
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=34917 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=33117 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=78058 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=30081 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=75739 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=32370 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=80215 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=38271 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=38445 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=90602 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=32454 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=73676 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=34054 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=73717 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
frame=   40 fps= 25 q=-0.0 size=N/A time=00:00:01.33 bitrate=N/A speed=0.835x    
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=35223 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=83956 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=33547 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=71219 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=34059 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=70685 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=34676 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=34229 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=79218 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=31789 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=65662 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=32346 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=67042 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=104995 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
frame=   54 fps= 25 q=-0.0 size=N/A time=00:00:01.80 bitrate=N/A speed=0.851x    
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=63804 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=29295 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=32370 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=64060 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=27613 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=31636 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=62577 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=28042 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=63899 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=31700 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=31624 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=69067 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=29637 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=28906 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
frame=   68 fps= 26 q=-0.0 size=N/A time=00:00:02.26 bitrate=N/A speed=0.858x    
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=64889 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=26366 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=66188 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=24934 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=55534 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=22763 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=54919 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=22711 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=69063 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=27203 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=26969 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=55998 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=23082 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=48864 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
frame=   82 fps= 26 q=-0.0 size=N/A time=00:00:02.73 bitrate=N/A speed=0.867x    
[h264 @ 0x2f3aad70] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=91325 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=50586 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=19346 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=54100 controls=5 index=9 fd=24 request_fd=25 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=22259 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=55572 controls=5 index=8 fd=22 request_fd=23 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=24944 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=24382 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=62730 controls=5 index=7 fd=20 request_fd=21 first_slice=1 last_slice=1
[h264 @ 0x2f363300] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f363300] v4l2_request_queue_decode: avctx=0x2f363300 used=25349 controls=5 index=10 fd=26 request_fd=27 first_slice=1 last_slice=1
[h264 @ 0x2f3aad70] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3aad70] v4l2_request_queue_decode: avctx=0x2f3aad70 used=28603 controls=5 index=6 fd=18 request_fd=19 first_slice=1 last_slice=1
[h264 @ 0x2f3c6820] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x2f3c6820] v4l2_request_queue_decode: avctx=0x2f3c6820 used=63136 controls=5 index=4 fd=14 request_fd=15 first_slice=1 last_slice=1
[h264 @ 0x2f3e22d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f3e22d0] v4l2_request_queue_decode: avctx=0x2f3e22d0 used=25389 controls=5 index=5 fd=16 request_fd=17 first_slice=1 last_slice=1
[h264 @ 0x2f32e6c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x2f32e6c0] v4l2_request_queue_decode: avctx=0x2f32e6c0 used=24925 controls=5 index=3 fd=12 request_fd=13 first_slice=1 last_slice=1
frame=   96 fps= 26 q=-0.0 size=N/A time=00:00:03.20 bitrate=N/A speed=0.871x    
frame=   96 fps= 26 q=-0.0 Lsize=N/A time=00:00:03.20 bitrate=N/A speed=0.854x    
video:50kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (/root/jellyfish-10-mbps-hd-h264.mkv):
  Input stream #0:0 (video): 101 packets read (5093587 bytes); 97 frames decoded; 
  Total: 101 packets (5093587 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (video): 96 frames encoded; 96 packets muxed (51456 bytes); 
  Total: 96 packets (51456 bytes) muxed
...



Changing hwaccel from `drm` to `vaapi` (and what's the difference between these two?),  met another kind of artifacts.

iY2SR0f.jpg

 

Quote

ffmpeg version 4.3-Kodi Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
  configuration: 
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avcodec     configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avformat    configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avdevice    configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  avfilter    configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  swscale     configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  swresample  configuration: --prefix=/root/FFmpeg-4l2-request-hwaccel-4.3/out_armbian --disable-asm --disable-yasm --enable-gpl --enable-nonfree --enable-v4l2-request --enable-libdrm --enable-libudev --enable-shared --enable-pic --enable-hwaccel=h264_v4l2request
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated decoding) with argument 'vaapi'.
Reading option '-i' ... matched as input url with argument '/root/jellyfish-10-mbps-hd-h264.mkv'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'null'.
Reading option '-' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url /root/jellyfish-10-mbps-hd-h264.mkv.
Applying option hwaccel (use HW accelerated decoding) with argument vaapi.
Successfully parsed a group of options.
Opening an input file: /root/jellyfish-10-mbps-hd-h264.mkv.
[NULL @ 0x33e8360] Opening '/root/jellyfish-10-mbps-hd-h264.mkv' for reading
[file @ 0x33e8bb0] Setting default whitelist 'file,crypto,data'
[matroska,webm @ 0x33e8360] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x33e8360] Before avformat_find_stream_info() pos: 5527 bytes read:32768 seeks:0 nb_streams:1
[h264 @ 0x33ea5d0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x33ea5d0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x33ea5d0] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x33ea5d0] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x33ea5d0] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x33ea5d0] Format yuv420p chosen by get_format().
[h264 @ 0x33ea5d0] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x33ea5d0] no picture 
[matroska,webm @ 0x33e8360] All info found
[matroska,webm @ 0x33e8360] After avformat_find_stream_info() pos: 225468 bytes read:248705 seeks:0 frames:3
Input #0, matroska,webm, from '/root/jellyfish-10-mbps-hd-h264.mkv':
  Metadata:
    encoder         : libebml v1.2.0 + libmatroska v1.1.0
    creation_time   : 2016-02-06T04:00:51.000000Z
  Duration: 00:00:30.03, start: 0.000000, bitrate: 9955 kb/s
    Stream #0:0(eng), 3, 1/1000: Video: h264 (High), 1 reference frame, yuv420p(tv, bt709, progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default)
Successfully opened the file.
Parsing a group of options: output url -.
Applying option f (force format) with argument null.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
[AVHWDeviceContext @ 0x33e8040] Trying to use DRM render node for device 0.
[AVHWDeviceContext @ 0x33e8040] libva: VA-API version 1.9.0
[AVHWDeviceContext @ 0x33e8040] libva: User environment variable requested driver 'v4l2_request'
[AVHWDeviceContext @ 0x33e8040] libva: Trying to open /usr/local/lib/dri/v4l2_request_drv_video.so
[AVHWDeviceContext @ 0x33e8040] libva: Found init function __vaDriverInit_1_9
[AVHWDeviceContext @ 0x33e8040] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x33e8040] Initialised VAAPI connection: version 1.9
[AVHWDeviceContext @ 0x33e8040] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x33e8040] VAAPI driver: v4l2-request.
[AVHWDeviceContext @ 0x33e8040] Driver not found in known nonstandard list, using standard behaviour.
detected 4 logical cores
[h264 @ 0x33f0180] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x33f0180] nal_unit_type: 8(PPS), nal_ref_idc: 3
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[h264 @ 0x33f0180] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 0x33f0180] Format vaapi_vld chosen by get_format().
[h264 @ 0x33f0180] Format vaapi_vld requires hwaccel initialisation.
[h264 @ 0x33f0180] Considering format 0x3231564e -> nv12.
[h264 @ 0x33f0180] Picked nv12 (0x3231564e) as best match for yuv420p.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000000.
[AVHWFramesContext @ 0xffffb006b3d0] Direct mapping possible.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000001.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000002.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000003.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000004.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000005.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000006.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000007.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000008.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000009.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x400000a.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x400000b.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x400000c.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x400000d.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x400000e.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x400000f.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000010.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000011.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000012.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000013.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000014.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000015.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000016.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000017.
[AVHWFramesContext @ 0xffffb006b3d0] Created surface 0x4000018.
[h264 @ 0x33f0180] Considering format 0x3231564e -> nv12.
[h264 @ 0x33f0180] Picked nv12 (0x3231564e) as best match for yuv420p.
[h264 @ 0x33f0180] Decode context initialised: 0x1000000/0x2000000.
[h264 @ 0x33f0180] Reinit context to 1920x1088, pix_fmt: vaapi_vld
[h264 @ 0x33f0180] no picture 
[h264 @ 0x33f0180] Param buffer (type 0, 672 bytes) is 0x8000000.
[h264 @ 0x33f0180] Param buffer (type 1, 240 bytes) is 0x8000001.
[h264 @ 0x33f0180] Slice 0 param buffer (3128 bytes) is 0x8000002.
[h264 @ 0x33f0180] Slice 0 data buffer (144856 bytes) is 0x8000003.
[h264 @ 0x33f0180] Decode to surface 0x4000018.
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x3410540] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x3410540] Param buffer (type 0, 672 bytes) is 0x8000003.
[h264 @ 0x3410540] Param buffer (type 1, 240 bytes) is 0x8000002.
[h264 @ 0x3410540] Slice 0 param buffer (3128 bytes) is 0x8000001.
[h264 @ 0x3410540] Slice 0 data buffer (51634 bytes) is 0x8000000.
[h264 @ 0x3410540] Decode to surface 0x4000017.
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x3480900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x3480900] Param buffer (type 0, 672 bytes) is 0x8000000.
[h264 @ 0x3480900] Param buffer (type 1, 240 bytes) is 0x8000001.
[h264 @ 0x3480900] Slice 0 param buffer (3128 bytes) is 0x8000002.
[h264 @ 0x3480900] Slice 0 data buffer (23409 bytes) is 0x8000003.
[h264 @ 0x3480900] Decode to surface 0x4000016.
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x349c3b0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x349c3b0] Param buffer (type 0, 672 bytes) is 0x8000003.
[h264 @ 0x349c3b0] Param buffer (type 1, 240 bytes) is 0x8000002.
[h264 @ 0x349c3b0] Slice 0 param buffer (3128 bytes) is 0x8000001.
[h264 @ 0x349c3b0] Slice 0 data buffer (24016 bytes) is 0x8000000.
[h264 @ 0x349c3b0] Decode to surface 0x4000015.
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[h264 @ 0x34ca4c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x34ca4c0] Param buffer (type 0, 672 bytes) is 0x8000000.
[h264 @ 0x34ca4c0] Param buffer (type 1, 240 bytes) is 0x8000001.
[h264 @ 0x34ca4c0] Slice 0 param buffer (3128 bytes) is 0x8000002.
[AVHWFramesContext @ 0xffffb006b3d0] Map surface 0x4000018.
[h264 @ 0x34ca4c0] Slice 0 data buffer (72435 bytes) is 0x8000003.
[h264 @ 0x34ca4c0] Decode to surface 0x4000014.
[h264 @ 0x33f0180] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x33f0180] Param buffer (type 0, 672 bytes) is 0x8000003.
[h264 @ 0x33f0180] Param buffer (type 1, 240 bytes) is 0x8000002.
[h264 @ 0x33f0180] Slice 0 param buffer (3128 bytes) is 0x8000001.
[h264 @ 0x33f0180] Slice 0 data buffer (32226 bytes) is 0x8000000.
[h264 @ 0x33f0180] Decode to surface 0x4000013.
[AVHWFramesContext @ 0xffffb006b3d0] Unmap surface 0x4000018.
[graph 0 input from stream 0:0 @ 0x3b39fc0] Setting 'video_size' to value '1920x1080'
[graph 0 input from stream 0:0 @ 0x3b39fc0] Setting 'pix_fmt' to value '23'
[graph 0 input from stream 0:0 @ 0x3b39fc0] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x3b39fc0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x3b39fc0] Setting 'frame_rate' to value '19001/634'
[graph 0 input from stream 0:0 @ 0x3b39fc0] w:1920 h:1080 pixfmt:nv12 tb:1/1000 fr:19001/634 sar:1/1
[AVFilterGraph @ 0x383c1d0] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0(eng), 0, 634/19001: Video: wrapped_avframe, 1 reference frame, nv12(left), 1920x1080 [SAR 1:1 DAR 16:9], 0/1, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 wrapped_avframe
[AVHWFramesContext @ 0xffffb006b3d0] Map surface 0x4000016.
[h264 @ 0x3410540] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x3410540] Param buffer (type 0, 672 bytes) is 0x8000000.
[h264 @ 0x3410540] Param buffer (type 1, 240 bytes) is 0x8000001.
[h264 @ 0x3410540] Slice 0 param buffer (3128 bytes) is 0x8000002.
[h264 @ 0x3410540] Slice 0 data buffer (75487 bytes) is 0x8000003.
[h264 @ 0x3410540] Decode to surface 0x4000012.
[AVHWFramesContext @ 0xffffb006b3d0] Unmap surface 0x4000016.
[AVHWFramesContext @ 0xffffb006b3d0] Map surface 0x4000015.
[h264 @ 0x3480900] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x3480900] Param buffer (type 0, 672 bytes) is 0x8000003.
[h264 @ 0x3480900] Param buffer (type 1, 240 bytes) is 0x8000002.
[h264 @ 0x3480900] Slice 0 param buffer (3128 bytes) is 0x8000001.
[h264 @ 0x3480900] Slice 0 data buffer (36735 bytes) is 0x8000000.
[h264 @ 0x3480900] Decode to surface 0x4000016.
[AVHWFramesContext @ 0xffffb006b3d0] Unmap surface 0x4000015.
[AVHWFramesContext @ 0xffffb006b3d0] Map surface 0x4000017.
[h264 @ 0x349c3b0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 0x349c3b0] Param buffer (type 0, 672 bytes) is 0x8000000.
[h264 @ 0x349c3b0] Param buffer (type 1, 240 bytes) is 0x8000001.
[h264 @ 0x349c3b0] Slice 0 param buffer (3128 bytes) is 0x8000002.
[h264 @ 0x349c3b0] Slice 0 data buffer (36497 bytes) is 0x8000003.
[h264 @ 0x349c3b0] Decode to surface 0x4000015.
[AVHWFramesContext @ 0xffffb006b3d0] Unmap surface 0x4000017.
[AVHWFramesContext @ 0xffffb006b3d0] Map surface 0x4000013.
[h264 @ 0x34ca4c0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 0x34ca4c0] Param buffer (type 0, 672 bytes) is 0x8000003.
[h264 @ 0x34ca4c0] Param buffer (type 1, 240 bytes) is 0x8000002.
[h264 @ 0x34ca4c0] Slice 0 param buffer (3128 bytes) is 0x8000001.
[h264 @ 0x34ca4c0] Slice 0 data buffer (83496 bytes) is 0x8000000.
[h264 @ 0x34ca4c0] Decode to surface 0x4000011.

...


So, any kind of help are welcomed, thanks!

 

buptsb

Edited by buptsb
Link to post
Share on other sites
Want Armbian t-shirt or a cup?

Note that @Kwiboo's ffmpeg is assuming that kernel is patched with some out-of-tree patches (you can find them in LibreELEC build system). For example, if you remove this commit, output should be much better, but that would mean that interlaced videos will be decoded incorrectly. Good news is that with Linux 5.10 H264 API will be aligned and no out-of-tree patches will be necessary anymore.

Link to post
Share on other sites
22 hours ago, jernej said:

Note that @Kwiboo's ffmpeg is assuming that kernel is patched with some out-of-tree patches (you can find them in LibreELEC build system). For example, if you remove this commit, output should be much better, but that would mean that interlaced videos will be decoded incorrectly. Good news is that with Linux 5.10 H264 API will be aligned and no out-of-tree patches will be necessary anymore.

Thanks for your apply! Maybe I should just wait for 5.10... The whole sunxi vpu thing is a little bit confusing for a non kernel/ffmpeg background user like me,  and what I could do is jut repeat the TRY-FAILURE-GOOGLE loop...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...