Ffmpeg-python: Passing flags to ffmpeg

Created on 2 Feb 2018  路  5Comments  路  Source: kkroening/ffmpeg-python

I would like to pass on the following flags to ffmpeg

.-nostdin 
 -loglevel error

Is it possible ?
The nostdin flag is required because ffmpeg swallows stdin. More info here.
The loglevel parameter would help a lot in reducing the verbosity of the ffmpeg output

Most helpful comment

For anybody that needs an example (like I did):

(
    ffmpeg
    .input(in_filename, ss=time)
    .output(out_filename, vframes=1)
    .global_args('-loglevel', 'error')
    .global_args('-y')
    .run()
)

All 5 comments

I guess you just need do ffmpeg.intput('filename', nostdin=None)

@metaphox Dint know that one. Shouldn't that be likeffmpeg.input('filename', nostdin=true) ?
Also i guess passing -loglevel would be resolved when issue #30 is fixed

@kishaningithub That's correct

Done. See also #30.

For anybody that needs an example (like I did):

(
    ffmpeg
    .input(in_filename, ss=time)
    .output(out_filename, vframes=1)
    .global_args('-loglevel', 'error')
    .global_args('-y')
    .run()
)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prajwal-mulkalwar picture prajwal-mulkalwar  路  6Comments

reformstudios picture reformstudios  路  3Comments

CNugteren picture CNugteren  路  5Comments

Woolwit picture Woolwit  路  4Comments

roman-ku picture roman-ku  路  4Comments