deew icon indicating copy to clipboard operation
deew copied to clipboard

[BUG] Ampersand in filename causes `dee` failure.

Open bpoxy opened this issue 1 year ago • 0 comments

Description of the the bug An input file containing & causes the dee call to fail.

Version 2.9.3

OS Windows 10 x64

Example

deew -f ddp -i "B:\Harold & Kumar Go to White Castle (2004).mkv" -la -k
                 Encoding summary
┌─────────────────┬──────────────────────────────┐
│ Version         │ 2.9.3                        │
│ Latest          │ 2.9.3                        │
├─────────────────┼──────────────────────────────┤
│ DEE version     │ 5.2.1                        │
│ ffmpeg version  │ 5.1.1-essentials_...         │
│ ffprobe version │ 5.1.1-essentials_...         │
├─────────────────┼──────────────────────────────┤
│ Input           │                              │
│ Channels        │ 7.1                          │
│ Bit depth       │ 24                           │
├─────────────────┼──────────────────────────────┤
│ Output          │                              │
│ Format          │ DDP                          │
│ Channels        │ 7.1                          │
│ Bitrate         │ 1024 kbps                    │
│ Dialnorm        │ auto (0)                     │
├─────────────────┼──────────────────────────────┤
│ Other           │                              │
│ Files           │ 1                            │
│ Max instances   │ 6                            │
│ Delay           │ 0 ms or parsed from filename │
│ Temp path       │ B:\Utilities\deew\temp       │
└─────────────────┴──────────────────────────────┘

Running the following commands:
ffmpeg -y -drc_scale 0 -i B:\Harold & Kumar Go to White Castle (2004).mkv -map 0:a:0 -c pcm_s24le -filter_complex
"[a:0]pan=7.1|c0=c0|c1=c1|c2=c2|c3=c3|c4=c6|c5=c7|c6=c4|c7=c5" -rf64 always B:\Utilities\deew\temp\Harold & Kumar Go to
White Castle (2004).wav && dee -x B:\Utilities\deew\temp/Harold_&_Kumar_Go_to_White_Castle_(2004).xml

wav: Storage: File "B:\Utilities\deew\temp\Harold & Kumar Go to White Castle (2004).wav" does not exist.
wav: DEE Exception: Could not access mediainfo input file. ().
input[0]:audio[0]:wav[0]: Input stage (input[0]:audio[0]:wav[0]) run failed.
wav: Storage: File "B:\Utilities\deew\temp\Harold & Kumar Go to White Castle (2004).wav" does not exist.
wav: DEE Exception: Could not access mediainfo input file. ().
input[0]:audio[0]:wav[0]: Input stage (input[0]:audio[0]:wav[0]) run failed.
[ DEE: measure | Harold & Kumar Go to Whit... ] ---------------------------------------- 100.00%

xml

<?xml version="1.0" encoding="utf-8"?>
<job_config>
  <input>
    <audio>
      <wav version="1">
        <file_name>"Harold &amp; Kumar Go to White Castle (2004).wav"</file_name>
        <timecode_frame_rate>not_indicated</timecode_frame_rate>
        <offset>auto</offset>
        <ffoa>auto</ffoa>
        <storage>
          <local>
            <path>"B:\Utilities\deew\temp"</path>
          </local>
        </storage>
      </wav>
    </audio>
  </input>
  <filter>
    <audio>
      <pcm_to_ddp version="3">
        <loudness>
          <measure_only>
            <metering_mode>1770-3</metering_mode>
            <dialogue_intelligence>true</dialogue_intelligence>
            <speech_threshold>20</speech_threshold>
          </measure_only>
        </loudness>
        <encoder_mode>ddp71</encoder_mode>
        <bitstream_mode>complete_main</bitstream_mode>
        <downmix_config>off</downmix_config>
        <data_rate>1024</data_rate>
        <timecode_frame_rate>not_indicated</timecode_frame_rate>
        <start>0:00:00.005333</start>
        <end>end_of_file</end>
        <time_base>file_position</time_base>
        <prepend_silence_duration>0.0</prepend_silence_duration>
        <append_silence_duration>0.0</append_silence_duration>
        <lfe_on>true</lfe_on>
        <dolby_surround_mode>not_indicated</dolby_surround_mode>
        <dolby_surround_ex_mode>no</dolby_surround_ex_mode>
        <user_data>-1</user_data>
        <drc>
          <line_mode_drc_profile>music_light</line_mode_drc_profile>
          <rf_mode_drc_profile>music_light</rf_mode_drc_profile>
        </drc>
        <custom_dialnorm>0</custom_dialnorm>
        <lfe_lowpass_filter>true</lfe_lowpass_filter>
        <surround_90_degree_phase_shift>false</surround_90_degree_phase_shift>
        <surround_3db_attenuation>false</surround_3db_attenuation>
        <downmix>
          <loro_center_mix_level>-3</loro_center_mix_level>
          <loro_surround_mix_level>-3</loro_surround_mix_level>
          <ltrt_center_mix_level>-3</ltrt_center_mix_level>
          <ltrt_surround_mix_level>-3</ltrt_surround_mix_level>
          <preferred_downmix_mode>loro</preferred_downmix_mode>
        </downmix>
        <allow_hybrid_downmix>false</allow_hybrid_downmix>
        <embedded_timecodes>
          <starting_timecode>off</starting_timecode>
          <frame_rate>auto</frame_rate>
        </embedded_timecodes>
      </pcm_to_ddp>
    </audio>
  </filter>
  <output>
    <ec3 version="1">
      <file_name>"Harold &amp; Kumar Go to White Castle (2004).ec3"</file_name>
      <storage>
        <local>
          <path>"B:\"</path>
        </local>
      </storage>
    </ec3>
  </output>
  <misc>
    <temp_dir>
      <clean_temp>true</clean_temp>
      <path>"B:\Utilities\deew\temp"</path>
    </temp_dir>
  </misc>
</job_config>

bpoxy avatar Oct 06 '22 21:10 bpoxy