Difference between videos with libx264 and h264_nvenc
When using the libx264 encoder on 8bit raw input, the resulting video shows up slightly darker than the original. Using this command: ffmpeg.exe -y -hide_banner -vcodec rawvideo -f rawvideo -r 60 -s 658x492 -i \\.\pipe\DEV_000F315B978C<file://./pipe/DEV_000F315B978C> -pix_fmt gray -c:v libx264 -crf 23 X:\Videos\One_2020T115817.avi When running the compression using nvidias encoder, h264_nvenc, the darkening of the video does not occur. Using this command: ffmpeg.exe -y -hide_banner -vcodec rawvideo -f rawvideo -hwaccel nvdec -r 60 -s 658x492 -i \\.\pipe\DEV_000F315B978C -pix_fmt gray -c:v h264_nvenc -crf 23 X:\Videos\One_2020T120806.avi Is this known behavior? Any reason for the difference in the resulting video? Totte Karlsson - totte.karlsson@alleninstitute.org<mailto:totte.karlsson@alleninstitute.org> Senior Software Engineer - MPE 210B-35
Am Mo., 24. Feb. 2020 um 21:13 Uhr schrieb Totte Karlsson <totte.karlsson@alleninstitute.org>:
When using the libx264 encoder on 8bit raw input, the resulting video shows up slightly darker than the original. Using this command:
(Note that this is not x264-user)
ffmpeg.exe -y -hide_banner -vcodec rawvideo -f rawvideo -r 60 -s 658x492 -i \\.\pipe\DEV_000F315B978C<file://./pipe/DEV_000F315B978C> -pix_fmt gray -c:v libx264 -crf 23 X:\Videos\One_2020T115817.avi
Complete, uncut console output missing, don't forget to remove "hide_banner".
When running the compression using nvidias encoder, h264_nvenc, the darkening of the video does not occur. Using this command:
ffmpeg.exe -y -hide_banner -vcodec rawvideo -f rawvideo -hwaccel nvdec -r 60 -s 658x492 -i \\.\pipe\DEV_000F315B978C -pix_fmt gray -c:v h264_nvenc -crf 23 X:\Videos\One_2020T120806.avi
nvenc does not support gray encoding. Carl Eugen
participants (2)
-
Carl Eugen Hoyos -
Totte Karlsson