[FFmpeg-user] How to generate sine-wave mp3 test tone files in one-step?
jd1008 at gmail.com
Mon Mar 28 00:18:13 CEST 2016
On 03/27/2016 03:30 PM, jasonsu at mail-central.com wrote:
> I want to generate mp3 files containing sine-wave test tones.
> They need to be
> 44.1KHz sampled
> 192Kbps bitrate
> 30sec duration
> normalized to 0Db
> I'd like to do it in one cmd line step.
> I've been having a heck of a time putting it together properly.
> I _think_ this works
> ffmpeg -f lavfi \
> -i "sine=frequency=1000:sample_rate=44100:duration=30" \
> -acodec mp3 \
> -b:a 192k \
> ffmpeg-normalize -v -f -u \
> --dir \
> --acodec mp3 \
> --extra-options "-b:a 192k" \
> --level 0 --max \
> I end up with 2 files
> Is there a simpler/correct single cmd line to do this? and only generate/keep one file?
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
There is no ffmpeg-normalize in my version of ffmpeg-2.6.8-1.fc22.x86_64
but I used audacity to normalize it to 0db and exported it as mp3 and
played it back
and works just fine. There is also normalize-0.7.7-10.fc22.x86_64 which
/usr/bin/normalize-ogg -> normalize-mp3
More information about the ffmpeg-user