<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,<br>
      <br>
    </p>
    <p data-sourcepos="1:1-2:87" dir="auto">Hi,
      I'm trying to resample audio files, I use a shell script and the
      command I use is this.</p>
    <p data-sourcepos="4:1-4:139" dir="auto">But I'm not sure if the
      parameters I write are right, whatever I write as parameters never
      gives me an error, so I can't tell if I'm right:</p>
    <p data-sourcepos="6:1-6:19" dir="auto">the string is this:</p>
    <p data-sourcepos="8:1-8:311" dir="auto"><code>gst-launch-1.0 -v
        filesrc location="$file" ! decodebin ! audioconvert !
        audioresample ! audio/x-raw,
format=S24LE,rate=176400,dithering=tpdf_hf,dithering-threshold=24,noise-shaping=high,quality=10,resample-method=blackman-nuttall,sinc-filter-interpolation=linear,sinc-filter-mode=full
        ! alsasink device=hw:1,0</code></p>
    <p dir="auto" data-sourcepos="1:1-1:26"><code></code>If I change the
      string to:</p>
    <p dir="auto" data-sourcepos="3:1-3:266"><code>gst-launch-1.0 -v
        filesrc location="$file" ! decodebin ! audioconvert !
        audioresample ! audio/x-raw,
format=S24LE,rate=176400,xxxx=xxxx,xxxx=xx,xxxx=xxxx,xxxxx=xxx,resample-method=xxxxx,sinc-filter-interpolation=xxxx,sinc-filter-mode=xxxxx
        ! alsasink device=hw:1,0</code></p>
    <p dir="auto" data-sourcepos="5:1-6:81">still works!
      how do i know that i write the parameter names correctly? and if
      they are passed?<br>
      <br>
    </p>
    <hr width="100%" size="2">
    <p dir="auto" data-sourcepos="5:1-6:81">This is debugging:</p>
    <p dir="auto" data-sourcepos="5:1-6:81"><br>
    </p>
    <pre class="code highlight" lang="plaintext"><span class="line" id="LC1" lang="plaintext">gst-launch-1.0 --gst-debug=audio-*:5, filesrc location="/var/lib/mpd/music/NAS/loss4/Nina Simone/Baltimore/1. Baltimore.flac" ! decodebin ! audioconvert ! audioresample ! audio/x-raw, format=S32LE,rate=176400,dithering=tpdf_hf,dithering-threshold=24,noise-shaping=high,quality=10,resample-method=blackman-nuttall,sinc-filter-interpolation=linear,sinc-filter-mode=full ! alsasink device=hw:1,0</span>
<span class="line" id="LC2" lang="plaintext">Setting pipeline to PAUSED ...</span>
<span class="line" id="LC3" lang="plaintext">Pipeline is PREROLLING ...</span>
<span class="line" id="LC4" lang="plaintext">0:00:00.099125589 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC5" lang="plaintext">0:00:00.099560206 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC6" lang="plaintext">Redistribute latency...</span>
<span class="line" id="LC7" lang="plaintext">0:00:00.103543037 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC8" lang="plaintext">0:00:00.103604428 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC9" lang="plaintext">0:00:00.103661906 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, rate=(int)44100, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC10" lang="plaintext">0:00:00.103696873 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC11" lang="plaintext">0:00:00.103810199 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:1358:gst_audio_converter_new: unitsizes: 4 -> 8</span>
<span class="line" id="LC12" lang="plaintext">0:00:00.103852990 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:727:chain_unpack: unpack format S16LE to S32LE</span>
<span class="line" id="LC13" lang="plaintext">0:00:00.103909172 22457 0x55e97f04a6a0 DEBUG    audio-channel-mixer audio-channel-mixer.c:884:gst_audio_channel_mixer_new_with_matrix: Matrix for 2 -> 2: { { 1.000000, 0.000000 }, { 0.000000, 1.000000 } }</span>
<span class="line" id="LC14" lang="plaintext">0:00:00.103946563 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:869:chain_mix: mix format S32LE, passthrough 1, in_channels 2, out_channels 2</span>
<span class="line" id="LC15" lang="plaintext">0:00:00.103986222 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:963:chain_quantize: depth in 32, out 32</span>
<span class="line" id="LC16" lang="plaintext">0:00:00.104007342 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:975:chain_quantize: using no dither and noise shaping</span>
<span class="line" id="LC17" lang="plaintext">0:00:00.104040605 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:1032:chain_pack: pack format S32LE to S32LE</span>
<span class="line" id="LC18" lang="plaintext">0:00:00.104378540 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, rate=(int)44100, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC19" lang="plaintext">0:00:00.104428183 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC20" lang="plaintext">0:00:00.104482758 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, rate=(int)176400, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC21" lang="plaintext">0:00:00.104526341 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC22" lang="plaintext">0:00:00.104575431 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:1358:gst_audio_converter_new: unitsizes: 8 -> 8</span>
<span class="line" id="LC23" lang="plaintext">0:00:00.104609738 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:727:chain_unpack: unpack format S32LE to S32LE</span>
<span class="line" id="LC24" lang="plaintext">0:00:00.104651101 22457 0x55e97f04a6a0 DEBUG    audio-channel-mixer audio-channel-mixer.c:884:gst_audio_channel_mixer_new_with_matrix: Matrix for 2 -> 2: { { 1.000000, 0.000000 }, { 0.000000, 1.000000 } }</span>
<span class="line" id="LC25" lang="plaintext">0:00:00.104688780 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:869:chain_mix: mix format S32LE, passthrough 1, in_channels 2, out_channels 2</span>
<span class="line" id="LC26" lang="plaintext">0:00:00.104733719 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1411:gst_audio_resampler_new: method 4, bps 4, channels 2</span>
<span class="line" id="LC27" lang="plaintext">0:00:00.104768854 22457 0x55e97f04a6a0 INFO         audio-resampler audio-resampler.c:1554:gst_audio_resampler_update: phase 0 out_rate 176400, in_rate 44100, gcd 44100</span>
<span class="line" id="LC28" lang="plaintext">0:00:00.104801770 22457 0x55e97f04a6a0 INFO         audio-resampler audio-resampler.c:1561:gst_audio_resampler_update: new phase 0/4</span>
<span class="line" id="LC29" lang="plaintext">0:00:00.104822769 22457 0x55e97f04a6a0 INFO         audio-resampler audio-resampler.c:1567:gst_audio_resampler_update: have new options, reconfigure filter</span>
<span class="line" id="LC30" lang="plaintext">0:00:00.104864684 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1164:resampler_calculate_taps: automatically selected full filter, memory 1024 <= 1048576</span>
<span class="line" id="LC31" lang="plaintext">0:00:00.104886367 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1180:resampler_calculate_taps: setting up filter cache</span>
<span class="line" id="LC32" lang="plaintext">0:00:00.104925114 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1198:resampler_calculate_taps: using cubic interpolation to build filter</span>
<span class="line" id="LC33" lang="plaintext">0:00:00.104952042 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:977:alloc_taps_mem: allocate bps 4 n_taps 64 n_phases 12</span>
<span class="line" id="LC34" lang="plaintext">0:00:00.105245038 22457 0x55e97f04a6a0 WARN         audio-resampler audio-resampler.c:275:convert_taps_gint32_c: can't find exact taps</span>
<span class="line" id="LC35" lang="plaintext">0:00:00.105488968 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1035:setup_functions: using cubic interpolation for filter coefficients</span>
<span class="line" id="LC36" lang="plaintext">0:00:00.105519268 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1039:setup_functions: using filter interpolate function 5</span>
<span class="line" id="LC37" lang="plaintext">0:00:00.105547203 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1051:setup_functions: using full filter function</span>
<span class="line" id="LC38" lang="plaintext">0:00:00.105571430 22457 0x55e97f04a6a0 DEBUG        audio-resampler audio-resampler.c:1060:setup_functions: using resample function 5</span>
<span class="line" id="LC39" lang="plaintext">0:00:00.105606625 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:963:chain_quantize: depth in 32, out 32</span>
<span class="line" id="LC40" lang="plaintext">0:00:00.105627829 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:975:chain_quantize: using no dither and noise shaping</span>
<span class="line" id="LC41" lang="plaintext">0:00:00.105652656 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:1032:chain_pack: pack format S32LE to S32LE</span>
<span class="line" id="LC42" lang="plaintext">0:00:00.105680627 22457 0x55e97f04a6a0 INFO         audio-converter audio-converter.c:1394:gst_audio_converter_new: same formats, and passthrough mixing -> only resampling</span>
<span class="line" id="LC43" lang="plaintext">0:00:00.105842107 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, format=(string)S32LE, rate=(int)176400, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channels=(int)2, layout=(string)interleaved, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC44" lang="plaintext">0:00:00.105889062 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC45" lang="plaintext">0:00:00.105998175 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, rate=(int)176400, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC46" lang="plaintext">0:00:00.106041326 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC47" lang="plaintext">0:00:00.106109389 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, rate=(int)176400, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC48" lang="plaintext">0:00:00.106151040 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC49" lang="plaintext">Redistribute latency...</span>
<span class="line" id="LC50" lang="plaintext">0:00:01.390844548 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC51" lang="plaintext">0:00:01.390898547 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC52" lang="plaintext">0:00:01.390958018 22457 0x55e97f04a6a0 DEBUG             audio-info audio-info.c:209:gst_audio_info_from_caps: parsing caps audio/x-raw, rate=(int)44100, format=(string)S32LE, channels=(int)2, layout=(string)interleaved, dithering=(string)tpdf_hf, dithering-threshold=(int)24, noise-shaping=(string)high, quality=(int)10, resample-method=(string)blackman-nuttall, sinc-filter-interpolation=(string)linear, sinc-filter-mode=(string)full, channel-mask=(bitmask)0x0000000000000003</span>
<span class="line" id="LC53" lang="plaintext">0:00:01.390999020 22457 0x55e97f04a6a0 DEBUG         audio-channels audio-channels.c:390:gst_audio_channel_positions_from_mask: converting 2 channels for  channel mask 0x0000000000000003</span>
<span class="line" id="LC54" lang="plaintext">Pipeline is PREROLLED ...</span>
<span class="line" id="LC55" lang="plaintext">Setting pipeline to PLAYING ...</span>
<span class="line" id="LC56" lang="plaintext">Redistribute latency...</span>
<span class="line" id="LC57" lang="plaintext">New clock: GstAudioSinkClock</span>

</pre>
    <hr width="100%" size="2">
    <p dir="auto" data-sourcepos="63:1-63:43">I don't understand if it
      is working or not.</p>
    <p dir="auto" data-sourcepos="65:1-65:26">Anyone willing to help me?<br>
    </p>
    <p dir="auto" data-sourcepos="65:1-65:26">Thanks!<br>
    </p>
    <p dir="auto" data-sourcepos="65:1-65:26"><br>
      Best Regards<br>
      Antonello<br>
    </p>
    <pre class="code highlight" lang="plaintext">
</pre>
    <p data-sourcepos="8:1-8:311" dir="auto"><code></code></p>
  </body>
</html>