Filebot CLI (Linux) truncating subtitle downloads
Posted: 29 Apr 2020, 15:53
This is a problem that I have been working on troubleshooting for a few months - but finally decided to ask for help.
Firstly, I use Manjaro Linux - rolling release, all up to date.
Here are the filebot install details. It is licenced, but I have obscured the licence key
filebot -script fn:sysinfo
FileBot 4.9.1 (r7372) JDK8
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-20 (r634)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 1.8.0_242
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1.8 GB Max Memory / 58 MB Used Memory
OS: Linux (amd64)
HW: Linux Hathi 5.6.7-1-MANJARO #1 SMP PREEMPT Thu Apr 23 10:50:31 UTC 2020 x86_64 GNU/Linux
STORAGE: ext4 [/] @ 92 GB
DATA: /home/tlarcombe/.config/filebot
Package: AUR
License: FileBot License PXXXXXXXX (Valid-Until: 2021-03-05)
Normally I don't use the GUI - the reason is, that because of something (which might be my desktop theme), when I click the match button to choose TheMovieDB, TheTVDB etc - the whole menu is blank. It doesn't worry me too much because I prefer to work with the CLI anyway.
Onto the problem:
When I download subtitles, the resulting .srt file is not complete. Example:
filebot -get-subtitles "The.Birds.1963.HDTV.x264.YIFY.mp4" --lang en --encoding utf8
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [The.Birds.1963.HDTV.x264.YIFY.en.srt] from [OpenSubtitles]
Export [The.Birds.1963.HDTV.x264.YIFY.en.srt] as [null / UTF-8]
Writing [The.Birds.1963.HDTV.x264.YIFY.en.srt] to [The.Birds.1963.HDTV.x264.YIFY.eng.srt]
It all seems to work ok, but the last few lines of the .srt file are:
1055
01:35:58,951 --> 01:36:00,409
- Where will we go?
- I don't know.
1056
01:36:00,577 --> 01:36:02,534
I think we're safe here
for the time being.
The file is 4877 lines long and finishes about 20mins short of the movie length.
As a comparison, I used the Filebot GUI to get the same subtitles. The end of this new file is:
1117
01:57:51,025 --> 01:57:55,354
- They haven't harmed anyone.
- Alright. Bring them.
1118
01:57:56,305 --> 01:58:02,832
Support us and become VIP member
to remove all ads from www.OpenSubtitles.org
Now 5158 lines.
This problem doesn't just affect movie subtitles, or English subtitles. It's not 'big' files - because I notice the same behaviour downloading subtitles for series episodes in English and Greek.
Often the file are truncated in the middle of subtitle line.
There doesn't seem to be any specific cut off point, except it loses about the last 15% of a file - so in a 1hr episode it will download maybe 50(ish) minutes. In a movie it will go way past the 50m mark - maybe losing the last 10-20 mins of the movie.
I can't figure out why GUI works, but CLI fails like this.
Thank you in advance for any guidance.
Firstly, I use Manjaro Linux - rolling release, all up to date.
Here are the filebot install details. It is licenced, but I have obscured the licence key
filebot -script fn:sysinfo
FileBot 4.9.1 (r7372) JDK8
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-04-20 (r634)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 1.8.0_242
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1.8 GB Max Memory / 58 MB Used Memory
OS: Linux (amd64)
HW: Linux Hathi 5.6.7-1-MANJARO #1 SMP PREEMPT Thu Apr 23 10:50:31 UTC 2020 x86_64 GNU/Linux
STORAGE: ext4 [/] @ 92 GB
DATA: /home/tlarcombe/.config/filebot
Package: AUR
License: FileBot License PXXXXXXXX (Valid-Until: 2021-03-05)
Normally I don't use the GUI - the reason is, that because of something (which might be my desktop theme), when I click the match button to choose TheMovieDB, TheTVDB etc - the whole menu is blank. It doesn't worry me too much because I prefer to work with the CLI anyway.
Onto the problem:
When I download subtitles, the resulting .srt file is not complete. Example:
filebot -get-subtitles "The.Birds.1963.HDTV.x264.YIFY.mp4" --lang en --encoding utf8
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [The.Birds.1963.HDTV.x264.YIFY.en.srt] from [OpenSubtitles]
Export [The.Birds.1963.HDTV.x264.YIFY.en.srt] as [null / UTF-8]
Writing [The.Birds.1963.HDTV.x264.YIFY.en.srt] to [The.Birds.1963.HDTV.x264.YIFY.eng.srt]
It all seems to work ok, but the last few lines of the .srt file are:
1055
01:35:58,951 --> 01:36:00,409
- Where will we go?
- I don't know.
1056
01:36:00,577 --> 01:36:02,534
I think we're safe here
for the time being.
The file is 4877 lines long and finishes about 20mins short of the movie length.
As a comparison, I used the Filebot GUI to get the same subtitles. The end of this new file is:
1117
01:57:51,025 --> 01:57:55,354
- They haven't harmed anyone.
- Alright. Bring them.
1118
01:57:56,305 --> 01:58:02,832
Support us and become VIP member
to remove all ads from www.OpenSubtitles.org
Now 5158 lines.
This problem doesn't just affect movie subtitles, or English subtitles. It's not 'big' files - because I notice the same behaviour downloading subtitles for series episodes in English and Greek.
Often the file are truncated in the middle of subtitle line.
There doesn't seem to be any specific cut off point, except it loses about the last 15% of a file - so in a 1hr episode it will download maybe 50(ish) minutes. In a movie it will go way past the 50m mark - maybe losing the last 10-20 mins of the movie.
I can't figure out why GUI works, but CLI fails like this.
Thank you in advance for any guidance.
