On 22/12/2021 19:27, Daniel Pielmeier wrote:
Wol schrieb am 22.12.21 um 19:45:
What is an i-frame? As I understood it, typically when you had a scene
change, a frame was written in full, then subsequent frames were
stored as diffs. Is that what an i-frame is?
Wikipedia [1] to the help.
In which case, surely it can't be that tricky to delete a block
without having to decode/encode more than a few frames?
Encoding only the affected region is tricky because you need to use the
same codec parameters (encoding profile, resolution, colour space, FPS,
bit depth, bitrate, and possibly more parameters which are also codec
dependent) like the rest of the unaffected portion of the video to be
able to concatenate it again afterwards with the rest of the video. Also
it is tricky to keep video an audio in sync when having a lot of cut
points. Probably there are other issues depending on the required
codecs. So making it work for every codec even only for the popular ones
might be a lot of work.
TTCut can do "smart cutting" by encoding only the affected GOP [2].
However it only works for Mpeg2 Video and Mpeg2 Audio or Dolby AC-3
Audio. I have not tested it but VidCutter [3] should also be capable of
doing so and as I see there is no restriction on the codecs. They are
the only ones I am aware of supporting this feature and they are
packaged for Gentoo.
[1] https://en.wikipedia.org/wiki/Video_compression_picture_types
[2] https://en.wikipedia.org/wiki/Group_of_pictures
[3] https://github.com/ozmartian/vidcutter
Cue another bout of screaming.
TTCut doesn't recognise .ts, and when force-fed just crashes.
Vidcutter won't emerge - its dependency mpv bombs with
Checking for wayland-scanner
: no
You manually enabled the feature 'wayland-scanner', but the
autodetection check failed.
* ERROR: media-video/mpv-0.33.1-r2::gentoo failed (configure phase):
* configure failed
Now where would I have enabled wayland-scanner?
Cheers,
Wol