Hi
Crashing exporting to png
Included the debug
Question why exporting to png is in limited range?
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=1)
Hybrid calls:
Code:
"C:\Programs Custom\Hybrid_2024.06.16.1\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "D:\6.0.VR\M_BW0001\LWE01-2m_Hbd@720[Stab.IT 1.2 DS SL800 RSZ VSR3]_Temp.mkv" -map 0:0 -an -sn -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -vsync 0 -vcodec png -dpi 0 -dpm 0 -pred 0 -vf zscale=matrixin=smtp240m:matrix=smtp240m,format=rgb48 -pix_fmt rgb48be -metadata encoding_tool="Hybrid 2024.06.16.1" "D:\6.0.VR\Test\Out\Test001__1_%04d.png"
which crashes with:
Code:
Input #0, matroska,webm, from 'D:\6.0.VR\M_BW0001\LWE01-2m_Hbd@720[Stab.IT 1.2 DS SL800 RSZ VSR3]_Temp.mkv':
Metadata:
Encoding Gui : Hybrid 2024.06.16.1
creation_time : 2024-07-06T11:47:04.000000Z
ENCODER : Lavf61.3.104
Duration: 00:01:41.47, start: 0.000000, bitrate: 71543 kb/s
Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv422p(tv, smpte240m/unknown/unknown), 720x590, SAR 157:144 DAR 157:118, 29.97 fps, 29.97 tbr, 1k tbn (default) (forced)
Metadata:
title : 2024-07-05 01:39:57 UTC
ENCODER : Lavc61.7.100 ffvhuff
BPS : 71533707
DURATION : 00:01:41.468000000
NUMBER_OF_FRAMES: 3041
NUMBER_OF_BYTES : 907297780
_STATISTICS_WRITING_APP: mkvmerge v85.0 ('Shame For You') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-07-06 11:47:04
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[Parsed_zscale_0 @ 000001d0737a8300] [Eval @ 0000001a9fdfd390] Undefined constant or missing '(' in 'smtp240m'
[Parsed_zscale_0 @ 000001d0737a8300] Unable to parse option value "smtp240m"
Error applying option 'matrixin' to filter 'zscale': Invalid argument
[vost#0:0/png @ 000001d07390f040] Error initializing a simple filtergraph
Error opening output file D:\6.0.VR\Test\Out\Test001__1_%04d.png.
Error opening output files: Invalid argument
=> looks like a typo instead of 'smtp240m' it should be 'smpte240m'.
As a workaround, try enabling 'Filtering->Vapoursynth->Misc->Script->Always use Vapoursynth' before creating the job, this way Vapoursynth should be used.
It would help if you can share a small sample of the source which causes this, so I can easier reproduce and fix the problem.
Quote:Question why exporting to png is in limited range?
Source is limited range and Hybrid wasn't told it should output full range, so it output the same as the input.
Cu Selur
The workaround does not work...
Stage 1 Exported video without audio Stage 2 Export to PNG ok
Stage 1 Exported video with audio Stage 2 Export to PNG crash
When the audio is exported as well (stage1) and then is fed to hybrid as a new file (stage2) to make it PNG the crash happens
Okay, I found two problems.
a. smpte240m isn't supported by zscale
b. matrix and matrix in need to be separated by colon, not comma.
=> send you a link, via pm, to a dev version which should fix the problem.
(I had no problem with the audio)
Cu Selur