10-bit Usage Reference
Taking YUV to MP4 conversion as an example, this section provides a command example for encoding 10-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.
Copy the dynamic link library (DLL) libhw265_10bit.so of the 10-bit HW265 video encoder to the /usr/local/lib directory and rename it libhw265.so.
1 | cp ~/dependency/lib/libhw265_10bit.so /usr/local/lib/libhw265.so |
Command example:
ffmpeg -pix_fmt yuv420p10le -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:00:40.00, start: 0.000000, bitrate: 1244160 kb/s Stream #0:0: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 1920x1080, 1244160 kb/s, 25 tbr, 25 tbn 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 : Lavf61.1.100 Stream #0:0: Video: hevc (hev1 / 0x31766568), yuv420p10le(progressive), 1920x1080, q=2-31, 200 kb/s, 25 fps, 12800 tbn Metadata: encoder : Lavc61.3.100 libhw265 [out#0/mp4 @ 0xe9c4c70] video:78595KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.007363% frame= 1000 fps= 29 q=-0.0 Lsize= 78601KiB time=00:00:39.96 bitrate=16113.6kbits/s speed=1.14x |
Parent topic: Examples of Using HW265Enc in FFmpeg