This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Crashed ffmpeg...
#1
Crashed ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i
Reply
#2
Sadly, the debug output ends where you switched the output folder -> correct debug output is in the output folder
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
new log...
Reply
#4
Avisynth script looks fine to me:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadCPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\ffms2.dll")
Import("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\mtmodes.avsi")
# loading source: D:\clips\new13\old\Raffaella Carra - Male_iris3.avi
# color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
FFVideoSource("D:\clips\new13\old\Raffaella Carra - Male_iris3.avi",cachefile="K:\temp\2024-03-09@21_43_11_6810.ffindex",fpsnum=25,colorspace="YV12")
# converting to target color space
# current resolution: 1440x1152
Tweak(hue=5.00,bright=-2.70,cont=1.03)
# setting output fps to 25.000fps
AssumeFPS(25,1)
PreFetch(8)
#  output: color sampling YV12@8, matrix: bt709, scantyp: progressive, luminance scale: limited
return last

"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020_10 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe - | "C:\Program Files\Hybrid\64bit\NVEncC.exe" --y4m -i - --fps 25.000 --codec h264 --profile high --level 4.1 --sar 16:15 --lookahead 16 --cqp 20:23:25 --gop-len 0 --ref 3 --bframes 3 --direct auto --bref-mode auto --no-b-adapt --mv-precision Q-pel --cabac --deblock --preset default --colorrange limited --colormatrix bt709 --cuda-schedule sync --output "K:\temp\Raffaella Carra - Male_iris3_1_2024-03-09@21_43_11_6810_04.264"
Looks fine too.
Does the Avisynth Preview work?
If it works does:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020_10 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
show an error when called?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#5
Quote:Does the Avisynth Preview work?

Avisynth Preview work.
Quote:If it works does:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020_10 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
show an error when called?
Yes:
C:\Users\Orion>"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020_10 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
ffmpeg version N-113926-gd747d1d824-g1a4e0eb374+1 Copyright © 2000-2024 the FFmpeg developers
built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
configuration: --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --extra-cxxflags=-fpermissive --extra-cflags=-Wno-int-conversion --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec--enable-nvdec --enable-cuda-llvm --disable-doc --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-gnutls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads
libavutil 58. 40.100 / 58. 40.100
libavcodec 60. 41.100 / 60. 41.100
libavformat 60. 23.100 / 60. 23.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 14.100 / 4. 14.100
libpostproc 57. 4.100 / 57. 4.100
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
Input #0, avisynth, from 'K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs':
Duration: 00:03:40.68, start: 0.000000, bitrate: 0 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 1440x1152, 25 fps, 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
[wrapped_avframe @ 0000024151564d00] [Eval @ 0000008ee4bfe3a0] Undefined constant or missing '(' in 'bt2020_10'
[wrapped_avframe @ 0000024151564d00] Unable to parse option value "bt2020_10"
[wrapped_avframe @ 0000024151564d00] Error setting option color_trc to value bt2020_10.
[vost#0:0/wrapped_avframe @ 00000241515648c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0000024151566780] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 0000024151566780] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 0000024151566780] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 00000241515648c0] Could not open encoder before EOF
[vost#0:0/wrapped_avframe @ 00000241515648c0] Task finished with error code: -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 00000241515648c0] Terminating thread with return code -22 (Invalid argument)
[out#0/yuv4mpegpipe @ 00000241515593c0] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
Conversion failed!
Reply
#6
Quote:Undefined constant or missing '(' in 'bt2020_10'
Error setting option color_trc to value bt2020_10
Okay, that is the problem.

strangly
Quote:color_trc integer (decoding/encoding,video)

Possible values:

‘bt709’

BT.709
‘gamma22’

BT.470 M
‘gamma28’

BT.470 BG
‘smpte170m’

SMPTE 170 M
‘smpte240m’

SMPTE 240 M
‘linear’

Linear
‘log’
‘log100’

Log
‘log_sqrt’
‘log316’

Log square root
‘iec61966_2_4’
‘iec61966-2-4’

IEC 61966-2-4
‘bt1361’
‘bt1361e’

BT.1361
‘iec61966_2_1’
‘iec61966-2-1’

IEC 61966-2-1
‘bt2020_10’
‘bt2020_10bit’

BT.2020 - 10 bit
‘bt2020_12’
‘bt2020_12bit’

BT.2020 - 12 bit
‘smpte2084’

SMPTE ST 2084
‘smpte428’
‘smpte428_1’

SMPTE ST 428-1
‘arib-std-b67’

ARIB STD-B67
source: https://ffmpeg.org/ffmpeg-all.html
should work.

Does calling:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020_10bit -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
and/or
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
work?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#7
C:\Users\Orion>"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
ffmpeg version N-113926-gd747d1d824-g1a4e0eb374+1 Copyright © 2000-2024 the FFmpeg developers
built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
configuration: --pkg-config=pkgconf --cc='ccache gcc' --cxx='ccache g++' --ld='ccache g++' --extra-cxxflags=-fpermissive --extra-cflags=-Wno-int-conversion --disable-autodetect --enable-amf --enable-bzlib --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-iconv --enable-lzma --enable-nvenc --enable-zlib --enable-sdl2 --enable-ffnvcodec--enable-nvdec --enable-cuda-llvm --disable-doc --enable-gmp --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libdav1d --enable-libaom --disable-debug --enable-fontconfig --enable-libass --enable-libbluray --enable-libfreetype --enable-libmfx --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libwebp --enable-libxml2 --enable-libzimg --enable-libshine --enable-gpl --enable-avisynth --enable-libxvid --enable-libopenmpt --enable-version3 --enable-librav1e --enable-libsrt --enable-libgsm --enable-libvmaf --enable-libsvtav1 --enable-gnutls --extra-cflags=-DLIBTWOLAME_STATIC --extra-libs=-lstdc++ --extra-cflags=-DLIBXML_STATIC --extra-libs=-liconv --disable-w32threads
libavutil 58. 40.100 / 58. 40.100
libavcodec 60. 41.100 / 60. 41.100
libavformat 60. 23.100 / 60. 23.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 14.100 / 4. 14.100
libpostproc 57. 4.100 / 57. 4.100
-vsync is deprecated. Use -fps_mode
Passing a number to -vsync is deprecated, use a string argument as described in the manual.
Input #0, avisynth, from 'K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs':
Duration: 00:03:40.68, start: 0.000000, bitrate: 0 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 1440x1152, 25 fps, 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> wrapped_avframe (native))
[wrapped_avframe @ 000001ca56d74fc0] [Eval @ 00000044c97fe650] Undefined constant or missing '(' in 'bt2020'
[wrapped_avframe @ 000001ca56d74fc0] Unable to parse option value "bt2020"
[wrapped_avframe @ 000001ca56d74fc0] Error setting option color_trc to value bt2020.
[vost#0:0/wrapped_avframe @ 000001ca56d74100] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 000001ca56d76980] Error sending frames to consumers: Invalid argument
[vf#0:0 @ 000001ca56d76980] Task finished with error code: -22 (Invalid argument)
[vf#0:0 @ 000001ca56d76980] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 000001ca56d74100] Could not open encoder before EOF
[vost#0:0/wrapped_avframe @ 000001ca56d74100] Task finished with error code: -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 000001ca56d74100] Terminating thread with return code -22 (Invalid argument)
[out#0/yuv4mpegpipe @ 000001ca56d69b80] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
Conversion failed!
Reply
#8
I'll do some testing.
I suspect:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc bt2020_10bit -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
doesn't either, but:
"C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -i "K:\temp\encodingTempSynthSkript_2024-03-09@21_43_11_6810_0.avs" -an -sn -color_primaries bt2020 -color_trc smpte2084 -colorspace bt709 -color_range tv -pix_fmt yuv420p -vsync 0 -f yuv4mpegpipe NUL
does.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#9
I think I found the problem:
OFFSET(user_trc),   AV_OPT_TYPE_INT, { .i64 = AVCOL_TRC_UNSPECIFIED },
       AVCOL_TRC_RESERVED0, AVCOL_TRC_NB - 1, FLAGS, .unit = "trc" },
     ENUM("bt709",        AVCOL_TRC_BT709,        "trc"),
     ENUM("bt470m",       AVCOL_TRC_GAMMA22,      "trc"),
     ENUM("gamma22",      AVCOL_TRC_GAMMA22,      "trc"),
     ENUM("bt470bg",      AVCOL_TRC_GAMMA28,      "trc"),
     ENUM("gamma28",      AVCOL_TRC_GAMMA28,      "trc"),
     ENUM("smpte170m",    AVCOL_TRC_SMPTE170M,    "trc"),
     ENUM("smpte240m",    AVCOL_TRC_SMPTE240M,    "trc"),
     ENUM("linear",       AVCOL_TRC_LINEAR,       "trc"),
     ENUM("srgb",         AVCOL_TRC_IEC61966_2_1, "trc"),
     ENUM("iec61966-2-1", AVCOL_TRC_IEC61966_2_1, "trc"),
     ENUM("xvycc",        AVCOL_TRC_IEC61966_2_4, "trc"),
     ENUM("iec61966-2-4", AVCOL_TRC_IEC61966_2_4, "trc"),
     ENUM("bt2020-10",    AVCOL_TRC_BT2020_10,    "trc"),
     ENUM("bt2020-12",    AVCOL_TRC_BT2020_12,    "trc"),
https://github.com/FFmpeg/FFmpeg/blob/ma...ace.c#L933
this documentation is wrong.
Instead of bt2020_10 it need to be 'bt2020-10'

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#10
Send you a link to a dev version for testing which hopefully fidex the problem.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)