Selur's Little Message Board

Full Version: HDR10 to SDR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Code:
"/usr/bin/ffmpeg" -y -loglevel fatal -threads 8 -i "/home/leqaviva/Desktop/Filmy BD/King.Kong.2005.PL.2160.UHD.BLURAY.HEVC.REMUX.DTS.5.1-H3Q.mkv" -map 0:0 -an -sn -vf colormatrix=bt2020:bt709,crop=3840:1632:0:264,scale=1280:544,scale=out_range=tv -pix_fmt yuv420p -vsync 0  -sws_flags spline -f rawvideo -
| "/home/leqaviva/.hybrid-bin/x264" --preset slower --crf 17.00 --profile high --level 4.1 --ref 12 --bframes 9 --merange 32 --mvrange 512 --subme 11 --psy-rd 1.05:0.15 --aq-mode 3 --aq-strength 0.9 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 1:1 --deblock -3:-3 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1280x544 --input-csp i420 --input-depth 8 --fps 24000/1001 --output-depth 8 --output "/home/leqaviva/Desktop/temp hybrida/07_01_18_6310_05.264" -
leqaviva@aviva:~$ "/usr/bin/ffmpeg" -y -loglevel fatal -threads 8 -i "/home/leqaviva/Desktop/Filmy BD/King.Kong.2005.PL.2160.UHD.BLURAY.HEVC.REMUX.DTS.5.1-H3Q.mkv" -map 0:0 -an -sn -vf colormatrix=bt2020:bt709,crop=3840:1632:0:264,scale=1280:544,scale=out_range=tv -pix_fmt yuv420p -vsync 0  -sws_flags spline -f rawvideo -
Error opening filters!
leqaviva@aviva:~$ | "/home/leqaviva/.hybrid-bin/x264" --preset slower --crf 17.00 --profile high --level 4.1 --ref 12 --bframes 9 --merange 32 --mvrange 512 --subme 11 --psy-rd 1.05:0.15 --aq-mode 3 --aq-strength 0.9 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 1:1 --deblock -3:-3 --non-deterministic --range tv --colormatrix bt709 --demuxer raw --input-res 1280x544 --input-csp i420 --input-depth 8 --fps 24000/1001 --output-depth 8 --output "/home/leqaviva/Desktop/temp hybrida/07_01_18_6310_05.264" -
Code:
"/usr/bin/ffmpeg" -y -threads 8 -i "/home/leqaviva/Desktop/Filmy BD/King.Kong.2005.PL.2160.UHD.BLURAY.HEVC.REMUX.DTS.5.1-H3Q.mkv" -map 0:0 -an -sn -vf colormatrix=bt2020:bt709,crop=3840:1632:0:264,scale=1280:544,scale=out_range=tv -pix_fmt yuv420p -vsync 0  -sws_flags spline -f rawvideo /dev/null

leqaviva@aviva:~$ "/usr/bin/ffmpeg" -y -threads 8 -i "/home/leqaviva/Desktop/Filmy BD/King.Kong.2005.PL.2160.UHD.BLURAY.HEVC.REMUX.DTS.5.1-H3Q.mkv" -map 0:0 -an -sn -vf colormatrix=bt2020:bt709,crop=3840:1632:0:264,scale=1280:544,scale=out_range=tv -pix_fmt yuv420p -vsync 0  -sws_flags spline -f rawvideo /dev/null
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright © 2000-2018 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[matroska,webm @ 0x1100640] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x1100640] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/home/leqaviva/Desktop/Filmy BD/King.Kong.2005.PL.2160.UHD.BLURAY.HEVC.REMUX.DTS.5.1-H3Q.mkv':
  Metadata:
    encoder         : libebml v1.3.5 + libmatroska v1.4.8
    creation_time   : 2018-04-11 01:54:39
  Duration: 03:20:08.96, start: 0.000000, bitrate: 46928 kb/s
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/unknown), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 46151941
      DURATION-eng    : 03:20:08.959000000
      NUMBER_OF_FRAMES-eng: 287925
      NUMBER_OF_BYTES-eng: 69279596673
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-11 01:54:39
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(pol): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s (default)
    Metadata:
      BPS-eng         : 768000
      DURATION-eng    : 03:20:08.960000000
      NUMBER_OF_FRAMES-eng: 1125840
      NUMBER_OF_BYTES-eng: 1152860160
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-11 01:54:39
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(pol): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 14529
      DURATION-eng    : 03:18:45.291000000
      NUMBER_OF_FRAMES-eng: 2594
      NUMBER_OF_BYTES-eng: 21658391
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-11 01:54:39
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(pol): Subtitle: hdmv_pgs_subtitle (default) (forced)
    Metadata:
      title           : Forced
      BPS-eng         : 704
      DURATION-eng    : 02:52:08.405000000
      NUMBER_OF_FRAMES-eng: 152
      NUMBER_OF_BYTES-eng: 910007
      _STATISTICS_WRITING_APP-eng: mkvmerge v22.0.0 ('At The End Of The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-04-11 01:54:39
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[colormatrix @ 0x119b3c0] [Eval @ 0x7fff3cf4d820] Undefined constant or missing '(' in 'bt2020'
[colormatrix @ 0x119b3c0] Unable to parse option value "bt2020"
[colormatrix @ 0x119b3c0] [Eval @ 0x7fff3cf4d870] Undefined constant or missing '(' in 'bt2020'
[colormatrix @ 0x119b3c0] Unable to parse option value "bt2020"
[colormatrix @ 0x119b3c0] Error setting option src to value bt2020.
[Parsed_colormatrix_0 @ 0x16ab6c0] Error applying options to the filter.
[AVFilterGraph @ 0x1108fc0] Error initializing filter 'colormatrix' with args 'bt2020:bt709'
Error opening filters!
leqaviva@aviva:~$
Code:
[colormatrix @ 0x119b3c0] [Eval @ 0x7fff3cf4d820] Undefined constant or missing '(' in 'bt2020'
[colormatrix @ 0x119b3c0] Unable to parse option value "bt2020"
[colormatrix @ 0x119b3c0] [Eval @ 0x7fff3cf4d870] Undefined constant or missing '(' in 'bt2020'
[colormatrix @ 0x119b3c0] Unable to parse option value "bt2020"
[colormatrix @ 0x119b3c0] Error setting option src to value bt2020.
[Parsed_colormatrix_0 @ 0x16ab6c0] Error applying options to the filter.
[AVFilterGraph @ 0x1108fc0] Error initializing filter 'colormatrix' with args 'bt2020:bt709'
seems like bt2020 is the problem with colormatrix,... should be 'Rec.2020'

-> I can reproduce the issue, will fix it tomorrow and send you a link to a dev version tomorrow

Cu Selur
No, that's not it. (made a typo last night and thought a reproduced the issue, but didn't actually :/)
Checked https://ffmpeg.org/ffmpeg-filters.html#colormatrix and bt2020 should be an allowed value.

-> tried your call here (paths adjusted) and here, it works fine.

Did you get your ffmpeg version from the repository of djcj? (In that case I would ask him to update ffmpeg)

Cu Selur
A new ffmpeg 4.0.1 was installed on another server and nothing has changed.

HybridDebugOutput: https://www104.zippyshare.com/v/E76EyEQJ/file.html
ffmpeg would only influence the ffmpeg problem not the Vapoursynth issue,...
Pages: 1 2