question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid copying when using a URI to decode a video frame

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
colinrtwhitecommented, Dec 20, 2021

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.

0reactions
Khang-NTcommented, Dec 21, 2021

Going to merge #1050 as it fixes the issue in the interim and avoids pulling the fetching logic into ImageSource.

Thanks for the quick fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found