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

[FEATURE] use gaupol as cli tool to set format / encoding / newlines #228

Open
jeandestouches opened this issue Jun 28, 2024 · 1 comment

Comments

@jeandestouches
Copy link

jeandestouches commented Jun 28, 2024

Hello,
Would you consider adding an option to use gaupol as cli tool to set format / encoding / newlines
so it can be used in a bash script to mass convert subtitles ?

Something like :
gaupol --format subrip --encoding utf-8 --newlines unix --output $OUT $FILE

Thanks!

PS: If someone knows a cli tool as reliable as gaupol to do this, I'm interested by your suggestions too. :)

@otsaloma
Copy link
Owner

I don't really have interest in that, but if you can write a tiny amount of Python, you should be able to do this with the aeidon package, which is installed as part of Gaupol. See the first example here: https://otsaloma.io/gaupol/doc/api/aeidon.html

Regarding other tools, ffmpeg might do format conversions, not sure. For encoding and newline conversions you can also use general tools like iconv and fromdos/todos.

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