pbs / pycaption

Python module to read/write popular video caption formats
Apache License 2.0
256 stars 136 forks source link

Dynamic FPS selection on DFXPReader #292

Open Marcelpv96 opened 2 years ago

Marcelpv96 commented 2 years ago

The methods _convert_clock_time_to_microsecondsand _convert_time_count_to_microseconds are fixed to 30fps.

The modified code uses 30fps by default but also looks for an alternative frame rate on the CloseCaption file.

mnc537 commented 2 years ago

Hello @ana-nichifor! Can you take a look to this? I'm reading closed captions at 23.976 fps and the result is drifted as a consequence of that 30fps manually set.