Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Merge requests
  • !668

Metadata UnicodeDecodeError Fix

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/indyquiet/develop into develop May 23, 2020
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: indyquiet

Some movies fail to decode just because of bad metadatas.

Traceback (most recent call last): File "av\utils.pyx", line 14, in av.utils._decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Examples : Ignoring UnicodeDecodeError bytes from : b'AVI-Mux GUI 1.17.8, Aug 30 2008 12:36:58\xff' -> 'AVI-Mux GUI 1.17.8, Aug 30 2008 12:36:58'

Proposed solution : Merely ignore bad bytes by overriding the errors flag (from 'strict' to 'ignore') also print the original metadata as a warning

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/indyquiet/develop