question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing flags to ffmpeg

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
roman-kucommented, Dec 3, 2018

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()
)

1reaction
kkroeningcommented, May 9, 2018

Done. See also #30.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ffmpeg Documentation
After filtering, the frames are passed to the encoder, which encodes them and outputs ... The optional flags prefix can consist of the...
Read more >
How to pass arguments using FFMPEG
I can't understand the reason. Can you help me? public void Func() { string FFMPEG_PATH = Path.Combine( Path.GetDirectoryName ...
Read more >
Custom Output (FFMPEG) needs a way to pass arguments ...
However, I've encountered an issue. VA-API encoders such as hevc_vaapi and h264_vaapi require that the flag/argument `-hwaccel vaapi - ...
Read more >
FFmpeg 2 Pass Encoding
So slower preset will also improve 2 pass. Right? 2. "scale=1920:-2:flags=lanczos" - I will definitely try different scaling algorithms. And ...
Read more >
20+ FFmpeg Commands For Beginners
You can also mention the output file's bitrate using '-ab' flag as shown in the following example. $ ffmpeg -i input.mp4 -vn -ab...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found