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.

ffmpeg command from User Guide gives an error

See original GitHub issue

When I run ffmpeg -r 20 -b 1800 -i bloch_%01d.png bloch.mp4 from the User Guide’s Generating Images for Animation section I get the following error:

Option b (video bitrate (please use -b:v)) cannot be applied to input url %04d.png -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file bloch_%01d.png.
Error opening input files: Invalid argument

What works for me instead is this: ffmpeg -r 20 -i bloch_%01d.png -pix_fmt yuv420p bloch.mp4

Note: personally I print files as zeropadded 4-digit number, so I have %04d.png instead of bloch_%01d.png.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
hodgestarcommented, May 14, 2021

@WingCode Apologies for the lack of label. UnitaryHack label added.

0reactions
nathanshammahcommented, May 14, 2021

@WingCode please go on!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors - FFmpeg Wiki
This message can occur when the -map option is used to reference an input that does not exist. For example, if you have...
Read more >
FFMPEG command suddenly gives error? - audio - Super User
Below is my command for FFMPEG to batch merge audio files with an image. ... All of a sudden, it gives me the...
Read more >
ffmpeg command gives error when used in python
1 Answer 1 ... Got the error. The input file contains timestamps each one on a new line so it was taking the...
Read more >
20+ FFmpeg Commands For Beginners - OSTechNix
In this guide, I will be explaining how to use FFmpeg multimedia framework to do various audio, video transcoding and conversion operations with...
Read more >
Using FFmpeg with NVIDIA GPU Hardware Acceleration
1. Use -vsync 0 option with decode to prevent FFmpeg from creating output YUV with duplicate and extra frames. 2. Msys2 gives errors...
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