- 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
- ffmpeg version 5.1-2+b1 Copyright (c) 2000-2022 the FFmpeg developers
- built with gcc 12 (Debian 12.1.0-7)
- 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
- libavutil 57. 28.100 / 57. 28.100
- libavcodec 59. 37.100 / 59. 37.100
- libavformat 59. 27.100 / 59. 27.100
- libavdevice 59. 7.100 / 59. 7.100
- libavfilter 8. 44.100 / 8. 44.100
- libswscale 6. 7.100 / 6. 7.100
- libswresample 4. 7.100 / 4. 7.100
- libpostproc 56. 6.100 / 56. 6.100
- Splitting the commandline.
- Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
- Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'nv12'.
- Reading option '-s:v' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1280x720'.
- Reading option '-i' ... matched as input url with argument 'output.yuv'.
- Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_v4l2m2m'.
- Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
- Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'.
- Reading option 'output.mp4' ... matched as output url.
- Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
- Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
- Finished splitting the commandline.
- Parsing a group of options: global .
- Applying option v (set logging level) with argument 9.
- Successfully parsed a group of options.
- Parsing a group of options: input url output.yuv.
- Applying option f (force format) with argument rawvideo.
- Applying option pix_fmt (set pixel format) with argument nv12.
- Applying option s:v (set frame size (WxH or abbreviation)) with argument 1280x720.
- Successfully parsed a group of options.
- Opening an input file: output.yuv.
- [rawvideo @ 0xaaaad75178f0] Opening 'output.yuv' for reading
- [file @ 0xaaaad7517e00] Setting default whitelist 'file,crypto,data'
- [rawvideo @ 0xaaaad75178f0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
- [rawvideo @ 0xaaaad75178f0] All info found
- [rawvideo @ 0xaaaad75178f0] Estimating duration from bitrate, this may be inaccurate
- [rawvideo @ 0xaaaad75178f0] stream 0: start_time: 0 duration: 9.28
- [rawvideo @ 0xaaaad75178f0] format: start_time: 0 duration: 9.28 (estimate from bit rate) bitrate=276480 kb/s
- [rawvideo @ 0xaaaad75178f0] After avformat_find_stream_info() pos: 1382400 bytes read:1382400 seeks:0 frames:1
- Input #0, rawvideo, from 'output.yuv':
- Duration: 00:00:09.28, start: 0.000000, bitrate: 276480 kb/s
- Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (NV12 / 0x3231564E), nv12, 1280x720, 0/1, 276480 kb/s, 25 tbr, 25 tbn
- Successfully opened the file.
- Parsing a group of options: output url output.mp4.
- Applying option c:v (codec name) with argument h264_v4l2m2m.
- Applying option an (disable audio) with argument 1.
- Applying option sn (disable subtitle) with argument 1.
- Successfully parsed a group of options.
- Opening an output file: output.mp4.
- File 'output.mp4' already exists. Overwrite? [y/N] y
- [file @ 0xaaaad7522720] Setting default whitelist 'file,crypto,data'
- Successfully opened the file.
- Stream mapping:
- Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m))
- 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)
- [rawvideo @ 0xaaaad7520f90] PACKET SIZE: 1382400, STRIDE: 1920
- detected 8 logical cores
- [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'video_size' to value '1280x720'
- [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'pix_fmt' to value '23'
- [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'time_base' to value '1/25'
- [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'pixel_aspect' to value '0/1'
- [graph 0 input from stream 0:0 @ 0xaaaad7524c50] Setting 'frame_rate' to value '25/1'
- [graph 0 input from stream 0:0 @ 0xaaaad7524c50] w:1280 h:720 pixfmt:nv12 tb:1/25 fr:25/1 sar:0/1
- [AVFilterGraph @ 0xaaaad7520a60] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
- [h264_v4l2m2m @ 0xaaaad7522080] probing device /dev/video1
- [h264_v4l2m2m @ 0xaaaad7522080] driver 'qcom-venus' on card 'Qualcomm Venus video encoder' in mplane mode
- [h264_v4l2m2m @ 0xaaaad7522080] Using device /dev/video1
- [h264_v4l2m2m @ 0xaaaad7522080] driver 'qcom-venus' on card 'Qualcomm Venus video encoder' in mplane mode
- [h264_v4l2m2m @ 0xaaaad7522080] requesting formats: output=NV12 capture=H264
- [h264_v4l2m2m @ 0xaaaad7522080] output: NV12 16 buffers initialized: 1280x0736, sizeimage 01425408, bytesperline 00001280
- [h264_v4l2m2m @ 0xaaaad7522080] capture: H264 04 buffers initialized: 1280x0720, sizeimage 00708608, bytesperline 00000000
- [h264_v4l2m2m @ 0xaaaad7522080] the v4l2 driver does not support end of stream VIDIOC_SUBSCRIBE_EVENT
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: number of B-frames = 0
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: header mode = 0
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: bit rate = 200000
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: frame level rate control = 1
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: gop size = 12
- [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)
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: minimum video quantizer scale = 0
- [h264_v4l2m2m @ 0xaaaad7522080] Encoder: maximum video quantizer scale = 51
- Output #0, mp4, to 'output.mp4':
- Metadata:
- encoder : Lavf59.27.100
- 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
- Metadata:
- encoder : Lavc59.37.100 h264_v4l2m2m
- Clipping frame in rate conversion by 0.000008
- 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)
- [rawvideo @ 0xaaaad7520f90] PACKET SIZE: 1382400, STRIDE: 1920
- Last message repeated 1 times
- [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.
- [rawvideo @ 0xaaaad7520f90] PACKET SIZE: 1382400, STRIDE: 1920
- Last message repeated 228 times
- [out_0_0 @ 0xaaaad7525050] EOF on sink link out_0_0:default.
- No more output streams to write to, finishing.
- frame= 232 fps=0.0 q=-0.0 Lsize= 351kB time=00:00:08.60 bitrate= 334.7kbits/s speed=22.4x
- video:350kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.500297%
- Input file #0 (output.yuv):
- Input stream #0:0 (video): 232 packets read (320716800 bytes); 232 frames decoded;
- Total: 232 packets (320716800 bytes) demuxed
- Output file #0 (output.mp4):
- Output stream #0:0 (video): 232 frames encoded; 217 packets muxed (357987 bytes);
- Total: 217 packets (357987 bytes) muxed
- [AVIOContext @ 0xaaaad7522bb0] Statistics: 359782 bytes written, 2 seeks, 5 writeouts
- 232 frames successfully decoded, 0 decoding errors
- [AVIOContext @ 0xaaaad74e0600] Statistics: 320716800 bytes read, 0 seeks
Raw Paste