8-bit Usage Reference
Taking YUV to MP4 conversion as an example, this section provides a command example for encoding 8-bit sequences using the HW265Enc encoder in FFmpeg.
When you enter command line parameters, the output file name must be written at the end, and other FFmpeg built-in parameters must be written after the ffmpeg command. The libhw265 encoder parameters are written after libhw265. Parameter types and descriptions are shown in Table 1.
Command example:
ffmpeg -s 1920x1080 -i input.yuv -bf 0 -c:v libhw265 -wpp_threads 4 output.mp4
Information similar to the following is displayed:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Input #0, rawvideo, from 'input.yuv': Duration: 00:01:00.00, start: 0.000000, bitrate: 622080 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, 622080 kb/s, 25 tbr, 25 tbn, 25 tbc File 'output.mp4' already exists. Overwrite ? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hevc (libhw265)) Press [q] to stop, [?] for help Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf58.29.100 Stream #0:0: Video: hevc (libhw265) (hev1 / 0x31766568), yuv420p, 1920x1080, q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc58.54.100 libhw265 frame= 1500 fps= 13 q=-0.0 Lsize= 34439kB time=00:00:58.96 bitrate=4785.1kbits/s speed=0.504x video:34432kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.020906% |
Parent topic: Examples of Using HW265Enc in FFmpeg