Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.io.video bob.io.video
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.io.videobob.io.video
  • Issues
  • #14
Closed
Open
Issue created Nov 28, 2018 by Amir MOHAMMADI@amohammadiOwner

The video reader leaves the video files openned

Looks like the video reader bob.io.video.reader does not close the video file when iterating over frames AND the iteration does not finish fully.

For example:

video = bob.io.base.load('testvideo.avi')
# closes the video file properly

for frame in reader('testvideo.avi'):
    pass
# closes the video file properly

for frame in reader('testvideo.avi'):
    break
# the video file is left open!
import gc
gc.collect()
# the video file is still open!
Assignee
Assign to
Time tracking