Hello everybody,

I am trying to use FFMPEG ( 3.4 version) to transfert HDR video
specifications (x265.mp4 videos). I have seen on other forums command lines
that I tried to test for me but I never have succesfull results. I want to
use Nvidia options (NVENC/SCALE_NPP/or other) because I have a P4 graphic
card.

Here is my file (Media Info)

General
Complete name                            : /storage/input_HDR.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 293 MiB
Duration                                 : 54 s 422 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 45.1 Mb/s
Writing application                      : Lavf56.15.103

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 54 s 375 ms
Bit rate                                 : 44.8 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Original frame rate                      : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.225
Stream size                              : 290 MiB (99%)
Writing library                          : ATEME Titan KFE 3.7.0
(4.7.0.2002)
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : SMPTE ST 2084
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : R: x=0.680000 y=0.320000, G:
x=0.265000 y=0.690000, B: x=0.150000 y=0.060000, White point: x=0.312700
y=0.329000
Mastering display luminance              : min: 0.0200 cd/m2, max: 1200.0000
cd/m2

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 54 s 422 ms
Bit rate mode                            : Variable
Bit rate                                 : 384 kb/s
Channel(s)                               : 2 channels
Channel(s)_Original                      : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 2.47 MiB (1%)
Default                                  : Yes
Alternate group                          : 1

And here is the command that I tried:

time /FFmpeg/3.4/bin/ffmpeg -hwaccel cuvid -c:v hevc_cuvid -i
/storage/input_HDR.mp4 -c:v nvenc_hevc -filter_complex
[0:0]scale_npp=colormatrix=bt2020:h_chr_pos=0:v_chr_pos=0,format=yuv420p10le
-pix_fmt yuv420p10le -x265-params
"colorprim=bt2020:transfer=smpte-st-2084:colormatrix=bt2020nc" -crf 22 -c:a
copy /storage/OUT/testHDR.mp4   

When I ran the command I have this error message

ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
  configuration: --prefix=/data/TOOL-FFMPEG/target
--pkg-config-flags=--static
--extra-cflags=-I/data/TOOL-FFMPEG/target/include
--extra-ldflags=-L/data/TOOL-FFMPEG/target/lib --enable-static --enable-pic
--disable-ffserver --disable-debug --disable-shared --disable-doc
--enable-gpl --enable-fontconfig --enable-version3 --enable-libass
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenjpeg
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libvidstab
--enable-runtime-cpudetect --enable-libfribidi --enable-libsoxr
--enable-libvmaf --enable-vaapi --enable-libzimg --enable-openssl
--enable-nvenc --enable-cuvid --enable-libnpp --enable-cuda
--enable-cuda-sdk --enable-hwaccel=hevc_vaapi --enable-hwaccel=h264_vaapi
--enable-hwaccel=mpeg2_vaapi --enable-hwaccel=vp9_vaapi --enable-librtmp
--enable-nonfree
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[aac @ 0x2ce6920] This stream seems to incorrectly report its last channel
as LFE[3], mapping to LFE[0]
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/input_HDR.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf56.15.103
  Duration: 00:00:54.42, start: 0.000000, bitrate: 45136 kb/s
    Stream #0:0(und): Video: hevc (Main 10) (hev1 / 0x31766568),
yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9],
44788 kb/s, 24 fps, 24 tbr, 24k tbn, 23.98 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
fltp, 381 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
*[Parsed_scale_npp_0 @ 0x2ccb940] Option 'colormatrix' not found
[AVFilterGraph @ 0x2cc86c0] Error initializing filter 'scale_npp' with args
'colormatrix=bt2020:h_chr_pos=0:v_chr_pos=0'
Error initializing complex filters.
Option not found
*

Why I cannot use the colomatrix option? 

/PS:I have tried with "scale_cuda" and it didn't work too./





--
Sent from: http://www.ffmpeg-archive.org/
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to