Skip to content

using filename that gets clobbered after Add All #6121

Closed

Description

@brianmay

Problem Description

When I select Queue -> Add All, all output filenames are unique.

I am using the Doctor Who s02e02 - {title} auto name template.

But when I execute the queue, one job - seemingly at random - always gets the same filename as the last job. Meaning when it processes the last job, it will silently overwrite the file with the last job.

The summary screen for the job shows the correct filename, but the log shows the wrong filename.

I had this with 1.7.3, so tried 1.8.0, and found the same problem.

In the example given, the correct filename is /minion/videos/dvd/Doctor Who s02e02 - 3.mkv but it writes to the /minion/videos/dvd/Doctor Who s02e02 - 13.mkv file instead.

This is a screenshot of the summary view:
out

Activity Log, Crash Log or any other details

[14:19:39] gtkgui: Custom Preset: /General/HQ 720p25 Surround
[14:19:39] Starting work at: Tue Jun 11 14:19:39 2024

[14:19:39] 1 job(s) to process
[14:19:39] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:ac3",
                "Mixdown": "none",
                "PresetEncoder": "copy:ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 15,
                    "Seconds": 1,
                    "Ticks": 81104400
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 11,
                    "Ticks": 44215200
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 17,
                    "Ticks": 17715600
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 20,
                    "Ticks": 28810800
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 42,
                    "Ticks": 14608800
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 48,
                    "Ticks": 25952400
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 32,
                    "Ticks": 13716000
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 3,
                    "Seconds": 31,
                    "Ticks": 18946800
                },
                "Name": "Chapter 8"
            }
        ],
        "ChapterMarkers": true,
        "File": "/minion/videos/dvd/Doctor Who s02e02 - 13.mkv",
        "InlineParameterSets": false,
        "Mux": "mkv",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 4,
                "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": 6,
                "Settings": {
                    "mode": "7"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/1080000"
                }
            },
            {
                "ID": 20,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 8,
                    "crop-right": 0,
                    "crop-top": 2,
                    "height": 574,
                    "width": 712
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 15,
        "Num": 16
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "/dev/sr0",
        "Range": {
            "End": 8,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 3
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Track": 0
            }
        ]
    },
    "Video": {
        "ChromaLocation": 1,
        "ColorInputFormat": 0,
        "ColorMatrix": 6,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 5,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "HardwareDecode": 0,
        "Level": "3.1",
        "MultiPass": false,
        "Options": "",
        "Preset": "slow",
        "Profile": "high",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Quality": 19.0,
        "Tune": "",
        "Turbo": false
    }
}
[14:19:39] CPU: Intel(R) Core(TM) i9-10900KF CPU @ 3.70GHz
[14:19:39]  - Intel microarchitecture Comet Lake
[14:19:39]  - logical processor count: 20
[14:19:39] hb_scan: path=/dev/sr0, title_index=3
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[14:19:39] bd: not a bd - trying as a stream/file instead
[14:19:39] dvd: Region mask 0xfd
[14:19:40] scan: DVD has 13 title(s)
[14:19:40] scan: scanning title 3
[14:19:40] scan: duration is 00:45:23 (2723000 ms)
[14:19:40] pgc_id: 2, pgn: 1: pgc: 0x7ffeb4031d60
[14:19:40] scan: checking audio 1
[14:19:40] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[14:19:40] scan: checking subtitle 1
[14:19:40] scan: id=0x20bd, lang=English (4:3) [VOBSUB], 3cc=eng ext=0
[14:19:40] scan: title 3 has 8 chapters
[14:19:40] scan: chap 1, 901160 ms
[14:19:40] scan: chap 2, 491280 ms
[14:19:40] scan: chap 3, 196840 ms
[14:19:40] scan: chap 4, 320120 ms
[14:19:40] scan: chap 5, 162320 ms
[14:19:40] scan: chap 6, 288360 ms
[14:19:40] scan: chap 7, 152400 ms
[14:19:40] scan: chap 8, 210520 ms
[14:19:40] scan: aspect = 4:3
[14:19:40] scan: decoding previews for title 3
[14:19:40] scan: title angle(s) 1
[14:19:40] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3, 2.0 ch, 192 kbps)

(fr.handbrake.ghb:2379401): Gtk-WARNING **: 14:19:44.533: Trying to snapshot GtkGizmo 0xc35270 without a current allocation
[14:19:48] using bitstream PAR 16:15
[14:19:48] scan: 10 previews, 720x576, 25.000 fps, autocrop = 2/0/8/0, aspect 4:3, PAR 16:15, color profile: 5-1-6, chroma location: left
[14:19:48] libhb: scan thread found 1 valid title(s)
[14:19:48] Starting Task: Encoding Pass
[14:19:48] job configuration:
[14:19:48]  * source
[14:19:48]    + /dev/sr0
[14:19:48]    + title 3, chapter(s) 1 to 8
[14:19:48]  * destination
[14:19:48]    + /minion/videos/dvd/Doctor Who s02e02 - 13.mkv
[14:19:48]    + container: Matroska (libavformat)
[14:19:48]      + chapter markers
[14:19:48]  * video track
[14:19:48]    + decoder: mpeg2video 8-bit (yuv420p)
[14:19:48]      + bitrate 200 kbps
[14:19:48]    + filters
[14:19:48]      + 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)
[14:19:48]      + Decomb (mode=39)
[14:19:48]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[14:19:48]        + frame rate: 25.000 fps -> peak rate limited to 25.000 fps
[14:19:48]      + Crop and Scale (width=712:height=574:crop-top=2:crop-bottom=0:crop-left=8:crop-right=0)
[14:19:48]        + source: 720 * 576, crop (2/0/8/0): 712 * 574, scale: 712 * 574
[14:19:48]    + Output geometry
[14:19:48]      + storage dimensions: 712 x 574
[14:19:48]      + pixel aspect ratio: 16 : 15
[14:19:48]      + display dimensions: 759 x 574
[14:19:48]    + encoder: H.264 (libx264)
[14:19:48]      + preset:  slow
[14:19:48]      + profile: high
[14:19:48]      + level:   3.1
[14:19:48]      + quality: 19.00 (RF)
[14:19:48]      + color profile: 5-1-6
[14:19:48]      + color range: tv
[14:19:48]      + chroma location: left
[14:19:48]  * subtitle track 1, English (4:3) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[14:19:48]  * audio track 1
[14:19:48]    + decoder: English (AC3, 2.0 ch, 192 kbps) (track 1, id 0x80bd)
[14:19:48]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:19:48]    + mixdown: Stereo
[14:19:48]    + encoder: AAC (libavcodec)
[14:19:48]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:19:48]  * audio track 2
[14:19:48]    + decoder: English (AC3, 2.0 ch, 192 kbps) (track 1, id 0x80bd)
[14:19:48]      + bitrate: 192 kbps, samplerate: 48000 Hz
[14:19:48]    + AC3 Passthru
[14:19:48] dvd: Region mask 0xfd
[14:19:49] sync: expecting 68075 video frames
[14:19:49] encx264: encoding at constant RF 19.000000
[14:19:49] encx264: unparsed options: level=3.1:ref=5:direct=auto:subme=8:trellis=2:vbv-bufsize=17500:vbv-maxrate=17500:rc-lookahead=50
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.1, 4:2:0, 8-bit
[14:19:49] sync: first pts video is 0
[14:19:49] sync: "Chapter 1" (1) at frame 1 time 0
[14:19:49] sync: first pts audio 0x80bd is 0
[14:19:49] sync: first pts audio 0x80bd is 0
[14:19:54] sync: first pts subtitle 0x20bd is 1530000

(fr.handbrake.ghb:2379401): Gtk-WARNING **: 14:22:42.467: GtkGrid 0xdbc3e0 (grid) reported min width 248 and natural width 247 in measure() with for_size=-1; natural size must be >= min size

(fr.handbrake.ghb:2379401): Gtk-WARNING **: 14:22:42.958: GtkGrid 0xdbc3e0 (grid) reported min width 248 and natural width 247 in measure() with for_size=-1; natural size must be >= min size
[14:25:04] sync: "Chapter 2" (2) at frame 22530 time 81104400
[14:27:30] sync: "Chapter 3" (3) at frame 34812 time 125319600
[14:28:24] sync: "Chapter 4" (4) at frame 39733 time 143035200

What Operating System are you running?

NixOs 24.05

What version of HandBrake are you running?

1.7.3 and 1.8.0

Where did you download HandBrake from?

Nixpkgs

Activity

  1. sr55 commented on Jun 11, 2024

    @sr55
    Contributor

    We have an open ticket for this here: #6067

    Please see this for any future updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions