[FFmpeg-user] Streaming Syntax error

Moritz Barsnick barsnick at gmx.net
Tue Jul 25 13:20:18 EEST 2017


On Tue, Jul 25, 2017 at 14:39:10 +0530, Mettavihari D wrote:
> Reading option '-b:a' ... matched as option 'b' (video bitrate (please
> use -b:v)) with argument '128k'.
> Reading option '-vcodec' ... matched as option 'vcodec' (force video
> codec ('copy' to copy stream)) with argument 'libx264'.
> Reading option '-b:v' ... matched as option 'b' (video bitrate (please
> use -b:v)) with argument '1500k'.

Indeed, that's weird.

I just tried this:
$ ffmpeg -report -f lavfi -i testsrc2 -f lavfi -i anoisesrc -map 0 -map 1 -c:a aac -b:a 128k -c:v libx264 -b:v 1500k -t 3 -f null -

and the report said:

Command line:
ffmpeg -report -f lavfi -i testsrc2 -f lavfi -i anoisesrc -map 0 -map 1 -c:a aac -b:a 128k -c:v libx264 -b:v 1500k -t 3 -f null -
ffmpeg version N-86781-gd8f1982 Copyright (c) 2000-2017 the FFmpeg developers
[...]
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'aac'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '128k'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1500k'.

The "-b" parsing works okay (I checked with a different, non-default
bitrate), the warning is just broken/misleading/doesn't belong there.

Moritz


More information about the ffmpeg-user mailing list