[qsv-svn5476]Output video not fluid

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
valentijn
Posts: 14
Joined: Sun May 19, 2013 8:50 pm

[qsv-svn5476]Output video not fluid

Post by valentijn »

Hello,

Thank you for all the effort of integration Intel QuickSync encoding into Handbrake.

I tried the beta and ran into the following issue.

I am encoding a 4000kbps mpeg-ts into a 2500kbps avg bitrate h264 mp4.

The outputted video is not fluid, it has a slight stutter in it.

It's easily noticed when playing (vlc) the h264 out file side-by-side with the qsv_h264 file.

I am using Intel driver 9.17.10.2932 because anything newer crashes my windows dwm.exe
(see http://communities.intel.com/docs/DOC-19855)

Below are the mediainfo extracts of the input, qsv_h264 output and h264 output.
The samples + logs are located on my dropbox folder (66MB, 40MB, 40MB): http://db.tt/27qCUBVf

Input:

Code: Select all

General
ID                                       : 17 (0x11)
Complete name                            : C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts
Format                                   : MPEG-TS
File size                                : 66.0 MiB
Duration                                 : 2mn 4s
Start time                               : UTC 2013-05-18 20:02:16
End time                                 : UTC 2013-05-18 20:04:01
Overall bit rate mode                    : Variable
Overall bit rate                         : 4 456 Kbps

Video
ID                                       : 2825 (0xB09)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Codec ID                                 : 2
Duration                                 : 2mn 3s
Bit rate mode                            : Variable
Bit rate                                 : 3 978 Kbps
Maximum bit rate                         : 15.0 Mbps
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.384
Stream size                              : 58.7 MiB (89%)

Output qsv_h264:

Code: Select all

General
Complete name                            : C:\Users\Valentijn\Dropbox\qsv\qsv sample output-qsv.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 41.9 MiB
Duration                                 : 2mn 4s
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 829 Kbps
Encoded date                             : UTC 2013-05-19 21:21:57
Tagged date                              : UTC 2013-05-19 21:22:07
Writing application                      : HandBrake 5476svn 2013051801

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Format settings, GOP                     : M=4, N=32
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 4s
Bit rate mode                            : Variable
Bit rate                                 : 2 505 Kbps
Maximum bit rate                         : 3 750 Kbps
Width                                    : 716 pixels
Height                                   : 572 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.245
Stream size                              : 37.1 MiB (89%)
Encoded date                             : UTC 2013-05-19 21:21:57
Tagged date                              : UTC 2013-05-19 21:22:07
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
Output h264:

Code: Select all

General
Complete name                            : C:\Users\Valentijn\Dropbox\qsv\qsv sample output-h264.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 39.8 MiB
Duration                                 : 2mn 4s
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 687 Kbps
Encoded date                             : UTC 2013-05-19 21:09:29
Tagged date                              : UTC 2013-05-19 21:09:44
Writing application                      : HandBrake 5476svn 2013051801

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.0
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 4s
Bit rate mode                            : Variable
Bit rate                                 : 2 500 Kbps
Width                                    : 716 pixels
Height                                   : 572 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.244
Stream size                              : 37.3 MiB (94%)
Writing library                          : x264 core 130 r2273 b3065e6
Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=abr / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2013-05-19 21:09:29
Tagged date                              : UTC 2013-05-19 21:09:44
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
Logs:

Code: Select all

HandBrake svn5476 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
Ram: 8063 MB, Screen: 1920x1200
Temp Dir: C:\Users\Valentijn\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Valentijn\AppData\Roaming\HandBrake\HandBrake\0.0.0.5476

-------------------------------------------

CLI Query:  -i "C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts" -t 1 --angle 1 -c 1 -o "C:\Users\Valentijn\Desktop\qsv sample input.mp4"  -f mp4  --deinterlace="qsv" --crop 2:2:2:2 --strict-anamorphic  --modulus 16 -e qsv_h264 -b 2500 --cfr -a 1,2 -E faac,faac -6 dpl2,dpl2 -R 48,48 -B 160,160 -D 0,0 --gain 0,0 --audio-fallback ffac3 --subtitle scan -x target-usage=2:gop-ref-dist=4:gop-pic-size=32:async-depth=4 --verbose=1
User Query: False

[23:21:56] hb_init: starting libhb thread
HandBrake svn5476 (2013051801) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts...
[23:21:56] hb_scan: path=C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts) failed (0000000000357240)
[23:21:56] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[23:21:56] dvd: not a dvd - trying as a stream/file instead
[23:21:56] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:21:56] Found the following PIDS
[23:21:56]     Video PIDS : 
[23:21:56]       0xb09 type MPEG2 (0x2) (PCR)
[23:21:56]     Audio PIDS : 
[23:21:56]       0xb07 type MPEG1 (0x3)
[23:21:56]       0xb0d type MPEG1 (0x3)
[23:21:56]     Subtitle PIDS : 
[23:21:56]     Other PIDS : 
[23:21:56]       0xb0f type DVB Teletext (0x0)
[23:21:56] stream id 0xb07 (type 0x3 substream 0x0) audio 0xb07
[23:21:56] stream id 0xb0d (type 0x3 substream 0x0) audio 0xb0d
[23:21:56] scan: decoding previews for title 1
[23:21:56] scan: audio 0xb0d: mp2, rate=48000Hz, bitrate=128000 Nederlands (MPEG1) (2.0 ch)
[23:21:56] scan: audio 0xb07: mp2, rate=48000Hz, bitrate=128000 English (MPEG1) (2.0 ch)
[23:21:57] scan: 10 previews, 720x576, 25.000 fps, autocrop = 2/0/0/0, aspect 16:9, PAR 64:45
[23:21:57] Title is likely interlaced or telecined (5 out of 10 previews). You should do something about that.
[23:21:57] stream: 8 good frames, 0 errors (0%)
[23:21:57] libhb: scan thread found 1 valid title(s)
- intel quick sync video support: yes
  - hardware version: 1.4 (minimum: 1.4)
+ title 1:
  + stream: C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts
  + duration: 00:02:04
  + size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
  + autocrop: 2/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:04
  + audio tracks:
    + 1, English (MPEG1) (2.0 ch) (iso639-2: eng)
    + 2, Nederlands (MPEG1) (2.0 ch) (iso639-2: nld)
  + subtitle tracks:
  + combing detected, may be interlaced or telecined
Subtitle Scan Enabled - enabling subtitles if found for foreign language segments
[23:21:57] 2 job(s) to process
[23:21:57] starting job
[23:21:57] sync: expecting 3110 video frames
[23:21:57] job configuration:
[23:21:57]  * source
[23:21:57]    + C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts
[23:21:57]    + title 1, chapter(s) 1 to 1
[23:21:57]  * destination
[23:21:57]    + C:\Users\Valentijn\Desktop\qsv sample input.mp4
[23:21:57]    + container: MPEG-4 (.mp4 and .m4v)
[23:21:57]  * video track
[23:21:57]    + decoder: mpeg2
[23:21:57]      + bitrate 15000 kbps
[23:21:57]    + frame rate: 25.000 fps -> constant 25.000 fps
[23:21:57]    + filters
[23:21:57]      + Deinterlace (ffmpeg or yadif/mcdeint) (32)
[23:21:57]      + Framerate Shaper (1:27000000:1080000)
[23:21:57]        + frame rate: 25.000 fps -> constant 25.000 fps
[23:21:57]      + Crop and Scale (716:572:2:2:2:2)
[23:21:57]        + source: 720 * 576, crop (2/2/2/2): 716 * 572, scale: 716 * 572
[23:21:57]    + strict anamorphic
[23:21:57]      + storage dimensions: 716 * 572, mod 0
[23:21:57]      + pixel aspect ratio: 64 / 45
[23:21:57]      + display dimensions: 1018 * 572
[23:21:57]  * Foreign Audio Search: Passthrough
[23:21:57] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:21:57] hb_ts_stream_decode - eof
[23:21:57] reader: done. 2 scr changes
[23:21:57] work: average encoding speed for job is 0.000000 fps
[23:21:57] render: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[23:21:57] render: lost time: 0 (0 frames)
[23:21:57] render: gained time: 0 (0 frames) (0 not accounted for)
[23:21:57] mpeg2 done: 0 frames
[23:21:57] stream: 3108 good frames, 0 errors (0%)
[23:21:57] No candidate detected during subtitle scan
[23:21:57] starting job
[23:21:57] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
[23:21:57] work: sanitizing track 2 mixdown Dolby Pro Logic II to Stereo
[23:21:57] sync: expecting 3110 video frames
[23:21:57] job configuration:
[23:21:57]  * source
[23:21:57]    + C:\Users\Valentijn\Dropbox\qsv\qsv_sample_input.ts
[23:21:57]    + title 1, chapter(s) 1 to 1
[23:21:57]  * destination
[23:21:57]    + C:\Users\Valentijn\Desktop\qsv sample input.mp4
[23:21:57]    + container: MPEG-4 (.mp4 and .m4v)
[23:21:57]  * video track
[23:21:57]    + decoder: mpeg2
[23:21:57]      + bitrate 15000 kbps
[23:21:57]    + frame rate: 25.000 fps -> constant 25.000 fps
[23:21:57]    + filters
[23:21:57]      + Deinterlace (ffmpeg or yadif/mcdeint) (32)
[23:21:57]      + Framerate Shaper (1:27000000:1080000)
[23:21:57]        + frame rate: 25.000 fps -> constant 25.000 fps
[23:21:57]      + Crop and Scale (716:572:2:2:2:2)
[23:21:57]        + source: 720 * 576, crop (2/2/2/2): 716 * 572, scale: 716 * 572
[23:21:57]    + strict anamorphic
[23:21:57]      + storage dimensions: 716 * 572, mod 0
[23:21:57]      + pixel aspect ratio: 64 / 45
[23:21:57]      + display dimensions: 1018 * 572
[23:21:57]    + encoder: H.264 (Intel QSV)
[23:21:57]      + options: target-usage=2:gop-ref-dist=4:gop-pic-size=32:async-depth=4
[23:21:57]      + bitrate: 2500 kbps, pass: 0
[23:21:57]  * audio track 1
[23:21:57]    + decoder: English (MPEG1) (2.0 ch) (track 1, id 0xb07)
[23:21:57]      + bitrate: 128 kbps, samplerate: 48000 Hz
[23:21:57]    + mixdown: Stereo
[23:21:57]    + encoder: AAC (faac)
[23:21:57]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:21:57]  * audio track 2
[23:21:57]    + decoder: Nederlands (MPEG1) (2.0 ch) (track 2, id 0xb0d)
[23:21:57]      + bitrate: 128 kbps, samplerate: 48000 Hz
[23:21:57]    + mixdown: Stereo
[23:21:57]    + encoder: AAC (faac)
[23:21:57]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:21:57] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:21:57] reader: first SCR 5972738546 id 0xb09 DTS 5972738546
[23:21:57] mpeg2: "Chapter 1" (1) at frame 0 time 10800
[23:21:57] sync: first pts is 10800
[23:21:57] qsv: Intel QSV/MediaSDK uses hardware implementation
[23:21:57] qsv: Using for encode only.
[23:21:57] qsv: RateControlMethod:MFX_RATECONTROL_VBR TargetKbps:2500
[23:21:57] qsv: TargetUsage:2 AsyncDepth:4
[23:21:57] qsv: GopRefDist:4 GopPicSize:32 NumRefFrame:0
[23:21:59] MP4Mux: PTS 0 < DTS 21600
....
[23:22:05] work: average encoding speed for job is 439.064301 fps
[23:22:06] sync: got 3103 frames, 3110 expected
[23:22:06] render: 3104 frames output, 0 dropped and 1 duped for CFR/PFR
[23:22:06] render: lost time: 0 (0 frames)
[23:22:06] render: gained time: 0 (0 frames) (0 not accounted for)
[23:22:06] mpeg2 done: 3103 frames
[23:22:07] enc_qsv done: frames: 3104 in, 3104 out
[23:22:07] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:22:07] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:22:07] mux: track 0, 3104 frames, 38879931 bytes, 2505.15 kbps, fifo 1024
[23:22:07] mux: track 1, 5802 frames, 2475810 bytes, 159.52 kbps, fifo 2048
[23:22:07] mux: track 2, 5802 frames, 2474989 bytes, 159.47 kbps, fifo 2048
[23:22:07] stream: 3108 good frames, 0 errors (0%)
[23:22:07] libhb: work result = 0
Encode done!
HandBrake has exited.
Another log:

Code: Select all

HandBrake svn5476 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
Ram: 8063 MB, Screen: 1920x1200
Temp Dir: C:\Users\Valentijn\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Valentijn\AppData\Roaming\HandBrake\HandBrake\0.0.0.5476

-------------------------------------------

CLI Query:  -i "C:\Users\Valentijn\Desktop\qsv_sample_input.ts" -t 1 --angle 1 -c 1 -o "C:\Users\Valentijn\Desktop\qsv sample output-h264.mp4"  -f mp4  --crop 2:2:2:2 --strict-anamorphic  --modulus 16 -e x264 -b 2500 --cfr -a 1 -E faac -6 dpl2 -R 48 -B 160 -D 0 --gain 0 --audio-fallback ffac3 --subtitle scan -x ref=2:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0:bframes=3 --verbose=1
User Query: False

[23:09:28] hb_init: starting libhb thread
HandBrake svn5476 (2013051801) - MinGW x86_64 - http://handbrake.fr
8 CPUs detected
Opening C:\Users\Valentijn\Desktop\qsv_sample_input.ts...
[23:09:28] hb_scan: path=C:\Users\Valentijn\Desktop\qsv_sample_input.ts, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\Valentijn\Desktop\qsv_sample_input.ts/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\Valentijn\Desktop\qsv_sample_input.ts/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(C:\Users\Valentijn\Desktop\qsv_sample_input.ts) failed (0000000000367080)
[23:09:28] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[23:09:28] dvd: not a dvd - trying as a stream/file instead
[23:09:28] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:09:28] Found the following PIDS
[23:09:28]     Video PIDS : 
[23:09:28]       0xb09 type MPEG2 (0x2) (PCR)
[23:09:28]     Audio PIDS : 
[23:09:28]       0xb07 type MPEG1 (0x3)
[23:09:28]       0xb0d type MPEG1 (0x3)
[23:09:28]     Subtitle PIDS : 
[23:09:28]     Other PIDS : 
[23:09:28]       0xb0f type DVB Teletext (0x0)
[23:09:28] stream id 0xb07 (type 0x3 substream 0x0) audio 0xb07
[23:09:28] stream id 0xb0d (type 0x3 substream 0x0) audio 0xb0d
[23:09:28] scan: decoding previews for title 1
[23:09:28] scan: audio 0xb0d: mp2, rate=48000Hz, bitrate=128000 Nederlands (MPEG1) (2.0 ch)
[23:09:28] scan: audio 0xb07: mp2, rate=48000Hz, bitrate=128000 English (MPEG1) (2.0 ch)
[23:09:28] scan: 10 previews, 720x576, 25.000 fps, autocrop = 2/0/0/0, aspect 16:9, PAR 64:45
[23:09:28] Title is likely interlaced or telecined (5 out of 10 previews). You should do something about that.
[23:09:28] stream: 8 good frames, 0 errors (0%)
[23:09:28] libhb: scan thread found 1 valid title(s)
- intel quick sync video support: yes
  - hardware version: 1.4 (minimum: 1.4)
+ title 1:
  + stream: C:\Users\Valentijn\Desktop\qsv_sample_input.ts
  + duration: 00:02:04
  + size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
  + autocrop: 2/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:04
  + audio tracks:
    + 1, English (MPEG1) (2.0 ch) (iso639-2: eng)
    + 2, Nederlands (MPEG1) (2.0 ch) (iso639-2: nld)
  + subtitle tracks:
  + combing detected, may be interlaced or telecined
Subtitle Scan Enabled - enabling subtitles if found for foreign language segments
[23:09:28] 2 job(s) to process
[23:09:28] starting job
[23:09:28] sync: expecting 3110 video frames
[23:09:28] job configuration:
[23:09:28]  * source
[23:09:28]    + C:\Users\Valentijn\Desktop\qsv_sample_input.ts
[23:09:28]    + title 1, chapter(s) 1 to 1
[23:09:28]  * destination
[23:09:28]    + C:\Users\Valentijn\Desktop\qsv sample output-h264.mp4
[23:09:28]    + container: MPEG-4 (.mp4 and .m4v)
[23:09:28]  * video track
[23:09:28]    + decoder: mpeg2
[23:09:28]      + bitrate 15000 kbps
[23:09:28]    + frame rate: 25.000 fps -> constant 25.000 fps
[23:09:28]    + filters
[23:09:28]      + Framerate Shaper (1:27000000:1080000)
[23:09:28]        + frame rate: 25.000 fps -> constant 25.000 fps
[23:09:28]      + Crop and Scale (716:572:2:2:2:2)
[23:09:28]        + source: 720 * 576, crop (2/2/2/2): 716 * 572, scale: 716 * 572
[23:09:28]    + strict anamorphic
[23:09:28]      + storage dimensions: 716 * 572, mod 0
[23:09:28]      + pixel aspect ratio: 64 / 45
[23:09:28]      + display dimensions: 1018 * 572
[23:09:28]  * Foreign Audio Search: Passthrough
[23:09:28] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:09:29] hb_ts_stream_decode - eof
[23:09:29] reader: done. 2 scr changes
[23:09:29] work: average encoding speed for job is 0.000000 fps
[23:09:29] render: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[23:09:29] render: lost time: 0 (0 frames)
[23:09:29] render: gained time: 0 (0 frames) (0 not accounted for)
[23:09:29] mpeg2 done: 0 frames
[23:09:29] stream: 3108 good frames, 0 errors (0%)
[23:09:29] No candidate detected during subtitle scan
[23:09:29] starting job
[23:09:29] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
[23:09:29] sync: expecting 3110 video frames
[23:09:29] job configuration:
[23:09:29]  * source
[23:09:29]    + C:\Users\Valentijn\Desktop\qsv_sample_input.ts
[23:09:29]    + title 1, chapter(s) 1 to 1
[23:09:29]  * destination
[23:09:29]    + C:\Users\Valentijn\Desktop\qsv sample output-h264.mp4
[23:09:29]    + container: MPEG-4 (.mp4 and .m4v)
[23:09:29]  * video track
[23:09:29]    + decoder: mpeg2
[23:09:29]      + bitrate 15000 kbps
[23:09:29]    + frame rate: 25.000 fps -> constant 25.000 fps
[23:09:29]    + filters
[23:09:29]      + Framerate Shaper (1:27000000:1080000)
[23:09:29]        + frame rate: 25.000 fps -> constant 25.000 fps
[23:09:29]      + Crop and Scale (716:572:2:2:2:2)
[23:09:29]        + source: 720 * 576, crop (2/2/2/2): 716 * 572, scale: 716 * 572
[23:09:29]    + strict anamorphic
[23:09:29]      + storage dimensions: 716 * 572, mod 0
[23:09:29]      + pixel aspect ratio: 64 / 45
[23:09:29]      + display dimensions: 1018 * 572
[23:09:29]    + encoder: H.264 (x264)
[23:09:29]      + options: ref=2:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0:bframes=3
[23:09:29]      + bitrate: 2500 kbps, pass: 0
[23:09:29]  * audio track 1
[23:09:29]    + decoder: English (MPEG1) (2.0 ch) (track 1, id 0xb07)
[23:09:29]      + bitrate: 128 kbps, samplerate: 48000 Hz
[23:09:29]    + mixdown: Stereo
[23:09:29]    + encoder: AAC (faac)
[23:09:29]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:09:29] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[23:09:29] reader: first SCR 5972738546 id 0xb09 DTS 5972738546
[23:09:29] encx264: encoding with stored aspect 64/45
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[23:09:29] mpeg2: "Chapter 1" (1) at frame 0 time 10800
x264 [info]: profile Main, level 3.0
[23:09:29] sync: first pts is 10800
[23:09:43] hb_ts_stream_decode - eof
[23:09:43] reader: done. 2 scr changes
[23:09:43] work: average encoding speed for job is 222.189056 fps
[23:09:44] sync: got 3103 frames, 3110 expected
[23:09:44] render: 3103 frames output, 0 dropped and 0 duped for CFR/PFR
[23:09:44] render: lost time: 0 (0 frames)
[23:09:44] render: gained time: 0 (0 frames) (0 not accounted for)
[23:09:44] mpeg2 done: 3103 frames
x264 [info]: frame I:14    Avg QP:17.87  size: 49107  PSNR Mean Y:45.16 U:48.49 V:49.92 Avg:46.12 Global:45.47
x264 [info]: frame P:1736  Avg QP:21.06  size: 17011  PSNR Mean Y:41.64 U:45.89 V:47.94 Avg:42.77 Global:42.30
x264 [info]: frame B:1353  Avg QP:22.73  size:  6596  PSNR Mean Y:40.94 U:45.87 V:47.81 Avg:42.14 Global:41.44
x264 [info]: consecutive B-frames: 19.1% 67.0%  3.4% 10.4%
x264 [info]: mb I  I16..4: 24.9%  0.0% 75.1%
x264 [info]: mb P  I16..4: 19.1%  0.0%  4.4%  P16..4: 36.3% 20.1% 12.2%  0.0%  0.0%    skip: 7.9%
x264 [info]: mb B  I16..4:  3.3%  0.0%  0.3%  B16..8: 30.3% 11.7%  1.7%  direct:14.4%  skip:38.3%  L0:30.6% L1:43.4% BI:26.1%
x264 [info]: final ratefactor: 19.45
x264 [info]: coded y,uvDC,uvAC intra: 49.4% 30.0% 6.7% inter: 30.2% 20.4% 1.6%
x264 [info]: i16 v,h,dc,p: 29% 32% 31%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 59% 16%  2%  2%  2%  3%  2%  3%
x264 [info]: i8c dc,h,v,p: 61% 23% 14%  2%
x264 [info]: Weighted P-Frames: Y:3.1% UV:0.2%
x264 [info]: ref P L0: 78.6% 21.4%
x264 [info]: ref B L0: 84.5% 15.5%
x264 [info]: ref B L1: 98.9%  1.1%
x264 [info]: SSIM Mean Y:0.9742131 (15.886db)
x264 [info]: PSNR Mean Y:41.346 U:45.893 V:47.893 Avg:42.510 Global:41.913 kb/s:2522.86
[23:09:44] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[23:09:44] mux: track 0, 3103 frames, 39141577 bytes, 2522.82 kbps, fifo 1024
[23:09:44] mux: track 1, 5802 frames, 2475810 bytes, 159.58 kbps, fifo 2048
[23:09:44] stream: 3108 good frames, 0 errors (0%)
[23:09:44] libhb: work result = 0
Encode done!
HandBrake has exited.
valentijn
Posts: 14
Joined: Sun May 19, 2013 8:50 pm

Re: [qsv-svn5476]Output video not fluid

Post by valentijn »

Just did another run with Deinterlace set to off (instead of customer=qsv), same result. not fluid.
maxim_d33
Bright Spark User
Posts: 175
Joined: Mon Mar 21, 2011 12:02 pm

Re: [qsv-svn5476]Output video not fluid

Post by maxim_d33 »

thank you for the report,

about:
>The outputted video is not fluid, it has a slight stutter in it.
>It's easily noticed when playing (vlc) the h264 out file side-by-side with the qsv_h264 file.

it looks to be quite hard to see this issue so explicitly,
as original clip is good but not much fluid as well...

still trying...
valentijn
Posts: 14
Joined: Sun May 19, 2013 8:50 pm

Re: [qsv-svn5476]Output video not fluid

Post by valentijn »

Are you saying you don't see it, or just that it's hard to see. which player are you using?
Deleted User 11865

Re: [qsv-svn5476]Output video not fluid

Post by Deleted User 11865 »

valentijn wrote:

Code: Select all

- intel quick sync video support: yes
  - hardware version: 1.4 (minimum: 1.4)

[…]

[23:21:59] MP4Mux: PTS 0 < DTS 21600
....
You presumably removed a lot of identical error messages? Seems like a bug in our DTS generation (MediaSDK version 1.6 will provide its own, good DTS, so you shouldn't get this issue with newer drivers, FWIW).

As a workaround until this gets fixed, using MKV in HandBrake and remuxing to MP4 using another program might work.
valentijn
Posts: 14
Joined: Sun May 19, 2013 8:50 pm

Re: [qsv-svn5476]Output video not fluid

Post by valentijn »

Rodeo wrote:
valentijn wrote:

Code: Select all

- intel quick sync video support: yes
  - hardware version: 1.4 (minimum: 1.4)

[…]

[23:21:59] MP4Mux: PTS 0 < DTS 21600
....
You presumably removed a lot of identical error messages? Seems like a bug in our DTS generation (MediaSDK version 1.6 will provide its own, good DTS, so you shouldn't get this issue with newer drivers, FWIW).

As a workaround until this gets fixed, using MKV in HandBrake and remuxing to MP4 using another program might work.
yes i had to remove those lines to make the post fit.
i will try mkv.
fwiw i dont have this issue with mediacoder, but it might just be that i did only use .avi with that.
valentijn
Posts: 14
Joined: Sun May 19, 2013 8:50 pm

Re: [qsv-svn5476]Output video not fluid

Post by valentijn »

I can confirm that it works correctly with MKV.

Any action required by me to raise the mp4 mux bug somewhere?
maxim_d33
Bright Spark User
Posts: 175
Joined: Mon Mar 21, 2011 12:02 pm

Re: [qsv-svn5476]Output video not fluid

Post by maxim_d33 »

good that .mkv helps,

if you will update driver to recommended 3071 - it should be fine for mp4 as well

will see about fix for lower than recommended driver.
It is noticed already, thanks!
SpareBot
Posts: 6
Joined: Sun May 26, 2013 4:34 pm

Re: [qsv-svn5476]Output video not fluid

Post by SpareBot »

Hey there,

I stumbled upon the same issue using the QS beta and might assist with further data.

(Please note, I just registered and have NO idea of professional coding/IT, I just hoped to be able to contribute)

I converted a ~ high bitrate mkv with DTS passthrough sound into a mp4 via your high profile settings and aac sound for iPad use.

The result is a really stuttery video, sounds plays fine though. Contrary to the threadstarter, switching to mkvdidnt solve the issue for me. Log is in the code below

Code: Select all

HandBrake svn5476 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Ram: 8098 MB, Screen: 1920x1080
Temp Dir: C:\Users\MacBook Pro\AppData\Local\Temp\
Install Dir: C:\Handbrake
Data Dir: C:\Users\MacBook Pro\AppData\Roaming\HandBrake\HandBrake\0.0.0.5476
 
-------------------------------------------
 
CLI Query:  -i "G:\Paul.BluRay.mkv" -t 1 --angle 1 -c 1-21 -o "G:\Paul.mkv"  -f mkv  --decomb -w 1918 --loose-anamorphic  --modulus 2 -e qsv_h264 -q 20 --cfr -a 1,1,2 -E faac,faac,faac -6 auto,auto,auto -R Auto,Auto,48 -B 0,0,0 -D 0,0,0 --gain 0,0,0 --audio-fallback ffac3 --markers="C:\Users\MacBook Pro\AppData\Local\Temp\Paul-1-chapters.csv" --h264-level="4.1"  --h264-profile=high  -x target-usage=2:gop-ref-dist=4:gop-pic-size=32:async-depth=4 --verbose=1
User Query: False
 
[12:49:47] hb_init: starting libhb thread
HandBrake svn5476 (2013051801) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening G:\Paul.BluRay.mkv...
[12:49:47] hb_scan: path=G:\Paul.BluRay.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening G:\Paul.BluRay.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening G:\Paul.BluRay.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(G:\Paul.BluRay.mkv) failed (0000000001ECE830)
[12:49:47] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[12:49:47] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\Paul.BluRay.mkv':
  Duration: 01:43:40.17, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 325.327511
    Metadata:
      title           : Chapter 1
    Chapter #0.1: start 325.327511, end 680.765922
    Metadata:
      title           : Chapter 2
    Chapter #0.2: start 680.765922, end 1012.639133
    Metadata:
      title           : Chapter 3
    Chapter #0.3: start 1012.639133, end 1433.893300
    Metadata:
      title           : Chapter 4
    Chapter #0.4: start 1433.893300, end 1738.447544
    Metadata:
      title           : Chapter 5
    Chapter #0.5: start 1738.447544, end 1884.593544
    Metadata:
      title           : Chapter 6
    Chapter #0.6: start 1884.593544, end 2210.335633
    Metadata:
      title           : Chapter 7
    Chapter #0.7: start 2210.335633, end 2454.245967
    Metadata:
      title           : Chapter 8
    Chapter #0.8: start 2454.245967, end 2637.428967
    Metadata:
      title           : Chapter 9
    Chapter #0.9: start 2637.428967, end 3073.322756
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 3073.322756, end 3390.389511
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 3390.389511, end 3642.349544
    Metadata:
      title           : Chapter 12
    Chapter #0.12: start 3642.349544, end 4021.144633
    Metadata:
      title           : Chapter 13
    Chapter #0.13: start 4021.144633, end 4301.758300
    Metadata:
      title           : Chapter 14
    Chapter #0.14: start 4301.758300, end 4708.414544
    Metadata:
      title           : Chapter 15
    Chapter #0.15: start 4708.414544, end 4866.489133
    Metadata:
      title           : Chapter 16
    Chapter #0.16: start 4866.489133, end 5213.127089
    Metadata:
      title           : Chapter 17
    Chapter #0.17: start 5213.127089, end 5445.943011
    Metadata:
      title           : Chapter 18
    Chapter #0.18: start 5445.943011, end 5729.643089
    Metadata:
      title           : Chapter 19
    Chapter #0.19: start 5729.643089, end 6219.632589
    Metadata:
      title           : Chapter 20
    Chapter #0.20: start 6219.632589, end 6220.175000
    Metadata:
      title           : Chapter 21
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1918x816 [PAR 1:1 DAR 959:408], 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc (default)
    Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Stream #0.2(ger): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 768 kb/s
[12:49:47] scan: decoding previews for title 1
[12:49:47] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[12:49:47] scan: audio 0x2: dca, rate=48000Hz, bitrate=768000 Deutsch (DTS) (5.1 ch)
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 8, 80.00 %[12:49:47] scan: 10 previews, 1918x816, 23.976 fps, autocrop = 0/0/0/0, aspect 2.35:1, PAR 1:1
[12:49:47] libhb: scan thread found 1 valid title(s)
- intel quick sync video support: yes
  - hardware version: 1.4 (minimum: 1.4)
+ title 1:
  + stream: G:\Paul.BluRay.mkv
  + duration: 01:43:40
  + size: 1918x816, pixel aspect: 1/1, display aspect: 2.35, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:05:25
    + 2: cells 0->0, 0 blocks, duration 00:05:55
    + 3: cells 0->0, 0 blocks, duration 00:05:32
    + 4: cells 0->0, 0 blocks, duration 00:07:01
    + 5: cells 0->0, 0 blocks, duration 00:05:05
    + 6: cells 0->0, 0 blocks, duration 00:02:26
    + 7: cells 0->0, 0 blocks, duration 00:05:26
    + 8: cells 0->0, 0 blocks, duration 00:04:04
    + 9: cells 0->0, 0 blocks, duration 00:03:03
    + 10: cells 0->0, 0 blocks, duration 00:07:16
    + 11: cells 0->0, 0 blocks, duration 00:05:17
    + 12: cells 0->0, 0 blocks, duration 00:04:12
    + 13: cells 0->0, 0 blocks, duration 00:06:19
    + 14: cells 0->0, 0 blocks, duration 00:04:41
    + 15: cells 0->0, 0 blocks, duration 00:06:47
    + 16: cells 0->0, 0 blocks, duration 00:02:38
    + 17: cells 0->0, 0 blocks, duration 00:05:47
    + 18: cells 0->0, 0 blocks, duration 00:03:53
    + 19: cells 0->0, 0 blocks, duration 00:04:44
    + 20: cells 0->0, 0 blocks, duration 00:08:10
    + 21: cells 0->0, 0 blocks, duration 00:00:01
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, Deutsch (DTS) (5.1 ch) (iso639-2: deu), 48000Hz, 768000bps
  + subtitle tracks:
Reading chapter markers from file C:\Users\MacBook Pro\AppData\Local\Temp\Paul-1-chapters.csv
[12:49:47] 1 job(s) to process
[12:49:47] starting job
[12:49:47] work: mixdown not specified, track 1 setting mixdown Dolby Pro Logic II
[12:49:47] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[12:49:47] work: mixdown not specified, track 2 setting mixdown Dolby Pro Logic II
[12:49:47] work: bitrate not specified, track 2 setting bitrate 160 Kbps
[12:49:47] work: mixdown not specified, track 3 setting mixdown Dolby Pro Logic II
[12:49:47] work: bitrate not specified, track 3 setting bitrate 160 Kbps
[12:49:47] sync: expecting 149135 video frames
[12:49:47] job configuration:
[12:49:47]  * source
[12:49:47]    + G:\Paul.BluRay.mkv
[12:49:47]    + title 1, chapter(s) 1 to 21
[12:49:47]    + container: matroska,webm
[12:49:47]  * destination
[12:49:47]    + G:\Paul.mkv
[12:49:47]    + container: Matroska (.mkv)
[12:49:47]      + chapter markers
[12:49:47]  * video track
[12:49:47]    + decoder: h264
[12:49:47]    + frame rate: 23.976 fps -> constant 23.976 fps
[12:49:47]    + loose anamorphic
[12:49:47]      + storage dimensions: 1918 * 816, mod 2
[12:49:47]      + pixel aspect ratio: 1 / 1
[12:49:47]      + display dimensions: 1918 * 816
[12:49:47]    + encoder: H.264 (Intel QSV)
[12:49:47]      + options: target-usage=2:gop-ref-dist=4:gop-pic-size=32:async-depth=4
[12:49:47]      + h264 profile: high
[12:49:47]      + h264 level: 4.1
[12:49:47]      + quality: 20.00 (QP)
[12:49:47]  * audio track 1
[12:49:47]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[12:49:47]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[12:49:47]    + mixdown: Dolby Pro Logic II
[12:49:47]    + encoder: AAC (faac)
[12:49:47]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:49:47]  * audio track 2
[12:49:47]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[12:49:47]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[12:49:47]    + mixdown: Dolby Pro Logic II
[12:49:47]    + encoder: AAC (faac)
[12:49:47]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:49:47]  * audio track 3
[12:49:47]    + decoder: Deutsch (DTS) (5.1 ch) (track 2, id 0x2)
[12:49:47]      + bitrate: 768 kbps, samplerate: 48000 Hz
[12:49:47]    + mixdown: Dolby Pro Logic II
[12:49:47]    + encoder: AAC (faac)
[12:49:47]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:49:47] reader: first SCR 0 id 0x0 DTS 0
[12:49:48] qsv: Intel QSV/MediaSDK uses hardware implementation
[12:49:48] qsv: RateControlMethod:MFX_RATECONTROL_CQP(I:20/P:22/B:22) TargetKbps:22
[12:49:48] qsv: TargetUsage:2 AsyncDepth:4
[12:49:48] qsv: GopRefDist:4 GopPicSize:32 NumRefFrame:0
[12:50:26] h264_qsv: "Chapter 2" (2) at frame 7812 time 29294265
[12:51:07] h264_qsv: "Chapter 3" (3) at frame 16335 time 61287476
[12:51:44] h264_qsv: "Chapter 4" (4) at frame 24291 time 91152311
[12:52:31] h264_qsv: "Chapter 5" (5) at frame 34391 time 129065186
[12:53:06] h264_qsv: "Chapter 6" (6) at frame 41694 time 156478822
[12:53:22] h264_qsv: "Chapter 7" (7) at frame 45198 time 169631962
[12:53:58] h264_qsv: "Chapter 8" (8) at frame 53006 time 198941242
[12:54:27] h264_qsv: "Chapter 9" (9) at frame 58853 time 220889418
[12:54:49] h264_qsv: "Chapter 10" (10) at frame 63248 time 237387150
[12:55:38] h264_qsv: "Chapter 11" (11) at frame 73699 time 276617591
[12:56:15] h264_qsv: "Chapter 12" (12) at frame 81300 time 305149845
[12:56:43] h264_qsv: "Chapter 13" (13) at frame 87342 time 327830002
[12:57:25] h264_qsv: "Chapter 14" (14) at frame 96424 time 361921560
[12:57:59] h264_qsv: "Chapter 15" (15) at frame 103152 time 387176790
[12:58:48] h264_qsv: "Chapter 16" (16) at frame 112901 time 423772098
[12:59:08] h264_qsv: "Chapter 17" (17) at frame 116692 time 438002565
[12:59:48] h264_qsv: "Chapter 18" (18) at frame 125003 time 469199981
[13:00:17] h264_qsv: "Chapter 19" (19) at frame 130581 time 490138398
[13:00:50] h264_qsv: "Chapter 20" (20) at frame 137386 time 515682667
[13:01:44] reader: done. 1 scr changes
[13:01:44] h264_qsv: "Chapter 21" (21) at frame 149132 time 559774215
[13:01:44] work: average encoding speed for job is 208.195313 fps
[13:01:45] sync: got 149135 frames, 149135 expected
[13:01:45] h264_qsv-decoder done: 149135 frames, 0 decoder errors, 0 drops
[13:01:45] enc_qsv done: frames: 149135 in, 149135 out
[13:01:45] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[13:01:45] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[13:01:45] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[13:01:46] mux: track 0, 149135 frames, 3859212714 bytes, 4963.41 kbps, fifo 1024
[13:01:46] mux: track 1, 291575 frames, 124300411 bytes, 159.87 kbps, fifo 2048
[13:01:46] mux: track 2, 291575 frames, 124300411 bytes, 159.87 kbps, fifo 2048
[13:01:46] mux: track 3, 291575 frames, 124302158 bytes, 159.87 kbps, fifo 2048
[13:01:46] libhb: work result = 0
Encode done!
HandBrake has exited.
maxim_d33
Bright Spark User
Posts: 175
Joined: Mon Mar 21, 2011 12:02 pm

Re: [qsv-svn5476]Output video not fluid

Post by maxim_d33 »

SpareBot, please consider to use recommended driver , Release Notes

which player do you use?
ty2010
Novice
Posts: 72
Joined: Mon Feb 18, 2013 7:09 am

Re: [qsv-svn5476]Output video not fluid

Post by ty2010 »

valentijn - Use mediainfo or the like to check the audio delay in your stuttering MP4s. I've been having trouble with 720 sources having large audio delays on MP4 output causing some stuttering and playing havoc with any post edits. 480 and 1080 sources seem unaffected, curious as to whether it's frame sizes or rates that affect this.
SpareBot
Posts: 6
Joined: Sun May 26, 2013 4:34 pm

Re: [qsv-svn5476]Output video not fluid

Post by SpareBot »

I checked the release notes and I am pretty sure, I allready use the recommended driver. I am using the latest official, downloaded just before updating Handbrake (Version: 15.31.3.64.3071)

I play the videos with VLC player and it usually showes perfekt fluid playback after handbrake encoding.

Anyway: big thanx for your hard work on handbrake!!
maxim_d33
Bright Spark User
Posts: 175
Joined: Mon Mar 21, 2011 12:02 pm

Re: [qsv-svn5476]Output video not fluid

Post by maxim_d33 »

SpareBot, I would recommend to re-check your installed driver,
(did you restart your computer ?)

you log still shows previous version used:

Code: Select all

- intel quick sync video support: yes
  - hardware version: 1.4 (minimum: 1.4)
it should be at least 1.6 , if a proper driver installed.
SpareBot
Posts: 6
Joined: Sun May 26, 2013 4:34 pm

Re: [qsv-svn5476]Output video not fluid

Post by SpareBot »

Ah, thx - i will check that!

UPDATE:

Stutter is gone. I checked the driver version and it was indeed old, at least thats what the device manager told me. That was odd because I installed the newest driver just days ago. I deleted it, installed the same driver againg and - voila - everything is a) up to date and b) stutter free...

... in exchange I got audio delay :lol: but as I see there is allready a bug report regarding that issue.

for what its worse, I'll post the encoding log from my working settings againg here

Code: Select all

HandBrake svn5476 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
Ram: 8098 MB, Screen: 1920x1080
Temp Dir: C:\Users\MacBook Pro\AppData\Local\Temp\
Install Dir: C:\Handbrake
Data Dir: C:\Users\MacBook Pro\AppData\Roaming\HandBrake\HandBrake\0.0.0.5476

-------------------------------------------

CLI Query:  -i "G:\John Rambo (2008).BluRay.mkv" -t 1 --angle 1 -c 1-12 -o "G:\John Rambo.m4v"  -f mp4  -4  --decomb -w 1920 --loose-anamorphic  --modulus 2 -e qsv_h264 -q 20 --cfr -a 1,2 -E faac,faac -6 auto,auto -R Auto,Auto -B 0,0 -D 0,0 --gain 0,0 --audio-fallback ffac3 --markers="C:\Users\MacBook Pro\AppData\Local\Temp\John Rambo-1-chapters.csv" --h264-level="4.1"  --h264-profile=high  -x target-usage=2:gop-ref-dist=4:gop-pic-size=32:async-depth=4 --verbose=1
User Query: False

[11:55:30] hb_init: starting libhb thread
HandBrake svn5476 (2013051801) - MinGW x86_64 - http://handbrake.fr
4 CPUs detected
Opening G:\John Rambo (2008).BluRay.mkv...
[11:55:30] hb_scan: path=G:\John Rambo (2008).BluRay.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening G:\John Rambo (2008).BluRay.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening G:\John Rambo (2008).BluRay.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(G:\John Rambo (2008).BluRay.mkv) failed (0000000001EAEB70)
[11:55:30] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[11:55:30] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\John Rambo (2008).BluRay.mkv':
  Duration: 01:31:13.05, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 435.646044
    Metadata:
      title           : Chapter 1
    Chapter #0.1: start 435.646044, end 742.077178
    Metadata:
      title           : Chapter 2
    Chapter #0.2: start 742.077178, end 987.405589
    Metadata:
      title           : Chapter 3
    Chapter #0.3: start 987.405589, end 1412.914011
    Metadata:
      title           : Chapter 4
    Chapter #0.4: start 1412.914011, end 1906.031633
    Metadata:
      title           : Chapter 5
    Chapter #0.5: start 1906.031633, end 2463.463511
    Metadata:
      title           : Chapter 6
    Chapter #0.6: start 2463.463511, end 2955.663544
    Metadata:
      title           : Chapter 7
    Chapter #0.7: start 2955.663544, end 3661.660511
    Metadata:
      title           : Chapter 8
    Chapter #0.8: start 3661.660511, end 4110.025089
    Metadata:
      title           : Chapter 9
    Chapter #0.9: start 4110.025089, end 4611.400967
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 4611.400967, end 4793.416133
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 4793.416133, end 5473.053500
    Metadata:
      title           : Chapter 12
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1920x800 [PAR 400:399 DAR 320:133], PAR 255:254 DAR 306:127, 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc (default)
    Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s (default)
    Stream #0.2(ger): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 1536 kb/s
[11:55:30] scan: decoding previews for title 1
[11:55:30] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[11:55:30] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 Deutsch (DTS) (5.1 ch)
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 9, 90.00 %[11:55:30] scan: 10 previews, 1920x800, 23.976 fps, autocrop = 0/0/0/0, aspect 2.41:1, PAR 400:399
[11:55:30] libhb: scan thread found 1 valid title(s)
- intel quick sync video support: yes
  - hardware version: 1.6 (minimum: 1.4)
+ title 1:
  + stream: G:\John Rambo (2008).BluRay.mkv
  + duration: 01:31:13
  + size: 1920x800, pixel aspect: 400/399, display aspect: 2.41, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:07:16
    + 2: cells 0->0, 0 blocks, duration 00:05:06
    + 3: cells 0->0, 0 blocks, duration 00:04:05
    + 4: cells 0->0, 0 blocks, duration 00:07:06
    + 5: cells 0->0, 0 blocks, duration 00:08:13
    + 6: cells 0->0, 0 blocks, duration 00:09:17
    + 7: cells 0->0, 0 blocks, duration 00:08:12
    + 8: cells 0->0, 0 blocks, duration 00:11:46
    + 9: cells 0->0, 0 blocks, duration 00:07:28
    + 10: cells 0->0, 0 blocks, duration 00:08:21
    + 11: cells 0->0, 0 blocks, duration 00:03:02
    + 12: cells 0->0, 0 blocks, duration 00:11:20
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, Deutsch (DTS) (5.1 ch) (iso639-2: deu), 48000Hz, 1536000bps
  + subtitle tracks:
Reading chapter markers from file C:\Users\MacBook Pro\AppData\Local\Temp\John Rambo-1-chapters.csv
[11:55:30] 1 job(s) to process
[11:55:30] starting job
[11:55:30] work: mixdown not specified, track 1 setting mixdown Dolby Pro Logic II
[11:55:30] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[11:55:30] work: mixdown not specified, track 2 setting mixdown Dolby Pro Logic II
[11:55:30] work: bitrate not specified, track 2 setting bitrate 160 Kbps
[11:55:30] sync: expecting 131222 video frames
[11:55:30] job configuration:
[11:55:30]  * source
[11:55:30]    + G:\John Rambo (2008).BluRay.mkv
[11:55:30]    + title 1, chapter(s) 1 to 12
[11:55:30]    + container: matroska,webm
[11:55:30]  * destination
[11:55:30]    + G:\John Rambo.m4v
[11:55:30]    + container: MPEG-4 (.mp4 and .m4v)
[11:55:30]      + 64-bit formatting
[11:55:30]      + chapter markers
[11:55:30]  * video track
[11:55:30]    + decoder: h264
[11:55:30]    + frame rate: 23.976 fps -> constant 23.976 fps
[11:55:30]    + loose anamorphic
[11:55:30]      + storage dimensions: 1920 * 800, mod 2
[11:55:30]      + pixel aspect ratio: 400 / 399
[11:55:30]      + display dimensions: 1924 * 800
[11:55:30]    + encoder: H.264 (Intel QSV)
[11:55:30]      + options: target-usage=2:gop-ref-dist=4:gop-pic-size=32:async-depth=4
[11:55:30]      + h264 profile: high
[11:55:30]      + h264 level: 4.1
[11:55:30]      + quality: 20.00 (QP)
[11:55:30]  * audio track 1
[11:55:30]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[11:55:30]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[11:55:30]    + mixdown: Dolby Pro Logic II
[11:55:30]    + encoder: AAC (faac)
[11:55:30]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:55:30]  * audio track 2
[11:55:30]    + decoder: Deutsch (DTS) (5.1 ch) (track 2, id 0x2)
[11:55:30]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[11:55:30]    + mixdown: Dolby Pro Logic II
[11:55:30]    + encoder: AAC (faac)
[11:55:30]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:55:30] reader: first SCR 0 id 0x0 DTS 0
[11:55:31] qsv: Intel QSV/MediaSDK uses hardware implementation
[11:55:31] qsv: RateControlMethod:MFX_RATECONTROL_CQP(I:20/P:22/B:22) TargetKbps:22
[11:55:31] qsv: TargetUsage:2 AsyncDepth:4
[11:55:31] qsv: GopRefDist:4 GopPicSize:32 NumRefFrame:0
[11:56:17] h264_qsv: "Chapter 2" (2) at frame 10456 time 39219180
[11:56:53] h264_qsv: "Chapter 3" (3) at frame 17805 time 66805488
[11:57:21] h264_qsv: "Chapter 4" (4) at frame 23685 time 88877538
[11:58:09] h264_qsv: "Chapter 5" (5) at frame 33885 time 127165788
[11:59:07] h264_qsv: "Chapter 6" (6) at frame 45712 time 171561390
[12:00:09] h264_qsv: "Chapter 7" (7) at frame 59077 time 221730258
[12:01:08] h264_qsv: "Chapter 8" (8) at frame 70878 time 266028262
[12:02:31] h264_qsv: "Chapter 9" (9) at frame 87805 time 329567988
[12:03:31] h264_qsv: "Chapter 10" (10) at frame 98555 time 369920801
[12:04:35] h264_qsv: "Chapter 11" (11) at frame 110576 time 415044630
[12:04:54] h264_qsv: "Chapter 12" (12) at frame 114940 time 431425995
[12:06:03] reader: done. 1 scr changes
[12:06:03] MP4Mux: PTS -9223372036854775808 < DTS 9223372036854771712
[12:06:03] work: average encoding speed for job is 207.829147 fps
[12:06:03] sync: got 131222 frames, 131222 expected
[12:06:03] h264_qsv-decoder done: 131222 frames, 0 decoder errors, 0 drops
[12:06:03] enc_qsv done: frames: 131222 in, 131222 out
[12:06:03] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[12:06:03] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[12:06:08] mux: track 0, 131222 frames, 5281750452 bytes, 7713.38 kbps, fifo 2048
[12:06:08] mux: track 1, 256561 frames, 109452475 bytes, 159.84 kbps, fifo 4096
[12:06:08] mux: track 2, 256781 frames, 109391033 bytes, 159.75 kbps, fifo 4096
[12:06:08] libhb: work result = 0
Encode done!
HandBrake has exited.
Post Reply