Coder Social home page Coder Social logo

Comments (2)

nyanmisaka avatar nyanmisaka commented on June 6, 2024

@fuyousk Cannot reproduce on RK3588.

  1. Build and install the latest MPP library https://github.com/rockchip-linux/mpp
  2. Upgrade to the latest linux 5.10 or 6.1 kernel
  3. Make sure your SoC model support encoding gray/monochroma
./ffmpeg -f lavfi -i testsrc=s=1280x100,format=gray -c:v h264_rkmpp -vframes 2000 -v verbose -f null -
ffmpeg version ba84e56c51 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --disable-ffplay --disable-sdl2 --disable-doc --disable-ptx-compression --disable-shared --enable-gpl --enable-version3 --enable-static --enable-gnutls --enable-opencl --enable-libdrm --enable-libdav1d --enable-libx264 --enable-libx265 --enable-rkmpp --enable-rkrga
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[Parsed_testsrc_0 @ 0xaaaac71e53d0] size:1280x100 rate:25/1 duration:-1.000000 sar:1/1
[auto_scale_0 @ 0xaaaac71e6c40] w:iw h:ih flags:'' interl:0
[Parsed_format_1 @ 0xaaaac71e56c0] auto-inserting filter 'auto_scale_0' between the filter 'Parsed_testsrc_0' and the filter 'Parsed_format_1'
[auto_scale_0 @ 0xaaaac71e6c40] w:1280 h:100 fmt:rgb24 sar:1/1 -> w:1280 h:100 fmt:gray sar:1/1 flags:0x00000004
Input #0, lavfi, from 'testsrc=s=1280x100,format=gray':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, 1 reference frame, gray, 1280x100 [SAR 1:1 DAR 64:5], 25 fps, 25 tbr, 25 tbn
[out#0/null @ 0xaaaac7443050] No explicit maps, mapping streams automatically...
[vost#0:0/h264_rkmpp @ 0xaaaac74441d0] Created video stream from input stream 0:0
Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_rkmpp))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0xaaaac74475c0] w:1280 h:100 pixfmt:gray tb:1/25 fr:25/1 sar:1/1
[h264_rkmpp @ 0xaaaac7444550] Rate Control mode is set to CBR
[h264_rkmpp @ 0xaaaac7444550] Bitrate Target/Min/Max is set to 2000000/1875000/2125000
[h264_rkmpp @ 0xaaaac7444550] QP Init/Max/Min/Max_I/Min_I is set to 26/48/0/48/0
[h264_rkmpp @ 0xaaaac7444550] Profile is set to HIGH
[h264_rkmpp @ 0xaaaac7444550] 8x8 Transform is enabled
[h264_rkmpp @ 0xaaaac7444550] Level is set to 0
[h264_rkmpp @ 0xaaaac7444550] Coder is set to CABAC
[h264_rkmpp @ 0xaaaac7444550] Created a RKMPP hardware device
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf60.16.100
  Stream #0:0: Video: h264 (High), 1 reference frame, gray(pc, progressive), 1280x100 (0x0) [SAR 1:1 DAR 64:5], q=2-31, 2000 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc60.31.102 h264_rkmpp
[h264_rkmpp @ 0xaaaac7444550] Configured with size: 1280x100 | pix_fmt: gray | sw_pix_fmt: gray
No more output streams to write to, finishing.1:00.44 bitrate=N/A speed=40.2x
[out#0/null @ 0xaaaac7443050] All streams finished
[out#0/null @ 0xaaaac7443050] Terminating muxer thread
[vist#0:0/wrapped_avframe @ 0xaaaac7443260] Decoder thread received EOF packet
[vist#0:0/wrapped_avframe @ 0xaaaac7443260] Decoder returned EOF, finishing
[vist#0:0/wrapped_avframe @ 0xaaaac7443260] Terminating decoder thread
[out#0/null @ 0xaaaac7443050] Output file #0 (pipe:):
[out#0/null @ 0xaaaac7443050]   Output stream #0:0 (video): 2000 frames encoded; 2000 packets muxed (1594939 bytes);
[out#0/null @ 0xaaaac7443050]   Total: 2000 packets (1594939 bytes) muxed
[out#0/null @ 0xaaaac7443050] video:1558kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
frame= 2000 fps=1021 q=-0.0 Lsize=N/A time=00:01:19.96 bitrate=N/A speed=40.8x

from ffmpeg-rockchip.

fuyousk avatar fuyousk commented on June 6, 2024

好的,多谢。我更新下环境再试试

from ffmpeg-rockchip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.