[FFmpeg-user] Streaming Syntax error

Moritz Barsnick barsnick at gmx.net
Mon Jul 24 17:29:16 EEST 2017

On Mon, Jul 24, 2017 at 19:00:42 +0530, Mettavihari D wrote:
> I do not understand where you get that from.
> I have different versions on the machine, but I have given the path to
> the latest version in the script.

Well, I was wondering why it worked on the command line, but not in the
script. But actually: I read the error message incorrectly. Sorry. :-(

> [root at spancro /]# which libx264

That's not a binary, so "which" won't find it. (Nevermind, you gave
enough info by listing your files.)

> [root at spancro ~]# ffmpeg -encoders

I seriously hope you're not running your conversion as root!

>  V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)

That's fine.

This is what I missed to interpret correctly:
> [NULL @ 0x3ca53a0] Unable to find a suitable output format for 'libx264'
> libx264: Invalid argument

It means ffmpeg sees "libx264" in your command line as an output
"file"/URI. Unfortunately, we can't read the complete command line from

> ffmpeg_pids.append(subprocess32.Popen([args['ffmpeg_path'], '-re',
> '-i',   args['content_dir']+'/'+args['channel_dir']+"/"+dharmavahini,
> '-acodec', 'libfdk_aac', '-b:a 128k', '-vcodec', 'libx264', '-b:v
> 1500k', '-minrate 1500k -maxrate 1500k -bufsize 1500k', '-f', 'flv',
> '-metadata', 'streamName=xlarge', 'rtmp://site']))

(BTW, you merge some arguments, and some not. Even if it works, that's

We need to see the proper *actual* command line used (minus your hidden
output URL). You can add "-loglevel debug", that will (among others)
display ffmpeg's option parsing. But the easiest way is to add the
option "-report" to the command line, and then grab the resulting file
"ffmpeg-20170724-162640.log" (or similar) and show us the top where it

Command line:
ffmpeg -report [...]
ffmpeg version N-86781-gd8f1982 Copyright (c) 2000-2017 the FFmpeg developers

That should give us an indication of what ffmpeg is interpreting.


More information about the ffmpeg-user mailing list