Handbrake 1.0.7 hangs on QSV encoding

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.

*******************************
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

Please describe the problem in as much detail as possible:
This problem has been noticed with certain files with version 1.0.7.
Certain MPEG2 files when trying to encode to MP4 hang when using the QSV encoder. I've tried different driver versions but that didn't make any difference.
HOWEVER, I was using an older version until now and it' working fine with that version. The build with which QSV encoding works fine is HandBrake 20151008180809-f9c5593-master

There are two issues here:
1. It hangs (this is the big problem)
2. It shows the encoding as 100% all the time right from the start (minor issue)

What are the steps to reproduce this problem:
Use this command with the CLI to reproduce the hang

Code: Select all

HandBrakeCLI.exe -i "Handbrake QSV Fails.ts" -e qsv_h264 -q 49 -E ffac3 -B 384 -o test.mp4
The original file which causes the hang can be downloaded from here http://mcebuddy:mcebuddy@upload.mcebudd ... %20Fail.ts

What version of HandBrake you are running:
1.0.7

What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Windows 8.1 x64

Where did you download HandBrake from? handbrake.fr or somewhere else?
handbrake.fr
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

Try a nightly build, and please post your logs from all encodes.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

Here are the logs from this build 20170629161315-6554c6a-master (2017070301) - MinGW x86_64:

Code: Select all

[05:39:00] starting job
[05:39:00] job configuration:
[05:39:00]  * source
[05:39:00]    + ..\Handbrake QSV Fail.ts
[05:39:00]    + title 1, chapter(s) 1 to 1
[05:39:00]  * destination
[05:39:00]    + test.mp4
[05:39:00]    + container: MPEG-4 (libavformat)
[05:39:00]  * video track
[05:39:00]    + decoder: mpeg2video
[05:39:00]      + bitrate 15000 kbps
[05:39:00]    + filters
[05:39:00]      + Framerate Shaper (mode=0)
[05:39:00]        + frame rate: same as source (around 29.970 fps)
[05:39:00]      + Crop and Scale (width=704:height=478:crop-top=2:crop-bottom=0:crop-left=0:crop-right=0)
[05:39:00]        + source: 704 * 480, crop (2/0/0/0): 704 * 478, scale: 704 * 478
[05:39:00]    + Output geometry
[05:39:00]      + storage dimensions: 704 x 478
[05:39:00]      + pixel aspect ratio: 40 : 33
[05:39:00]      + display dimensions: 853 x 478
[05:39:00]    + encoder: H.264 (Intel Media SDK)
[05:39:00]      + quality: 49.00 (QP)
[05:39:00]  * audio track 1
[05:39:00]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x101)
[05:39:00]      + bitrate: 192 kbps, samplerate: 48000 Hz
[05:39:00]    + mixdown: Stereo
[05:39:00]    + encoder: AC3 (libavcodec)
[05:39:00]      + bitrate: 384 kbps, samplerate: 48000 Hz
[05:39:00] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[05:39:00] sync: expecting 20 video frames
[05:39:00] encqsvInit: using encode-only path
[05:39:00] encqsvInit: H.264/AVC High profile @ level 3.0
[05:39:00] encqsvInit: TargetUsage 2 AsyncDepth 4
[05:39:00] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[05:39:00] encqsvInit: BFramesMax 3
[05:39:00] encqsvInit: RateControlMethod CQP with QPI 49 QPP 51 QPB 51
[05:39:00] sync: first pts audio 0x101 is 0
Encodin[05:39:00] sync: first pts video is 9671g
: task 1 of 1, 0.00 %[05:39:00] qsv_enc_init: using 'hardware (1)' implementation, API: 1.11
Encoding: task 1 of 1, 100.00 %[05:39:02] sync: video time went backwards 33 ms, dropped 1 frames. PTS 3811591
[05:39:02] sync: video time went backwards 200 ms, dropped 6 frames. PTS 4882703
[05:39:02] sync: video time went backwards 133 ms, dropped 4 frames. PTS 4894740
[05:39:02] sync: video time went backwards 166 ms, dropped 5 frames. PTS 4906740
Encodi[05:39:03] sync: video time went backwards 33 ms, dropped 1 frames. PTS 4910038
[05:39:15] sync: video time went backwards 66 ms, dropped 2 frames. PTS 30952363E
n[05:39:19] sync: video time went backwards 266 ms, dropped 8 frames. PTS 30961363
[05:39:23] sync: video time went backwards 33 ms, dropped 1 frames. PTS 36819131E
n[05:39:27] sync: video time went backwards 100 ms, dropped 3 frames. PTS 36843155
c[05:39:27] sync: video time went backwards 33 ms, dropped 1 frames. PTS 36849161o
Encoding: task 1 of 1, 100.00 %
It just hangs, output file is 0 bytes.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

Can you please post the complete log.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

Here you go, I've done you one better, I've given you the link to download the actual file and the command line in my original post so you can replicate it:

Code: Select all

HandBrakeCLI.exe -i "..\Handbrake QSV Fail.ts" -e qsv_h264 -q 49 -E ffac3 -B 384 -o test.mp4
[05:38:59] hb_init: starting libhb thread
[05:38:59] thread 1 started ("libhb")
HandBrake 20170629161315-6554c6a-master (2017070301) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening ..\Handbrake QSV Fail.ts...
[05:38:59] CPU: Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz
[05:38:59]  - Intel microarchitecture Ivy Bridge
[05:38:59]  - logical processor count: 4
[05:38:59] Intel Quick Sync Video support: yes
[05:38:59]  - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[05:38:59]  - H.264 encoder: yes
[05:38:59]     - preferred implementation: hardware (any)
[05:38:59]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[05:38:59]  - H.265 encoder: no
[05:38:59] hb_scan: path=..\Handbrake QSV Fail.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image ..\Handbrake QSV Fail.ts
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[05:38:59] 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
[05:38:59] dvd: not a dvd - trying as a stream/file instead
[05:38:59] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[05:38:59] Found the following PIDS
[05:38:59]     Video PIDS :
[05:38:59]       0x100 type MPEG2 (0x2) (PCR)
[05:38:59]     Audio PIDS :
[05:38:59]       0x101 type AC3 (0x81)
[05:38:59]     Subtitle PIDS :
[05:38:59]     Other PIDS :
[05:38:59] stream id 0x101 (type 0x81 substream 0x0) audio 0x101
[05:38:59] hb_sample_pts: no PTS in video packet near 287840205
[05:38:59] hb_sample_pts: no PTS in video packet near 293026515
[05:38:59] hb_sample_pts: no PTS in video packet near 298212825
[05:38:59] hb_sample_pts: no PTS in video packet near 303399135
[05:38:59] hb_sample_pts: no PTS in video packet near 308585445
[05:38:59] scan: decoding previews for title 1
[05:38:59] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[05:38:59] scan: audio 0x101: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[05:38:59] stream: 6 good frames, 0 errors (0%)
[05:38:59] scan: 10 previews, 704x480, 29.970 fps, autocrop = 2/0/0/0, aspect 16:9, PAR 40:33
Scanning title 1 of 1, preview 10, 100.00 %[05:38:59] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ..\Handbrake QSV Fail.ts
  + duration: 00:00:00
  + size: 704x480, pixel aspect: 40/33, display aspect: 1.78, 29.970 fps
  + autocrop: 2/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:00
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English, Closed Caption [CC]
[05:38:59] 1 job(s) to process
[05:38:59] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "ac3",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "test.mp4",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 2,
                    "height": 478,
                    "width": 704
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 33,
        "Num": 40
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "..\\Handbrake QSV Fail.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "qsv_h264",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 49.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[05:39:00] starting job
[05:39:00] job configuration:
[05:39:00]  * source
[05:39:00]    + ..\Handbrake QSV Fail.ts
[05:39:00]    + title 1, chapter(s) 1 to 1
[05:39:00]  * destination
[05:39:00]    + test.mp4
[05:39:00]    + container: MPEG-4 (libavformat)
[05:39:00]  * video track
[05:39:00]    + decoder: mpeg2video
[05:39:00]      + bitrate 15000 kbps
[05:39:00]    + filters
[05:39:00]      + Framerate Shaper (mode=0)
[05:39:00]        + frame rate: same as source (around 29.970 fps)
[05:39:00]      + Crop and Scale (width=704:height=478:crop-top=2:crop-bottom=0:crop-left=0:crop-right=0)
[05:39:00]        + source: 704 * 480, crop (2/0/0/0): 704 * 478, scale: 704 * 478
[05:39:00]    + Output geometry
[05:39:00]      + storage dimensions: 704 x 478
[05:39:00]      + pixel aspect ratio: 40 : 33
[05:39:00]      + display dimensions: 853 x 478
[05:39:00]    + encoder: H.264 (Intel Media SDK)
[05:39:00]      + quality: 49.00 (QP)
[05:39:00]  * audio track 1
[05:39:00]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x101)
[05:39:00]      + bitrate: 192 kbps, samplerate: 48000 Hz
[05:39:00]    + mixdown: Stereo
[05:39:00]    + encoder: AC3 (libavcodec)
[05:39:00]      + bitrate: 384 kbps, samplerate: 48000 Hz
[05:39:00] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[05:39:00] sync: expecting 20 video frames
[05:39:00] encqsvInit: using encode-only path
[05:39:00] encqsvInit: H.264/AVC High profile @ level 3.0
[05:39:00] encqsvInit: TargetUsage 2 AsyncDepth 4
[05:39:00] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[05:39:00] encqsvInit: BFramesMax 3
[05:39:00] encqsvInit: RateControlMethod CQP with QPI 49 QPP 51 QPB 51
[05:39:00] sync: first pts audio 0x101 is 0
Encodin[05:39:00] sync: first pts video is 9671g
: task 1 of 1, 0.00 %[05:39:00] qsv_enc_init: using 'hardware (1)' implementation, API: 1.11
Encoding: task 1 of 1, 100.00 %[05:39:02] sync: video time went backwards 33 ms, dropped 1 frames. PTS 3811591
[05:39:02] sync: video time went backwards 200 ms, dropped 6 frames. PTS 4882703
[05:39:02] sync: video time went backwards 133 ms, dropped 4 frames. PTS 4894740
[05:39:02] sync: video time went backwards 166 ms, dropped 5 frames. PTS 4906740
Encodi[05:39:03] sync: video time went backwards 33 ms, dropped 1 frames. PTS 4910038
[05:39:15] sync: video time went backwards 66 ms, dropped 2 frames. PTS 30952363E
n[05:39:19] sync: video time went backwards 266 ms, dropped 8 frames. PTS 30961363
[05:39:23] sync: video time went backwards 33 ms, dropped 1 frames. PTS 36819131E
n[05:39:27] sync: video time went backwards 100 ms, dropped 3 frames. PTS 36843155
c[05:39:27] sync: video time went backwards 33 ms, dropped 1 frames. PTS 36849161o
Encoding: task 1 of 1, 100.00 %[05:39:39] sync: video time went backwards 33 ms, dropped 1 frames. PTS 58134543
Encoding: task 1 of 1, 100.00 %[05:39:47] sync: video time went backwards 433 ms, dropped 13 frames. PTS 71610197
Encoding: task 1 of 1, 100.00 %
It just hangs for hours, I need to manually hit ctrl+c to stop it.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

It looks like your source may have errors, try running it through VideoReDo's Quick Stream Fix.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

I'm not looking for a solution to the video, I know the video has issues. Handbrake should NOT hang, it's a bug that I'm reporting otherwise I would have reported it in the Windows forum. HandBrake 20151008180809-f9c5593-master build works just fine with the same video. Something broke in the newer builds.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

Maybe HB error handling has changed and now it no longer tolerates such errors.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

So then exit gracefully. It shouldn't hang.

If it was working earlier, it sounds like it should be working now. the goal im guessing is to increase coverage for more situations and not less. So logically if the conversion worked fine earlier, then whatever changed should probably be looked at to see why it's failing now and how to recover from it as it did in the past.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

If your source has errors it may be causing HB to hang. Fix the source and fix the problem.

http://lmgtfy.com/?q=garbage+in+garbage+out
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

really so the old version of handbrake works, ffmpeg works - just the latest version hangs = it's okay? I guess that's how you make a top notch product.
This is clearly a regression bug, a product should NEVER hang. If it encounters something that shouldn't be it should gracefully exit or better yet, work with it (LIKE it did in the previous build). I can't believe we're seriously having this discussion about regression bugs.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

I agree that a program should never hang, however it is a losing battle to try to handle every crappy source someone can throw at you.

A developers time is better spent fixing issues/bugs from CLEAN sources.

That it didn't detect the errors previously may have been a bug in itself that has now been fixed.
Last edited by rollin_eng on Sun Jul 09, 2017 12:58 pm, edited 1 time in total.
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by s55 »

Are you able to provide a sample file that reproduces the problem?
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

s55 wrote: Sun Jul 09, 2017 12:49 pm Are you able to provide a sample file that reproduces the problem?
Its in the original post.
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by s55 »

OK, Failed at reading.

Will take a look.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

rollin_eng wrote: Sun Jul 09, 2017 12:42 pm I agree that a program should never hang, however it is a losing battle to try to handle every crappy source someone can throw at you.

The developers time is better spent fixing issues/bugs from CLEAN sources.

That it didn't detect the errors previously may have been a bug in itself that has now been fixed.
With all due respect, in the past 10 years I've been working with recorded videos I can tell you that you can't control the quality of the sources. With more folks cutting the cord there are all kinds of tuners and recording sources and there is NO way to control them. Try telling an end user that their tuner card or firmware or whatever is at fault, they just end up pointing to other software that works and it end up in not so pleasant place. Even respected brands like CETON end up making crappy recordings at time. The premise that a the video will be perfect is flawed to begin with. While there isn't an expectation to handle every badly recorded file, hanging and crashing is definitely not acceptable for any respectable software.

In this specific case i've actually provided a working version of handbrake that not only didn't hang but EVEN processed it successfully, so yes I'm truly hopefully that this is a fixable issue. IMHO it's a regression bug, however it's the developers call on how they want to handle it.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

s55 wrote: Sun Jul 09, 2017 12:52 pm OK, Failed at reading.

Will take a look.
Thanks, truly appreciate it. I love handbrake and am trying to do what I can to help improve it.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

rboy wrote: Sun Jul 09, 2017 1:01 pm With all due respect, in the past 10 years I've been working with recorded videos I can tell you that you can't control the quality of the sources. With more folks cutting the cord there are all kinds of tuners and recording sources and there is NO way to control them. Try telling an end user that their tuner card or firmware or whatever is at fault, they just end up pointing to other software that works and it end up in not so pleasant place. Even respected brands like CETON end up making crappy recordings at time. The premise that a the video will be perfect is flawed to begin with. While there isn't an expectation to handle every badly recorded file, hanging and crashing is definitely not acceptable for any respectable software.

In this specific case i've actually provided a working version of handbrake that not only didn't hang but EVEN processed it successfully, so yes I'm truly hopefully that this is a fixable issue. IMHO it's a regression bug, however it's the developers call on how they want to handle it.
Of course you can control the quality of your source, I have told you what to do in this case but you just seem to want HB to fix all your issues.

If other software better suits your needs then go for it, no one is forcing you to use HB.

If other software/hardware is creating bad files that is really their problem and you should ask them to fix their issues.

HB is very respectable even though it does crash, as does most software.
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by s55 »

This isn't worth arguing over. We are going to take a look into it and we'll update this thread when we have something more to say.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rollin_eng »

s55 wrote: Sun Jul 09, 2017 3:22 pm This isn't worth arguing over. We are going to take a look into it and we'll update this thread when we have something more to say.
While you are obviously free to do whatever you please I am only pointing out to rboy that it is not sustainable for any software to continually deal with known 'broken' inputs.

Obviously if this is a bug in HB I support it being fixed.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5709
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by JohnAStebbins »

This is a very corrupted source. But it does uncover a couple serious issues in HandBrake that I've fixed. HandBrake still doesn't do a very good job of transcoding this video. It drops a lot of video due to timestamp synchronization issues. But I solved the hang issue and there was an additional issue with corrupting the audio while generating silence packets to fill audio gaps.
https://github.com/HandBrake/HandBrake/ ... 9e04a9deed
https://github.com/HandBrake/HandBrake/ ... 5f321617b3

I only tested encoding with x264. I run linux so don't have the QSV option. So please give the next nightly build a try.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

Thanks for looking into it, will try it out with QSV.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

I noticed that the 32bit builds are only available for the stable release version. Is there any possible way to get a 32bit CLI download of a nightly build?
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by BradleyS »

32-bit builds have been deprecated for some time and we no longer offer them. You still should be able to compile from source.
rboy
Posts: 35
Joined: Sun Jul 09, 2017 12:11 am

Re: Handbrake 1.0.7 hangs on QSV encoding

Post by rboy »

JohnAStebbins wrote: Wed Jul 12, 2017 8:39 pm This is a very corrupted source. But it does uncover a couple serious issues in HandBrake that I've fixed. HandBrake still doesn't do a very good job of transcoding this video. It drops a lot of video due to timestamp synchronization issues. But I solved the hang issue and there was an additional issue with corrupting the audio while generating silence packets to fill audio gaps.
https://github.com/HandBrake/HandBrake/ ... 9e04a9deed
https://github.com/HandBrake/HandBrake/ ... 5f321617b3

I only tested encoding with x264. I run linux so don't have the QSV option. So please give the next nightly build a try.
Sorry, it's still hanging with QSV, here are the logs:

Code: Select all

HandBrakeCLI.exe -i "..\Handbrake QSV Fail.ts" -e qsv_h264 -q 49 -E ffac3 -B 384 -o test.mp4
[15:24:43] hb_init: starting libhb thread
[15:24:43] thread 1 started ("libhb")
HandBrake 20170711194400-1de8f69-master (2017071201) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening ..\Handbrake QSV Fail.ts...
[15:24:43] CPU: Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz
[15:24:43]  - Intel microarchitecture Ivy Bridge
[15:24:43]  - logical processor count: 4
[15:24:43] Intel Quick Sync Video support: yes
[15:24:43]  - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[15:24:43]  - H.264 encoder: yes
[15:24:43]     - preferred implementation: hardware (any)
[15:24:43]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[15:24:43]  - H.265 encoder: no
[15:24:43] hb_scan: path=..\Handbrake QSV Fail.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image ..\Handbrake QSV Fail.ts
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[15:24:43] 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
[15:24:43] dvd: not a dvd - trying as a stream/file instead
[15:24:43] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:24:43] Found the following PIDS
[15:24:43]     Video PIDS :
[15:24:43]       0x100 type MPEG2 (0x2) (PCR)
[15:24:43]     Audio PIDS :
[15:24:43]       0x101 type AC3 (0x81)
[15:24:43]     Subtitle PIDS :
[15:24:43]     Other PIDS :
[15:24:43] stream id 0x101 (type 0x81 substream 0x0) audio 0x101
Scanning title 1 of 1, 0.00 %[15:24:44] hb_sample_pts: no PTS in video packet near 287840205
[15:24:44] hb_sample_pts: no PTS in video packet near 293026515
[15:24:44] hb_sample_pts: no PTS in video packet near 298212825
[15:24:44] hb_sample_pts: no PTS in video packet near 303399135
[15:24:44] hb_sample_pts: no PTS in video packet near 308585445
Scanning title 1 of 1, 0.00 %[15:24:45] scan: decoding previews for title 1
[15:24:45] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:24:45] scan: audio 0x101: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
Scanning title 1 of 1, preview 8, 80.00 %[15:24:45] stream: 6 good frames, 0 errors (0%)
[15:24:45] scan: 10 previews, 704x480, 29.970 fps, autocrop = 2/0/0/0, aspect 16:9, PAR 40:33
[15:24:45] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: ..\Handbrake QSV Fail.ts
  + duration: 00:00:00
  + size: 704x480, pixel aspect: 40/33, display aspect: 1.78, 29.970 fps
  + autocrop: 2/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:00
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English, Closed Caption [CC]
[15:24:45] 1 job(s) to process
[15:24:45] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 384,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "ac3",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            }
        ],
        "ChapterMarkers": false,
        "File": "test.mp4",
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 2,
                    "height": 478,
                    "width": 704
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 33,
        "Num": 40
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "..\\Handbrake QSV Fail.ts",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "qsv_h264",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 49.0,
        "Turbo": false,
        "TwoPass": false
    }
}
[15:24:45] starting job
[15:24:45] job configuration:
[15:24:45]  * source
[15:24:45]    + ..\Handbrake QSV Fail.ts
[15:24:45]    + title 1, chapter(s) 1 to 1
[15:24:45]  * destination
[15:24:45]    + test.mp4
[15:24:45]    + container: MPEG-4 (libavformat)
[15:24:45]  * video track
[15:24:45]    + decoder: mpeg2video
[15:24:45]      + bitrate 15000 kbps
[15:24:45]    + filters
[15:24:45]      + Framerate Shaper (mode=0)
[15:24:45]        + frame rate: same as source (around 29.970 fps)
[15:24:45]      + Crop and Scale (width=704:height=478:crop-top=2:crop-bottom=0:crop-left=0:crop-right=0)
[15:24:45]        + source: 704 * 480, crop (2/0/0/0): 704 * 478, scale: 704 * 478
[15:24:45]    + Output geometry
[15:24:45]      + storage dimensions: 704 x 478
[15:24:45]      + pixel aspect ratio: 40 : 33
[15:24:45]      + display dimensions: 853 x 478
[15:24:45]    + encoder: H.264 (Intel Media SDK)
[15:24:45]      + quality: 49.00 (QP)
[15:24:45]  * audio track 1
[15:24:45]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x101)
[15:24:45]      + bitrate: 192 kbps, samplerate: 48000 Hz
[15:24:45]    + mixdown: Stereo
[15:24:45]    + encoder: AC3 (libavcodec)
[15:24:45]      + bitrate: 384 kbps, samplerate: 48000 Hz
[15:24:45] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[15:24:45] sync: expecting 20 video frames
[15:24:45] encqsvInit: using encode-only path
[15:24:45] encqsvInit: H.264/AVC High profile @ level 3.0
[15:24:45] encqsvInit: TargetUsage 2 AsyncDepth 4
[15:24:45] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[15:24:45] encqsvInit: BFramesMax 3
[15:24:45] encqsvInit: RateControlMethod CQP with QPI 49 QPP 51 QPB 51
Encoding: task 1 of 1, 0.00 %[15:24:45] sync: first pts audio 0x101 is 0
[15:24:45] sync: first pts video is 9671
Encoding: task 1 of 1, 100.00 %[15:24:46] qsv_enc_init: using 'hardware (1)' implementation, API: 1.11
Encoding: task 1 of 1, 100.00 %[15:24:48] sync: video time went backwards 33 ms, dropped 1 frames. PTS 3814472
[15:24:48] sync: video time went backwards 200 ms, dropped 6 frames. PTS 4885584
[15:24:48] sync: video time went backwards 133 ms, dropped 4 frames. PTS 4897621
[15:24:48] sync: video time went backwards 166 ms, dropped 5 frames. PTS 4909621
Encoding: task 1 of 1, 100.00 %[15:24:48] sync: video time went backwards 33 ms, dropped 1 frames. PTS 4912919
Encoding: task 1 of 1, 100.00 %[15:24:57] sync: video time went backwards 367 ms, dropped 11 frames. PTS 30952225
Encoding: task 1 of 1, 100.00 %[15:24:58] sync: video time went backwards 47247 ms, dropped 1416 frames. PTS 30964512
Encoding: task 1 of 1, 100.00 %[15:25:00] sync: video time went backwards 33 ms, dropped 1 frames. PTS 35689878
Encoding: task 1 of 1, 100.00 %[15:25:00] sync: video time went backwards 66 ms, dropped 2 frames. PTS 36819006
[15:25:00] sync: video time went backwards 166 ms, dropped 5 frames. PTS 36846030
Encoding: task 1 of 1, 100.00 %[15:25:00] sync: video time went backwards 33 ms, dropped 1 frames. PTS 37032219
Encoding: task 1 of 1, 100.00 %[15:25:10] sync: video time went backwards 33 ms, dropped 1 frames. PTS 57824866
[15:25:10] sync: video time went backwards 33 ms, dropped 1 frames. PTS 57921085
[15:25:10] sync: video time went backwards 33 ms, dropped 1 frames. PTS 57966130
Encoding: task 1 of 1, 100.00 %[15:25:10] sync: video time went backwards 33 ms, dropped 1 frames. PTS 58044331
[15:25:10] sync: video time went backwards 33 ms, dropped 1 frames. PTS 58137424
[15:25:10] sync: video time went backwards 33 ms, dropped 1 frames. PTS 58248446
[15:25:10] sync: video time went backwards 66 ms, dropped 2 frames. PTS 58266464
Encoding: task 1 of 1, 100.00 %[15:25:17] sync: video time went backwards 33 ms, dropped 1 frames. PTS 69509537
Encoding: task 1 of 1, 100.00 %[15:25:18] sync: video time went backwards 33 ms, dropped 1 frames. PTS 71606997
Encoding: task 1 of 1, 100.00 %[15:25:18] sync: video time went backwards 367 ms, dropped 11 frames. PTS 71610239
[15:25:18] sync: video time went backwards 300 ms, dropped 9 frames. PTS 71923227
Encoding: task 1 of 1, 100.00 %Signal 2 received, terminating - do it again in case it gets stuck
Here are the logs with the working version of handbrake with QSV:

Code: Select all

[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:52] sync: adding 310 ms of silence to audio 0x101  start 96360517, next 96332562
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] new snr offsets must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:52] sync: adding 80 ms of silence to audio 0x101  start 97136739, next 97129474
[15:29:52] sync: audio 0x101 time went backwards 63 ms, dropped 2 frames (start 97139618, next 97145377)
[15:29:52] sync: adding 544 ms of silence to audio 0x101  start 97197218, next 97148257
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] error in bit allocation
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:52] sync: adding 96 ms of silence to audio 0x101  start 97246178, next 97237537
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:52] sync: adding 652 ms of silence to audio 0x101  start 97561230, next 97502497
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] Additional substreams is not implemented. Update your Libav version to the newest one from Git.
 If the problem still occurs, it means that your file has a feature which has not been implemented.
[ac3 @ 00000000062b1600] If you want to help, upload a sample of this file to ftp://upload.libav.org/incoming/ and conta
ct the libav-devel mailing list.
[ac3 @ 00000000062b1600] unsupported frame type : skipping frame
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 938 ms of silence to audio 0x101  start 115559310, next 115474827
[15:29:53] sync: adding 149 ms of silence to audio 0x101  start 115581390, next 115567948
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 1568 ms of silence to audio 0x101  start 116330190, next 116189068
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 736 ms of silence to audio 0x101  start 123328590, next 123262348
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 711 ms of silence to audio 0x101  start 124423669, next 124359628
[15:29:53] sync: adding 103 ms of silence to audio 0x101  start 124455349, next 124446028
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 71 ms of silence to audio 0x101  start 124553269, next 124546828
[15:29:53] sync: adding 167 ms of silence to audio 0x101  start 124576309, next 124561228
[ac3 @ 00000000062b1600] error in bit allocation
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 135 ms of silence to audio 0x101  start 124777909, next 124765708
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 231 ms of silence to audio 0x101  start 124993909, next 124973068
[ac3 @ 00000000062b1600] invalid coupling range (10 >= 7)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (6 >= 3)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (11 >= 5)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (10 >= 4)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 231 ms of silence to audio 0x101  start 125296309, next 125275468
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 167 ms of silence to audio 0x101  start 125319349, next 125304268
[15:29:53] sync: adding 74 ms of silence to audio 0x101  start 125334257, next 125327563
[15:29:53] sync: audio 0x101 time went backwards 31 ms, dropped 1 frames (start 125340018, next 125342894)
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 986 ms of silence to audio 0x101  start 125650549, next 125561774
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: audio 0x101 time went backwards 31 ms, dropped 1 frames (start 125690870, next 125693747)
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 928 ms of silence to audio 0x101  start 125788789, next 125705267
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] invalid coupling range (14 >= 13)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: audio 0x101 time went backwards 31 ms, dropped 1 frames (start 125895349, next 125898227)
[15:29:53] sync: adding 2592 ms of silence to audio 0x101  start 126134389, next 125901107
[ac3 @ 00000000062b1600] new coupling coordinates must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 116 ms of silence to audio 0x101  start 126188098, next 126177587
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 96 ms of silence to audio 0x101  start 126211138, next 126202496
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 357 ms of silence to audio 0x101  start 126249058, next 126216896
[15:29:53] sync: adding 421 ms of silence to audio 0x101  start 126295138, next 126257216
[ac3 @ 00000000062b1600] new coupling coordinates must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 659 ms of silence to audio 0x101  start 126950130, next 126890816
[ac3 @ 00000000062b1600] invalid bitstream id
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 678 ms of silence to audio 0x101  start 127785871, next 127724847
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] error in bit allocation
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[15:29:53] sync: adding 203 ms of silence to audio 0x101  start 127809404, next 127791087
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: audio 0x101 time went backwards 31 ms, dropped 1 frames (start 127818045, next 127820922)
[15:29:53] sync: adding 165 ms of silence to audio 0x101  start 127850216, next 127835322
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 837 ms of silence to audio 0x101  start 128146856, next 128071482
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:53] sync: adding 226 ms of silence to audio 0x101  start 128284818, next 128264442
[ac3 @ 00000000062b1600] new coupling coordinates must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (8 >= 7)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] invalid coupling range (15 >= 12)
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:53] sync: adding 131 ms of silence to audio 0x101  start 128315136, next 128303322
[15:29:53] sync: adding 779 ms of silence to audio 0x101  start 128393601, next 128323482
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling coordinates must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:54] sync: adding 192 ms of silence to audio 0x101  start 128903361, next 128886079
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new snr offsets must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:54] sync: adding 90 ms of silence to audio 0x101  start 128914369, next 128906239
[15:29:54] sync: adding 261 ms of silence to audio 0x101  start 128940801, next 128917247
[15:29:54] sync: audio 0x101 time went backwards 26 ms, dropped 1 frames (start 128955202, next 128957567)
[15:29:54] sync: adding 604 ms of silence to audio 0x101  start 129017738, next 128963327
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] error in bit allocation
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] invalid frame type
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (10 >= 7)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:54] sync: adding 205 ms of silence to audio 0x101  start 129128433, next 129109895
[ac3 @ 00000000062b1600] coupling not allowed in mono or dual-mono
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] invalid bitstream id
[15:29:54] sync: adding 2304 ms of silence to audio 0x101  start 129338673, next 129131311
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:54] sync: adding 96 ms of silence to audio 0x101  start 134531313, next 134522671
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (8 >= 3)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:54] sync: adding 132 ms of silence to audio 0x101  start 137512481, next 137500591
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:54] sync: adding 1028 ms of silence to audio 0x101  start 146495201, next 146402671
[15:29:54] sync: adding 196 ms of silence to audio 0x101  start 146538401, next 146520751
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new snr offsets must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:54] sync: adding 356 ms of silence to audio 0x101  start 146947361, next 146915311
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:54] sync: adding 644 ms of silence to audio 0x101  start 147105761, next 147047791
[ac3 @ 00000000062b1600] bandwidth code = 61 > 60
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] delta bit allocation strategy reserved
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:54] sync: adding 120 ms of silence to audio 0x101  start 147159470, next 147148591
[15:29:54] sync: adding 832 ms of silence to audio 0x101  start 147240110, next 147165227
Encoding: task 1 of 1, 100.00 %[15:29:54] sync: adding 163 ms of silence to audio 0x101  start 151229215, next 151214507

Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] invalid coupling range (11 >= 9)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[15:29:54] sync: adding 131 ms of silence to audio 0x101  start 155019295, next 155007467
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (14 >= 14)
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[15:29:55] sync: adding 779 ms of silence to audio 0x101  start 161206276, next 161136107
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] invalid coupling range (10 >= 7)
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:55] sync: adding 192 ms of silence to audio 0x101  start 161230756, next 161213473
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:55] sync: adding 96 ms of silence to audio 0x101  start 161288356, next 161279713
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] Warning: new rematrixing strategy not present in block 0
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:55] sync: audio 0x101 time went backwards 31 ms, dropped 1 frames (start 161302757, next 161305633)
[15:29:55] sync: adding 434 ms of silence to audio 0x101  start 161356291, next 161317153
Encoding: task 1 of 1, 100.00 %[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] new bit allocation info must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] exponent out-of-range
[ac3 @ 00000000062b1600] error decoding the audio block
[ac3 @ 00000000062b1600] frame sync error
[ac3 @ 00000000062b1600] new coupling strategy must be present in block 0
[ac3 @ 00000000062b1600] error decoding the audio block
[15:29:55] sync: audio 0x101 time went backwards 31 ms, dropped 1 frames (start 164420612, next 164423489)
[15:29:55] sync: adding 96 ms of silence to audio 0x101  start 164443651, next 164435009
Encoding: task 1 of 1, 100.00 %[15:30:40] hb_ts_stream_decode - eof
[15:30:40] reader: done. 730 scr changes
Encoding: task 1 of 1, 100.00 %[15:30:40] work: average encoding speed for job is 672.270752 fps
[15:30:40] sync: got 51546 frames, 20 expected
[15:30:40] render: lost time: 0 (0 frames)
[15:30:40] render: gained time: 0 (0 frames) (0 not accounted for)
[15:30:40] mpeg2video-decoder done: 53330 frames, 544 decoder errors, 0 drops
Encoding: task 1 of 1, 100.00 %[15:30:40] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
Muxing: this may take awhile...[15:30:40] mux: track 0, 51546 frames, 16465775 bytes, 72.08 kbps, fifo 8192
[15:30:40] mux: track 1, 57103 frames, 87710208 bytes, 383.98 kbps, fifo 8192
[15:30:40] stream: 53893 good frames, 0 errors (0%)
[15:30:40] libhb: work result = 0

Encode done!

HandBrake has exited.
Post Reply