#7199: Broken P010 colorspace conversion
-------------------------------------+-------------------------------------
             Reporter:  thx4ever     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by thx4ever):

 here are the commandline options for encoding

 C:\ffmpeg>ffmpeg -v verbose -vsync 0 -c:v h264_cuvid -i
 D:\TESTS\Source.264 -vcodec hevc_qsv -load_plugin hevc_sw -profile:v
 main10 -vframes 500 -pix_fmt p010le -async_depth 10 -preset:v slow -b:v
 2800000 -g 240 -refs:v 6 -bf:v 3 D:\Destination.hevc
 ffmpeg version N-91024-g293a6e8332 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 7.3.0 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
 --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
 --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
 --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx
 --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-
 nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
   libavutil      56. 18.100 / 56. 18.100
   libavcodec     58. 19.101 / 58. 19.101
   libavformat    58. 13.102 / 58. 13.102
   libavdevice    58.  4.100 / 58.  4.100
   libavfilter     7. 21.100 /  7. 21.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 [h264 @ 000001f6ccb6dc40] Reinit context to 1920x1088, pix_fmt: yuv420p
 [h264 @ 000001f6ccb5b4c0] Stream #0: not enough frames to estimate rate;
 consider increasing probesize
 Input #0, h264, from 'D:\TESTS\Source.264':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (High), 1 reference frame,
 yuv420p(progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 50
 fps, 50 tbr, 1200k tbn, 100 tbc
 [AVBSFContext @ 000001f6ccc2ef40] The input looks like it is Annex B
 already
 [h264_cuvid @ 000001f6ccb64300] CUVID capabilities for h264_cuvid:
 [h264_cuvid @ 000001f6ccb64300] 8 bit: supported: 1, min_width: 48,
 max_width: 4096, min_height: 16, max_height: 4096
 [h264_cuvid @ 000001f6ccb64300] 10 bit: supported: 0, min_width: 0,
 max_width: 0, min_height: 0, max_height: 0
 [h264_cuvid @ 000001f6ccb64300] 12 bit: supported: 0, min_width: 0,
 max_width: 0, min_height: 0, max_height: 0
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> hevc (hevc_qsv))
 Press [q] to stop, [?] for help
 [h264_cuvid @ 000001f6ccb64300] Formats: Original: nv12 | HW: nv12 | SW:
 nv12
 [graph 0 input from stream 0:0 @ 000001f6cd545040] w:1920 h:1080
 pixfmt:nv12 tb:1/1200000 fr:50/1 sar:1/1 sws_param:flags=2
 [auto_scaler_0 @ 000001f6cd0836c0] w:iw h:ih flags:'bicubic' interl:0
 [format @ 000001f6cd080b00] auto-inserting filter 'auto_scaler_0' between
 the filter 'Parsed_null_0' and the filter 'format'
 [auto_scaler_0 @ 000001f6cd0836c0] w:1920 h:1080 fmt:nv12 sar:1/1 ->
 w:1920 h:1080 fmt:p010le sar:1/1 flags:0x4
 [hevc_qsv @ 000001f6cd210500] Initialized an internal MFX session using
 hardware accelerated implementation
 [hevc_qsv @ 000001f6cd210500] Using the average variable bitrate (AVBR)
 ratecontrol method
 [hevc_qsv @ 000001f6cd210500] profile: main10; level: 41
 [hevc_qsv @ 000001f6cd210500] GopPicSize: 240; GopRefDist: 4; GopOptFlag:
 closed ; IdrInterval: 1
 [hevc_qsv @ 000001f6cd210500] TargetUsage: 3; RateControlMethod: AVBR
 [hevc_qsv @ 000001f6cd210500] TargetKbps: 2800; Accuracy: 0; Convergence:
 0
 [hevc_qsv @ 000001f6cd210500] NumSlice: 1; NumRefFrame: 6
 [hevc_qsv @ 000001f6cd210500] RateDistortionOpt: unknown
 [hevc_qsv @ 000001f6cd210500] RecoveryPointSEI: unknown IntRefType: 0;
 IntRefCycleSize: 0; IntRefQPDelta: 0
 [hevc_qsv @ 000001f6cd210500] MaxFrameSize: 0; MaxSliceSize: 0;
 [hevc_qsv @ 000001f6cd210500] BitrateLimit: unknown; MBBRC: ON; ExtBRC:
 unknown
 [hevc_qsv @ 000001f6cd210500] Trellis: auto
 [hevc_qsv @ 000001f6cd210500] RepeatPPS: unknown; NumMbPerSlice: 0;
 LookAheadDS: unknown
 [hevc_qsv @ 000001f6cd210500] AdaptiveI: ON; AdaptiveB: unknown; BRefType:
 auto
 [hevc_qsv @ 000001f6cd210500] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0;
 MinQPB: 0; MaxQPB: 0
 Output #0, hevc, to 'D:\Destination.hevc':
   Metadata:
     encoder         : Lavf58.13.102
     Stream #0:0: Video: hevc (hevc_qsv), 1 reference frame, p010le(left),
 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2800 kb/s, 50 fps, 50 tbn, 50 tbc
     Metadata:
       encoder         : Lavc58.19.101 hevc_qsv
     Side data:
       cpb: bitrate max/min/avg: 0/0/2800000 buffer size: 0 vbv_delay: -1
 No more output streams to write to, finishing.e=00:00:09.42
 bitrate=111759.1kbits/s speed=0.0935x
 frame=  500 fps=4.7 q=-0.0 Lsize=  136648kB time=00:00:09.96
 bitrate=112391.4kbits/s speed=0.0936x
 video:136648kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.000000%
 Input file #0 (D:\TESTS\Source.264):
   Input stream #0:0 (video): 506 packets read (38740437 bytes); 501 frames
 decoded;
   Total: 506 packets (38740437 bytes) demuxed
 Output file #0 (D:\Destination.hevc):
   Output stream #0:0 (video): 500 frames encoded; 500 packets muxed
 (139927253 bytes);
   Total: 500 packets (139927253 bytes) muxed

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7199#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-trac

Reply via email to