Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ailed to read frame size: Could not seek to 1026 #24

Open
gersooonn opened this issue May 30, 2024 · 10 comments
Open

ailed to read frame size: Could not seek to 1026 #24

gersooonn opened this issue May 30, 2024 · 10 comments

Comments

@gersooonn
Copy link

It stopped working for me, now I'm displaying this error in all the .srt files I use
[mp3 @ 0x57ff4b431c80] Failed to read frame size: Could not seek to 1026.
/tmp/tmplxc7l66i/15.mp3: Invalid argument
Traceback (most recent call last):
File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 346, in
main()
File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 332, in main
asyncio.get_event_loop().run_until_complete(
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 251, in _main
last_end += get_duration(j)
File "/content/drive/MyDrive/edge-srt-to-speech/src/edge_srt_to_speech/main.py", line 39, in get_duration
duration = subprocess.check_output(
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ffprobe', '-v', 'error', '-show_entries', 'format=duration', '-of', 'default=noprint_wrappers=1:nokey=1', '/tmp/tmplxc7l66i/15.mp3']' returned non-zero exit status 1.

image

@rany2
Copy link
Owner

rany2 commented May 30, 2024

Even if you install the version from master?

@gersooonn
Copy link
Author

gersooonn commented May 30, 2024

I'll try it here and see if it works.
One question, sometimes in the generated audio section the voice speeds up very quickly making it impossible to understand, how can I improve this?
Could it be due to the .srt subtitle format, having many lines in a short period of time?

@gersooonn
Copy link
Author

I can't, I sent you the link to the colab I'm using
https://colab.research.google.com/drive/13qbG1X-IyJtb6rAOGXAII7O1jo2rLkiI?usp=sharing

image

@rany2
Copy link
Owner

rany2 commented May 31, 2024

This only happened after the upgrade to edge-tts 6.1.12?

@gersooonn
Copy link
Author

It seems so, after edge-tts 6.1.12 was uploaded, I couldn't get it to run. Did you take a look at this Colab I sent you?

@rany2
Copy link
Owner

rany2 commented Jun 2, 2024

Can you share your legenda.srt? I can't reproduce.

@gersooonn
Copy link
Author

legenda.srt.txt
I sent it to you, you have to remove the .txt section because here on Github it doesn't accept .srt

@rany2
Copy link
Owner

rany2 commented Jun 3, 2024

I can't reproduce it still... maybe Colab is the one having its IP blocked?

@gersooonn
Copy link
Author

image
I don't know, when I open the link it works. Do you have discord so we can talk, see if we find this error?
image

@rany2
Copy link
Owner

rany2 commented Jun 6, 2024

My discord is simply @rany2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants