1. 06 Jun, 2024 1 commit
  2. 20 Mar, 2024 1 commit
  3. 22 Jan, 2024 1 commit
  4. 15 Jan, 2024 1 commit
  5. 03 May, 2023 1 commit
  6. 11 Jan, 2023 1 commit
  7. 14 Nov, 2022 1 commit
  8. 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
  9. 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
  10. 03 Aug, 2022 3 commits
  11. 27 Jul, 2022 1 commit
  12. 30 May, 2022 1 commit
  13. 25 Mar, 2022 1 commit
  14. 02 Mar, 2022 1 commit
  15. 01 Mar, 2022 2 commits
  16. 01 Feb, 2022 1 commit
  17. 27 Jan, 2022 1 commit
  18. 24 Jan, 2022 2 commits
  19. 19 Jan, 2022 1 commit
  20. 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
  21. 05 Nov, 2021 1 commit
  22. 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
  23. 18 Oct, 2021 1 commit
  24. 16 Aug, 2021 1 commit
  25. 10 Jun, 2021 1 commit
  26. 09 Jun, 2021 2 commits
  27. 08 Jun, 2021 1 commit
  28. 07 Jun, 2021 1 commit
  29. 01 Jun, 2021 1 commit
  30. 21 May, 2021 2 commits
  31. 27 Apr, 2021 1 commit
  32. 31 Mar, 2021 1 commit
  33. 24 Mar, 2021 1 commit