Open rpet opened 3 years ago
El problema parece estar en este trozo de código en podcast_audio_process:
ffmpeg \
-hide_banner \
-i $1 \
-filter_complex "[0:a]${pan}[a]; \
[a]highpass=frequency=80[a]; \
[a]agate=mode=downward:range=-15dB:threshold=${noisegate_threshold}dB: \
ratio=3:attack=1.5:release=120:knee=10dB[a]; \
[a]ladspa=file=${compressor_so}:p=${compressor_name}:c=c0=0|c1=1.5ms|c2=4ms| \
c3=${compressor_upper_threshold}db|c4=6|c5=3db[a];
[a]ladspa=file=${compressor_so}:p=${compressor_name}:c=c0=0|c1=2ms|c2=12ms| \
c3=${compressor_lower_threshold}db|c4=2|c5=8db[a]
" \
-map "[a]" \
-c:a flac -ar ${AUDIO_RATE} -sample_fmt ${AUDIO_FMT} -compression_level 1 \
${td}/audio_gated_compressed.flac
Según la documentación del filtro agate
la opción mode
está contemplada. Supongo que el problema es debido a la versión incluida en Debian.
Dado que el valor por defecto para mode
sería downward
podemos eliminar esa parte de la configuración, lo cual parece surtir efecto porque ahora pasamos a un error diferente:
$ ./aeschylus ./config_rafa /tmp/popo
Produce final edit from pre_edit.nut? [Y/n]
Edit audio before normalisation? [y/N]
Average signal level ([dB (e.g. -18) | audacity]): -10
===> Detect stereo/mono: stereo
===> Apply noisegate and compressor to audio
[nut @ 0x563e9605bc00] decoding for stream 1 failed
Input #0, nut, from 'pre_edit.nut':
Metadata:
encoder : Lavf58.20.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: flac ([172][241][0][0] / 0xF1AC), 48000 Hz, stereo, s16 (default)
Metadata:
encoder : Lavc58.35.100 flac
Stream #0:1: Video: h264 (High 4:4:4 Predictive) (H264 / 0x34363248), yuv420p, 1920x1080, 30 tbr, 61440 tbn, 60 tbc (default)
Metadata:
encoder : Lavc58.35.100 libx264
Stream mapping:
Stream #0:0 (flac) -> anull
ladspa -> Stream #0:0 (flac)
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid argument
Output #0, flac, to '/tmp/tmp.0M465OoJpN/audio_gated_compressed.flac':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16, 128 kb/s (default)
Metadata:
encoder : Lavc58.35.100 flac
size= 8kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
Subida la modificación en el commit 8ee77154afcd20294afde5b39c345dd477cf65aa