![]() For example, consider the situation in which the hardware encoder has more capacity than the decoder. In some situations, it is necessary to perform video decoding in software. Multiple 1:N Transcode with Scaling (SW Decode->HW Scaling->HW Encode) hwaccel cuda -hwaccel_output_format cuda -i input2.mp4 480p (from input2.mp4) (audio same as input)įfmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i input1.mp4 These are achieved using a single command line. Simultaneously it reads file input2.mp4 and transcodes it to output21.mp4 at 720p and output22.mp4 at 480p as H.264 videos. The following command reads file input1.mp4 as the input, decodes it in GPU hardware, scales the input in hardware, and re-encodes as H.264 videos to output11.mp4 at 480p and output12.mp4 at 240p using the GPU hardware encoder. One of the typical workloads for transcoding consists of videos being transcoded and archived at different resolutions and bitrates so that they can be served to different clients later. ![]() This method should be used to realize the full potential of GPU hardware-accelerated transcoding. Multiple 1:N HWACCEL Transcode with Scaling The pixel format (pix_fmt) should be changed to yuv444p/p010/yuv444p16 for encoding YUV 444, 420-10 and 444-10 files respectively. ![]() Workaround for this error - Copy all DLLs under C:\msys64\mingw64\bin in the folder where ffmpeg.exe is present.įfmpeg -y -vsync 0 -pix_fmt yuv420p -s 1920x1080 -i input.yuv -filter_complex "hwupload_cuda,split=4" -map "" -c:v h264_nvenc -b:v 8M output1.mp4 -map "" -c:v h264_nvenc -b:v 10M output2.mp4 -map "" -c:v h264_nvenc -b:v 12M output3.mp4 -map "" -c:v h264_nvenc -b:v 14M output4.mp4
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |