Avoid copying when using a URI to decode a video frame
See original GitHub issueIs your feature request related to a problem? Please describe.
When loading video frame from a content://
URI, VideoFrameDecoder
has to create a copy of this content uri as a temporary file, it’s inefficient and unnecessary (imagine copy a 2GB video file just to load a thumbnail). coil
need a way to let decoder use the content URI directly,
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Avoid copying decoded frames when seeking in ffmpeg
I'm working on implementing accurate seeking using ffmpeg and libav (using the C libraries, not the command line ffmpeg tool).
Read more >WebCodecs - W3C
Abstract. This specification defines interfaces to codecs for encoding and decoding of audio, video, and images.
Read more >ffmpeg Documentation
Before encoding, ffmpeg can process raw audio and video frames using filters from the libavfilter library. Several chained filters form a filter graph....
Read more >How to cut at exact frames using ffmpeg? - Super User
Note that cutting on exact frames with bitstream copy ( -c:v copy ) is not possible, since not all frames are intra-coded ("keyframes")....
Read more >MediaPlayer - Android Developers
MediaPlayer objects created using new is in the Idle state, ... The video is too complex for the decoder: it can't decode frames...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Going to merge https://github.com/coil-kt/coil/pull/1050 as it fixes the issue in the interim and avoids pulling the fetching logic into
ImageSource
.Thanks for the quick fix.