1. 31 Oct, 2022 1 commit
    • Bruno Korbar's avatar
      Pyav backend for VideoReader API (#6598) · 2e833520
      Bruno Korbar authored
      
      
      * Test: add backend parameter
      
      * VideoReader object now works on backend
      
      * Frame reading now passes
      
      * Keyframe seek now passes
      
      * Pyav backend now supports metadata
      
      * changes in test to reflect GPU decoder change
      
      * Linter?
      
      * Test GPU output
      
      * Addressing Joao's comments
      
      * lint
      
      * lint
      
      * Revert "Test GPU output"
      
      This reverts commit f62e955d7dc81bcb23b40d58ea75413b9b62e76d.
      
      * lint?
      
      * lint
      
      * lint
      
      * Address issues in build?
      
      * hopefully doc fix
      
      * Arrgh
      
      * arrgh
      
      * fix typos
      
      * fix input options
      
      * remove read from memory option in pyav
      
      * skip read from mem test for gpu and pyab be
      
      * fix test
      
      * remove unused import
      
      * Hack to get reading from memory work with pyav
      
      * patch audio test
      Co-authored-by: default avatarBruno Korbar <bkorbar@quansight.com>
      Co-authored-by: default avatarJoao Gomes <jdsgomes@fb.com>
      2e833520
  2. 21 Oct, 2022 1 commit
    • Joao Gomes's avatar
      Read video from memory newapi (#6771) · 06ad05fa
      Joao Gomes authored
      * add tensor as optional param
      
      * add init from memory
      
      * fix bug
      
      * fix bug
      
      * first working version
      
      * apply formatting and add tests
      
      * simplify tests
      
      * fix tests
      
      * fix wrong variable name
      
      * add path as optional parameter
      
      * add src as optional
      
      * address pr comments
      
      * Fix warning messages
      
      * address pr comments
      
      * make tests stricter
      
      * Revert "make tests stricter"
      
      This reverts commit 6c92e94e8372f381c9496c9f885c2c71b6a4356b.
      06ad05fa
  3. 04 Oct, 2022 1 commit
    • Joao Gomes's avatar
      fix bug in output format for pyav (#6672) · d427f365
      Joao Gomes authored
      * fix bug in output format for pyav
      
      * add read from memory with constructor overload
      
      * Revert "add read from memory with constructor overload"
      
      This reverts commit 14cbbab239165be05096fd6cbb88cb0448502436.
      
      * run ufmt
      d427f365
  4. 23 Sep, 2022 1 commit
  5. 22 Jul, 2022 1 commit
  6. 14 Jun, 2022 1 commit
  7. 23 May, 2022 1 commit
  8. 20 May, 2022 1 commit
  9. 01 Apr, 2022 1 commit
  10. 15 Mar, 2022 1 commit
  11. 01 Mar, 2022 2 commits
  12. 25 Feb, 2022 2 commits
  13. 24 Jan, 2022 2 commits
  14. 19 Jan, 2022 1 commit
  15. 10 Jan, 2022 1 commit
  16. 30 Dec, 2021 1 commit
    • Prabhat Roy's avatar
      Add video GPU decoder (#5019) · 64d21d12
      Prabhat Roy authored
      
      
      * [WIP] Add video GPU decoder
      
      * Expose use_dev_frame to python class and handle it internally
      
      * Fixed invalid argument CUDA error
      
      * Fixed empty and missing frames
      
      * Free remaining frames in the queue
      
      * Added nv12 to yuv420 conversion support for host frames
      
      * Added unit test and cleaned up code
      
      * Use CUDA_HOME inside if
      
      * Undo commented out code
      
      * Add Readme
      
      * Remove output_format and use_device_frame optional arguments from the VideoReader API
      
      * Cleaned up init()
      
      * Fix warnings
      
      * Fix python linter errors
      
      * Fix linter issues in setup.py
      
      * clang-format
      
      * Make reformat private
      
      * Member function naming
      
      * Add comments
      
      * Variable renaming
      
      * Code cleanup
      
      * Make return type of decode() void
      
      * Replace printing errors with throwing runtime_error
      
      * Replaced runtime_error with TORCH_CHECK in demuxer.h
      
      * Use CUDAGuard instead of cudaSetDevice
      
      * Remove printf
      
      * Use Tensor instead of uint8* and remove cuMemAlloc/cuMemFree
      
      * Use TORCH_CHECK instead of runtime_error
      
      * Use TORCHVISION_INCLUDE and TORCHVISION_LIBRARY to pass video codec location
      
      * Include ffmpeg_include_dir
      
      * Remove space
      
      * Removed use of runtime_error
      
      * Update Readme
      
      * Check for bsf.h
      
      * Change struct initialisation style
      
      * Clean-up get_operating_point
      
      * Make variable naming convention uniform
      
      * Move checking for bsf.h around
      
      * Fix linter error
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      64d21d12
  17. 27 Dec, 2021 1 commit
  18. 21 Dec, 2021 1 commit
    • Kai Zhang's avatar
      Log io usage (#5038) · da7680f0
      Kai Zhang authored
      * add api usage log for io
      
      * cover VideoReader
      
      * cover c++ APIs
      
      * add api usage log for io
      
      * cover VideoReader
      
      * cover c++ APIs
      
      * add _cpp suffix to c++ APIs
      
      * use new API and change cpp format
      
      * remove _cpp suffix
      
      * adopt new API
      
      * lint
      da7680f0
  19. 13 Dec, 2021 1 commit
  20. 05 Dec, 2021 1 commit
  21. 17 Nov, 2021 1 commit
    • F-G Fernandez's avatar
      Added typing annotations to io/_video_opts (#4173) · 29e0f66a
      F-G Fernandez authored
      
      
      * style: Added typing annotations
      
      * style: Fixed lint
      
      * style: Fixed typing
      
      * chore: Updated mypy.ini
      
      * style: Fixed typing
      
      * chore: Updated mypy.ini
      
      * style: Fixed typing compatibility with jit
      
      * style: Fixed typing
      
      * style: Fixed typing
      
      * style: Fixed missing import
      
      * style: Fixed typing of __iter__
      
      * style: Fixed typing
      
      * style: Fixed lint
      
      * style: Finished typing
      
      * style: ufmt the file
      
      * style: Removed unnecessary typing
      
      * style: Fixed typing of iterator
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
      29e0f66a
  22. 10 Nov, 2021 2 commits
  23. 03 Nov, 2021 1 commit
    • Bruno Korbar's avatar
      Fast seek implementation (#3179) · 4ccef06c
      Bruno Korbar authored
      
      
      * modify processPacket to support fast seek
      
      * add fastSeek to ProcessPacket decoder definition
      
      * add fastseek flag to DecoderParametersStruct
      
      * add fastseek flag to the process packet call
      
      * no default params in C++ implementation
      
      * enable flag in C++ implementation
      
      * make order of parameters more normal
      
      * register new seek with python api
      
      * [somewhat broken] test suite for keyframes using pyav
      
      * revert " changes
      
      * add type annotations to init
      
      * Adding tests
      
      * linter
      
      * Flake doesn't show up :|
      
      * Change from unitest to pytest syntax
      
      * add return type
      Co-authored-by: default avatarPrabhat Roy <prabhatroy@fb.com>
      4ccef06c
  24. 28 Oct, 2021 1 commit
  25. 25 Oct, 2021 1 commit
  26. 21 Oct, 2021 2 commits
  27. 18 Oct, 2021 1 commit
  28. 08 Oct, 2021 1 commit
  29. 04 Oct, 2021 2 commits
    • Nicolas Hug's avatar
      Fix all outstanding flake8 issues (#4535) · b81d189d
      Nicolas Hug authored
      b81d189d
    • Philip Meier's avatar
      Add ufmt (usort + black) as code formatter (#4384) · 5f0edb97
      Philip Meier authored
      
      
      * add ufmt as code formatter
      
      * cleanup
      
      * quote ufmt requirement
      
      * split imports into more groups
      
      * regenerate circleci config
      
      * fix CI
      
      * clarify local testing utils section
      
      * use ufmt pre-commit hook
      
      * split relative imports into local category
      
      * Revert "split relative imports into local category"
      
      This reverts commit f2e224cde2008c56c9347c1f69746d39065cdd51.
      
      * pin black and usort dependencies
      
      * fix local test utils detection
      
      * fix ufmt rev
      
      * add reference utils to local category
      
      * fix usort config
      
      * remove custom categories sorting
      
      * Run pre-commit without fixing flake8
      
      * got a double import in merge
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      5f0edb97
  30. 31 Aug, 2021 1 commit
  31. 25 Jul, 2021 1 commit
  32. 05 Jul, 2021 1 commit
  33. 22 Jun, 2021 1 commit
  34. 17 Jun, 2021 1 commit