Closed hmaarrfk closed 1 month ago
I found the curated dataset from: https://github.com/PyAV-Org/PyAV/blob/5ab63db8c557cdd0bb48fd9a70e3ba6475954b70/examples/basics/remux.py#L4
but i didn't read the name of the file earlier....
man that worked.
template
....
genius!
I would effectively like to slice a video along keyframes in a lossless way.
It seems that a first step would be to simply go through all the packets, without decoding them, and ensure that we can send them to an other similar file.
I think this should be straight forward (this little tutorial says as much at least https://www.bookstack.cn/read/ffmpeg-libav-tutorial/spilt.3.spilt.4.blank )
Overview
I would like to effectively copy the command:
which should copy my contents, without decoding it re-encoding it. It should be doing this losslessly for nearly free.
Desired Behavior
should give me a meaningful output from my file generated in python
Example API
Additional context
my little patch to make pos writeable
```patch diff --git a/av/packet.pyx b/av/packet.pyx index 63b0b50..76e0bf0 100644 --- a/av/packet.pyx +++ b/av/packet.pyx @@ -156,6 +156,13 @@ cdef class Packet(Buffer): if self.ptr.pos != -1: return self.ptr.pos + @pos.setter + def pos(self, v): + if v is None: + self.ptr.pos = -1 + else: + self.ptr.pos = v + @property def size(self): """ ```Thank you for your time!