1. 01 Aug, 2023 1 commit
  2. 31 Jul, 2023 2 commits
  3. 29 Jul, 2023 1 commit
    • moto's avatar
      Refactor compat (#3518) · 8497ee91
      moto authored
      Summary:
      The I/O functions in _compat module was introduced there so that
      everything related to FFmpeg is in torchaudio.io and FFmpeg library
      initialization can be carried out in `torchaudio.io.__init__`.
      
      Now that this constraint is removed, (all the initialization happens
      at `torchaudio._extension.__init__`) and `_compat` is only used by
      FFmpeg dispatcher backend, we move the module to `torchaudio._backend`
      for better locality.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3518
      
      Reviewed By: huangruizhe
      
      Differential Revision: D47877412
      
      Pulled By: mthrok
      
      fbshipit-source-id: aa18c8cb6e5d5360950df5158c33c653e37c565f
      8497ee91
  4. 28 Jul, 2023 5 commits
  5. 27 Jul, 2023 3 commits
  6. 26 Jul, 2023 3 commits
  7. 25 Jul, 2023 7 commits
  8. 24 Jul, 2023 1 commit
  9. 18 Jul, 2023 1 commit
  10. 17 Jul, 2023 1 commit
  11. 15 Jul, 2023 2 commits
  12. 14 Jul, 2023 1 commit
    • moto's avatar
      Update the logic to fetch pixel format from filter graph (#3479) · cf53a486
      moto authored
      Summary:
      When using GPU decoder in some environments, attempting to read the output formats from filter graph caused an issue in which the software pixel format cannot be determined.
      
      We do not know the exact cause but when it happens, the input link of buffer sink does not have HW frames context.
      
      Since currently no filter can convert the pixel format of CUDA frame, we resort to the HW frames context of the output link of buffer source.
      
      Environments this was observed.
      
      Env1
      - OS: Fedora 36 (x86_64)
      - GCC 12.2.1
      - Python 3.10.12
      - GPU: GeForce RTX 3070 Ti Laptop GPU
      - FFmpeg: 5.1.3
      - nv-codec-header: n11.1.5.2
      - CUDA: 12.1
      
      Env2
      - Ubuntu 20.04.4 LTS (x86_64)
      - GCC 9.4.0
      - Python 3.11.3
      - GPU: Quadro GV100
      - FFmpeg: 5.1.3
      - nv-codec-header: n11.1.5.2
      - CUDA: 11.4
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3479
      
      Differential Revision: D47482407
      
      Pulled By: mthrok
      
      fbshipit-source-id: 1c53096b27824453b260138ab64e1948afeeefc7
      cf53a486
  13. 13 Jul, 2023 2 commits
  14. 12 Jul, 2023 5 commits
    • moto's avatar
      Resolve some compilation warnings (#3471) · a6d1fec0
      moto authored
      Summary:
      - FFmpeg 6 deprecated attributes
      - Guard CUDA specific functions not used in CPU builds
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3471
      
      Differential Revision: D47402174
      
      Pulled By: mthrok
      
      fbshipit-source-id: 00c0719ab1849b50c0b56b03d8fb38bc7aa74538
      a6d1fec0
    • Bogdan Teleaga's avatar
      Fix resampling to support dynamic input lengths for onnx exports. (#3473) · a3b6bfb6
      Bogdan Teleaga authored
      Summary:
      This is a port of https://github.com/adefossez/julius/pull/17 for torchaudio.
      
      Not sure if it's possible/desirable to add tests to test the functionality of ONNX exports, but I did a quick test on my machine to ensure this works. The logic is a bit simpler compared to the other PR because the torchaudio version does not support the additional flags available in julius.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3473
      
      Differential Revision: D47401988
      
      Pulled By: mthrok
      
      fbshipit-source-id: 62fa1e4388923f6a62cef2c0f902a79ea179cec4
      a3b6bfb6
    • moto's avatar
      Use FFmpeg6 in build doc (#3475) · 989702b3
      moto authored
      Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3475
      
      Differential Revision: D47403772
      
      Pulled By: mthrok
      
      fbshipit-source-id: 5cdde521dbbbbf33856470a9dc79419b4a3a1683
      989702b3
    • Moto Hira's avatar
      Fix FFmpeg initialization logic (#3474) · 49e269ab
      Moto Hira authored
      Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3474
      
      Differential Revision: D47398447
      
      fbshipit-source-id: f77b685d54ddfc222b806475707d4a10239872f5
      49e269ab
    • moto's avatar
      Support multiple FFmpeg versions (#3464) · 786066b4
      moto authored
      Summary:
      This commit introduces support for multiple FFmpeg versions for OSS binary distributions.
      
      Currently torchaudio only works with FFmpeg 4. This is inconvenient from installing to runtime linking.
      This commit allows to pick FFmpeg 4, 5 or 6 at runtime, instead of just looking for v4.
      
      The way it works is that we compile the FFmpeg extension three times with different FFmpeg and ship them.
      At runtime, we look for libavutil of specific version and when one is found, load the corresponding FFmpeg extension.
      The order of preference is 6, 5, then 4.
      
      To make the build process simple and reproducible, we use pre-built binaries of FFmpeg during the build.
      They are LGPL and downloaded from S3 at build time, instead of building every time.
      
      The use of pre-built binaries as scaffolding limits the system that can build torchaudio, so it also introduces
      single FFmpeg version support mode. setting FFMPEG_ROOT during the build will change the way binaries are built
      so that it will only support one specific version of FFmpeg.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/3464
      
      Differential Revision: D47300223
      
      Pulled By: mthrok
      
      fbshipit-source-id: 560c7968315e4c8922afa11a4693f648c0356d04
      786066b4
  15. 11 Jul, 2023 4 commits
  16. 10 Jul, 2023 1 commit