Hardware (qsv H264) Encoding MPEG4 with Deinterlace has not enough Sync Points to run

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
victorvdc
Posts: 34
Joined: Sat Jan 17, 2015 2:15 pm

Hardware (qsv H264) Encoding MPEG4 with Deinterlace has not enough Sync Points to run

Post by victorvdc »

If I transcode a MPEG 4 file using the Hardware (QSV H264) codec and try to deinterlace the file I get a “not enough to have 60 sync point(s) allocated” error causing the transcoding to fail.

Problem is repeatable with file at 2 Scarry n Winter loose.mkv

https://onedrive.live.com/redir.aspx?ci ... Bsrc=Share


The SW decoder works fine and I don’t have a lot of files I need deinterlaced but this may be part of a bigger issue. Set the priority as you feel.

-No problem with H264 SW codec
-No problem if I turn off deinterlace
-No problem if the source is MPEG-2

System-Window 7
Processer Intel i7
Intel graphics driver version 10.18.14.4170
Hand brake Version HandBrake-0.10.1-x86_64-Win_GUI
Hand brake Nightly HandBrake-svn7156_x86_64-Win_GUI (Same Problem)

Code: Select all

HandBrake svn7156 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 16256 MB, 
GPU Information:
  Intel(R) HD Graphics 4600 - 10.18.14.4170
Screen: 1920x1200
Temp Dir: C:\Users\Victor01\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Victor01\AppData\Roaming\HandBrake\HandBrake\0.0.0.7156

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

# Starting Encode ...
[00:48:56] thread 1fea40a0 started ("work")
[00:48:56] 1 job(s) to process
[00:48:56] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[00:48:56]  - Intel microarchitecture Haswell
[00:48:56]  - logical processor count: 8
[00:48:56] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 4600
[00:48:56]  - OpenCL version: 1.2 
[00:48:56]  - driver version: 10.18.14.4170
[00:48:56]  - device type:    GPU
[00:48:56]  - supported:      YES
[00:48:56] Intel Quick Sync Video support: yes
[00:48:56]  - Intel Media SDK hardware: API 1.15 (minimum: 1.3)
[00:48:56]  - H.264 encoder: yes
[00:48:56]     - preferred implementation: hardware (any)
[00:48:56]     - capabilities (hardware):  breftype icq+la+i+downs mbbrc extbrc trellis ib_adapt nmpslice
[00:48:56]  - H.265 encoder: no
[00:48:56] hb_scan: path=C:\Temporary Files\2 Scarry n Winter loose.mkv, title_index=1
[00:48:56] thread 26affcd0 started ("scan")
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:251: failed opening UDF image C:\Temporary Files\2 Scarry n Winter loose.mkv
src/libbluray/disc/disc.c:332: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:332: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2373: nav_get_title_list(C:\Temporary Files\2 Scarry n Winter loose.mkv\) failed
[00:48:56] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[00:48:56] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Temporary Files\2 Scarry n Winter loose.mkv':
  Metadata:
    ENCODER         : Lavf55.12.0
  Duration: 00:23:26.01, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 145.946000
    Metadata:
      title           : Chapter 1
    Chapter #0.1: start 146.013000, end 286.787000
    Metadata:
      title           : Chapter 2
    Chapter #0.2: start 286.854000, end 469.536000
    Metadata:
      title           : Chapter 3
    Chapter #0.3: start 469.603000, end 615.315000
    Metadata:
      title           : Chapter 4
    Chapter #0.4: start 615.382000, end 779.812000
    Metadata:
      title           : Chapter 5
    Chapter #0.5: start 779.879000, end 925.958000
    Metadata:
      title           : Chapter 6
    Chapter #0.6: start 926.025000, end 1071.470000
    Metadata:
      title           : Chapter 7
    Chapter #0.7: start 1071.537000, end 1214.513000
    Metadata:
      title           : Chapter 8
    Chapter #0.8: start 1214.580000, end 1405.904000
    Metadata:
      title           : Chapter 9
    Stream #0.0: Video: h264 (Main), yuv420p, 720x480 [PAR 8:9 DAR 4:3], 29.97 fps, 1k tbn, 59.94 tbc (default)
    Stream #0.1(und): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : und
[00:48:56] Found ffmpeg 9 chapters, container=matroska,webm
[00:48:56] Added chapter 1, name='Chapter 1', dur=13135140, (00:02:26)
[00:48:56] Added chapter 2, name='Chapter 2', dur=12675689, (00:02:21)
[00:48:56] Added chapter 3, name='Chapter 3', dur=16447411, (00:03:03)
[00:48:56] Added chapter 4, name='Chapter 4', dur=13120110, (00:02:26)
[00:48:56] Added chapter 5, name='Chapter 5', dur=14804730, (00:02:44)
[00:48:56] Added chapter 6, name='Chapter 6', dur=13153140, (00:02:26)
[00:48:56] Added chapter 7, name='Chapter 7', dur=13096080, (00:02:26)
[00:48:56] Added chapter 8, name='Chapter 8', dur=12873870, (00:02:23)
[00:48:56] Added chapter 9, name='Chapter 9', dur=17225190, (00:03:11)
[00:48:56] scan: decoding previews for title 1
[00:48:56] scan: preview 1
[00:48:56] fifo_close: trashing 0 buffer(s)
[00:48:56] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 Unknown (AC3) (2.0 ch)
[00:48:56] scan: preview 2
[00:48:56] scan: preview 3
[00:48:56] scan: preview 4
[00:48:56] scan: preview 5
[00:48:56] scan: preview 6
[00:48:56] scan: preview 7
[00:48:56] scan: preview 8
[00:48:56] scan: preview 9
[00:48:56] scan: preview 10
[00:48:56] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 8:9
[00:48:56] Freed 1 buffers of size 1024
[00:48:56] Freed 1 buffers of size 8192
[00:48:56] Freed 1 buffers of size 16384
[00:48:56] Freed 1 buffers of size 32768
[00:48:56] Freed 1 buffers of size 1048576
[00:48:56] Allocated 1106944 bytes of buffers on this pass and Freed 1106944 bytes, 0 bytes leaked
[00:48:56] thread 26affcd0 exited ("scan")
[00:48:56] thread 26affcd0 joined ("scan")
[00:48:56] libhb: scan thread found 1 valid title(s)
[00:48:56] starting job
[00:48:56] do_job: QSV: full path, removing unsupported filter 'Framerate Shaper'
[00:48:56] thread 1fdc92d0 started ("yadif_filter_segment")
[00:48:56] thread 1ff58190 started ("yadif_filter_segment")
[00:48:56] Yadif Deinterlace thread started for segment 0
[00:48:56] thread 1ff732a0 started ("yadif_filter_segment")
[00:48:56] Yadif Deinterlace thread started for segment 1
[00:48:56] thread 269afd30 started ("yadif_filter_segment")
[00:48:56] Yadif Deinterlace thread started for segment 2
[00:48:56] Yadif Deinterlace thread started for segment 3
[00:48:56] thread 1ff72cd0 started ("yadif_filter_segment")
[00:48:56] thread 1fdda800 started ("yadif_filter_segment")
[00:48:56] Yadif Deinterlace thread started for segment 4
[00:48:56] Yadif Deinterlace thread started for segment 5
[00:48:56] thread 269af510 started ("yadif_filter_segment")
[00:48:56] thread 25c714a0 started ("yadif_filter_segment")
[00:48:56] Yadif Deinterlace thread started for segment 6
[00:48:56] Yadif Deinterlace thread started for segment 7
[00:48:56] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
[00:48:56] work: track 1, dithering not supported by codec
[00:48:56] sync: expecting 42134 video frames
[00:48:56] job configuration:
[00:48:56]  * source
[00:48:56]    + C:\Temporary Files\2 Scarry n Winter loose.mkv
[00:48:56]    + title 1, chapter(s) 1 to 9
[00:48:56]    + container: matroska,webm
[00:48:56]  * destination
[00:48:56]    + C:\Temporary Files\1 2 Scarry n Winter loose.mkv
[00:48:56]    + container: Matroska (libavformat)
[00:48:56]      + chapter markers
[00:48:56]  * video track
[00:48:56]    + decoder: h264_qsv
[00:48:56]    + filters
[00:48:56]      + Quick Sync Video user filter (pre) (default settings)
[00:48:56]        + copy data to system memory
[00:48:56]      + Deinterlace (1)
[00:48:56]      + Quick Sync Video user filter (post) (default settings)
[00:48:56]        + copy data to opaque memory
[00:48:56]    + Output geometry
[00:48:56]      + storage dimensions: 720 x 480
[00:48:56]      + pixel aspect ratio: 8 : 9
[00:48:56]      + display dimensions: 640 x 480
[00:48:56]    + encoder: H.264 (Intel Media SDK)
[00:48:56]      + preset:  quality
[00:48:56]      + profile: auto
[00:48:56]      + level:   auto
[00:48:56]      + quality: 20.00 (ICQ)
[00:48:56]  * audio track 1
[00:48:56]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1)
[00:48:56]      + bitrate: 192 kbps, samplerate: 48000 Hz
[00:48:56]    + mixdown: Stereo
[00:48:56]    + encoder: AAC (libavcodec)
[00:48:56]      + bitrate: 160 kbps, samplerate: 48000 Hz
[00:48:56] thread 26a5cd00 started ("Reader")
[00:48:56] thread 26affcd0 started ("Quick Sync Video user filter (pre)")
[00:48:56] Seeking to chapter 1: starts 0, ends 13135140, AV pos 0
[00:48:56] reader: first SCR 6030 id 0x0 DTS 6030
[00:48:56] thread 269afb90 started ("Deinterlace")
[00:48:56] thread 269af850 started ("Quick Sync Video user filter (post)")
[00:48:56] thread 269af6b0 started ("AudioSynchronization")
[00:48:56] thread 1ff74af0 started ("Video decoder (libavcodec)")
[00:48:56] encqsvInit: using full QSV path
[00:48:56] encqsvInit: TargetUsage 2 AsyncDepth 5
[00:48:56] encqsvInit: GopRefDist 3 GopPicSize 30 NumRefFrame 3
[00:48:56] encqsvInit: BFramesMax 2 BRefType off
[00:48:56] encqsvInit: RateControlMethod LA_ICQ ICQQuality 20 LookAheadDepth 40
[00:48:56] encqsvInit: H.264 profile High @ level 3.0
[00:48:56] thread 1ff74e30 started ("H.264/AVC encoder (Intel QSV)")
[00:48:56] thread 1ff74fd0 started ("Audio decoder (libavcodec)")
[00:48:56] thread 1ff75170 started ("AVCodec Audio encoder (libavcodec)")
[00:48:56] thread 3fcbfb90 started ("Video Synchronization")
[00:48:56] Writing Metadata to output file...
[00:48:56] thread 3fcbfd30 started ("Muxer")
[00:48:56] qsv_enc_init: using 'hardware (1)' implementation, API: 1.15
not enough to have 40 surface(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 40 surface(s) allocated
not enough to have 60 sync point(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 40 surface(s) allocated
Last error repeated 1 times
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 60 sync point(s) allocated
not enough to have 40 surface(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 40 surface(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
Last error repeated 1 times
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 60 sync point(s) allocated
not enough to have 40 surface(s) allocated
not enough to have 60 sync point(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 40 surface(s) allocated
Last error repeated 1 times
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 60 sync point(s) allocated
not enough to have 40 surface(s) allocated
not enough to have 60 sync point(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
Last error repeated 1 times
not enough to have 40 surface(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 60 sync point(s) allocated
not enough to have 40 surface(s) allocated
not enough to have 60 sync point(s) allocated
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 40 surface(s) allocated
Last error repeated 1 times
qsv: Not enough resources allocated for the preprocessing filter
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated
not enough to have 60 sync point(s) allocated

Deleted User 11865

Re: Hardware (qsv H264) Encoding MPEG4 with Deinterlace has not enough Sync Points to run

Post by Deleted User 11865 »

Which deinterlace preset are you using (fast, slow, slower, bob)? I know fast doesn't work, haven't had time to look into a fix though. slower usually works though.

Alternatively, select deinterlace custom with "qsv" (without quotes) as the custom options string. I haven't done any extensive testing as to how good it is, but it'll be faster than software deinterlace.
victorvdc
Posts: 34
Joined: Sat Jan 17, 2015 2:15 pm

Re: Hardware (qsv H264) Encoding MPEG4 with Deinterlace has not enough Sync Points to run

Post by victorvdc »

Yes fast does not work at all but the other three speeds still have the problem described above. Note the specific conditions.

Now, you don't have to fix this for me. Only if you think it can cause other problems.

After comparing HW and SW deinterlace in slower mode the SW seems to be just a bit clearer. It takes about twice as long and only 20% more processor use but to recover my old videos it is worth the time and I can crank my fans to full to keep the processor cool.

(Using HW mode with out deinterlace is much faster and 80% less processor so it is better for my normal conversions)

BTW: What is Bob setting?
Deleted User 11865

Re: Hardware (qsv H264) Encoding MPEG4 with Deinterlace has not enough Sync Points to run

Post by Deleted User 11865 »

Bob is double framerate deinterlace, preserves motion better.

I guess I need to check this driver version; in the meantime, you can use the "disable QSV deocding" checkbox in Tools > Options to work around the issue.
Post Reply