What's the format for reading camera images?

I’m a beginner so I ask basic questions.
I didn’t know what to look for, so please let me know who you know.When using Opencv
what format is the camera input video applied to?

When saving, you can specify the format, right?
Are the save format and input format the same? Or is the input format specified?