#9516: libplacebo segfault on invocation
-------------------------------------+-------------------------------------
Reporter: Dennis E. | Owner: (none)
Mungai |
Type: defect | Status: closed
Priority: normal | Component: avfilter
Version: git-master | Resolution: invalid
Keywords: libplacebo | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by Dennis E. Mungai):
* status: reopened => closed
* resolution: => invalid
Comment:
@Bailing,
I can get it to work with HDR to SDR tone-mapping on NVENC.
The error you're getting comes from the encoder wrapper you're using, not
the filter.
You can specify the correct supported format(s) in the filter directly as
shown in the example(s) below (for the respective NVENC encoder wrappers):
'''HDR to SDR linear Tonemap, to 8-bit H.264'''
Sample file fetched from
https://drive.google.com/file/d/1Ic9DZXMSo07EJMqCFaQRKSSrSw6y1mYv/view
Download renamed to ioshdr10.mov
{{{
ffmpeg -init_hw_device cuda=cuda:0 -filter_hw_device cuda \
-i ioshdr10.mov -filter_complex
"[0:v]hwupload=derive_device=vulkan,libplacebo=w=1920:h=1080:tonemapping=5:format=nv12:colorspace=bt709:color_primaries=1:color_trc=1,hwupload=derive_device=cuda[s0]"
\
-map "[s0]" -b:v 13800k -minrate:v 13800k -maxrate:v 13800k -bufsize:v
13800k -c:v h264_nvenc -r:v 59.94 \
-profile:v high -preset:v p7 -rc:v cbr -g:v 120 -gpu:v 0 -strict_gop:v 1
-bf:v 0 -tune:v ll -map "0:a" -c:a aac -f mp4 -y tonemapped_h264.mp4
}}}
'''HDR to SDR linear Tonemap, to 10-bit HEVC:'''
{{{
ffmpeg -init_hw_device cuda=cuda:0 -filter_hw_device cuda \
-i ioshdr10.mov -filter_complex
"[0:v]hwupload=derive_device=vulkan,libplacebo=w=1920:h=1080:tonemapping=5:format=p010le:colorspace=bt709:color_primaries=1:color_trc=1,hwupload=derive_device=cuda[s0]"
\
-map "[s0]" -b:v 13800k -minrate:v 13800k -maxrate:v 13800k -bufsize:v
13800k -c:v hevc_nvenc -r:v 59.94 \
-profile:v main10 -preset:v p7 -rc:v cbr -g:v 120 -gpu:v 0 -strict_gop:v 1
-bf:v 0 -tune:v ll -map "0:a" -c:a aac -f mp4 -y tonemapped_hevc_10bit.mp4
}}}
'''HDR to SDR linear Tonemap to 8-bit HEVC:'''
{{{
ffmpeg -init_hw_device cuda=cuda:0 -filter_hw_device cuda \
-i ioshdr10.mov -filter_complex
"[0:v]hwupload=derive_device=vulkan,libplacebo=w=1920:h=1080:tonemapping=5:format=nv12:colorspace=bt709:color_primaries=1:color_trc=1,hwupload=derive_device=cuda[s0]"
\
-map "[s0]" -b:v 13800k -minrate:v 13800k -maxrate:v 13800k -bufsize:v
13800k -c:v hevc_nvenc -r:v 59.94 \
-profile:v main -preset:v p7 -rc:v cbr -g:v 120 -gpu:v 0 -strict_gop:v 1
-bf:v 0 -tune:v ll -map "0:a" -c:a aac -f mp4 -y tonemapped_hevc.mp4
}}}
I'll be testing this later on with QuickSync and VAAPI.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9516#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".