I have been trying to create a sine wave with avconv. I have read online that avconv is very similar to ffmpeg and much of the syntax of one should be almost identical to be used in the other. Searching around online tells me that generating a sine wave can be done in ffmpeg like so:
ffmpeg -f lavfi -i "sine=frequency=1000:duration=5" test.wavI have tried the same code in avconv, however it doesn't work and I get:
Unknown input format: 'lavfi'I was wondering if there was a way to create a sine wave in avconv and if someone could clarify how lavfi commands can be used in avconv.
1 Answer
avconv and ffmpeg do not have the same functionality: avconv is missing many features (-f lavfi) and filters (sine and aevalsrc). Because avconv lacks these I don't see a way to generate a sine with it.
Your Raspbian must be old because, according to repology, both Raspbian Stable and Oldstable use FFmpeg and not Libav (avconv).
Solutions:
One obvious but possibly impractical solution is to upgrade your Raspbian and use
ffmpegfrom the repo.Compile
ffmpeg.Find a static build. johnvansickle.com offers
ffmpegfor arm64, armhf, and armel. Maybe one of those will work on whatever Raspberry device you have.