Habe eine mp3 Datei, bei der ich bei der Musik einen 5 Sekunden FadeIn und einen 5 Sekunden FadeOut haben will.
Als tool verwendet ich ffmpeg&sox, wobei ffmpeg nur das Dekodieren und sox den Fade übernehmen soll.
Wenn ich:
ffmpeg -y -threads 8 -loglevel fatal -i "iId_1_aid_0_14_13_05_5410_01.mp3" -ac 2 -ar 48000 -f sox - | sox --multi-threaded --buffer 524288 -S -t sox - --endian little -b 24 -t wav "test.wav" fade l 00:00:05.000 00:00:05.000
verwende habe ich aber als output eine 5 Sekunden Audiodatei. (Der Input ist 17 Sekunden lang.)
Irgendwie verstehe ich anscheinend die Dokumentation nicht richtig.
ZitatAlles anzeigenfade [type] fade-in-length [stop-position(=) [fade-out-length]]
Apply a fade effect to the beginning, end, or both of the audio.
An optional type can be specified to select the shape of the fade curve: q for quarter of a sine wave, h for half a sine wave, t for linear (‘triangular’) slope, l for logarithmic, and p for inverted parabola. The default is logarithmic.
A fade-in starts from the first sample and ramps the signal level from 0 to full volume over the time given as fade-in-length. Specify 0 if no fade-in is wanted.
For fade-outs, the audio will be truncated at stop-position and the signal level will be ramped from full volume down to 0 over an interval of fade-out-length before the stop-position. If fade-out-length is not specified, it defaults to the same value as fade-in-length. No fade-out is performed if stop-position is not specified. If the audio length can be determined from the input file header and any previous effects, then −0 (or, for historical reasons, 0) may be specified for stop-position to indicate the usual case of a fade-out that ends at the end of the input audio stream.
Any time specification may be used for fade-in-length and fade-out-length.
Quelle: http://sox.sourceforge.net/sox.html
-> Kann mal jemand ein Beispiel posten wie es gehen müsste?
Wenn ich:
verwende sind die ersten 5 und die letzten 5 Sekunden einfach still.
Cu Selur