You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to read with an offset greater than the file duration it hangs instead of returning an empty array.
I tested with a WAV file and there it worked. So it seems to be related to reading encoded files with sox:
The text was updated successfully, but these errors were encountered:
frankenjoe
changed the title
Reading file hangs if offset is greater file duraiton
Reading file may hang if offset is greater file duraiton
Jul 11, 2022
hagenw
changed the title
Reading file may hang if offset is greater file duraiton
Reading file may hang if offset is greater than file duration
Dec 22, 2022
In order to check the exact duration of the file, we also need to convert it first completely to WAV, so I guess we can just go with my proposed change to first convert the whole file.
I have a MP3 encoded stereo file of the following length:
Reading in the full file works:
Also reading with an offset of 3 seconds works:
But when I try to read with an offset greater than the file duration it hangs instead of returning an empty array.
I tested with a WAV file and there it worked. So it seems to be related to reading encoded files with
sox
:The text was updated successfully, but these errors were encountered: