TEXT   57
Untitled
Guest on 19th August 2022 12:22:13 PM


  1. linaro@linaro-developer:~$ ffmpeg -f rawvideo -pix_fmt nv12 -s:v 1280x720 -i output.yuv -c:v h264_v4l2m2m -an -sn output.mp4 -v 9 -loglevel 99
  2. ffmpeg version 5.1-2+b1 Copyright (c) 2000-2022 the FFmpeg developers
  3.   built with gcc 12 (Debian 12.1.0-7)
  4.   configuration: --prefix=/usr --extra-version=2+b1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libplacebo --enable-libx264 --enable-shared
  5.   libavutil      57. 28.100 / 57. 28.100
  6.   libavcodec     59. 37.100 / 59. 37.100
  7.   libavformat    59. 27.100 / 59. 27.100
  8.   libavdevice    59.  7.100 / 59.  7.100
  9.   libavfilter     8. 44.100 /  8. 44.100
  10.   libswscale      6.  7.100 /  6.  7.100
  11.   libswresample   4.  7.100 /  4.  7.100
  12.   libpostproc    56.  6.100 / 56.  6.100
  13. Splitting the commandline.
  14. Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
  15. Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'nv12'.
  16. Reading option '-s:v' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1280x720'.
  17. Reading option '-i' ... matched as input url with argument 'output.yuv'.
  18. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_v4l2m2m'.
  19. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
  20. Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'.
  21. Reading option 'output.mp4' ... matched as output url.
  22. Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
  23. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
  24. Finished splitting the commandline.
  25. Parsing a group of options: global .
  26. Applying option v (set logging level) with argument 9.
  27. Successfully parsed a group of options.
  28. Parsing a group of options: input url output.yuv.
  29. Applying option f (force format) with argument rawvideo.
  30. Applying option pix_fmt (set pixel format) with argument nv12.
  31. Applying option s:v (set frame size (WxH or abbreviation)) with argument 1280x720.
  32. Successfully parsed a group of options.
  33. Opening an input file: output.yuv.
  34. [rawvideo @ 0xaaaad75178f0] Opening 'output.yuv' for reading
  35. [file @ 0xaaaad7517e00] Setting default whitelist 'file,crypto,data'
  36. [rawvideo @ 0xaaaad75178f0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
  37. [rawvideo @ 0xaaaad75178f0] All info found
  38. [rawvideo @ 0xaaaad75178f0] Estimating duration from bitrate, this may be inaccurate
  39. [rawvideo @ 0xaaaad75178f0] stream 0: start_time: 0 duration: 9.28
  40. [rawvideo @ 0xaaaad75178f0] format: start_time: 0 duration: 9.28 (estimate from bit rate) bitrate=276480 kb/s
  41. [rawvideo @ 0xaaaad75178f0] After avformat_find_stream_info() pos: 1382400 bytes read:1382400 seeks:0 frames:1
  42. Input #0, rawvideo, from 'output.yuv':
  43.   Duration: 00:00:09.28, start: 0.000000, bitrate: 276480 kb/s
  44.   Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (NV12 / 0x3231564E), nv12, 1280x720, 0/1, 276480 kb/s, 25 tbr, 25 tbn
  45. Successfully opened the file.
  46. Parsing a group of options: output url output.mp4.
  47. Applying option c:v (codec name) with argument h264_v4l2m2m.
  48. Applying option an (disable audio) with argument 1.
  49. Applying option sn (disable subtitle) with argument 1.
  50. Successfully parsed a group of options.
  51. Opening an output file: output.mp4.
  52. File 'output.mp4' already exists. Overwrite? [y/N] y
  53. [file @ 0xaaaad7522720] Setting default whitelist 'file,crypto,data'
  54. Successfully opened the file.
  55. Stream mapping:
  56.   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m))
  57. Press [q] to stop, [?] for help
  58. 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)
  59. [rawvideo @ 0xaaaad7520f90] PACKET SIZE: 1382400, STRIDE: 1920
  60. detected 8 logical cores
  61. [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'video_size' to value '1280x720'
  62. [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'pix_fmt' to value '23'
  63. [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'time_base' to value '1/25'
  64. [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'pixel_aspect' to value '0/1'
  65. [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'frame_rate' to value '25/1'
  66. [graph 0 input from stream 0:0 @ 0xaaaad7524c50] w:1280 h:720 pixfmt:nv12 tb:1/25 fr:25/1 sar:0/1
  67. [AVFilterGraph @ 0xaaaad7520a60] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
  68. [h264_v4l2m2m @ 0xaaaad7522080] probing device /dev/video1
  69. [h264_v4l2m2m @ 0xaaaad7522080] driver 'qcom-venus' on card 'Qualcomm Venus video encoder' in mplane mode
  70. [h264_v4l2m2m @ 0xaaaad7522080] Using device /dev/video1
  71. [h264_v4l2m2m @ 0xaaaad7522080] driver 'qcom-venus' on card 'Qualcomm Venus video encoder' in mplane mode
  72. [h264_v4l2m2m @ 0xaaaad7522080] requesting formats: output=NV12 capture=H264
  73. [h264_v4l2m2m @ 0xaaaad7522080] output: NV12 16 buffers initialized: 1280x0736, sizeimage 01425408, bytesperline 00001280
  74. [h264_v4l2m2m @ 0xaaaad7522080] capture: H264 04 buffers initialized: 1280x0720, sizeimage 00708608, bytesperline 00000000
  75. [h264_v4l2m2m @ 0xaaaad7522080] the v4l2 driver does not support end of stream VIDIOC_SUBSCRIBE_EVENT
  76. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: number of B-frames = 0
  77. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: header mode = 0
  78. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: bit rate = 200000
  79. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: frame level rate control = 1
  80. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: gop size = 12
  81. [h264_v4l2m2m @ 0xaaaad7522080] Encoder Context: id (27), profile (-99), frame rate(25/1), number b-frames (0), gop size (12), bit rate (200000), qmin (-1), qmax (-1)
  82. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: minimum video quantizer scale = 0
  83. [h264_v4l2m2m @ 0xaaaad7522080] Encoder: maximum video quantizer scale = 51
  84. Output #0, mp4, to 'output.mp4':
  85.   Metadata:
  86.     encoder         : Lavf59.27.100
  87.   Stream #0:0, 0, 1/12800: Video: h264, 1 reference frame (avc1 / 0x31637661), nv12(progressive), 1280x720 (0x0), 0/1, q=2-31, 200 kb/s, 25 fps, 12800 tbn
  88.     Metadata:
  89.       encoder         : Lavc59.37.100 h264_v4l2m2m
  90. Clipping frame in rate conversion by 0.000008
  91. cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
  92. [rawvideo @ 0xaaaad7520f90] PACKET SIZE: 1382400, STRIDE: 1920
  93.     Last message repeated 1 times
  94. [mp4 @ 0xaaaad7521710] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
  95. [rawvideo @ 0xaaaad7520f90] PACKET SIZE: 1382400, STRIDE: 1920
  96.     Last message repeated 228 times
  97. [out_0_0 @ 0xaaaad7525050] EOF on sink link out_0_0:default.
  98. No more output streams to write to, finishing.
  99. frame=  232 fps=0.0 q=-0.0 Lsize=     351kB time=00:00:08.60 bitrate= 334.7kbits/s speed=22.4x    
  100. video:350kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.500297%
  101. Input file #0 (output.yuv):
  102.   Input stream #0:0 (video): 232 packets read (320716800 bytes); 232 frames decoded;
  103.   Total: 232 packets (320716800 bytes) demuxed
  104. Output file #0 (output.mp4):
  105.   Output stream #0:0 (video): 232 frames encoded; 217 packets muxed (357987 bytes);
  106.   Total: 217 packets (357987 bytes) muxed
  107. [AVIOContext @ 0xaaaad7522bb0] Statistics: 359782 bytes written, 2 seeks, 5 writeouts
  108. 232 frames successfully decoded, 0 decoding errors
  109. [AVIOContext @ 0xaaaad74e0600] Statistics: 320716800 bytes read, 0 seeks

Raw Paste

Login or Register to edit or fork this paste. It's free.