Auto Passthru fails

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Auto Passthru fails

Post by Number8 »

Autopassthru features fails to do what it intented for
Steps to reproduce the problem (If Applicable):
For several HB versions now this feature does not automatically select Auto Passthru whereas the source audio codec is supported, AC3 in this case. There is a second caveat: it defaults to AAC while AC3 is selected as a default encoder.
In the past, until which version it used to work. Then I noticed a regression.
Audio setup is the following
Auto Passthru behaviour : everything selected and Fallback encoder AC3.
Choose behaviour : All matching selected langages and Use first track as template
Chosen langages : english and french.
HandBrake version: 1.2.2
Windows 10, latest updates
HandBrake Activity

Code: Select all

HandBrake 1.2.2 (2019022300)
OS: Microsoft Windows NT 10.0.17763.0
CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Ram: 16248 MB, 
GPU Information:
  Intel(R) Iris(R) Plus Graphics 655 - 24.20.100.6345
Screen: 2560x1440
Temp Dir: C:\Users\media\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\media\AppData\Roaming\HandBrake

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


# Starting Encode ...

[11:55:59] hb_init: starting libhb thread
[11:55:59] 1 job(s) to process
[11:55:59] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "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"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "Z:\\Movies\\Camelot\\Camelot.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "76",
          "crop-left": "2",
          "crop-right": "0",
          "crop-top": "76",
          "height": "424",
          "width": "718"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 64,
    "Den": 45
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 12
    },
    "Title": 1,
    "Path": "Z:\\ISO\\camelot.iso"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": true,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": "qsv_h264",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "balanced",
    "Profile": "auto",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[11:55:59] CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
[11:55:59]  - Intel microarchitecture Kaby Lake
[11:55:59]  - logical processor count: 8
[11:55:59] Intel Quick Sync Video support: yes
[11:55:59]  - Intel Media SDK hardware: API 1.27 (minimum: 1.3)
[11:55:59]  - H.264 encoder: yes
[11:55:59]     - preferred implementation: hardware (any) via D3D11
[11:55:59]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[11:55:59]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[11:55:59]     - preferred implementation: hardware (any) via D3D11
[11:55:59]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[11:55:59] hb_scan: path=Z:\ISO\camelot.iso, title_index=1
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[11:55:59] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: camelot
libdvdnav: DVD Serial Number: 352f59f4
libdvdnav: DVD Title (Alternative):
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
[11:55:59] scan: DVD has 1 title(s)
[11:55:59] scan: scanning title 1
[11:55:59] scan: opening IFO for VTS 1
[11:55:59] scan: duration is 02:53:00 (10380080 ms)
[11:55:59] pgc_id: 1, pgn: 1: pgc: 000001B25BB50760
[11:55:59] scan: vts=1, ttn=1, cells=0->13, blocks=0->3643441, 3643442 blocks
[11:55:59] scan: checking audio 1
[11:55:59] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[11:55:59] scan: checking subtitle 1
[11:55:59] scan: id=0x20bd, lang=Francais (Wide Screen) [VOBSUB], 3cc=fra ext=0
[11:55:59] scan: id=0x21bd, lang=Francais (Letterbox) [VOBSUB], 3cc=fra ext=0
[11:55:59] scan: title 1 has 12 chapters
[11:55:59] scan: chap 1 c=0->0, b=0->223524 (223525), 695720 ms
[11:55:59] scan: chap 2 c=1->1, b=223525->540910 (317386), 945320 ms
[11:55:59] scan: chap 3 c=2->2, b=540911->973216 (432306), 1181600 ms
[11:55:59] scan: chap 4 c=3->3, b=973217->1359680 (386464), 957560 ms
[11:55:59] scan: chap 5 c=4->4, b=1359681->1747129 (387449), 1139800 ms
[11:55:59] scan: chap 6 c=5->6, b=1747130->2138786 (391657), 1092560 ms
[11:55:59] scan: chap 7 c=7->7, b=2138787->2545729 (406943), 1031480 ms
[11:55:59] scan: chap 8 c=8->8, b=2545730->2802452 (256723), 726280 ms
[11:55:59] scan: chap 9 c=9->9, b=2802453->3138566 (336114), 1055000 ms
[11:55:59] scan: chap 10 c=10->10, b=3138567->3369589 (231023), 629560 ms
[11:55:59] scan: chap 11 c=11->11, b=3369590->3482453 (112864), 380040 ms
[11:55:59] scan: chap 12 c=12->13, b=3482454->3643441 (160988), 545160 ms
[11:55:59] scan: aspect = 16:9
[11:55:59] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
[11:55:59] scan: title angle(s) 1
[ac3 @ 000001b25bb8ca00] frame sync error
[11:55:59] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[11:55:59] scan: 10 previews, 720x576, 25.000 fps, autocrop = 76/76/2/0, aspect 16:9, PAR 64:45
[11:55:59] libhb: scan thread found 1 valid title(s)
[11:55:59] starting job
[11:55:59] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[11:55:59] Auto Passthru: fallback is AC3
[11:55:59] Auto Passthru: using AC3 Passthru for track 1
[11:55:59] job configuration:
[11:55:59]  * source
[11:55:59]    + Z:\ISO\camelot.iso
[11:55:59]    + title 1, chapter(s) 1 to 12
[11:55:59]  * destination
[11:55:59]    + Z:\Movies\Camelot\Camelot.mkv
[11:55:59]    + container: Matroska (libavformat)
[11:55:59]      + chapter markers
[11:55:59]  * video track
[11:55:59]    + decoder: mpeg2video
[11:55:59]      + bitrate 200 kbps
[11:55:59]    + filters
[11:55:59]      + Framerate Shaper (mode=1)
[11:55:59]        + frame rate: 25.000 fps -> constant 25.000 fps
[11:55:59]      + Crop and Scale (width=718:height=424:crop-top=76:crop-bottom=76:crop-left=2:crop-right=0)
[11:55:59]        + source: 720 * 576, crop (76/76/2/0): 718 * 424, scale: 718 * 424
[11:55:59]    + Output geometry
[11:55:59]      + storage dimensions: 718 x 424
[11:55:59]      + pixel aspect ratio: 64 : 45
[11:55:59]      + display dimensions: 1021 x 424
[11:55:59]    + encoder: H.264 (Intel Media SDK)
[11:55:59]      + preset:  balanced
[11:55:59]      + profile: auto
[11:55:59]      + level:   auto
[11:55:59]      + quality: 22.00 (ICQ)
[11:55:59]      + color profile: 5-1-6
[11:55:59]  * subtitle track 1, Francais (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[11:55:59]  * subtitle track 2, Francais (Letterbox) [VOBSUB] (track 1, id 0x21bd, Picture) -> Passthrough, Default
[11:55:59]  * audio track 1
[11:55:59]    + decoder: English (AC3) (2.0 ch) (track 1, id 0x80bd)
[11:55:59]      + bitrate: 192 kbps, samplerate: 48000 Hz
[11:55:59]    + AC3 Passthru
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: camelot
libdvdnav: DVD Serial Number: 352f59f4
libdvdnav: DVD Title (Alternative):
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
[11:55:59] sync: expecting 259502 video frames
[11:55:59] encqsvInit: using encode-only path
[11:55:59] encqsvInit: H.264/AVC High profile @ level 3.0
[11:55:59] encqsvInit: TargetUsage 4 AsyncDepth 5
[11:55:59] encqsvInit: GopRefDist 3 GopPicSize 25 NumRefFrame 1
[11:55:59] encqsvInit: BFramesMax 2 BRefType off
[11:55:59] encqsvInit: RateControlMethod ICQ ICQQuality 22
[11:55:59] sync: first pts video is 0
[11:55:59] sync: "Chapter 1" (1) at frame 1 time 0
[11:55:59] sync: first pts audio 0x80bd is 0
[11:55:59] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 1.27
[11:56:00] sync: first pts subtitle 0x20bd is 1368000
[11:56:00] sync: first pts subtitle 0x21bd is 1368000
[11:56:26] sync: "Chapter 2" (2) at frame 17394 time 62614800
[11:57:02] sync: "Chapter 3" (3) at frame 41027 time 147693600
[11:57:48] sync: "Chapter 4" (4) at frame 70567 time 254037600
[11:58:22] sync: "Chapter 5" (5) at frame 94506 time 340218000
[11:59:00] sync: "Chapter 6" (6) at frame 123001 time 442800000
[11:59:36] sync: "Chapter 7" (7) at frame 150315 time 541130400
[12:00:12] sync: "Chapter 8" (8) at frame 176104 time 633970800
[12:00:38] sync: "Chapter 9" (9) at frame 194261 time 699336000
[12:01:12] sync: "Chapter 10" (10) at frame 220634 time 794278800
[12:01:32] sync: "Chapter 11" (11) at frame 236375 time 850946400
[12:01:44] sync: "Chapter 12" (12) at frame 245874 time 885142800
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
[12:02:00] reader: done. 2 scr changes
[12:02:01] work: average encoding speed for job is 717.625916 fps
[12:02:01] vfr: 259253 frames output, 0 dropped and 0 duped for CFR/PFR
[12:02:01] vfr: lost time: 0 (0 frames)
[12:02:01] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:02:01] ac3-decoder done: 324376 frames, 0 decoder errors
[12:02:01] mpeg2video-decoder done: 259253 frames, 0 decoder errors
[12:02:01] sync: got 259253 frames, 259502 expected
[12:02:01] sync: framerate min 25.000 fps, max 125.000 fps, avg 25.000 fps
[12:02:01] mux: track 0, 259253 frames, 1433841088 bytes, 1105.07 kbps, fifo 8192
[12:02:01] mux: track 1, 324376 frames, 249120768 bytes, 192.00 kbps, fifo 8192
[12:02:01] mux: track 2, 1901 frames, 6074484 bytes, 4.68 kbps, fifo 64
[12:02:01] mux: track 3, 1901 frames, 5914004 bytes, 4.56 kbps, fifo 64
[12:02:01] libhb: work result = 0

# Encode Completed ...

[12:03:10] hb_init: starting libhb thread

 # Starting Scan ...

[12:03:10] CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
[12:03:10]  - Intel microarchitecture Kaby Lake
[12:03:10]  - logical processor count: 8
[12:03:10] Intel Quick Sync Video support: yes
[12:03:10]  - Intel Media SDK hardware: API 1.27 (minimum: 1.3)
[12:03:10]  - H.264 encoder: yes
[12:03:10]     - preferred implementation: hardware (any) via D3D11
[12:03:10]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[12:03:10]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[12:03:10]     - preferred implementation: hardware (any) via D3D11
[12:03:10]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[12:03:10] hb_scan: path=Z:\ISO\camelot.iso, title_index=0
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[12:03:10] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: camelot
libdvdnav: DVD Serial Number: 352f59f4
libdvdnav: DVD Title (Alternative):
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
[12:03:10] scan: DVD has 1 title(s)
[12:03:10] scan: scanning title 1
[12:03:10] scan: opening IFO for VTS 1
[12:03:10] scan: duration is 02:53:00 (10380080 ms)
[12:03:10] pgc_id: 1, pgn: 1: pgc: 000001B25C1F4CB0
[12:03:10] scan: vts=1, ttn=1, cells=0->13, blocks=0->3643441, 3643442 blocks
[12:03:10] scan: checking audio 1
[12:03:10] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[12:03:10] scan: checking subtitle 1
[12:03:10] scan: id=0x20bd, lang=Francais (Wide Screen) [VOBSUB], 3cc=fra ext=0
[12:03:10] scan: id=0x21bd, lang=Francais (Letterbox) [VOBSUB], 3cc=fra ext=0
[12:03:10] scan: title 1 has 12 chapters
[12:03:10] scan: chap 1 c=0->0, b=0->223524 (223525), 695720 ms
[12:03:10] scan: chap 2 c=1->1, b=223525->540910 (317386), 945320 ms
[12:03:10] scan: chap 3 c=2->2, b=540911->973216 (432306), 1181600 ms
[12:03:10] scan: chap 4 c=3->3, b=973217->1359680 (386464), 957560 ms
[12:03:10] scan: chap 5 c=4->4, b=1359681->1747129 (387449), 1139800 ms
[12:03:10] scan: chap 6 c=5->6, b=1747130->2138786 (391657), 1092560 ms
[12:03:10] scan: chap 7 c=7->7, b=2138787->2545729 (406943), 1031480 ms
[12:03:10] scan: chap 8 c=8->8, b=2545730->2802452 (256723), 726280 ms
[12:03:10] scan: chap 9 c=9->9, b=2802453->3138566 (336114), 1055000 ms
[12:03:10] scan: chap 10 c=10->10, b=3138567->3369589 (231023), 629560 ms
[12:03:10] scan: chap 11 c=11->11, b=3369590->3482453 (112864), 380040 ms
[12:03:10] scan: chap 12 c=12->13, b=3482454->3643441 (160988), 545160 ms
[12:03:10] scan: aspect = 16:9
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
[12:03:10] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdnav: Language 'en' not found, using 'fr' instead
libdvdnav: Menu Languages available: fr
[12:03:10] scan: title angle(s) 1
[ac3 @ 000001b25c219e40] frame sync error
[12:03:10] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch)
[12:03:11] scan: 10 previews, 720x576, 25.000 fps, autocrop = 76/76/2/0, aspect 16:9, PAR 64:45
[12:03:11] libhb: scan thread found 1 valid title(s)

 # Processing Scan Information ...


 # Scan Finished ...


User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Passthru fails

Post by s55 »

Autopassthru settings are the configuration for the autopassthru encoder selection. If this isn't selected in any of the track lists, it doesn't do anything.
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

Thank you for your feedback. I'm sorry but I don't understand. I'm under the impression that I have selected everything that is needed. Could you help me on this matter?
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

It may me be interesting to notice that if fallback encoder is set to none, the following exception is raised

Code: Select all

An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
   à HandBrakeWPF.ViewModels.AudioViewModel.CanAddTrack(AudioBehaviourTrack track, Audio sourceTrack, AudioEncoder fallback) dans D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\ViewModels\AudioViewModel.cs:ligne 452
   à HandBrakeWPF.ViewModels.AudioViewModel.Add(Audio sourceTrack, Boolean useBehaviourTemplateMode) dans D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\ViewModels\AudioViewModel.cs:ligne 448
   à HandBrakeWPF.ViewModels.AudioViewModel.AddAllRemainingForSelectedLanguages() dans D:\Development\HandBrake\handbrake-release\win\CS\HandBrakeWPF\ViewModels\AudioViewModel.cs:ligne 584
   --- Fin de la trace de la pile d'exception interne ---
   à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   à Caliburn.Micro.ActionMessage.<>c.<.cctor>b__33_0(ActionExecutionContext context)
   à Caliburn.Micro.ActionMessage.Invoke(Object eventArgs)
   à System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   à System.Windows.Controls.Primitives.ButtonBase.OnClick()
   à System.Windows.Controls.Button.OnClick()
   à System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   à System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   à System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   à System.Windows.Input.InputManager.ProcessStagingArea()
   à System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   à System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   à System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   à System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Passthru fails

Post by s55 »

Can you try a nightly to see if you still get that error?
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

same behaviour with latest nightly build
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Passthru fails

Post by s55 »

Any chance you can provide the new stack trace so I can see what line number it's crashing on?
A screenshot of the behaviour screen would also be useful.
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

Yes indeed, sorry I should have done it. I'll do that in few hours
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

Here it is. Sorry for the delay

Code: Select all

An Unknown Error has occurred.
System.Reflection.TargetInvocationException: Une exception a été levée par la cible d'un appel. ---> System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
   à HandBrakeWPF.ViewModels.AudioViewModel.CanAddTrack(AudioBehaviourTrack track, Audio sourceTrack, AudioEncoder fallback) dans C:\HandBrake\hbworkspace\workspace\WindowsGui64\win\CS\HandBrakeWPF\ViewModels\AudioViewModel.cs:ligne 460
   à HandBrakeWPF.ViewModels.AudioViewModel.Add(Audio sourceTrack, Boolean useBehaviourTemplateMode) dans C:\HandBrake\hbworkspace\workspace\WindowsGui64\win\CS\HandBrakeWPF\ViewModels\AudioViewModel.cs:ligne 456
   à HandBrakeWPF.ViewModels.AudioViewModel.AddFirstForSelectedLanguages() dans C:\HandBrake\hbworkspace\workspace\WindowsGui64\win\CS\HandBrakeWPF\ViewModels\AudioViewModel.cs:ligne 550
   --- Fin de la trace de la pile d'exception interne ---
   à System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   à System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   à Caliburn.Micro.ActionMessage.<>c.<.cctor>b__33_0(ActionExecutionContext context)
   à Caliburn.Micro.ActionMessage.Invoke(Object eventArgs)
   à System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   à System.Windows.Controls.Primitives.ButtonBase.OnClick()
   à System.Windows.Controls.Button.OnClick()
   à System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   à System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   à System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   à System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   à System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   à System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   à System.Windows.Input.InputManager.ProcessStagingArea()
   à System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   à System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   à System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   à System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

Any troubleshooting done?
Thank you
Deleted User 13735

Re: Auto Passthru fails

Post by Deleted User 13735 »

You may download MediaInfo (don't install any toolbars) and post your results.
Unfortunately, your logs only tell us something isn't working:-).
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Passthru fails

Post by s55 »

I've not had a change to review the stack trace yet. It's on the todo list for tomorrow or the weekend to track down.
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

musicvid wrote: Thu May 30, 2019 2:34 pm You may download MediaInfo (don't install any toolbars) and post your results.
Unfortunately, your logs only tell us something isn't working:-).
Since I'm working straight with ISO files, I used MakeMKV first to extract the file that will be encoded with HB in order to answer your question. Here it is:

Code: Select all

General
Unique ID                                : 171717831513488598390869364400861392560 (0x812FA6C02A451921872A0157A1CEAEB0)
Complete name                            : C:\Vidéo\camelot\title_t00.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 6.81 GiB
Duration                                 : 2 h 53 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 5 632 kb/s
Encoded date                             : UTC 2019-06-01 07:23:17
Writing application                      : MakeMKV v1.14.3 win(x64-release)
Writing library                          : libmakemkv v1.14.3 (1.3.5/1.4.7) win(x64-release)

Video
ID                                       : 1
ID in the original source medium         : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings                          : CustomMatrix / BVOP
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Format settings, picture structure       : Frame
Codec ID                                 : V_MPEG2
Codec ID/Info                            : MPEG 1 or 2 Video
Duration                                 : 2 h 52 min
Bit rate mode                            : Variable
Bit rate                                 : 5 435 kb/s
Maximum bit rate                         : 8 500 kb/s
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.524
Time code of first frame                 : 10:00:00:00
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
Stream size                              : 6.56 GiB (96%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : DVD-Video

Audio
ID                                       : 2
ID in the original source medium         : 189 (0xBD)128 (0x80)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 2 h 53 min
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 238 MiB (3%)
Title                                    : Stéréo
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Original source medium                   : DVD-Video

Text
ID                                       : 3
ID in the original source medium         : 189 (0xBD)32 (0x20)
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : Picture based subtitle format used on DVDs
Duration                                 : 2 h 52 min
Bit rate                                 : 4 693 b/s
Count of elements                        : 1902
Stream size                              : 5.79 MiB (0%)
Language                                 : French
Default                                  : Yes
Forced                                   : No
Original source medium                   : DVD-Video

Menu
00:00:00.000                             : en:Chapitre 01
00:11:35.720                             : en:Chapitre 02
00:27:21.040                             : en:Chapitre 03
00:47:02.640                             : en:Chapitre 04
01:03:00.200                             : en:Chapitre 05
01:22:00.000                             : en:Chapitre 06
01:40:12.560                             : en:Chapitre 07
01:57:24.120                             : en:Chapitre 08
02:09:30.400                             : en:Chapitre 09
02:27:05.320                             : en:Chapitre 10
02:37:34.960                             : en:Chapitre 11
02:43:54.920                             : en:Chapitre 12

User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Passthru fails

Post by s55 »

The crash happens when you have no tracks setup in the Selection Behaviour screen, and no fallback encoder. So in effect, it doesn't know what to do.

That also indicates your not using auto-passthru at all here. You must have tracks setup in the behaviour selection screen, or you'll get defaults only when tracks are added.

I'll fix the crash but you need to configure this correctly for auto-passthru to work.
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

Thank you for your feedback but I just don't understand
In audio defaults I have:
Track selection behaviour: All matching selected languages
For additional tracks: use first track as a template
- Pane in the middle / chosen Languages English and French are selected
- on the right side / Auto Passthru Behaviour: everything is selected
Fallback encoder: AC3
Automatically add tracks: empty
If I could send you a screenshot I would be pleased to do so.

What is wrong with this setup?
Thank you
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Passthru fails

Post by s55 »

Automatically add tracks: empty
These are templates that will be used to configure the tracks that actually get added in the main audio tab.

You need to add atleast one track here, with the encoder set to "Auto-passthru" to enable the function.

The checkboxes/fallback encoder, define how "autopassthru" behaves only.
example.png
example.png (28.34 KiB) Viewed 420 times
Number8
Novice
Posts: 64
Joined: Fri Dec 26, 2014 11:46 am

Re: Auto Passthru fails

Post by Number8 »

Thank you so much for this clarification. Until I had this explanation, I could not understand why I would need to setup "Automatically add tracks" that is related to the fallback encoder, as long as the audio file that will processed fits the audio encoders that are selected on the right. I could not understand either that "Automatically add tracks" is related to the fallback encoder.
Sorry for that
Thanks again for HB that I have been using for at least 4 years with great satisfaction.
Post Reply