fix: improve video processing fps assignment logic (#42009)
* fix: improve video processing fps and do_sample_frames assignment logic
* fix: set return_metadata=True to get metadata
* reformat the modular file
* fix typo
* revert flag change and fix fps assignment
* Taking 'num_frames' into considered.
Avoid error when 'num_frames' is passed rather than 'fps'.
* fix
* fix: avoid potential reference before assignment error
* fix
* add 'sample_fps' to 'VideoMetadata'
* fix missing comma
* fix trailing whitespace
* Handle different 'sample_indices_fn'
* Cleaning white space
* import callable from collections.abc
* calculate sampled_fps using indices
* correct the order
* fix
* properly check value in kwargs
* handle sampled_fps as property
* remove duplicated definition
* fix
* fix
* add safety check
---------
Co-authored-by: Raushan Turganbay <raushan@huggingface.co>