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

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position ...: invalid start byte #38

Open
ayushin opened this issue Apr 6, 2022 · 1 comment

Comments

@ayushin
Copy link

ayushin commented Apr 6, 2022

When a video has a non utf-8 metadate the encoding breaks. This is the output of ffmpeg:

    com.apple.quicktime.artwork: ����

And here is where the encoding breaks:

video_encoding/backends/ffmpeg.py", line 97, in encode
line = reader.readline()

I think there should be no problem to ignore invalid characters of ffmpeg is happy to process the file?

ayushin pushed a commit to apexlabs-ai/django-video-encoding that referenced this issue Apr 6, 2022
ffmpeg sometimes outputs crazy non utf-8 characters coming from video metadata. There is no reason to stop processing because of that.
@ayushin
Copy link
Author

ayushin commented Jun 22, 2022

@escaped any chance for some feedback on this?

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

1 participant