Wrong output filename when adding multiple files

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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
mkay1610
Posts: 4
Joined: Wed May 22, 2024 4:46 pm

Wrong output filename when adding multiple files

Post by mkay1610 »

Description of problem or question:

When adding a Source Folder and then adding multiple files to the queue, the output filename for the first file is the filename of the last file in batch convert. This results in the file being overwritten when the last file in batch is being converted, so file #1 has to be reconverted, when not renamed by hand.


Steps to reproduce the problem (If Applicable):

Add multiple files. Either by clicking "Add All" or by manually selecting files from loaded batch.


HandBrake version (e.g., 1.0.0):

1.7.0 - 1.8.0 (I hoped this was fixed with 1.8.0, but it wasn't)


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

Ubuntu 22.04 and Ubuntu 24.04. Both HandBreak versions built from official Git repo.


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

[18:43:07] gtkgui: Modified Custom Preset: /General/1M
[18:43:07] Starting work at: Wed May 22 18:43:07 2024

[18:43:07] 1 job(s) to process
[18:43:07] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 64,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_haac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_haac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 64,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "fdk_haac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "fdk_haac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 1
            }
        ],
        "CopyMask": [],
        "FallbackEncoder": "fdk_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 35,
                    "Seconds": 28,
                    "Ticks": 191525760
                },
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "[#######]/the.big.door.prize.s01e10.german.dl .720p.web.h264-wvf.mkv",    <------------
        "InlineParameterSets": false,
        "Mux": "mkv",
        "Options": {
            "IpodAtom": false,
            "Optimize": false
        }
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 11,
                "Settings": {
                    "mode": 0
                }
            },
            {
                "ID": 20,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 582,
                    "width": 1280
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 1,
        "Num": 1
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "HWDecode": 0,
        "Path": "[#######]/the.big.door.prize.s01e01.german.dl.720p.web.h264-wvf.mkv",    <------------
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 8
    },
    "Subtitle": {
        "Search": {
            "Burn": false,
            "Default": true,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": true,
                "Forced": false,
                "Name": "Deutsch (forced)",
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Name": "Deutsch",
                "Track": 1
            }
        ]
    },
    "Video": {
        "Bitrate": 1600,
        "ChromaLocation": 3,
        "ColorInputFormat": 0,
        "ColorMatrix": 1,
        "ColorOutputFormat": 0,
        "ColorPrimaries": 1,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "HardwareDecode": 0,
        "Level": "auto",
        "MultiPass": true,
        "Options": "",
        "Preset": "slow",
        "Profile": "high",
        "QSV": {
            "AdapterIndex": 0,
            "AsyncDepth": 0,
            "Decode": false
        },
        "Tune": "film",
        "Turbo": true
    }
}
[18:43:07] CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
[18:43:07]  - Intel microarchitecture Ivy Bridge
[18:43:07]  - logical processor count: 8
[18:43:07] hb_scan: path=[#####]/the.big.door.prize.s01e01.german.dl.720p.web.h264-wvf.mkv, title_index=8
Input #0, matroska,webm, from '[#####]/the.big.door.prize.s01e01.german.dl.720p.web.h264-wvf.mkv':
  Metadata:
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2023-03-29T14:51:55.000000Z
  Duration: 00:35:28.06, start: 0.000000, bitrate: 5421 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1422x646 [SA                                                                                                                                                             R 1:1 DAR 711:323], 23.98 fps, 23.98 tbr, 1k tbn (default)
      Metadata:
        BPS-eng         : 3883193
        DURATION-eng    : 00:35:28.043000000
        NUMBER_OF_FRAMES-eng: 51022
        NUMBER_OF_BYTES-eng: 1032950465
        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-29 14:51:55
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(ger): Audio: eac3 (Dolby Digital Plus + Dolby Atmos), 48000 Hz, 5.                                                                                                                                                             1(side), fltp, 768 kb/s (default)
      Metadata:
        BPS-eng         : 768000
        DURATION-eng    : 00:35:28.064000000
        NUMBER_OF_FRAMES-eng: 66502
        NUMBER_OF_BYTES-eng: 204294144
        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-29 14:51:55
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: eac3 (Dolby Digital Plus + Dolby Atmos), 48000 Hz, 5.                                                                                                                                                             1(side), fltp, 768 kb/s
      Metadata:
        BPS-eng         : 768000
        DURATION-eng    : 00:35:28.064000000
        NUMBER_OF_FRAMES-eng: 66502
        NUMBER_OF_BYTES-eng: 204294144
        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-29 14:51:55
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(ger): Subtitle: subrip (srt) (default) (forced)
      Metadata:
        title           : Deutsch (forced)
        BPS-eng         : 1
        DURATION-eng    : 00:33:37.518000000
        NUMBER_OF_FRAMES-eng: 19
        NUMBER_OF_BYTES-eng: 437
        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-29 14:51:55
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(ger): Subtitle: subrip (srt)
      Metadata:
        title           : Deutsch
        BPS-eng         : 67
        DURATION-eng    : 00:35:14.740000000
        NUMBER_OF_FRAMES-eng: 487
        NUMBER_OF_BYTES-eng: 17971
        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-29 14:51:55
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(eng): Subtitle: subrip (srt)
      Metadata:
        title           : English
        BPS-eng         : 68
        DURATION-eng    : 00:32:59.897000000
        NUMBER_OF_FRAMES-eng: 474
        NUMBER_OF_BYTES-eng: 16844
        _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
        _STATISTICS_WRITING_DATE_UTC-eng: 2023-03-29 14:51:55
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[18:43:07] scan: decoding previews for title 8
[18:43:07] scan: audio 0x1: eac3, rate=48000Hz, bitrate=768000 Deutsch (E-AC3 Do                                                                                                                                                             lby Digital Plus + Dolby Atmos, 5.1 ch, 768 kbps)
[18:43:07] scan: audio 0x2: eac3, rate=48000Hz, bitrate=768000 English (E-AC3 Do                                                                                                                                                             lby Digital Plus + Dolby Atmos, 5.1 ch, 768 kbps)
[18:43:08] using container PAR 1:1
[18:43:08] scan: 10 previews, 1422x646, 23.976 fps, autocrop = 0/0/0/0, aspect 2                                                                                                                                                             .20:1, PAR 1:1, color profile: 1-1-1, chroma location: topleft
[18:43:08] libhb: scan thread found 1 valid title(s)
[18:43:08] Skipping subtitle scan.  No suitable subtitle tracks.
[18:43:08] Starting Task: Analysis Pass
[18:43:08] job configuration:
[18:43:08]  * source
[18:43:08]    + [#####]/big door/the.big.door.prize.s01e01.german.dl.720p.web.h264-wvf.mkv   <-----------------------
[18:43:08]    + title 8, chapter(s) 1 to 1
[18:43:08]    + container: matroska,webm
[18:43:08]    + data rate: 5421 kbps
[18:43:08]  * destination
[18:43:08]    + [#####]/the.big.door.prize.s01e10.german.dl.720p.web.h264-wvf.mkv  <---------------------------
[18:43:08]    + container: Matroska (libavformat)
[18:43:08]  * video track
[18:43:08]    + decoder: h264 8-bit (yuv420p)
[18:43:08]    + filters
[18:43:08]      + Framerate Shaper (mode=0)
[18:43:08]        + frame rate: same as source (around 23.976 fps)
[18:43:08]      + Crop and Scale (width=1280:height=582:crop-top=0:crop-bottom=0                                                                                                                                                             :crop-left=0:crop-right=0)
[18:43:08]        + source: 1422 * 646, crop (0/0/0/0): 1422 * 646, scale: 1280                                                                                                                                                              
Post Reply