Search found 6 matches

by trane5587
19 Apr 2020, 18:54
Forum: Scripting and Automation
Topic: AMC subtitle codepage selection
Replies: 10
Views: 5191

Re: AMC subtitle codepage selection

I think that finally found it if anyone need it this is it:

Code: Select all

find 'path' -name '*.srt' -exec sed -i '1s/^/\xef\xbb\xbf/' {} \;
this will find all your .srt files in the specific directory and then change utf 8 to utf 8 with bom
by trane5587
19 Apr 2020, 10:04
Forum: Scripting and Automation
Topic: AMC subtitle codepage selection
Replies: 10
Views: 5191

Re: AMC subtitle codepage selection

Maybe like this?

find /volume2/Disk.2/Downloads/ -name '*.srt' -type f -exec sed -i '1s/^/\xef\xbb\xbf/'
by trane5587
19 Apr 2020, 09:52
Forum: Scripting and Automation
Topic: AMC subtitle codepage selection
Replies: 10
Views: 5191

Re: AMC subtitle codepage selection

Is that right?

find . -name '*.srt' -type f -exec sed -i '1s/^/\xef\xbb\xbf/'

but how i ll make find to look to specific file?
by trane5587
19 Apr 2020, 09:06
Forum: Scripting and Automation
Topic: AMC subtitle codepage selection
Replies: 10
Views: 5191

Re: AMC subtitle codepage selection

Can i make sed to search all the .srt in folder Downloads and make them utf8 with bom?
by trane5587
18 Apr 2020, 18:45
Forum: Scripting and Automation
Topic: AMC subtitle codepage selection
Replies: 10
Views: 5191

Re: AMC subtitle codepage selection

I m running this via a task on my synology

filebot -script fn:suball /volume2/Disk.2/Downloads/ --lang el -non-strict

the thing is because of greek language the best is to have a utf8 with bom can i write a script at the end of the task? Do you have any idea how to do that?

Thanks.
by trane5587
18 Apr 2020, 17:43
Forum: Scripting and Automation
Topic: AMC subtitle codepage selection
Replies: 10
Views: 5191

Re: AMC subtitle codepage selection

Greetings, I also have this problem the thing is that some devices cant recognize the characters of the .srt file which is UTF-8 but can recognise UTF-8 with BOM or an ANSI. I used the windows-1253 for encoding and working perfectly but only to get subtitles for one file. Can you please be more ...