Skip to content

UnicodeDecodeError - video/audio sync issue #3

@michaeltoohig

Description

@michaeltoohig

When playing certain files I get an error which causes either a BrokenPipeError or the following:

DEBUG       Executing ffmpeg -hide_banner -i data/Jesus Christ Bruce...-oLMkUKAiVDY.mp4 -filter:a [in]apad[out] -s 12
80x720 -pix_fmt yuv420p -r 25 -ar 48000 -t 13.978411 -c:v rawvideo -c:a pcm_s16le -max_interleave_delta 400000 -f avi
 -
DEBUG       Appending <Conti source: Jesus Christ Bruce...-oLMkUKAiVDY> to playlist
ERROR       Exception!

    Traceback (most recent call last):
      File "/mnt/c/Projects/telsat/channel/conti/conti/__init__.py", line 115, in progress_thread
        ch = decode_if_py3(source.proc.stderr.read(1))
      File "/mnt/c/Projects/telsat/channel/conti/.venv/lib/python3.6/site-packages/nxtools/common.py", line 36, in <l
ambda>
        decode_if_py3 = lambda x, enc="utf-8": x.decode(enc)
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

ERROR       Exception!

    Traceback (most recent call last):
      File "/mnt/c/Projects/telsat/channel/conti/conti/__init__.py", line 115, in progress_thread
        ch = decode_if_py3(source.proc.stderr.read(1))
      File "/mnt/c/Projects/telsat/channel/conti/.venv/lib/python3.6/site-packages/nxtools/common.py", line 36, in <l
ambda>
        decode_if_py3 = lambda x, enc="utf-8": x.decode(enc)
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte

INFO        Starting clip <Conti source: Jesus Christ Bruce...-oLMkUKAiVDY>

Play continues but these files can cause video/audio sync problems which can be very small or adds up over an hour or two to be noticeable.

All files were downloaded with youtube-dl and I was just playing them in a loop to see if this type of error would occur; only a few of the files seem to cause the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions