Skip to content
Snippets Groups Projects
  1. Jan 12, 2017
  2. Dec 27, 2016
  3. Nov 03, 2016
    • Nicolas George's avatar
      lavd/xcbgrab: do not try to create refcounted packets. · 0bd1be65
      Nicolas George authored
      The framework will allocate a buffer and copy the data to it,
      that takes time. But it avoids constently creating and
      destroyng the shared memory segment, and that saves more time.
      
      On my setup,
      from ~200 to ~300 FPS at full screen (1920×1200),
      from ~1400 to ~3300 at smaller size (640×480),
      similar to legacy x11grab and confirmed by others.
      
      Plus, shared memory segments are a scarce resource,
      allocating potentially many is a bad idea.
      
      Note: if the application were to drop all references to the
      buffer before the next call to av_read_frame(), then passing
      the shared memory segment as a refcounted buffer would be
      even more efficient, but it is hard to guarantee, and it does
      not happen with the ffmpeg command-line tool. Using a small
      number of preallocated buffers and resorting to a copy when
      the pool is exhausted would be a solution to get the better
      of both worlds.
      0bd1be65
  4. Oct 26, 2016
  5. Oct 21, 2016
  6. Oct 03, 2016
  7. Sep 25, 2016
  8. Sep 24, 2016
  9. Aug 20, 2016
  10. Aug 05, 2016
  11. Aug 03, 2016
  12. Aug 02, 2016
  13. Jul 26, 2016
  14. Jul 25, 2016
  15. Jul 17, 2016
  16. Jul 13, 2016
  17. Jun 28, 2016
  18. Jun 27, 2016
  19. Jun 26, 2016
  20. Jun 23, 2016
  21. Jun 16, 2016
  22. Jun 14, 2016
Loading