HandBrake / HandBrake

HandBrake's main development repository
https://handbrake.fr
Other
17.42k stars 1.32k forks source link

Handbrake Crashes - When Converting DTS_ES audio to Stereo #1058

Closed Penkethboy closed 6 years ago

Penkethboy commented 6 years ago

Description of problem or feature request

When trying to convert a movie audio stream from DTS-ES (6.1) to Stereo (what my TV supports) Handbrake crashes within 5 seconds of the beginning of encoding - this is reproducible and happens every time.

Have tried on two different PC's with same results using the same version of Handbrake

This happens on more than one video so its not file specific. Currently i have seven movies which exhibit this behaviour.

If I change the input audio from dts-es 6.1 to another input type Handbrake does not crash and performs normally.

Steps to reproduce the problem

Select video>change Audio settings to

capture3

HandBrake version (e.g., 1.0.0)

1.0.7 -64bit

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.3 High Sierra, Windows 10 Creators Update)

Win 10 FCU 64 Bit and 2012r2 64bit

Error message text or screenshot

capture

On 2012r2 there is no error message Handbrake just closes.

HandBrake Activity Log required (see https://handbrake.fr/docs/en/latest/help/activity-log.html)

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.16299.0 - 64bit
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Ram: 65474 MB, 
GPU Information:
  NVIDIA GeForce GTX 980 Ti - 23.21.13.8831
Screen: 3840x2160
Temp Dir: C:\Users\TimPercy\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\TimPercy\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

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

# Starting Encode ...

[13:40:43] hb_init: starting libhb thread
[13:40:44] 1 job(s) to process
[13:40:44] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 448,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 65536
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      },
      {
        "Name": "Chapter 21"
      },
      {
        "Name": "Chapter 22"
      },
      {
        "Name": "Chapter 23"
      },
      {
        "Name": "Chapter 24"
      },
      {
        "Name": "Chapter 25"
      },
      {
        "Name": "Chapter 26"
      },
      {
        "Name": "Chapter 27"
      },
      {
        "Name": "Chapter 28"
      },
      {
        "Name": "Chapter 29"
      },
      {
        "Name": "Chapter 30"
      },
      {
        "Name": "Chapter 31"
      },
      {
        "Name": "Chapter 32"
      },
      {
        "Name": "Chapter 33"
      },
      {
        "Name": "Chapter 34"
      },
      {
        "Name": "Chapter 35"
      },
      {
        "Name": "Chapter 36"
      },
      {
        "Name": "Chapter 37"
      },
      {
        "Name": "Chapter 38"
      },
      {
        "Name": "Chapter 39"
      },
      {
        "Name": "Chapter 40"
      },
      {
        "Name": "Chapter 41"
      },
      {
        "Name": "Chapter 42"
      },
      {
        "Name": "Chapter 43"
      },
      {
        "Name": "Chapter 44"
      },
      {
        "Name": "Chapter 45"
      },
      {
        "Name": "Chapter 46"
      },
      {
        "Name": "Chapter 47"
      },
      {
        "Name": "Chapter 48"
      },
      {
        "Name": "Chapter 49"
      },
      {
        "Name": "Chapter 50"
      }
    ],
    "ChapterMarkers": true,
    "File": "F:\\Video\\Testing\\output\\Star Wars II - Attack of The Clones (2002)-1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "40",
          "block-width": "16",
          "filter-mode": "2",
          "mode": "3",
          "motion-thresh": "1",
          "spatial-metric": "2",
          "spatial-thresh": "1"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 50
    },
    "Title": 1,
    "Path": "M:\\Movies\\Star Wars\\Star Wars II - Attack of the Clones (2002)\\Star Wars II - Attack of The Clones (2002).mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "high",
    "Quality": 20.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[13:40:44] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[13:40:44]  - Intel microarchitecture Skylake
[13:40:44]  - logical processor count: 8
[13:40:44] Intel Quick Sync Video support: no
[13:40:44] hb_scan: path=M:\Movies\Star Wars\Star Wars II - Attack of the Clones (2002)\Star Wars II - Attack of The Clones (2002).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image M:\Movies\Star Wars\Star Wars II - Attack of the Clones (2002)\Star Wars II - Attack of The Clones (2002).mkv
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
[13:40:44] 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
[13:40:44] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'M:\Movies\Star Wars\Star Wars II - Attack of the Clones (2002)\Star Wars II - Attack of The Clones (2002).mkv':
  Metadata:
    title           : Star Wars II - Attack of the Clones (2002)
  Duration: 02:22:27.87, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 23.440083
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 23.440083, end 110.527083
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 110.527083, end 262.011750
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 262.011750, end 420.044625
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 420.044625, end 628.919958
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 628.919958, end 859.900708
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 859.900708, end 1295.294000
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1295.294000, end 1488.236750
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1488.236750, end 1786.075958
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 1786.075958, end 1893.308083
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 1893.308083, end 2028.443083
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2028.443083, end 2090.546792
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 2090.546792, end 2165.079583
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 2165.079583, end 2305.845208
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 2305.845208, end 2365.279583
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 2365.279583, end 2455.995208
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 2455.995208, end 2532.780250
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 2532.780250, end 2641.972667
    Metadata:
      title           : Chapter 18
    Chapter #0:18: start 2641.972667, end 2750.414333
    Metadata:
      title           : Chapter 19
    Chapter #0:19: start 2750.414333, end 2870.075542
    Metadata:
      title           : Chapter 20
    Chapter #0:20: start 2870.075542, end 3020.934583
    Metadata:
      title           : Chapter 21
    Chapter #0:21: start 3020.934583, end 3181.344833
    Metadata:
      title           : Chapter 22
    Chapter #0:22: start 3181.344833, end 3404.776375
    Metadata:
      title           : Chapter 23
    Chapter #0:23: start 3404.776375, end 3536.699833
    Metadata:
      title           : Chapter 24
    Chapter #0:24: start 3536.699833, end 3646.017375
    Metadata:
      title           : Chapter 25
    Chapter #0:25: start 3646.017375, end 3821.484333
    Metadata:
      title           : Chapter 26
    Chapter #0:26: start 3821.484333, end 3984.313667
    Metadata:
      title           : Chapter 27
    Chapter #0:27: start 3984.313667, end 4278.732792
    Metadata:
      title           : Chapter 28
    Chapter #0:28: start 4278.732792, end 4441.353583
    Metadata:
      title           : Chapter 29
    Chapter #0:29: start 4441.353583, end 4523.519000
    Metadata:
      title           : Chapter 30
    Chapter #0:30: start 4523.519000, end 4668.872542
    Metadata:
      title           : Chapter 31
    Chapter #0:31: start 4668.872542, end 4900.353792
    Metadata:
      title           : Chapter 32
    Chapter #0:32: start 4900.353792, end 5026.855167
    Metadata:
      title           : Chapter 33
    Chapter #0:33: start 5026.855167, end 5290.076458
    Metadata:
      title           : Chapter 34
    Chapter #0:34: start 5290.076458, end 5452.905792
    Metadata:
      title           : Chapter 35
    Chapter #0:35: start 5452.905792, end 5618.487875
    Metadata:
      title           : Chapter 36
    Chapter #0:36: start 5618.487875, end 5727.847125
    Metadata:
      title           : Chapter 37
    Chapter #0:37: start 5727.847125, end 6164.783625
    Metadata:
      title           : Chapter 38
    Chapter #0:38: start 6164.783625, end 6314.016042
    Metadata:
      title           : Chapter 39
    Chapter #0:39: start 6314.016042, end 6593.628708
    Metadata:
      title           : Chapter 40
    Chapter #0:40: start 6593.628708, end 6982.475500
    Metadata:
      title           : Chapter 41
    Chapter #0:41: start 6982.475500, end 7067.602208
    Metadata:
      title           : Chapter 42
    Chapter #0:42: start 7067.602208, end 7229.180292
    Metadata:
      title           : Chapter 43
    Chapter #0:43: start 7229.180292, end 7488.981500
    Metadata:
      title           : Chapter 44
    Chapter #0:44: start 7488.981500, end 7661.945958
    Metadata:
      title           : Chapter 45
    Chapter #0:45: start 7661.945958, end 7883.667458
    Metadata:
      title           : Chapter 46
    Chapter #0:46: start 7883.667458, end 7974.841875
    Metadata:
      title           : Chapter 47
    Chapter #0:47: start 7974.841875, end 8089.247833
    Metadata:
      title           : Chapter 48
    Chapter #0:48: start 8089.247833, end 8154.938458
    Metadata:
      title           : Chapter 49
    Chapter #0:49: start 8154.938458, end 8547.872667
    Metadata:
      title           : Chapter 50
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 28595054
      DURATION-eng    : 02:22:27.872666666
      NUMBER_OF_FRAMES-eng: 204944
      NUMBER_OF_BYTES-eng: 30553357786
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS-ES)
      48000 Hz, 6.1, fltp, 1536 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 1509000
      DURATION-eng    : 02:22:27.882666666
      NUMBER_OF_FRAMES-eng: 801364
      NUMBER_OF_BYTES-eng: 1612344368
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3
      48000 Hz, 5.1, fltp, 448 kb/s
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 02:22:27.904000000
      NUMBER_OF_FRAMES-eng: 267122
      NUMBER_OF_BYTES-eng: 478682624
      SOURCE_ID-eng   : 001101
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 41626
      DURATION-eng    : 02:22:25.849812500
      NUMBER_OF_FRAMES-eng: 2654
      NUMBER_OF_BYTES-eng: 44467021
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 100136
      DURATION-eng    : 02:21:53.734395833
      NUMBER_OF_FRAMES-eng: 4600
      NUMBER_OF_BYTES-eng: 106566934
      SOURCE_ID-eng   : 00120A
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 91276
      DURATION-eng    : 02:21:54.026354166
      NUMBER_OF_FRAMES-eng: 3757
      NUMBER_OF_BYTES-eng: 97140991
      SOURCE_ID-eng   : 00120B
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 2447
      DURATION-eng    : 02:21:53.817812500
      NUMBER_OF_FRAMES-eng: 510
      NUMBER_OF_BYTES-eng: 2605186
      SOURCE_ID-eng   : 00121C
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 2447
      DURATION-eng    : 02:21:53.817812500
      NUMBER_OF_FRAMES-eng: 510
      NUMBER_OF_BYTES-eng: 2605186
      SOURCE_ID-eng   : 00121C
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 2047
      DURATION-eng    : 02:21:54.151479166
      NUMBER_OF_FRAMES-eng: 366
      NUMBER_OF_BYTES-eng: 2179316
      SOURCE_ID-eng   : 00121D
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:9(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 2047
      DURATION-eng    : 02:21:54.151479166
      NUMBER_OF_FRAMES-eng: 366
      NUMBER_OF_BYTES-eng: 2179316
      SOURCE_ID-eng   : 00121D
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:10(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 249
      DURATION-eng    : 02:22:25.933229166
      NUMBER_OF_FRAMES-eng: 36
      NUMBER_OF_BYTES-eng: 266401
      SOURCE_ID-eng   : 00121E
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:11(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 258
      DURATION-eng    : 02:17:14.580520833
      NUMBER_OF_FRAMES-eng: 34
      NUMBER_OF_BYTES-eng: 266331
      SOURCE_ID-eng   : 00121E
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.6 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-07-29 20:35:40
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[13:40:44] scan: decoding previews for title 1
[13:40:44] scan: audio 0x1: dca, rate=48000Hz, bitrate=1536000 English (DTS-ES) (6.1 ch)
[13:40:44] scan: audio 0x2: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[13:40:45] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 132/132/0/0, aspect 16:9, PAR 1:1
[13:40:45] scan: supported video decoders: avcodec qsv
[13:40:45] libhb: scan thread found 1 valid title(s)
[13:40:45] starting job
[13:40:45] decomb filter thread started for segment 0
[13:40:45] decomb filter thread started for segment 1
[13:40:45] decomb filter thread started for segment 2
[13:40:45] decomb filter thread started for segment 3
[13:40:45] decomb check thread started for segment 2
[13:40:45] decomb check thread started for segment 3
[13:40:45] decomb check thread started for segment 5
[13:40:45] decomb filter thread started for segment 7
[13:40:45] decomb check thread started for segment 0
[13:40:45] decomb check thread started for segment 1
[13:40:45] decomb filter thread started for segment 4
[13:40:45] decomb filter thread started for segment 5
[13:40:45] decomb check thread started for segment 4
[13:40:45] decomb filter thread started for segment 6
[13:40:45] mask erode thread started for segment 2
[13:40:45] decomb check thread started for segment 7
[13:40:45] mask filter thread started for segment 0
[13:40:45] mask filter thread started for segment 1
[13:40:45] mask filter thread started for segment 2
[13:40:45] mask dilate thread started for segment 1
[13:40:45] mask filter thread started for segment 4
[13:40:45] mask dilate thread started for segment 4
[13:40:45] mask filter thread started for segment 6
[13:40:45] mask dilate thread started for segment 7
[13:40:45] yadif thread started for segment 0
[13:40:45] mask erode thread started for segment 1
[13:40:45] decomb check thread started for segment 6
[13:40:45] mask erode thread started for segment 3
[13:40:45] mask erode thread started for segment 4
[13:40:45] yadif thread started for segment 7
[13:40:45] work: track 1, dithering not supported by codec
[13:40:45] mask erode thread started for segment 6
[13:40:45] job configuration:
[13:40:45]  * source
[13:40:45]    + M:\Movies\Star Wars\Star Wars II - Attack of the Clones (2002)\Star Wars II - Attack of The Clones (2002).mkv
[13:40:45]    + title 1, chapter(s) 1 to 50
[13:40:45]    + container: matroska,webm
[13:40:45]  * destination
[13:40:45]    + F:\Video\Testing\output\Star Wars II - Attack of The Clones (2002)-1.mkv
[13:40:45]    + container: Matroska (libavformat)
[13:40:45]      + chapter markers
[13:40:45]  * video track
[13:40:45]    + decoder: h264
[13:40:45]    + filters
[13:40:45] mask erode thread started for segment 7
[13:40:45]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[13:40:45]      + Decomb (mode=39)
[13:40:45]      + Framerate Shaper (mode=2:rate=27000000/900000)
[13:40:45] mask dilate thread started for segment 0
[13:40:45]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[13:40:45]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[13:40:45]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[13:40:45] mask filter thread started for segment 3
[13:40:45]    + Output geometry
[13:40:45]      + storage dimensions: 1920 x 1080
[13:40:45]      + pixel aspect ratio: 1 : 1
[13:40:45]      + display dimensions: 1920 x 1080
[13:40:45]    + encoder: H.264 (libx264)
[13:40:45]      + preset:  fast
[13:40:45]      + profile: high
[13:40:45]      + level:   4.1
[13:40:45]      + quality: 20.00 (RF)
[13:40:45]  * audio track 1
[13:40:45]    + decoder: English (DTS-ES) (6.1 ch) (track 1, id 0x1)
[13:40:45] mask dilate thread started for segment 2
[13:40:45]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[13:40:45]    + mixdown: Stereo
[13:40:45]    + encoder: AAC (libavcodec)
[13:40:45]      + bitrate: 448 kbps, samplerate: 48000 Hz
[13:40:45] mask dilate thread started for segment 3
[13:40:45] mask filter thread started for segment 5
[13:40:45] mask dilate thread started for segment 5
[13:40:45] mask dilate thread started for segment 6
[13:40:45] mask filter thread started for segment 7
[13:40:45] mask erode thread started for segment 0
[13:40:45] yadif thread started for segment 1
[13:40:45] yadif thread started for segment 2
[13:40:45] yadif thread started for segment 3
[13:40:45] yadif thread started for segment 4
[13:40:45] yadif thread started for segment 5
[13:40:45] yadif thread started for segment 6
[13:40:45] mask erode thread started for segment 5
[13:40:45] sync: expecting 204943 video frames
[13:40:45] encx264: min-keyint: 24, keyint: 240
[13:40:45] encx264: encoding at constant RF 20.000000
[13:40:45] encx264: unparsed options: ref=2:level=4.1:vbv-bufsize=78125:weightp=1:subme=6:rc-lookahead=30:vbv-maxrate=62500
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.1
[13:40:45] sync: first pts video is 0
[13:40:45] sync: "Chapter 1" (1) at frame 1 time 0
[13:40:45] sync: first pts audio 0x1 is 0
bradleysepos commented 6 years ago

What happens when you manually set bit rate to a sane value like 160? I don’t think 448 is valid for stereo, probably a bug as that’s what’s in the log.

Penkethboy commented 6 years ago

Thanks - Just tried with different bit rates

320 and below work fine 384 and above crash Handbrake

If they are invalid for Stereo they should be removed from the options

bradleysepos commented 6 years ago

@sr55 Is this already fixed on master?

sr55 commented 6 years ago

In theory yes. Hard to say in practice. It’s not that the bitrate is invalid (wasteful maybe) but that the encoder is rubbish and can’t make enough bits to encode an audio frame so gets suck.

sr55 commented 6 years ago

Worth trying a nightly build. That said anything above 128k per channel on Libav aac is pretty pointless. FDK aac is better in that regard if you want to compile from source and use that instead.

bradleysepos commented 6 years ago
sr55 commented 6 years ago

Most of them support <=256k per channel

Penkethboy commented 6 years ago

Cant remember why i chose 448 as i did this a long time ago on my favourite preset

Have adjusted the bitrate downwards.

sr55 commented 6 years ago

libav AAC just doesn't work well at high bitrates. In some cases it actually seems to make quality worse. I'm not sure how the ffmpeg aac encoder performs in these scenarios. I know FDK behaves better but I'm not sure that the returns don't still taper off after 128~160K per channel depending on the source audio

Either way, there are only 2 options available:

  1. Compile from source and use FDK AAC (Not GPL Compatible but you can compile from source for a personal build)
  2. Use Lower bitrates.

We have it on our wish list to have a better AAC encoder, so there isn't much we can actually do in the mean time so I think I'll close this out. As I say, we did fix an issue that was causing the aac encoder to block encodes when it couldn't generate enough bits, but I don't think it's worth investing any time fixing when the ffmpeg team spent time making their AAC encoder better. They'll either be merged or we'll get it if we go ahead and switch to ffmpeg from libav.