info-help audioresample
Filippo
zuschreiben at gmail.com
Sun Jun 26 17:45:41 UTC 2022
Hi,
Hi, I'm trying to resample audio files, I use a shell script and the
command I use is this.
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:
the string is this:
|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|
||If I change the string to:
|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|
still works! how do i know that i write the parameter names correctly?
and if they are passed?
------------------------------------------------------------------------
This is debugging:
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
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
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
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
Redistribute latency...
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
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
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
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
0:00:00.103810199 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:1358:gst_audio_converter_new: unitsizes: 4 -> 8
0:00:00.103852990 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:727:chain_unpack: unpack format S16LE to S32LE
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 } }
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
0:00:00.103986222 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:963:chain_quantize: depth in 32, out 32
0:00:00.104007342 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:975:chain_quantize: using no dither and noise shaping
0:00:00.104040605 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:1032:chain_pack: pack format S32LE to S32LE
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
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
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
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
0:00:00.104575431 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:1358:gst_audio_converter_new: unitsizes: 8 -> 8
0:00:00.104609738 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:727:chain_unpack: unpack format S32LE to S32LE
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 } }
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
0:00:00.104733719 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1411:gst_audio_resampler_new: method 4, bps 4, channels 2
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
0:00:00.104801770 22457 0x55e97f04a6a0 INFO audio-resampler
audio-resampler.c:1561:gst_audio_resampler_update: new phase 0/4
0:00:00.104822769 22457 0x55e97f04a6a0 INFO audio-resampler
audio-resampler.c:1567:gst_audio_resampler_update: have new options,
reconfigure filter
0:00:00.104864684 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1164:resampler_calculate_taps: automatically selected
full filter, memory 1024 <= 1048576
0:00:00.104886367 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1180:resampler_calculate_taps: setting up filter cache
0:00:00.104925114 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1198:resampler_calculate_taps: using cubic
interpolation to build filter
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
0:00:00.105245038 22457 0x55e97f04a6a0 WARN audio-resampler
audio-resampler.c:275:convert_taps_gint32_c: can't find exact taps
0:00:00.105488968 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1035:setup_functions: using cubic interpolation for
filter coefficients
0:00:00.105519268 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1039:setup_functions: using filter interpolate function 5
0:00:00.105547203 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1051:setup_functions: using full filter function
0:00:00.105571430 22457 0x55e97f04a6a0 DEBUG audio-resampler
audio-resampler.c:1060:setup_functions: using resample function 5
0:00:00.105606625 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:963:chain_quantize: depth in 32, out 32
0:00:00.105627829 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:975:chain_quantize: using no dither and noise shaping
0:00:00.105652656 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:1032:chain_pack: pack format S32LE to S32LE
0:00:00.105680627 22457 0x55e97f04a6a0 INFO audio-converter
audio-converter.c:1394:gst_audio_converter_new: same formats, and
passthrough mixing -> only resampling
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
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
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
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
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
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
Redistribute latency...
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
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
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
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
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstAudioSinkClock
------------------------------------------------------------------------
I don't understand if it is working or not.
Anyone willing to help me?
Thanks!
Best Regards
Antonello
||
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220626/d0c25981/attachment-0001.htm>
More information about the gstreamer-devel
mailing list