video conversion – ffmpeg command, what is the “best” config to re-encode vidoe youtube?

Let’s say we have a video generated with matplotlib.animation with the code below (while can’t figure how to have the mp4 file with HD 1080p, but we can re-encode with Final cut pro HD 1080p)

Writer = animation.writers['ffmpeg']#code to save the example.mp4
writer = Writer(fps=0.9, codec="h264", bitrate=1000000, metadata=dict(artist="me"))
animator.save('example.mp4', writer=writer)

When this mp4 file is imported into Final Cut, we have the option to make it HD 1080p.

Q: How can “convert” an mp4 file with HD 1080P as planned for youtube use with ffmpeg command?

enter image description here

Read more here: Source link