Skip to content

invalid start byte / subtitle encoding (...) text to text or bitmp to bitmap #9

@mavhamm

Description

@mavhamm

Hi, great program!

Recently I haven't been able to make it work on any new downloads. I'm on Windows10, using v1.3.1

Here's the info on this mkv: https://prnt.sc/pfuBqRiW-Ngp
Here is the srt: https://www.mediafire.com/folder/bg354za9xfn7q/condenser_issue_2023-01

Log when it uses the internal subtitle file

Could not extract subtitle with ffmpeg: b'Subtitle encoding currently only possible from text to text or bitmap to bitmap\r\n'
Traceback:
Traceback (most recent call last):
  File "condenser.py", line 353, in main
  File "condenser.py", line 184, in get_srt
  File "condenser.py", line 161, in extract_srt
Exception: Could not extract subtitle with ffmpeg: b'Subtitle encoding currently only possible from text to text or bitmap to bitmap\r\n'

Log when it uses the external srt subtitle

'utf-8' codec can't decode byte 0x92 in position 0: invalid start byte
Traceback:
Traceback (most recent call last):
  File "condenser.py", line 357, in main
  File "condenser.py", line 211, in condense
  File "condenser.py", line 72, in extract_periods
  File "lib\site-packages\pysrt\srtfile.py", line 153, in open
  File "lib\site-packages\pysrt\srtfile.py", line 181, in read
  File "C:\Users\xerca\AppData\Local\Programs\Python\Python37\lib\collections\__init__.py", line 1127, in extend
  File "lib\site-packages\pysrt\srtfile.py", line 204, in stream
  File "C:\Users\xerca\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 714, in __next__
  File "C:\Users\xerca\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 645, in __next__
  File "C:\Users\xerca\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 558, in readline
  File "C:\Users\xerca\AppData\Local\Programs\Python\Python37\lib\codecs.py", line 504, in read
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 0: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions