1. 03 May, 2023 1 commit
  2. 11 Jan, 2023 1 commit
  3. 14 Nov, 2022 1 commit
  4. 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
  5. 18 Aug, 2022 2 commits
    • Nicolas Hug's avatar
      Add an option to skip packets with empty data (#6442) · 05d12419
      Nicolas Hug authored
      
      
      Summary:
      This diff adds **`skipOperationNotPermittedPackets`** to `DecoderParameters`.
      
      Once that is set to `True`, it allows decoder to skip through those packets, that are causing `EPERM` errors and result into stoppage of consuming a stream.
      
      Reviewed By: jdsgomes
      
      Differential Revision: D38732706
      
      fbshipit-source-id: a5cb64e14edda376e6ba240089ebee2e3a9865d0
      Co-authored-by: default avatarOleksandr Voietsa <ovoietsa@fb.com>
      05d12419
    • Nicolas Hug's avatar
      Free avPacket on EAGAIN decoder error (#6432) (#6443) · cb5def22
      Nicolas Hug authored
      Summary:
      Pull Request resolved: https://github.com/pytorch/vision/pull/6432
      
      
      
      According to the documentation the packet has to be freed after `av_read_frame()` call.
      ```
       If pkt->buf is NULL, then the packet is valid until the next
       av_read_frame() or until avformat_close_input(). Otherwise the packet
       is valid indefinitely. In both cases the packet must be freed with
       av_packet_unref when it is no longer needed.
      ```
      
      Differential Revision: D38747612
      
      fbshipit-source-id: 2e4ccc8365d0d97e5da756ff9c1dcdf27ed323f0
      Co-authored-by: default avatarOleksandr Voietsa <ovoietsa@fb.com>
      cb5def22
  6. 03 Aug, 2022 3 commits
  7. 27 Jul, 2022 1 commit
  8. 30 May, 2022 1 commit
  9. 25 Mar, 2022 1 commit
  10. 02 Mar, 2022 1 commit
  11. 01 Mar, 2022 2 commits
  12. 01 Feb, 2022 1 commit
  13. 27 Jan, 2022 1 commit
  14. 24 Jan, 2022 2 commits
  15. 19 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. 05 Nov, 2021 1 commit
  18. 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
  19. 18 Oct, 2021 1 commit
  20. 16 Aug, 2021 1 commit
  21. 10 Jun, 2021 1 commit
  22. 09 Jun, 2021 2 commits
  23. 08 Jun, 2021 1 commit
  24. 07 Jun, 2021 1 commit
  25. 01 Jun, 2021 1 commit
  26. 21 May, 2021 2 commits
  27. 27 Apr, 2021 1 commit
  28. 31 Mar, 2021 1 commit
  29. 24 Mar, 2021 1 commit
  30. 11 Feb, 2021 1 commit
  31. 25 Jan, 2021 1 commit
  32. 10 Dec, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Restructuring C++ project: (#3146) · 7d831a2f
      Vasilis Vryniotis authored
      Summary:
      * Reduce unnecessary header inclusions in models and io.
      
      * Move autocast to separate folder and hide autograd implementation in an anonymous namespace.
      
      * Moving files in subfolders.
      
      Reviewed By: fmassa
      
      Differential Revision: D25461523
      
      fbshipit-source-id: 756eeb6848aacaa474de4825ed4c1045d17e2cea
      7d831a2f