[FFmpeg-trac] #8065(undetermined:new): VPP_QSV filter don't work as expected
FFmpeg
trac at avcodec.org
Thu Aug 15 19:12:06 EEST 2019
#8065: VPP_QSV filter don't work as expected
-------------------------------------+-------------------------------------
Reporter: thx4ever | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by thx4ever):
Replying to [comment:4 lizhong1008]:
> https://patchwork.ffmpeg.org/patch/14522/ has been sent out to fix this
issue.
I still can reproduce same issue on Windows with your patch, my command
line options used
ffmpeg -v verbose -hide_banner -hwaccel qsv -c:v h264_qsv -i
sample_AVC.264 -vf scale_qsv=1280:720,vpp_qsv=format=p010le -c:v hevc_qsv
-load_plugin hevc_sw -profile:v main10 -preset:v slower -b:v 2280k
-color_primaries bt709 -color_trc bt709 -colorspace bt709 -bsf:v
hevc_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1
-gpb 0 -vframes 5 sample_encoded_hevc_ticket#8065.hevc
[h264 @ 000002A4ED03D900] Reinit context to 1280x720, pix_fmt: yuv420p
[h264 @ 000002A4ED028A00] max_analyze_duration 5000000 reached at 5000000
microseconds st:0
Input #0, h264, from 'C:\Users\thx4ever\Downloads\sample_AVC.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), 1 reference frame,
yuv420p(progressive, left), 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc
[AVBSFContext @ 000002A4EED98340] The input looks like it is Annex B
already
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_qsv) -> hevc (hevc_qsv))
Press [q] to stop, [?] for help
[AVHWDeviceContext @ 000002A4EF461640] Using D3D9Ex device.
[AVHWDeviceContext @ 000002A4EF461140] Initialize MFX session: API version
is 1.27, implementation version is 1.29
[AVHWDeviceContext @ 000002A4EF461140] MFX compile/runtime API: 1.27/1.29
[graph 0 input from stream 0:0 @ 000002A4EEE01DC0] w:1280 h:720 pixfmt:qsv
tb:1/1200000 fr:25/1 sar:0/1 sws_param:flags=2
[Parsed_scale_qsv_0 @ 000002A4EEFBA500] Scaling mode: 0
[Parsed_scale_qsv_0 @ 000002A4EEFBA500] w:1280 h:720 -> w:1280 h:720
[hevc_qsv @ 000002A4ED0CEB00] Using the average variable bitrate (AVBR)
ratecontrol method
[hevc_qsv @ 000002A4ED0CEB00] profile: main10; level: 31
[hevc_qsv @ 000002A4ED0CEB00] GopPicSize: 248; GopRefDist: 9; GopOptFlag:
closed ; IdrInterval: 1
[hevc_qsv @ 000002A4ED0CEB00] TargetUsage: 2; RateControlMethod: AVBR
[hevc_qsv @ 000002A4ED0CEB00] TargetKbps: 2280; Accuracy: 0; Convergence:
0; BRCParamMultiplier: 1
[hevc_qsv @ 000002A4ED0CEB00] NumSlice: 1; NumRefFrame: 4
[hevc_qsv @ 000002A4ED0CEB00] RateDistortionOpt: unknown
[hevc_qsv @ 000002A4ED0CEB00] RecoveryPointSEI: unknown IntRefType: 0;
IntRefCycleSize: 0; IntRefQPDelta: 0
[hevc_qsv @ 000002A4ED0CEB00] MaxFrameSize: 0; MaxSliceSize: 0;
[hevc_qsv @ 000002A4ED0CEB00] BitrateLimit: unknown; MBBRC: ON; ExtBRC:
unknown
[hevc_qsv @ 000002A4ED0CEB00] Trellis: auto
[hevc_qsv @ 000002A4ED0CEB00] VDENC: OFF
[hevc_qsv @ 000002A4ED0CEB00] RepeatPPS: unknown; NumMbPerSlice: 0;
LookAheadDS: unknown
[hevc_qsv @ 000002A4ED0CEB00] AdaptiveI: ON; AdaptiveB: unknown; BRefType:
auto
[hevc_qsv @ 000002A4ED0CEB00] MinQPI: 0; MaxQPI: 0; MinQPP: 0; MaxQPP: 0;
MinQPB: 0; MaxQPB: 0
[hevc_qsv @ 000002A4ED0CEB00] GPB: OFF
[hevc_qsv @ 000002A4ED0CEB00] FrameRateExtD: 1; FrameRateExtN: 25
Output #0, hevc, to
'C:\Users\thx4ever\Desktop\sample_encoded_hevc_ticket#8065.hevc':
Metadata:
encoder : Lavf58.30.100
Stream #0:0: Video: hevc (hevc_qsv), 1 reference frame, qsv(bt709,
left), 1280x720, q=2-31, 2280 kb/s, 25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc58.55.100 hevc_qsv
Side data:
cpb: bitrate max/min/avg: 0/0/2280000 buffer size: 0 vbv_delay:
18446744073709551615
No more output streams to write to, finishing.
frame= 5 fps=4.5 q=-0.0 Lsize= 2972kB time=00:00:00.52
bitrate=46815.9kbits/s speed=0.468x
video:2972kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%
Input file #0 (C:\Users\thx4ever\Downloads\sample_AVC.264):
Input stream #0:0 (video): 17 packets read (242428 bytes); 6 frames
decoded;
Total: 17 packets (242428 bytes) demuxed
Output file #0
(C:\Users\thx4ever\Desktop\sample_encoded_hevc_ticket#8065.hevc):
Output stream #0:0 (video): 5 frames encoded; 5 packets muxed (3043031
bytes);
Total: 5 packets (3043031 bytes) muxed
[AVIOContext @ 000002A4ECFDB380] Statistics: 0 seeks, 12 writeouts
[AVIOContext @ 000002A4ECFD9A40] Statistics: 1540096 bytes read, 0 seeks
first the bitrate of output goes crazy and the final encoded vĂdeo is
garbage of colors
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8065#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list