Topic: HDR movie conversion problem

Could the great team of SVP reply me, why did the HDR mode disappear completely after I transcoded the HDR movie? what happened? Does SVP support HDR video transcoding? I am very worried. I like the HDR of 120FPS movies after transcoding. My requirement is to transcode movies at 120FPS+HDR. I hope the great SVP team can help me solve my troubles.

Re: HDR movie conversion problem

right now SVP (in fact, mpv) can only do tone mapping when transcoding HDR video

3 (edited by 328063037 03-11-2020 00:34:39)

Re: HDR movie conversion problem

Dear svp team, can you elaborate more?  How do I set SVP to perform tone mapping when transcoding HDR video? I don't know where to set it or how to write the code. Please tell me the detailed steps.

Re: HDR movie conversion problem

How does the distinguished team set up SVP (Can you tell me a little bit more steps? And screenshots) HDR video is transcoded by SVP for tone mapping? Request method.

Re: HDR movie conversion problem

https://www.svp-team.com/forum/viewtopi … 350#p76350

6 (edited by 328063037 03-11-2020 08:41:40)

Re: HDR movie conversion problem

I have tried to switch to the "advanced" mode, put something like "zscale = transfer = linear, tonemap = reinhard, zscale = transfer = bt709, format = yuv420p" into the lavfi field, set the depth = 8 bits,
But every time the effect appears, it is displayed incorrectly and cannot be converted at all. I would be very grateful for answers.
The following is the error log content.

16:29:51.811: ===== Starting mpv ======
16:29:51.811: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe C:/Users/Administrator.USER-20190822KX/Desktop/c0f9226346e7f279694ba03718c2ad0c.mp4 --o=C:/Users/Administrator.USER-20190822KX/Desktop/c0f9226346e7f279694ba03718c2ad0c.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --vf=lavfi=[zscale = transfer = linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p],vapoursynth:[C:\Users\Administrator.USER-20190822KX\AppData\Roaming\SVP4\scripts\ffff.py]:4:2 --of=matroska --ovc=libx265 --ovcopts=crf=18,preset=slow,threads=2
16:29:51.898: Warning: option --o is deprecated and might be removed in the future (lack of maintainer).
16:29:51.920: (+) Video --vid=1 (*) (h264 960x544 30.000fps)
16:29:51.920: Audio --aid=1 (*) (aac 1ch 44100Hz)
16:29:51.926: [ffmpeg] Eval: Invalid chars ',tonemap=reinhard,zscale=transfer=bt709,format=yuv420p' at the end of expression 'linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p'
16:29:51.927: [ffmpeg] zscale: Unable to parse option value "linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p"
16:29:51.927: [ffmpeg] Eval: Invalid chars ',tonemap=reinhard,zscale=transfer=bt709,format=yuv420p' at the end of expression 'linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p'
16:29:51.927: [ffmpeg] zscale: Unable to parse option value "linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p"
16:29:51.927: [ffmpeg] zscale: Error setting option transfer to value linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p.
16:29:51.927: [ffmpeg] Parsed_zscale_0: Error applying options to the filter.
16:29:51.927: [ffmpeg] AVFilterGraph: Error initializing filter 'zscale' with args 'transfer = linear,tonemap = reinhard,zscale = transfer = bt709,format = yuv420p'
16:29:51.927: [lavfi] parsing the filter graph failed
16:29:51.927: [user_filter_wrapper] Creating filter 'lavfi' failed.
16:29:51.928: [vo/lavc] error encoding at EOF
16:29:51.928: Video: no video
16:29:51.928: No video or audio streams selected.
16:29:51.928: [encode] no data written to target file
16:29:51.928: Exiting... (Interrupted by error)
16:29:51.986: (!!!) Intermediate file may be broken: C:\Users\Administrator.USER-20190822KX\Desktop\c0f9226346e7f279694ba03718c2ad0c.SVP.temporary.mkv
16:29:51.986: ===== mpv exited with code 2 =====

Post's attachments

QQ截图20201103164017.png, 62.48 kb, 516 x 672
QQ截图20201103164017.png 62.48 kb, 273 downloads since 2020-11-03 

Re: HDR movie conversion problem

remove spaces

Re: HDR movie conversion problem

Dear senior developer, how do you delete space? Where to delete? I also do not understand.

Re: HDR movie conversion problem

in the lavfi params string. do not put extra spaces.

10 (edited by 328063037 04-11-2020 04:04:06)

Re: HDR movie conversion problem

Ok very grateful
What should I do about video watermarking? How to add video watermark,I tried this code but it doesn’t work movie=d\\:/logo-48.png[watermark],[in][watermark]overlay=10:main_h-overlay_h-10[out]

12:03:39.524: ===== Starting mpv ======
12:03:39.524: Command line: C:\Program Files (x86)\SVP 4\mpv64\mpv.exe C:/Users/Administrator.USER-20190822KX/Desktop/c0f9226346e7f279694ba03718c2ad0c.mp4 --o=C:/Users/Administrator.USER-20190822KX/Desktop/c0f9226346e7f279694ba03718c2ad0c.SVP.temporary.mkv --no-audio --no-sub --no-sub-auto --input-ipc-server=mpvencodepipe --input-media-keys=no --no-msg-color --vf=lavfi=[movie=d\\:/logo-48.png[watermark],[in][watermark]overlay=10:main_h-overlay_h-10[out]],vapoursynth:[C:\Users\Administrator.USER-20190822KX\AppData\Roaming\SVP4\scripts\ffff.py]:4:2,fps=45.000 --of=matroska --ovc=h264_qsv --ovcopts=preset=veryslow,profile=high,look_ahead=1,global_quality=18,time_base=1000/45000,threads=2
12:03:39.633: Warning: option --o is deprecated and might be removed in the future (lack of maintainer).
12:03:39.668: (+) Video --vid=1 (*) (h264 960x544 30.000fps)
12:03:39.669: Audio --aid=1 (*) (aac 1ch 44100Hz)
12:03:39.684: [ffmpeg] Parsed_movie_0: Failed to avformat_open_input 'd:/logo-48.png'
12:03:39.684: [ffmpeg] AVFilterGraph: Error initializing filter 'movie' with args 'd\:/logo-48.png'
12:03:39.684: [lavfi] parsing the filter graph failed
12:03:39.684: [user_filter_wrapper] Creating filter 'lavfi' failed.
12:03:39.685: [vo/lavc] error encoding at EOF
12:03:39.685: Video: no video
12:03:39.685: No video or audio streams selected.
12:03:39.685: [encode] no data written to target file
12:03:39.686: Exiting... (Interrupted by error)
12:03:39.745: (!!!) Intermediate file may be broken: C:\Users\Administrator.USER-20190822KX\Desktop\c0f9226346e7f279694ba03718c2ad0c.SVP.temporary.mkv
12:03:39.745: ===== mpv exited with code 2 =====

Re: HDR movie conversion problem

"d:\logo-48.png" exists?

12 (edited by 328063037 04-11-2020 07:59:44)

Re: HDR movie conversion problem

Senior developer, I don't quite understand what you mean? Does it mean that my D drive does not have LOGO watermark text? Can you give me an example? Be more detailed, thank you infinitely

Re: HDR movie conversion problem

you set the filter to read the watermark image from D:\logo-48.png
do you actually have this file?

Re: HDR movie conversion problem

Dear senior developer, I don’t have any LOGO pictures on my D drive. I want to test whether the watermark can appear. How should I add the watermark to the video? Do I want to put the LUGO picture into the D drive and change the suffix to .png to realize the video watermark?